예제 #1
0
        public void GetNewRcvDtl(Epicor.Mfg.Core.Session epiSession, ReceiptDataSet dsReceipt)
        {
            try
            {
                Receipt myReceipt = new Receipt(epiSession.ConnectionPool);

                //ReceiptDataSet dsReceipt = new ReceiptDataSet();
                //myReceipt.GetNewRcvDtl(dsReceipt, model.VendorNum, "", model.StoreInNum);
                myReceipt.GetNewRcvDtl(dsReceipt, 5, "", "IN00002-3");

                DataRow drReceipt = dsReceipt.Tables[0].Rows[0];
                drReceipt.BeginEdit();
                drReceipt["VendorNum"] = 5; // model.VendorNum;
                drReceipt["PackSlip"] = "IN00002-3";//model.StoreInNum + "-2";
                //drReceipt["PackLine"] = 1;
                //drReceipt["PartNum"] = DateTime.Now;
                drReceipt["WareHouseCode"] = "600";
                drReceipt["OurQty"] = 10; // model.Quantity;
                drReceipt["PONum"] = 272; // model.PONum;
                drReceipt["POLine"] = 1; // model.POLine;
                drReceipt["PORelNum"] = 1; // model.POLine;
                drReceipt.EndEdit();

                myReceipt.Update(dsReceipt);

                //IsSucces = true;
                //msgError = "";
            }
            catch (Exception ex)
            {
                //IsSucces = false;
                //msgError = ex.Message;
            }
        }