Ejemplo n.º 1
0
 protected void InitFields(DataRow rowInfo)
 {
     this.Id                = TengDa._Convert.StrToInt(rowInfo["Id"].ToString(), -1);
     this.getPutType        = (GetPutType)Enum.Parse(typeof(GetPutType), rowInfo["GetPutType"].ToString());
     this.clampStatus       = (ClampStatus)Enum.Parse(typeof(ClampStatus), rowInfo["ClampStatus"].ToString());
     this.clampOri          = (ClampOri)Enum.Parse(typeof(ClampOri), rowInfo["ClampOri"].ToString());
     this.clampId           = TengDa._Convert.StrToInt(rowInfo["ClampId"].ToString(), -1);
     this.getPutTime        = DateTime.Parse(rowInfo["GetPutTime"].ToString());
     this.priority          = TengDa._Convert.StrToInt(rowInfo["Priority"].ToString(), 1);
     this.name              = rowInfo["Name"].ToString();
     this.company           = rowInfo["Company"].ToString();
     this.model             = rowInfo["Model"].ToString();
     this.number            = rowInfo["Number"].ToString();
     this.location          = rowInfo["Location"].ToString();
     this.isEnable          = Convert.ToBoolean(rowInfo["IsEnable"]);
     this.rgvValue          = rowInfo["RgvValue"].ToString();
     this.rgvGetFeederValue = rowInfo["RgvGetFeederValue"].ToString();
     this.rgvPutFeederValue = rowInfo["RgvPutFeederValue"].ToString();
     this.floorStatus       = (FloorStatus)Enum.Parse(typeof(FloorStatus), rowInfo["FloorStatus"].ToString());
     this.sampleStatus      = (SampleStatus)Enum.Parse(typeof(SampleStatus), rowInfo["SampleStatus"].ToString());
     this.PreFloorStatus    = this.floorStatus;
     this.fromStationId     = TengDa._Convert.StrToInt(rowInfo["FromStationId"].ToString(), -1);
     //for (int i = 0; i < Option.TemperaturePointCount + 1; i++)
     //{
     //    this.sampledDatas[i] = new List<float>();
     //}
 }
Ejemplo n.º 2
0
 protected void InitFields(DataRow rowInfo)
 {
     this.Id              = TengDa._Convert.StrToInt(rowInfo["Id"].ToString(), -1);
     this.clampOri        = (ClampOri)Enum.Parse(typeof(ClampOri), rowInfo["ClampOri"].ToString());
     this.fromType        = (GetPutType)Enum.Parse(typeof(GetPutType), rowInfo["FromType"].ToString());
     this.fromClampStatus = (ClampStatus)Enum.Parse(typeof(ClampStatus), rowInfo["FromClampStatus"].ToString());
     this.toType          = (GetPutType)Enum.Parse(typeof(GetPutType), rowInfo["ToType"].ToString());
     this.toClampStatus   = (ClampStatus)Enum.Parse(typeof(ClampStatus), rowInfo["ToClampStatus"].ToString());
     this.sampleStatus    = (SampleStatus)Enum.Parse(typeof(SampleStatus), rowInfo["SampleStatus"].ToString());
     this.priority        = TengDa._Convert.StrToInt(rowInfo["Priority"].ToString(), 1);
     this.cycleOrder      = TengDa._Convert.StrToInt(rowInfo["CycleOrder"].ToString(), 1);
     this.description     = rowInfo["Description"].ToString();
     this.isEnable        = Convert.ToBoolean(rowInfo["IsEnable"]);
 }
Ejemplo n.º 3
0
 protected void InitFields(DataRow rowInfo)
 {
     this.Id             = TengDa._Convert.StrToInt(rowInfo["Id"].ToString(), -1);
     this.getPutType     = (GetPutType)Enum.Parse(typeof(GetPutType), rowInfo["GetPutType"].ToString());
     this.clampStatus    = (ClampStatus)Enum.Parse(typeof(ClampStatus), rowInfo["ClampStatus"].ToString());
     this.clampOri       = (ClampOri)Enum.Parse(typeof(ClampOri), rowInfo["ClampOri"].ToString());
     this.clampId        = TengDa._Convert.StrToInt(rowInfo["ClampId"].ToString(), -1);
     this.getPutTime     = DateTime.Parse(rowInfo["GetPutTime"].ToString());
     this.priority       = TengDa._Convert.StrToInt(rowInfo["Priority"].ToString(), 1);
     this.name           = rowInfo["Name"].ToString();
     this.company        = rowInfo["Company"].ToString();
     this.model          = rowInfo["Model"].ToString();
     this.number         = rowInfo["Number"].ToString();
     this.location       = rowInfo["Location"].ToString();
     this.isEnable       = Convert.ToBoolean(rowInfo["IsEnable"]);
     this.robotValues    = rowInfo["RobotValues"].ToString();
     this.floorStatus    = (FloorStatus)Enum.Parse(typeof(FloorStatus), rowInfo["FloorStatus"].ToString());
     this.sampleStatus   = (SampleStatus)Enum.Parse(typeof(SampleStatus), rowInfo["SampleStatus"].ToString());
     this.PreFloorStatus = this.floorStatus;
     this.fromStationId  = TengDa._Convert.StrToInt(rowInfo["FromStationId"].ToString(), -1);
 }