using Swift.DAL.SwiftDAL; using Swift.DAL.AccountReport; using Swift.web.Library; using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Text; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace Swift.web.Remit.Transaction.SystemDiagnosis { public partial class CustomerBalance : System.Web.UI.Page { private AccountStatementDAO st = new AccountStatementDAO(); private const string ViewFunctionId = "20610000"; private SwiftLibrary _sl = new SwiftLibrary(); protected void Page_Load(object sender, EventArgs e) { Authenticate(); if (!IsPostBack) { GetBalance(); } } public void GetBalance() { DataTable result = st.GetUnmatchedBalance(GetStatic.GetUser(), "s-unmatchedbalance"); StringBuilder sb = new StringBuilder(); foreach (DataRow dr in result.Rows) { sb.Append(""); sb.Append("" + dr["SN"] + ""); sb.Append("" + dr["fullName"] + ""); sb.Append("" + dr["membershipId"] + ""); sb.Append("" + dr["walletAccNum"] + ""); sb.Append("" + GetStatic.ShowDecimal(dr["customerBalance"].ToString()) + ""); sb.Append("" + GetStatic.ShowDecimal(dr["walletBalance"].ToString()) + ""); sb.Append(""); } balanceBody.InnerHtml = sb.ToString(); } private void Authenticate() { _sl.CheckAuthentication(ViewFunctionId); } } }