Пример #1
0
        public void UpdateJuiceRecharge()
        {
            List <MemberJuiceMaster> lstRecharge = JuiceRechargeController.GetRechargesByMemberId(MemberId);
            var obj = lstRecharge.LastOrDefault(x => x.isPaid == true && x.isDelete == false);

            obj.availableAmount = GetAvailableAmount();
            obj = new JuiceTransController().UpdateJuiceRecharge(obj);
        }
Пример #2
0
 public void BindDetails()
 {
     try
     {
         grdDetails.DataSource = JuiceTransController.GetJuiceTransByMemberId(MemberId);
         grdDetails.DataBind();
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Пример #3
0
 public void BindGrid()
 {
     try
     {
         grdSales.DataSource = JuiceTransController.GetJuiceTrans(SortDir, "FULLNAME", txtSearchRfid.Text, txtSearchName.Text);
         grdSales.DataBind();
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Пример #4
0
 public void BindItems()
 {
     try
     {
         drpItems.DataSource     = JuiceTransController.GetJuiceItems();
         drpItems.DataTextField  = "name";
         drpItems.DataValueField = "ID";
         drpItems.DataBind();
         drpItems.Items.Insert(0, new ListItem("Select Item", "0"));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }