Dec 12, 2013

Epicor Using Adapter

ReceiptAdapter proxy = new ReceiptAdapter(oTrans);
            proxy.BOConnect();
            if (proxy.GetByID(vendorNum, purPoint, packSlip))
            {
                int rowCount = proxy.ReceiptData.RcvHead.Rows.Count;
                DataRow editRow = proxy.ReceiptData.RcvHead.Rows[(rowCount - 1)];
                editRow.BeginEdit();
                editRow["ReceivePerson"] = RcvHeadReceivePerson;
                editRow.EndEdit();
                if (proxy.Update())
                {
                    for (int i = 0; i < proxy.ReceiptData.RcvDtl.Count; i++)
                    {
                        if (proxy.ReceiptData.RcvDtl[i].PackLine == PackLine)
                        {
                            //ds.RcvDtl[i].OurQty=RcvDtlOurQty;  
                            proxy.ReceiptData.RcvDtl[i].InputOurQty
                            editRow = proxy.ReceiptData.RcvDtl.Rows[i];
                            editRow.BeginEdit();
                            editRow["OurQty"] = RcvDtlOurQty;
                            editRow["Received"] = RcvDtlReceived;
                            editRow["TranReference"] = RcvDtlTranReference;
                            editRow["Character01"] = RcvDtlCharacter01;
                            editRow.EndEdit();
                            proxy.Update();
                            //MessageBox.Show(RcvDtlOurQty.ToString());
                        }

                    }
                }
            }
            proxy.clearData();

            proxy.Dispose();
            proxy = null;

0 comments:

Post a Comment

Nam Le © 2014 - Designed by Templateism.com, Distributed By Templatelib