public void showItemInfo(List <AdjustmentVoucher> adjvlist)
        {
            List <AdjustmentVoucherCart> finalList = new List <AdjustmentVoucherCart>();

            for (int i = 0; i < adjvlist.Count(); i++)
            {
                finalList.Add(new AdjustmentVoucherCart());
                finalList[i].AdjvID       = adjvlist[i].adjVID;
                finalList[i].ClerkName    = sDAO.getStoreStaffNameByID(adjvlist[i].storeStaffID);
                finalList[i].Date         = adjvlist[i].adjDate;
                finalList[i].AuthorisedBy = sDAO.getStoreStaffNameByID(adjvlist[i].authorisedBy);
                finalList[i].Status       = adjvlist[i].status;
            }
            GridView_ViewAdjustmentVoucher.DataSource = finalList;
            GridView_ViewAdjustmentVoucher.DataBind();
        }
Example #2
0
 public void showItemInfo(DataTable iTable)
 {
     GridView_ViewAdjustmentVoucher.DataSource = iTable;
     GridView_ViewAdjustmentVoucher.DataBind();
 }