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); }
public void BindDetails() { try { grdDetails.DataSource = JuiceTransController.GetJuiceTransByMemberId(MemberId); grdDetails.DataBind(); } catch (Exception ex) { throw ex; } }
public void BindGrid() { try { grdSales.DataSource = JuiceTransController.GetJuiceTrans(SortDir, "FULLNAME", txtSearchRfid.Text, txtSearchName.Text); grdSales.DataBind(); } catch (Exception ex) { throw ex; } }
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; } }