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