Пример #1
0
        public void initDisbursement(string deptID)
        {
            List <Disbursement> list = new List <Disbursement>();

            list = disDAO.getAllCompletedDisbursementBydeptID(deptID);

            List <DisbursementHistory> finalList = new List <DisbursementHistory>();

            for (int i = 0; i < list.Count(); i++)
            {
                finalList.Add(new DisbursementHistory());
                finalList[i].DisbursementID = list[i].disbursementID;
                finalList[i].StaffName      = sDAO.getStoreStaffNameByID(list[i].storeStaffID);
                finalList[i].Date           = list[i].disburseDate;
            }
            disburseHisGridView.DataSource = finalList;
            disburseHisGridView.DataBind();
        }