Esempio n. 1
0
        private List <MFGvouhcer> GetSelectedItem()
        {
            List <MFGvouhcer> items = new List <MFGvouhcer>();
            MFGvouhcer        itm   = new MFGvouhcer();

            itm.strVoucherNo = DG.CurrentRow.Cells[0].Value.ToString();
            items.Add(itm);
            return(items);
        }
        private List <MFGvouhcer> GetSelectedItem()
        {
            List <MFGvouhcer> items = new List <MFGvouhcer>();
            MFGvouhcer        itm   = new MFGvouhcer();

            if (DGMFGVoucherList.Rows.Count > 0)
            {
                itm.strVoucherNo = DGMFGVoucherList.CurrentRow.Cells[0].Value.ToString();
                itm.strBatch     = DGMFGVoucherList.CurrentRow.Cells[1].Value.ToString();
                itm.strDate      = DGMFGVoucherList.CurrentRow.Cells[2].Value.ToString();
                itm.strProcess   = DGMFGVoucherList.CurrentRow.Cells[4].Value.ToString();
                itm.strBranchId  = DGMFGVoucherList.CurrentRow.Cells[5].Value.ToString();

                itm.strRMRefNo = DGMFGVoucherList.CurrentRow.Cells[9].Value.ToString();
                itm.strFgRefNo = DGMFGVoucherList.CurrentRow.Cells[10].Value.ToString();
                itm.strWmRefNo = DGMFGVoucherList.CurrentRow.Cells[11].Value.ToString();

                items.Add(itm);
            }
            return(items);
        }