Ejemplo n.º 1
0
 protected void disburseBindGrid()
 {
     deptName = deptDropDownList.SelectedItem.Text;
     deptid   = dpd.findDepartmentIdByName(deptName);
     disburseGridView.DataSource = disDAO.getAwaitingDisbursementListByDeptID(deptid);
     disburseGridView.DataBind();
 }
Ejemplo n.º 2
0
        public List <WCFDisbursement> getDisbursementByDeptID(string deptID)
        {
            List <WCFDisbursement> ldis_wcf = new List <WCFDisbursement>();
            DisbursementDAO        disDAO   = new DisbursementDAO();

            List <Disbursement> ldis = new List <Disbursement>();

            ldis = disDAO.getAwaitingDisbursementListByDeptID(deptID);

            foreach (var i in ldis)//add in disbursement list
            {
                WCFDisbursement wcfdis = new WCFDisbursement
                {
                    DisID        = i.disbursementID,
                    DeptID       = i.deptID,
                    StoreStaffID = i.storeStaffID,
                    DisDate      = i.disburseDate,
                    Status       = i.status
                };
                ldis_wcf.Add(wcfdis);
            }

            return(ldis_wcf);
        }