예제 #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;
 }
예제 #2
0
 public bool IsToolExist(ToolsInfo toolsInfo)
 {
     return(getOneToolsInfoBySerial(toolsInfo.SerialNum) != null);
 }
예제 #3
0
 public int AddTools(ToolsInfo toolsInfo)
 {
     return(SQLHelper.InsertValuesByStruct("ToolsInfo", toolsInfo));
 }
예제 #4
0
 public int updateToolsInfo(ToolsInfo toolsInfo)
 {
     return(SQLHelper.UpdateValuesByStruct("ToolsInfo", toolsInfo, new string[] { "SerialNum" }, new string[] { toolsInfo.SerialNum }));
 }