using Newtonsoft.Json; using Swift.DAL.AccountReport; using Swift.DAL.Model; using Swift.DAL.Remittance.CustomerDeposits; using Swift.DAL.SwiftDAL; using Swift.web.Library; using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Text; using System.Threading; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace Swift.web.Remit.Transaction.SystemDiagnosis { public partial class Manage : System.Web.UI.Page { private AccountStatementDAO st = new AccountStatementDAO(); private const string ViewFunctionId = "20610000"; private SwiftLibrary _sl = new SwiftLibrary(); private readonly CustomerDepositDao _dao = new CustomerDepositDao(); protected void Page_Load(object sender, EventArgs e) { Authenticate(); if (!IsPostBack) { string methodName = Request.Form["MethodName"]; switch (methodName) { case "getListData": PopulateData(); break; case "MapData": ProceedMapData(); break; default: break; } } } private void Authenticate() { _sl.CheckAuthentication(ViewFunctionId); } private void PopulateData() { try { string trnDate = Request.Form["tranDate"]; string particulars = Request.Form["particulars"]; string customerId = Request.Form["customerId"]; string amount = Request.Form["amount"]; DataSet dt = _dao.GetDataForSendMapping(GetStatic.GetUser(), trnDate, particulars, customerId, amount); StringBuilder sb = new StringBuilder(); StringBuilder sb1 = new StringBuilder(); if (null == dt) { Response.ContentType = "application/text"; Response.Write("