private int AddHistory(string lotid, string s, string userName, string strcomment, bool isvendor, int dispose) { Wafer_History history = new Wafer_History(); history.ID = Guid.NewGuid().ToString(); history.TransformID = lotid; history.WaferID = s; history.Dispose = dispose; history.UserID = userName; history.Comment = strcomment; history.CreateTime = DateTime.Now.ToLocalTime(); history.IsVendor = isvendor; Wafer_HistoryGateway dbhistory = new Wafer_HistoryGateway(); return(dbhistory.AddHistory(history)); }
public int AddHistory(Wafer_History history) { return(this.dbGateway.AddNew(history)); }