private string GetLocateQty(string Item, string Period, string LocateSec) { int OnHd_Qty = 0; IVMModel.MaintainRemoveByPick BCOIVM = new IVMModel.MaintainRemoveByPick(ConntionDB); bool getSuccess = BCOIVM.GetStockQtyByLocateSec(Item, Period, LocateSec, out OnHd_Qty); if (getSuccess == false) { return "0"; } else { return OnHd_Qty.ToString(); } }
public static string GetLocateSecByAttr(string LocateNo,string strAttr,string Item,string Period) { int OnHd_Qty = 0; IVMModel.MaintainRemoveByPick BCOIVM = new IVMModel.MaintainRemoveByPick(ConntionDB); ParameterList.Clear(); ParameterList.Add(LocateNo); ParameterList.Add(strAttr); string LocateSec = BCOIVM.GetLocateSecByAttr(ParameterList); bool getSuccess = BCOIVM.GetStockQtyByLocateSec(Item, Period, LocateSec, out OnHd_Qty); if (getSuccess == false) { return LocateSec + "|" + "0"; } else { return LocateSec + "|" + OnHd_Qty.ToString(); } }