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.
59 lines
1.9 KiB
59 lines
1.9 KiB
|
|
using Swift.DAL.MobileDao;
|
|
using Swift.DAL.SwiftDAL;
|
|
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.MobileRemit.Admin.Introducer
|
|
{
|
|
public partial class AgentQuotaSetup : System.Web.UI.Page
|
|
{
|
|
private string ViewFunctionId = "10112900";
|
|
private string AddEditFunctionId = "10112910";
|
|
private string DeleteFunctionId = "10112920";
|
|
private readonly StaticDataDdl _sdd = new StaticDataDdl();
|
|
private readonly RemittanceLibrary sl = new RemittanceLibrary();
|
|
private readonly IntroducerCommissionSetupDao _icsDao = new IntroducerCommissionSetupDao();
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
{
|
|
Authenticate();
|
|
Misc.MakeNumericTextbox(ref txtAquota);
|
|
if (!IsPostBack)
|
|
{
|
|
// PopulateDdl();
|
|
}
|
|
|
|
}
|
|
private void Authenticate()
|
|
{
|
|
sl.CheckAuthentication(ViewFunctionId);
|
|
}
|
|
protected void Save_Click(object sender, EventArgs e)
|
|
{
|
|
string flag = "add-primary-quota";
|
|
var introducer = txtSearchData.Value;
|
|
var primaryQuota = txtAquota.Text;
|
|
|
|
DbResult _dbRes = _icsDao.PrimaryQuotaInsert(flag, GetStatic.GetUser(), introducer, primaryQuota);
|
|
|
|
//if (_dbRes.ErrorCode != "0")
|
|
//{
|
|
GetStatic.AlertMessage(this, _dbRes.Msg);
|
|
// }
|
|
txtSearchData.Value = "";
|
|
txtSearchData.Text = "";
|
|
txtAquota.Text = "";
|
|
// GetStatic.SetMessage(_dbRes);
|
|
// Response.Redirect("List.aspx");
|
|
}
|
|
protected void Back_Click(object sender, EventArgs e)
|
|
{
|
|
Response.Redirect("List.aspx");
|
|
}
|
|
}
|
|
}
|