예제 #1
0
 public bool UpdateMaterial(string batch, string material)
 {
     SqlAdapter.ConnectionString = _connstr;
     return(SqlAdapter.Run(string.Format(_usql, material, batch)));
 }
예제 #2
0
 public bool UpWeight(DepotObject depotObject)
 {
     SqlAdapter.ConnectionString = _connstr;
     return(SqlAdapter.Run(string.Format(_uwsql, depotObject.Weight, depotObject.TheoryWeight, depotObject.BatchNo + depotObject.BatchIndex)));
 }
예제 #3
0
 public bool UploadDepot(DepotObject depotObject)
 {
     SqlAdapter.ConnectionString = _connstr;
     return(SqlAdapter.Run(string.Format(_isql, new object[] { depotObject.BatchNo + depotObject.BatchIndex, depotObject.Weight, depotObject.TheoryWeight, depotObject.Barcode, depotObject.Material })));
 }