public static string MakePickUpBill(string UserID, string SLP_DateControl, string SLP_BLocateControl, string SLP_BLocateSecControl, string SLP_ELocateControl, string SLP_ELocateSecControl ) { bool InsertOK = false; string OK = ""; string PickNo = ""; try { IVMModel.MaintainPickData BCO = new IVMModel.MaintainPickData(ConntionDB); ParameterList.Clear(); ParameterList.Add(UserID); ParameterList.Add(DateTime.Now.ToString("yyyyMMddHHmmss")); //Test使用ParameterList.Add("2009/07/17"); ParameterList.Add(SLP_DateControl); ParameterList.Add(SLP_BLocateControl + SLP_BLocateSecControl); ParameterList.Add(SLP_ELocateControl + SLP_ELocateSecControl); InsertOK = BCO.CreateByBatchTrans(ParameterList, null, out OK, out PickNo); if (OK == "0") { return "0|查無符合資料"; } else { if (OK == "2") { return "2|" + PickNo; } } return "1|" + PickNo; } catch (Exception ex) { throw ex; } }