Browse Source

#28122 super referral module

Ime-london-webcore
Leeza Baidar 6 months ago
parent
commit
f8e29dd5aa
  1. 15
      Swift.DAL/Remittance/ReferralSetup/ReferralSetupDao.cs
  2. 22
      Swift.web/Remit/ReferralSetup/CommisionRuleSetup.aspx
  3. 60
      Swift.web/Remit/ReferralSetup/CommisionRuleSetup.aspx.cs
  4. 78
      Swift.web/Remit/ReferralSetup/CommisionRuleSetup.aspx.designer.cs
  5. 4
      Swift.web/Remit/ReferralSetup/CommissionRuleList.aspx
  6. 14
      Swift.web/Remit/ReferralSetup/CommissionRuleList.aspx.cs
  7. 6
      Swift.web/Remit/ReferralSetup/List.aspx.cs
  8. 52
      Swift.web/Remit/ReferralSetup/Manage.aspx
  9. 22
      Swift.web/Remit/ReferralSetup/Manage.aspx.cs
  10. 81
      Swift.web/Remit/ReferralSetup/Manage.aspx.designer.cs

15
Swift.DAL/Remittance/ReferralSetup/ReferralSetupDao.cs

@ -12,7 +12,7 @@ namespace Swift.DAL.Remittance.ReferralSetup
string referralAddress, string referralEmail,
string isActive, string referralMobile, string branchId,
string rowId, string referralTypecode, string referralType,
string ruleType, string cashHoldLimitAmount)
string ruleType, string cashHoldLimitAmount, string refCode)
{
var sql = "EXEC PROC_REFERALSETUP @flag = '" + flag + "'";
sql += ", @user = " + FilterString(user);
@ -27,6 +27,7 @@ namespace Swift.DAL.Remittance.ReferralSetup
sql += ", @referralType = " + FilterString(referralType);
sql += ", @ruleType = " + FilterString(ruleType);
sql += ", @cashHoldLimitAmount = " + FilterString(cashHoldLimitAmount);
sql += ", @referralCode = " + FilterString(refCode);
//sql += ", @DEDUCT_TAX_ON_SC = " + FilterString(deductTaxOnSC);
return ParseDbResult(sql);
@ -120,17 +121,17 @@ namespace Swift.DAL.Remittance.ReferralSetup
sql += ", @user = " + FilterString(user);
sql += ", @referralId = " + FilterString(cm.ReferralId.ToString());
sql += ", @ROW_ID = " + FilterString(cm.ROW_ID.ToString());
sql += ", @partnerId = " + FilterString(cm.PartnerId.ToString());
//sql += ", @partnerId = " + FilterString(cm.PartnerId.ToString());
sql += ", @commissionPercent = " + FilterString(cm.CommissionPercent.ToString());
sql += ", @forexPercent = " + FilterString(cm.ForexPercent.ToString());
sql += ", @applyFxPercentOn = " + FilterString(cm.ApplyFxPercentOn.ToString());
//sql += ", @forexPercent = " + FilterString(cm.ForexPercent.ToString());
//sql += ", @applyFxPercentOn = " + FilterString(cm.ApplyFxPercentOn.ToString());
sql += ", @flatTxnWise = " + FilterString(cm.FlatTxnWise.ToString());
sql += ", @NewCustomer = " + FilterString(cm.NewCustomer.ToString());
// sql += ", @NewCustomer = " + FilterString(cm.NewCustomer.ToString());
sql += ", @effectiveFrom = " + FilterString(cm.EffectiveFrom.ToString());
sql += ", @isActive = " + FilterString(cm.isActive);
sql += ", @referralCode = " + FilterString(cm.ReferralCode);
sql += ", @DEDUCT_TAX_ON_SC = " + FilterString(cm.deductTaxOnSC);
sql += ", @DEDUCT_P_COMM_ON_SC = " + FilterString(cm.deductPCommOnSC);
//sql += ", @DEDUCT_TAX_ON_SC = " + FilterString(cm.deductTaxOnSC);
//sql += ", @DEDUCT_P_COMM_ON_SC = " + FilterString(cm.deductPCommOnSC);
return ParseDbResult(sql);
}
}

22
Swift.web/Remit/ReferralSetup/CommisionRuleSetup.aspx

@ -125,19 +125,19 @@
<h4>Referral Commision Setup</h4>
</div>
<div class="panel-body">
<div class="form-group">
<%--<div class="form-group">
<label class="control-label col-md-4">Partner :</label>
<div class="col-md-8">
<asp:DropDownList ID="partnerDDL" runat="server" CssClass="form-control"></asp:DropDownList>
</div>
</div>
</div>--%>
<div class="form-group">
<label class="control-label col-md-4">Commision Percent (Service Charge):</label>
<label class="control-label col-md-4">Registration Point:</label>
<div class="col-md-8">
<asp:TextBox ID="commPercent" placeholder="0 % - 100 %" runat="server" CssClass="form-control"></asp:TextBox>
<asp:TextBox ID="commPercent" runat="server" CssClass="form-control"></asp:TextBox>
</div>
</div>
<div class="form-group">
<%--<div class="form-group">
<label class="control-label col-md-4">Apply Fx Percent On:</label>
<div class="col-md-8">
<asp:DropDownList runat="server" ID="applyFxPercentOn" CssClass="form-control">
@ -152,19 +152,19 @@
<div class="col-md-8">
<asp:TextBox ID="fxPercent" runat="server" CssClass="form-control"></asp:TextBox>
</div>
</div>
</div>--%>
<div class="form-group">
<label class="control-label col-md-4">Flat Transaction Wise :</label>
<label class="control-label col-md-4">Transaction Point :</label>
<div class="col-md-8">
<asp:TextBox ID="flatTxnWise" runat="server" CssClass="form-control"></asp:TextBox>
</div>
</div>
<div class="form-group">
<%--<div class="form-group">
<label class="control-label col-md-4">New Customer :</label>
<div class="col-md-8">
<asp:TextBox ID="newCustomer" runat="server" CssClass="form-control"></asp:TextBox>
</div>
</div>
</div>--%>
<div class="form-group">
<label class="control-label col-md-4">Effecive From :</label>
<div class="col-md-8">
@ -180,7 +180,7 @@
</asp:DropDownList>
</div>
</div>
<div class="form-group">
<%--<div class="form-group">
<label class="control-label col-md-4">Deduct Tax On Service Charge:</label>
<div class="col-md-8">
<asp:DropDownList ID="deductTaxOnSc" runat="server" CssClass="form-control">
@ -197,7 +197,7 @@
<asp:ListItem Value="0">No</asp:ListItem>
</asp:DropDownList>
</div>
</div>
</div>--%>
<div class="form-group">
<label class="control-label col-md-4"></label>
<div class="col-md-8">

60
Swift.web/Remit/ReferralSetup/CommisionRuleSetup.aspx.cs

@ -25,14 +25,14 @@ namespace Swift.web.Remit.ReferralSetup
{
effectiveFrom.Text = DateTime.Now.ToString("yyyy-MM-dd");
Misc.MakeNumericTextbox(ref commPercent);
Misc.MakeNumericTextbox(ref fxPercent);
//Misc.MakeNumericTextbox(ref fxPercent);
Misc.MakeNumericTextbox(ref flatTxnWise);
Misc.MakeNumericTextbox(ref newCustomer);
PopulateDdl();
if(EditOrNot() == "true")
{
partnerDDL.Enabled = false;
}
//Misc.MakeNumericTextbox(ref newCustomer);
//PopulateDdl();
//if(EditOrNot() == "true")
//{
// partnerDDL.Enabled = false;
//}
if(GetRefId() != "")
{
PopulateData();
@ -45,16 +45,16 @@ namespace Swift.web.Remit.ReferralSetup
try
{
DataRow res = _refDao.GetCommissionData(GetStatic.GetUser(), GetRefId(),GetPartnerId(), GetRowId());
partnerDDL.SelectedValue = res["PARTNER_ID"].ToString();
//partnerDDL.SelectedValue = res["PARTNER_ID"].ToString();
commPercent.Text = res["COMM_PCNT"].ToString();
fxPercent.Text = res["FX_PCNT"].ToString();
applyFxPercentOn.Text = res["APPLY_FX_PERCENT_ON"].ToString();
//fxPercent.Text = res["FX_PCNT"].ToString();
//applyFxPercentOn.Text = res["APPLY_FX_PERCENT_ON"].ToString();
flatTxnWise.Text = res["FLAT_TXN_WISE"].ToString();
newCustomer.Text = res["NEW_CUSTOMER"].ToString();
//newCustomer.Text = res["NEW_CUSTOMER"].ToString();
effectiveFrom.Text = res["EFFECTIVE_FROM"].ToString();
isActive.SelectedValue = (bool.Parse(res["IS_ACTIVE"].ToString()) == false) ? "0" : "1";
deductPCommOnSc.SelectedValue = (bool.Parse(res["DEDUCT_P_COMM_ON_SC"].ToString()) == false) ? "0" : "1";
deductTaxOnSc.SelectedValue = (bool.Parse(res["DEDUCT_TAX_ON_SC"].ToString()) == false) ? "0" : "1";
//deductPCommOnSc.SelectedValue = (bool.Parse(res["DEDUCT_P_COMM_ON_SC"].ToString()) == false) ? "0" : "1";
//deductTaxOnSc.SelectedValue = (bool.Parse(res["DEDUCT_TAX_ON_SC"].ToString()) == false) ? "0" : "1";
}
catch (Exception ex)
{
@ -67,11 +67,11 @@ namespace Swift.web.Remit.ReferralSetup
{
sl.CheckAuthentication(ViewFunctionId);
}
private void PopulateDdl()
{
rl.SetDDL(ref partnerDDL, "EXEC PROC_API_ROUTE_PARTNERS @flag='partner'", "agentId", "agentName", "", "Select Partner");
//sl.SetDDL(ref partner,"Exec ")
}
//private void PopulateDdl()
//{
// rl.SetDDL(ref partnerDDL, "EXEC PROC_API_ROUTE_PARTNERS @flag='partner'", "agentId", "agentName", "", "Select Partner");
// //sl.SetDDL(ref partner,"Exec ")
//}
private string GetRefId()
{
return GetStatic.ReadQueryString("referral_id", "");
@ -94,31 +94,31 @@ namespace Swift.web.Remit.ReferralSetup
{
try
{
string partner = partnerDDL.SelectedValue;
//string partner = partnerDDL.SelectedValue;
string commissionPercent = commPercent.Text;
string forexPercent = fxPercent.Text;
string applyFxPercentOnValue = applyFxPercentOn.SelectedValue;
//string forexPercent = fxPercent.Text;
//string applyFxPercentOnValue = applyFxPercentOn.SelectedValue;
string flatTransactionWise = flatTxnWise.Text;
string nCustomer = newCustomer.Text;
//string nCustomer = newCustomer.Text;
string efrom = effectiveFrom.Text;
string active = isActive.SelectedValue;
string deductTaxOnSC = deductTaxOnSc.SelectedValue;
string deductPCommOnSC = deductPCommOnSc.SelectedValue;
//string deductTaxOnSC = deductTaxOnSc.SelectedValue;
//string deductPCommOnSC = deductPCommOnSc.SelectedValue;
//int a = GetRefId().ToString().ToInt();
CommissionModel cm = new CommissionModel() {
PartnerId = partnerDDL.SelectedValue.ToInt(),
//PartnerId = partnerDDL.SelectedValue.ToInt(),
CommissionPercent = commPercent.Text.ToDecimal(),
ForexPercent = fxPercent.Text.ToDecimal(),
ApplyFxPercentOn = applyFxPercentOnValue,
//ForexPercent = fxPercent.Text.ToDecimal(),
//ApplyFxPercentOn = applyFxPercentOnValue,
FlatTxnWise = flatTxnWise.Text.ToDecimal(),
NewCustomer = newCustomer.Text.ToDecimal(),
//NewCustomer = newCustomer.Text.ToDecimal(),
EffectiveFrom = DateTime.Parse(effectiveFrom.Text),
isActive = isActive.SelectedValue,
ReferralId = GetRefId(),
ReferralCode = GetRefCode(),
ROW_ID = GetRowId(),
deductTaxOnSC = deductTaxOnSC,
deductPCommOnSC = deductPCommOnSC
//deductTaxOnSC = deductTaxOnSC,
//deductPCommOnSC = deductPCommOnSC
};
var res = _refDao.SaveCommissionData(GetStatic.GetUser(), cm,EditOrNot());
GetStatic.SetMessage(res);

78
Swift.web/Remit/ReferralSetup/CommisionRuleSetup.aspx.designer.cs

@ -7,11 +7,13 @@
// </auto-generated>
//------------------------------------------------------------------------------
namespace Swift.web.Remit.ReferralSetup {
public partial class CommisionRuleSetup {
namespace Swift.web.Remit.ReferralSetup
{
public partial class CommisionRuleSetup
{
/// <summary>
/// form1 control.
/// </summary>
@ -20,7 +22,7 @@ namespace Swift.web.Remit.ReferralSetup {
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
/// <summary>
/// hdnReferralCode control.
/// </summary>
@ -29,16 +31,7 @@ namespace Swift.web.Remit.ReferralSetup {
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.HiddenField hdnReferralCode;
/// <summary>
/// partnerDDL control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.DropDownList partnerDDL;
/// <summary>
/// commPercent control.
/// </summary>
@ -47,25 +40,7 @@ namespace Swift.web.Remit.ReferralSetup {
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.TextBox commPercent;
/// <summary>
/// applyFxPercentOn control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.DropDownList applyFxPercentOn;
/// <summary>
/// fxPercent control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.TextBox fxPercent;
/// <summary>
/// flatTxnWise control.
/// </summary>
@ -74,16 +49,7 @@ namespace Swift.web.Remit.ReferralSetup {
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.TextBox flatTxnWise;
/// <summary>
/// newCustomer control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.TextBox newCustomer;
/// <summary>
/// effectiveFrom control.
/// </summary>
@ -92,7 +58,7 @@ namespace Swift.web.Remit.ReferralSetup {
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.TextBox effectiveFrom;
/// <summary>
/// isActive control.
/// </summary>
@ -101,25 +67,7 @@ namespace Swift.web.Remit.ReferralSetup {
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.DropDownList isActive;
/// <summary>
/// deductTaxOnSc control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.DropDownList deductTaxOnSc;
/// <summary>
/// deductPCommOnSc control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.DropDownList deductPCommOnSc;
/// <summary>
/// save control.
/// </summary>

4
Swift.web/Remit/ReferralSetup/CommissionRuleList.aspx

@ -106,7 +106,7 @@
</div>
</div>--%>
<div class="panel-body">
<div class="row">
<%--<div class="row">
<div class="col-md-4">
<div class="form-group">
<label class="col-md-6 control-label" for="isFirstTranFree">
@ -142,7 +142,7 @@
<input type="button" value="Save Data" onclick="SaveFinalData()" id="btnSaveData" class="btn btn-primary" />
</div>
</div>
</div>
</div>--%>
<div class="row">
<div class="col-md-12">
<div class="form-group">

14
Swift.web/Remit/ReferralSetup/CommissionRuleList.aspx.cs

@ -80,13 +80,13 @@ namespace Swift.web.Remit.ReferralSetup
{
new GridColumn("REFERRAL_NAME", "Referral Name", "100", "T"),
new GridColumn("agentName", "Branch Name", "100", "T"),
new GridColumn("COMM_PCNT", "Commission Percent", "100", "M"),
new GridColumn("FX_PCNT", "Forex Income/Loss Percent", "", "M"),
new GridColumn("APPLY_FX_PERCENT_ON", "Apply FX % on", "", "T"),
new GridColumn("FLAT_TXN_WISE", "Flat transaction Wise", "", "M"),
new GridColumn("NEW_CUSTOMER", "New Customer", "", "M"),
new GridColumn("DEDUCT_P_COMM_ON_SC", "Deduct PComm On SC", "", "T"),
new GridColumn("DEDUCT_TAX_ON_SC", "Deduct Tax On SC", "", "T"),
new GridColumn("COMM_PCNT", "Registration Point", "100", "M"),
//ew GridColumn("FX_PCNT", "Forex Income/Loss Percent", "", "M"),
//new GridColumn("APPLY_FX_PERCENT_ON", "Apply FX % on", "", "T"),
new GridColumn("FLAT_TXN_WISE", "Transaction Point", "", "M"),
//new GridColumn("NEW_CUSTOMER", "New Customer", "", "M"),
// new GridColumn("DEDUCT_P_COMM_ON_SC", "Deduct PComm On SC", "", "T"),
// new GridColumn("DEDUCT_TAX_ON_SC", "Deduct Tax On SC", "", "T"),
new GridColumn("EFFECTIVE_FROM", "Effective From", "", "D"),
new GridColumn("IS_ACTIVE", "Is Active", "", "T"),
};

6
Swift.web/Remit/ReferralSetup/List.aspx.cs

@ -40,7 +40,7 @@ namespace Swift.web.Remit.ReferralSetup
_grid.FilterList = new List<GridFilter>
{
new GridFilter("branchId", "Branch", "1: EXEC PROC_REFERALSETUP @flag = 'branchNameForFilter'"),
new GridFilter("referralTypeCode", "Referral Type", "1: EXEC PROC_REFERALSETUP @flag = 'referalType'"),
//new GridFilter("referralTypeCode", "Referral Type", "1: EXEC PROC_REFERALSETUP @flag = 'referalType'"),
new GridFilter("referralName", "Referral Name", "T"),
new GridFilter("referralCode", "Referral code", "T")
};
@ -52,8 +52,8 @@ namespace Swift.web.Remit.ReferralSetup
new GridColumn("BranchName", "Branch Name", "100", "T"),
new GridColumn("REFERRAL_MOBILE", "Mobile No.", "100", "T"),
new GridColumn("REFERRAL_ADDRESS", "Address ", "100", "T"),
new GridColumn("RULE_TYPE", "Rule Type", "", "T"),
new GridColumn("REFERRAL_LIMIT", "Cash Hold Limit", "", "T"),
// new GridColumn("RULE_TYPE", "Rule Type", "", "T"),
// new GridColumn("REFERRAL_LIMIT", "Cash Hold Limit", "", "T"),
new GridColumn("IS_ACTIVE", "Is Active", "", "T"),
};

52
Swift.web/Remit/ReferralSetup/Manage.aspx

@ -69,10 +69,10 @@
<div class="form-group">
<label class="col-lg-4 col-md-8 control-label" for="">
<label>
Referral Name : <span class="errormsg">*</span></label>
Branch Id <span class="errormsg">*</span></label>
</label>
<div class="col-lg-8 col-md-4">
<asp:TextBox runat="server" ID="referralName" class="form-control"></asp:TextBox>
<asp:DropDownList runat="server" ID="ddlBranchList" class="form-control"></asp:DropDownList>
</div>
</div>
</div>
@ -80,20 +80,21 @@
<div class="form-group">
<label class="col-lg-4 col-md-8 control-label" for="">
<label>
Referral Mobile :</label>
Agent Name : <span class="errormsg">*</span></label>
</label>
<div class="col-lg-8 col-md-4">
<asp:TextBox runat="server" ID="referralMobile" class="form-control"></asp:TextBox>
<asp:TextBox runat="server" ID="referralName" class="form-control"></asp:TextBox>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-6">
<div class="form-group">
<label class="col-lg-4 col-md-8 control-label" for="">
<label>
Referral Address</label>
Agent Address: <span class="errormsg">*</span></label>
</label>
<div class="col-lg-8 col-md-4">
<asp:TextBox runat="server" ID="referralAddress" class="form-control"></asp:TextBox>
@ -104,27 +105,24 @@
<div class="form-group">
<label class="col-lg-4 col-md-8 control-label" for="">
<label>
Is Active:</label>
Agent Email : <span class="errormsg">*</span></label>
</label>
<div class="col-lg-8 col-md-4">
<asp:DropDownList ID="isActiveDDL" runat="server" CssClass="form-control">
<asp:ListItem Text="Yes" Value="1"></asp:ListItem>
<asp:ListItem Text="No" Value="0"></asp:ListItem>
</asp:DropDownList>
<asp:TextBox runat="server" ID="referralEmail" class="form-control"></asp:TextBox>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-6">
<div class="form-group">
<label class="col-lg-4 col-md-8 control-label" for="">
<label>
Referral Email</label>
Agent Telephone Number : <span class="errormsg">*</span></label>
</label>
<div class="col-lg-8 col-md-4">
<asp:TextBox runat="server" ID="referralEmail" class="form-control"></asp:TextBox>
<asp:TextBox runat="server" ID="referralMobile" class="form-control"></asp:TextBox>
</div>
</div>
</div>
@ -132,16 +130,32 @@
<div class="form-group">
<label class="col-lg-4 col-md-8 control-label" for="">
<label>
Branch Id <span class="errormsg">*</span></label>
Is Active: <span class="errormsg">*</span></label>
</label>
<div class="col-lg-8 col-md-4">
<asp:DropDownList runat="server" ID="ddlBranchList" class="form-control"></asp:DropDownList>
<asp:DropDownList ID="isActiveDDL" runat="server" CssClass="form-control">
<asp:ListItem Text="Yes" Value="1"></asp:ListItem>
<asp:ListItem Text="No" Value="0"></asp:ListItem>
</asp:DropDownList>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-6">
<div class="form-group">
<label class="col-lg-4 col-md-8 control-label" for="">
<label>
Referral Code: <span class="errormsg">*</span></label>
</label>
<div class="col-lg-8 col-md-4">
<asp:TextBox runat="server" ID="referralCode" class="form-control"></asp:TextBox>
</div>
</div>
</div>
</div>
<%--<div class="row">
<div class="col-md-6" style="display: none;">
<div class="form-group">
<label class="col-lg-4 col-md-8 control-label" for="">
<label>
@ -157,7 +171,7 @@
</div>
</div>
</div>
<div class="col-md-6">
<div class="col-md-6" style="display: none;">
<div class="form-group">
<label class="col-lg-4 col-md-8 control-label" for="">
<label>
@ -170,7 +184,7 @@
</div>
</div>
<div class="row">
<div class="col-md-6">
<div class="col-md-6" style="display: none;">
<div class="form-group">
<label class="col-lg-4 col-md-8 control-label" for="">
<label>
@ -184,7 +198,7 @@
</div>
</div>
</div>
<div class="col-md-6" style="display:none;">
<div class="col-md-6" style="display: none;">
<div class="form-group">
<label class="col-lg-4 col-md-8 control-label" for="">
<label>
@ -198,7 +212,7 @@
</div>
</div>
</div>
</div>
</div>--%>
</ContentTemplate>
</asp:UpdatePanel>

22
Swift.web/Remit/ReferralSetup/Manage.aspx.cs

@ -17,9 +17,10 @@ namespace Swift.web.Remit.ReferralSetup
{
Authenticate();
if (!IsPostBack)
if (!IsPostBack)
{
Misc.MakeNumericTextbox(ref referralMobile);
Misc.MakeNumericTextbox(ref cashHoldLimit);
//Misc.MakeNumericTextbox(ref cashHoldLimit);
PopulateDDL();
if (GetId() != "")
{
@ -55,14 +56,14 @@ namespace Swift.web.Remit.ReferralSetup
var a = dr["IS_ACTIVE"].ToString();
isActiveDDL.SelectedValue = dr["IS_ACTIVE"].ToString() == "False" ? "0" : "1";
//ddlAgentId.SelectedValue = dr["AGENT_ID"].ToString();
referralName.Text = dr["REFERRAL_NAME"].ToString();
referralName.Text = dr["REFERRAL_NAME"].ToString();
referralAddress.Text = dr["REFERRAL_ADDRESS"].ToString();
referralEmail.Text = dr["REFERRAL_EMAIL"].ToString();
referralMobile.Text = dr["REFERRAL_MOBILE"].ToString();
ddlBranchList.SelectedValue = dr["BRANCH_ID"].ToString();
ddlReferraltype.SelectedValue = dr["REFERRAL_TYPE_CODE"].ToString();
ddlruleType.SelectedValue = dr["RULE_TYPE"].ToString();
cashHoldLimit.Text = GetStatic.ShowDecimal(dr["REFERRAL_LIMIT"].ToString());
//ddlReferraltype.SelectedValue = dr["REFERRAL_TYPE_CODE"].ToString();
//ddlruleType.SelectedValue = dr["RULE_TYPE"].ToString();
//cashHoldLimit.Text = GetStatic.ShowDecimal(dr["REFERRAL_LIMIT"].ToString());
//deductTaxOnSc.SelectedValue = (bool.Parse(dr["DEDUCT_TAX_ON_SC"].ToString()) == false) ? "0" : "1";
}
@ -76,10 +77,11 @@ namespace Swift.web.Remit.ReferralSetup
var rMobile = Request.Form["referralMobile"].ToString();
var isActive = Request.Form["isActiveDDL"].ToString();
var branchId = Request.Form["ddlBranchList"].ToString();
var referralTypeCode = Request.Form["ddlReferraltype"].ToString();
var referralType = ddlReferraltype.SelectedItem.ToString();
var ruleType = ddlruleType.SelectedItem.ToString();
var cashHoldLimitAmount = Request.Form["cashHoldLimit"].ToString();
var referralTypeCode = "";//Request.Form["ddlReferraltype"].ToString();
var referralType = "";//ddlReferraltype.SelectedItem.ToString();
var ruleType = "";//ddlruleType.SelectedItem.ToString();
var cashHoldLimitAmount = "";//Request.Form["cashHoldLimit"].ToString();
var refCode = Request.Form["referralCode"].ToString();
//var deductTaxOnServiceCharge = Request.Form["deductTaxOnSc"].ToString();
DbResult _dbRes = _refDao.InsertReferral(flag, GetStatic.GetUser()
@ -87,7 +89,7 @@ namespace Swift.web.Remit.ReferralSetup
, rEmailAddress
, isActive
, rMobile, branchId, GetId(), referralTypeCode, referralType
, ruleType, cashHoldLimitAmount);
, ruleType, cashHoldLimitAmount, refCode);
if (_dbRes.ErrorCode != "0")
{

81
Swift.web/Remit/ReferralSetup/Manage.aspx.designer.cs

@ -7,11 +7,13 @@
// </auto-generated>
//------------------------------------------------------------------------------
namespace Swift.web.Remit.ReferralSetup {
public partial class Manage {
namespace Swift.web.Remit.ReferralSetup
{
public partial class Manage
{
/// <summary>
/// Base1 control.
/// </summary>
@ -20,7 +22,7 @@ namespace Swift.web.Remit.ReferralSetup {
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlGenericControl Base1;
/// <summary>
/// form1 control.
/// </summary>
@ -29,7 +31,7 @@ namespace Swift.web.Remit.ReferralSetup {
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
/// <summary>
/// ScriptManager1 control.
/// </summary>
@ -38,7 +40,7 @@ namespace Swift.web.Remit.ReferralSetup {
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.ScriptManager ScriptManager1;
/// <summary>
/// UpdatePanel1 control.
/// </summary>
@ -47,25 +49,25 @@ namespace Swift.web.Remit.ReferralSetup {
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.UpdatePanel UpdatePanel1;
/// <summary>
/// referralName control.
/// ddlBranchList control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.TextBox referralName;
protected global::System.Web.UI.WebControls.DropDownList ddlBranchList;
/// <summary>
/// referralMobile control.
/// referralName control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.TextBox referralMobile;
protected global::System.Web.UI.WebControls.TextBox referralName;
/// <summary>
/// referralAddress control.
/// </summary>
@ -74,16 +76,7 @@ namespace Swift.web.Remit.ReferralSetup {
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.TextBox referralAddress;
/// <summary>
/// isActiveDDL control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.DropDownList isActiveDDL;
/// <summary>
/// referralEmail control.
/// </summary>
@ -92,52 +85,34 @@ namespace Swift.web.Remit.ReferralSetup {
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.TextBox referralEmail;
/// <summary>
/// ddlBranchList control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.DropDownList ddlBranchList;
/// <summary>
/// ddlReferraltype control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.DropDownList ddlReferraltype;
/// <summary>
/// cashHoldLimit control.
/// referralMobile control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.TextBox cashHoldLimit;
protected global::System.Web.UI.WebControls.TextBox referralMobile;
/// <summary>
/// ddlruleType control.
/// isActiveDDL control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.DropDownList ddlruleType;
protected global::System.Web.UI.WebControls.DropDownList isActiveDDL;
/// <summary>
/// deductTaxOnSc control.
/// referralCode control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.DropDownList deductTaxOnSc;
protected global::System.Web.UI.WebControls.TextBox referralCode;
/// <summary>
/// btnSave control.
/// </summary>

Loading…
Cancel
Save