Browse Source

#ModeOfPayment editable in modify txn

Ime-london-webcore
Leeza Baidar 9 months ago
parent
commit
20b0d97406
  1. 14
      Swift.web/Remit/Transaction/Modify/ModifyField.aspx.cs
  2. 9
      Swift.web/Remit/Transaction/Modify/ModifyLocation.aspx
  3. 18
      Swift.web/Remit/Transaction/Modify/ModifyLocation.aspx.designer.cs
  4. 17
      Swift.web/Remit/Transaction/Modify/ModifyTran.aspx
  5. 14
      Swift.web/Remit/UserControl/UcTransaction.ascx.cs

14
Swift.web/Remit/Transaction/Modify/ModifyField.aspx.cs

@ -43,6 +43,15 @@ namespace Swift.web.Remit.Transaction.Modify
rptName.Visible = true;
rptShowOther.Visible = false;
}
else if (getFieldName() == "paymentMethod")
{
rptShowOther.Visible = true;
PopulateDll(getFieldName());
ddlNewValue.Visible = true;
txtNewValue.Visible = false;
rptName.Visible = false;
txtContactNo.Visible = false;
}
else
{
rptShowOther.Visible = true;
@ -75,6 +84,8 @@ namespace Swift.web.Remit.Transaction.Modify
lblFieldName.Text = "Receiver Id No";
else if (getFieldName() == "sIdNo")
lblFieldName.Text = "Sender Id No";
else if (getFieldName() == "paymentMethod")
lblFieldName.Text = "Mode of Payment";
}
private string GetLabel()
@ -95,10 +106,13 @@ namespace Swift.web.Remit.Transaction.Modify
}
private void PopulateDll(string fieldName)
{
var country = GetStatic.ReadQueryString("pCountry","");
if (fieldName == "rIdType")
sd.SetDDL(ref ddlNewValue, "EXEC proc_online_dropDownList @flag = 'idType', @user = '" + GetStatic.GetUser() + "'", "valueId", "detailTitle", "", "Select..");
else if (fieldName == "sIdType")
sd.SetDDL2(ref ddlNewValue, "EXEC proc_countryIdType @flag = 'il', @countryId='151', @spFlag = '5201'", "detailTitle", "", "Select");
else if (fieldName == "paymentMethod")
sd.SetDDL(ref ddlNewValue, "EXEC proc_online_sendPageLoadData @flag = 'payoutMethods' ,@country = " + country + "", "Key", "Value", "", "Select");
}
protected void btnUpdate_Click(object sender, EventArgs e)
{

9
Swift.web/Remit/Transaction/Modify/ModifyLocation.aspx

@ -107,6 +107,15 @@
</td>
</tr>
</div>
<tr id="modeOfPayment" runat="server" visible="false">
<td nowrap="nowrap">
<div align="right"> Mode of Payment : </div>
</td>
<td nowrap="nowrap">
<asp:DropDownList ID="ddlPaymnetMode" runat="server" CssClass="input"></asp:DropDownList>
</td>
</tr>
</div>
<div id="rptAccountNo" runat="server" visible="false">
<tr>
<td nowrap="nowrap">

18
Swift.web/Remit/Transaction/Modify/ModifyLocation.aspx.designer.cs

@ -158,6 +158,24 @@ namespace Swift.web.Remit.Transaction.Modify
/// </remarks>
protected global::System.Web.UI.WebControls.DropDownList ddlBranch;
/// <summary>
/// modeOfPayment control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlTableRow modeOfPayment;
/// <summary>
/// ddlPaymnetMode 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 ddlPaymnetMode;
/// <summary>
/// rptAccountNo control.
/// </summary>

17
Swift.web/Remit/Transaction/Modify/ModifyTran.aspx

@ -152,6 +152,23 @@
"&pCountryId=" + pCountryId;
var id = PopUpWindow(url, "");
if (id == "undefined" || id == null || id == "") {
}
else {
GetElement("<%=btnReloadDetail.ClientID %>").click();
}
return false;
}
function EditPaymentMode(label, fieldName, oldValue, tranId, pCountry) {
var url = "ModifyField.aspx?label=" + label +
"&fieldName=" + fieldName +
"&oldValue=" + oldValue +
"&tranId=" + tranId +
"&pCountry=" + pCountry;
var id = PopUpWindow(url, "");
if (id == "undefined" || id == null || id == "") {
}

14
Swift.web/Remit/UserControl/UcTransaction.ascx.cs

@ -374,7 +374,8 @@ namespace Swift.web.Remit.UserControl
}
pAgentName.Text = tRow["pAgentName"].ToString();
modeOfPayment.Text = tRow["paymentMethod"].ToString();
//modeOfPayment.Text = tRow["paymentMethod"].ToString();
modeOfPayment.Text = GetPaymentMode("Mode of Payment", "paymentMethod", tRow);
modeOfDeposit.Text = tRow["depositType"].ToString();
payer.Text = tRow["payerName"].ToString();
@ -861,6 +862,14 @@ namespace Swift.web.Remit.UserControl
fieldValue + "<img border=0 src=\"/Images/edit.gif\"/></a></div>";
return str;
}
public string GetPaymentMode(string label, string fieldName, DataRow dr)
{
string fieldValue = dr[fieldName].ToString().Trim();
var str = "<a href=# title='Edit Record'><div class = \"link\" onclick = \"EditPaymentMode('" + label + "', '" + fieldName + "', '" + fieldValue + "','" + hddTranId.Value + "','" + dr["rCountryName"] + "')\">" +
fieldValue + "<img border=0 src=\"/Images/edit.gif\"/></a></div>";
return str;
}
public void SearchData()
{
@ -1717,7 +1726,8 @@ namespace Swift.web.Remit.UserControl
pBranchName.Text = tRow["pBranchName"].ToString();
}
pAgentName.Text = tRow["pAgentName"].ToString();
modeOfPayment.Text = tRow["paymentMethod"].ToString();
//modeOfPayment.Text = tRow["paymentMethod"].ToString();
modeOfPayment.Text = GetPaymentMode("Mode of Payment", "paymentMethod", tRow);
modeOfDeposit.Text = tRow["depositType"].ToString();
tranStatus.Text = tRow["tranStatus"].ToString();
payStatus.Text = tRow["payStatus"].ToString();

Loading…
Cancel
Save