..
This commit is contained in:
@@ -42,7 +42,9 @@ namespace Project
|
||||
public bool CheckSIDExsit { get; set; }
|
||||
public bool bOwnZPL { get; set; }
|
||||
public int BSave { get; set; }
|
||||
|
||||
public bool IgnorePartNo { get; set; }
|
||||
public bool IgnoreBatch { get; set; }
|
||||
public int AutoOutConveyor { get; set; }
|
||||
|
||||
|
||||
public ModelInfoV()
|
||||
@@ -53,6 +55,7 @@ namespace Project
|
||||
|
||||
public void ReadValue(DataSet1.OPModelRow dr)
|
||||
{
|
||||
this.AutoOutConveyor= dr.AutoOutConveyor;
|
||||
this.bOwnZPL = dr.bOwnZPL;
|
||||
this.Title = dr.Title;
|
||||
this.Code = dr.Code;
|
||||
@@ -72,45 +75,9 @@ namespace Project
|
||||
this.DisablePrinter = dr.DisablePrinter;
|
||||
this.CheckSIDExsit = dr.CheckSIDExsit;
|
||||
this.BSave = dr.BSave;
|
||||
//this.ByPassSID = dr.ByPassSID;
|
||||
this.IgnoreBatch = dr.IgnoreBatch;
|
||||
this.IgnorePartNo = dr.IgnorePartNo;
|
||||
}
|
||||
public bool WriteValue()
|
||||
{
|
||||
var model = PUB.mdm.GetDataV(this.Title);
|
||||
return WriteValue(ref model);
|
||||
}
|
||||
public bool WriteValue(ref DataSet1.OPModelRow dr)
|
||||
{
|
||||
try
|
||||
{
|
||||
dr.Title = this.Title;
|
||||
dr.Code = this.Code;
|
||||
dr.Motion = this.Motion;
|
||||
dr.BCD_1D = this.BCD_1D;
|
||||
dr.BCD_QR = this.BCD_QR;
|
||||
dr.BCD_DM = this.BCD_DM;
|
||||
dr.vOption = this.vOption;
|
||||
dr.vSIDInfo = this.vSIDInfo;
|
||||
dr.vJobInfo = this.vJobInfo;
|
||||
dr.vSIDConv = this.vSIDConv1;
|
||||
dr.Def_MFG = this.Def_MFG;
|
||||
dr.Def_VName = this.Def_Vname;
|
||||
dr.IgnoreOtherBarcode = this.IgnoreOtherBarcode;
|
||||
dr.DisableCamera = this.DisableCamera;
|
||||
dr.DisablePrinter = this.DisablePrinter;
|
||||
dr.CheckSIDExsit = this.CheckSIDExsit;
|
||||
dr.bOwnZPL = this.bOwnZPL;
|
||||
dr.BSave = this.BSave;
|
||||
dr.EndEdit();
|
||||
PUB.mdm.SaveModelV();
|
||||
return true;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
PUB.log.AddE("write model error" + ex.Message);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[TypeConverterAttribute(typeof(ExpandableObjectConverter))]
|
||||
|
||||
Reference in New Issue
Block a user