示例#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 })));
 }