Example #1
0
        public void DisplaySelectedDisbursementDetails(int distributionID)
        {
            List <DisbursementCart> dCart = new List <DisbursementCart>();

            dCart = dDAO.getDisbursementItemByDisID(distributionID);
            disbursementDetail.DataSource = dCart;
            disbursementDetail.DataBind();
        }
Example #2
0
        protected void disburseItemBindGrid(int disburseID)
        {
            DisbursementDAO         disDAO        = new DisbursementDAO();
            List <DisbursementCart> disburseItems = disDAO.getDisbursementItemByDisID(disburseID);

            ViewState["list"] = disburseItems;
            disburseItemGridView.DataSource = disburseItems;
            disburseItemGridView.DataBind();
        }
Example #3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string disID_url = Request.QueryString["disID"];

            if (disID_url.ToString() == null)
            {
                Response.Redirect("SC_RO_DisbursementListHistory.aspx");
            }
            int disID = Convert.ToInt32(disID_url);

            disburseItem_HisGridView.DataSource = disDAO.getDisbursementItemByDisID(disID);
            disburseItem_HisGridView.DataBind();

            backButton.Attributes["href"] = "javascript:history.go(-1)";
        }
Example #4
0
        public List <WCFDisbursementCart> getDisbursementItemByDisID(string disID_s)
        {
            int disID = Convert.ToInt32(disID_s);
            List <WCFDisbursementCart> ldiscart_wcf = new List <WCFDisbursementCart>();
            DisbursementDAO            disDAO       = new DisbursementDAO();
            List <DisbursementCart>    ldc          = new List <DisbursementCart>();

            ldc = disDAO.getDisbursementItemByDisID(disID);
            foreach (var i in ldc)
            {
                WCFDisbursementCart wcfdiscart = new WCFDisbursementCart(i.ID, i.Description, i.Expected, i.Actual);
                ldiscart_wcf.Add(wcfdiscart);
            }
            return(ldiscart_wcf);
        }