public bool UpdateMaterial(string batch, string material) { SqlAdapter.ConnectionString = _connstr; return(SqlAdapter.Run(string.Format(_usql, material, batch))); }
public bool UpWeight(DepotObject depotObject) { SqlAdapter.ConnectionString = _connstr; return(SqlAdapter.Run(string.Format(_uwsql, depotObject.Weight, depotObject.TheoryWeight, depotObject.BatchNo + depotObject.BatchIndex))); }
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 }))); }