public void DisplaySelectedDisbursementDetails(int distributionID) { List <DisbursementCart> dCart = new List <DisbursementCart>(); dCart = dDAO.getDisbursementItemByDisID(distributionID); disbursementDetail.DataSource = dCart; disbursementDetail.DataBind(); }
protected void disburseItemBindGrid(int disburseID) { DisbursementDAO disDAO = new DisbursementDAO(); List <DisbursementCart> disburseItems = disDAO.getDisbursementItemByDisID(disburseID); ViewState["list"] = disburseItems; disburseItemGridView.DataSource = disburseItems; disburseItemGridView.DataBind(); }
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)"; }
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); }