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.
 
 
 
 
 

46 lines
1.5 KiB

using Swift.DAL.OnlineAgent;
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.Operation
{
public partial class ActivateMobile : System.Web.UI.Page
{
private readonly RemittanceLibrary _sl = new RemittanceLibrary();
private readonly StaticDataDdl _sdd = new StaticDataDdl();
private readonly OnlineCustomerDao _cd = new OnlineCustomerDao();
private const string ViewFunctionId = "30110000";
private const string ApproveFunctionId = "30110010";
protected void Page_Load(object sender, EventArgs e)
{
Authenticate();
if (!IsPostBack)
{
PopulateDDL();
}
}
private void Authenticate()
{
_sl.CheckAuthentication(ViewFunctionId);
}
private void PopulateDDL()
{
var user = GetStatic.GetUser();
_sdd.SetDDL(ref ddlSearchBy, "exec proc_sendPageLoadData @flag='search-cust-by'", "VALUE", "TEXT", "", "");
}
protected void btnActivateMobile_Click(object sender, EventArgs e)
{
var customerId = txtSearchData.Value;
if (_sl.CheckAuthentication(ApproveFunctionId))
{
Response.Redirect("/MobileRemit/Admin/Operation/EditCustomerForActivation.aspx?customerId=" + customerId + " +&code="+ referraltxt.Text);
}
}
}
}