Ejemplo n.º 1
0
 public void CopyTo(ToolsInfo obj)
 {
     obj.ID          = this.ID;
     obj.MachineType = this.MachineType;
     obj.MactypeCode = this.MactypeCode;
     obj.ToolNo      = this.ToolNo;
     obj.ToolType    = this.ToolType;
     obj.EdgeLength  = this.EdgeLength;
     obj.ToolLength  = this.ToolLength;
     obj.MEMO1       = this.MEMO1;
     obj.MEMO2       = this.MEMO2;
     obj.ToolClass   = this.ToolClass;
     obj.DIAMETER    = this.DIAMETER;
     obj.VISION      = this.VISION;
     obj.ACTIVE      = this.ACTIVE;
     obj.MEMO        = this.MEMO;
     obj.CreatedDate = this.CreatedDate;
     obj.UpdatedDate = this.UpdatedDate;
     obj.UpdatedBy   = this.UpdatedBy;
 }
Ejemplo n.º 2
0
 public bool IsToolExist(ToolsInfo toolsInfo)
 {
     return(getOneToolsInfoBySerial(toolsInfo.SerialNum) != null);
 }
Ejemplo n.º 3
0
 public int AddTools(ToolsInfo toolsInfo)
 {
     return(SQLHelper.InsertValuesByStruct("ToolsInfo", toolsInfo));
 }
Ejemplo n.º 4
0
 public int updateToolsInfo(ToolsInfo toolsInfo)
 {
     return(SQLHelper.UpdateValuesByStruct("ToolsInfo", toolsInfo, new string[] { "SerialNum" }, new string[] { toolsInfo.SerialNum }));
 }