public static string MakePickUpBill(string UID,string BDISNo, string EDISNo, string AcceptDate, string APLDate, string RootNo, string PMA) { try { IVMModel.MaintainPickData BCO = new IVMModel.MaintainPickData(ConntionDB); ArrayList ParameterList = new ArrayList(); ParameterList.Add(UID); ParameterList.Add(BDISNo); ParameterList.Add(EDISNo); ParameterList.Add(AcceptDate); ParameterList.Add(APLDate); ParameterList.Add(RootNo); ParameterList.Add(PMA); bool isOK; string PickNo = ""; int OK = 0; string OutMsg = ""; isOK = BCO.CreateByCRMOrder(ParameterList, out PickNo,out OutMsg,out OK, null); if (OK.ToString() == "0") { return "1|查無符合條件的資料"; } else if (OK.ToString() == "2") { return "2|"+ PickNo +"|有商品於下架儲位庫存不足" ; } else if (OK.ToString() == "3") { return "1|" + OutMsg.ToString(); } return "0|"+ PickNo; } catch (Exception ex) { return "1|" + ex.ToString(); } }