You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

64 lines
2.1 KiB

using Swift.web.Library;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace Swift.web.Remit.RiskBasedAssesement.RBATxnReport
{
public partial class RBAStatistics : System.Web.UI.Page
{
private readonly StaticDataDdl sdd = new StaticDataDdl();
private readonly RemittanceLibrary sl = new RemittanceLibrary();
private const string ViewFunctionId = "20191700";
protected void Page_Load(object sender, EventArgs e)
{
sl.CheckSession();
if (!IsPostBack)
{
Authenticate();
PopulateDdl();
fromDate.Text = DateTime.Now.ToString("yyyy-MM-dd");
toDate.Text = DateTime.Now.ToString("yyyy-MM-dd");
}
GetStatic.ResizeFrame(Page);
}
private void PopulateDdl()
{
sdd.SetDDL(ref sCountry, "EXEC proc_countryMaster 'scl'", "countryId", "countryName", "133", "Select");
LoadSendingAgent("133");
}
protected void sCountry_SelectedIndexChanged(object sender, EventArgs e)
{
if (sCountry.Text != "")
LoadSendingAgent(sCountry.Text);
else
sAgent.Items.Clear();
sCountry.Focus();
}
private void LoadSendingAgent(string countryId)
{
sdd.SetDDL(ref sAgent, "EXEC proc_agentMaster @flag='alc',@agentCountryId='" + countryId + "'", "agentId", "agentName", "", "All");
}
protected void sAgent_SelectedIndexChanged(object sender, EventArgs e)
{
if (sAgent.Text != "")
PopulateBranch(sAgent.Text);
else
sBranch.Items.Clear();
sAgent.Focus();
}
private void Authenticate()
{
sl.CheckAuthentication(ViewFunctionId);
}
protected void PopulateBranch(string agentId)
{
sdd.SetDDL(ref sBranch, "EXEC proc_agentMaster @flag='bl',@parentId='" + agentId + "'", "agentId", "agentName", "", "All");
}
}
}