Browse Source
Merge branch 'feature/Redmine-16525-Cosmetic_Changes' of http://202.166.220.79:3000/IME-LONDON/WEB_CORE into Ime-london-webcore
Merge branch 'feature/Redmine-16525-Cosmetic_Changes' of http://202.166.220.79:3000/IME-LONDON/WEB_CORE into Ime-london-webcore
# Conflicts: # Swift.API/Common/Enum/Notification.cs # Swift.DAL/Agentpanel/Send/SendTranIRHDao.cs # Swift.DAL/Remittance/CustomerDeposits/CustomerDepositDao.cs # Swift.DAL/Remittance/Transaction/ApproveTransactionDao.cs # Swift.DAL/Remittance/Transaction/ModifyTransactionDao.cs # Swift.DAL/Remittance/Transaction/TranReportDao.cs # Swift.DAL/SwiftDAL/DbResult.cs # Swift.web/AgentNew/Administration/CustomerSetup/CustomerRegistration/Manage.aspx # Swift.web/AgentNew/Administration/CustomerSetup/CustomerRegistration/Manage.aspx.cs # Swift.web/AgentNew/AgentSend/SendV2.aspx.cs # Swift.web/AgentNew/SendTxn/Confirm.aspx.cs # Swift.web/AgentNew/SendTxn/SendIntlReceipt.aspx # Swift.web/AgentNew/SendTxn/SendV2.aspx # Swift.web/AgentNew/SendTxn/SendV2.aspx.cs # Swift.web/AgentNew/js/SendTxn/sendTxnInfo.js # Swift.web/AgentPanel/ResetPassword/ResetPassword.aspx.cs # Swift.web/DashboardV2/Dashboard2.aspx # Swift.web/DashboardV2/Dashboard2.aspx.cs # Swift.web/DashboardV2/assets/css/style.css # Swift.web/DashboardV2/assets/js/dashboardv2.js # Swift.web/Library/GetStatic.cs # Swift.web/Library/WebUtils.cs # Swift.web/MobileRemit/Admin/Operation/EditCustomerForApproval.aspx # Swift.web/MobileRemit/Admin/Operation/EditCustomerForApproval.aspx.cs # Swift.web/MobileRemit/Admin/Operation/VerifyMobileCustomer.aspx.cs # Swift.web/MobileRemit/Admin/PushNotification/ManageBroadCast.aspx # Swift.web/MobileRemit/Admin/PushNotification/ManageBroadCast.aspx.cs # Swift.web/MobileRemit/Admin/Reports/CustomerRegistrationStatus.aspx.cs # Swift.web/Payment/trans_payment_success.aspx.cs # Swift.web/Remit/Administration/CustomerRegistration/UpdateKYC.aspx.cs # Swift.web/Remit/Administration/CustomerSetup/List.aspx.cs # Swift.web/Remit/Compliance/ApproveOFACandComplaince/List.aspx.cs # Swift.web/Remit/Transaction/ApproveTxn/holdTxnListMobile.aspx.cs # Swift.web/Remit/Transaction/Modify/ModifyTran.aspx # Swift.web/Remit/Transaction/Reports/TransactionNew/Mange.aspx.cs # Swift.web/Remit/Transaction/Reports/TransactionNew/TranReport.aspx # Swift.web/Remit/Transaction/Reports/TransactionNew/TranReport.aspx.cs # Swift.web/Remit/Transaction/Reports/TransactionNew/TranReport.aspx.designer.cs # Swift.web/Remit/Transaction/VerifyMobileTransaction/VerifyMobileTransaction.aspx # Swift.web/Remit/UserControl/UcTransaction.ascx.cs # Swift.web/RemittanceSystem/RemittanceReports/RejectTransactionReport/Mange.aspxIme-london-webcore
Dinesh
8 months ago
78 changed files with 2467 additions and 200 deletions
-
5Swift.API/Common/Enum/Notification.cs
-
2Swift.API/Swift.API.csproj
-
48Swift.API/ThirdPartyApiServices/SyncStateCityTownService.cs
-
19Swift.DAL/Agentpanel/Send/SendTranIRHDao.cs
-
43Swift.DAL/Remittance/System/GeneralSettings/StaticDataDao.cs
-
1Swift.DAL/Remittance/Transaction/ApproveTransactionDao.cs
-
10Swift.DAL/Remittance/Transaction/ModifyTransactionDao.cs
-
1Swift.DAL/Remittance/Transaction/TranReportDao.cs
-
2Swift.DAL/Swift.DAL.csproj
-
3Swift.DAL/SwiftDAL/DbResult.cs
-
6Swift.web/AgentNew/Administration/CustomerSetup/CustomerRegistration/Manage.aspx
-
14Swift.web/AgentNew/Administration/CustomerSetup/CustomerRegistration/Manage.aspx.cs
-
1Swift.web/AgentNew/AgentSend/SendV2.aspx.cs
-
7Swift.web/AgentNew/SendTxn/Confirm.aspx.cs
-
10Swift.web/AgentNew/SendTxn/SendIntlReceipt.aspx
-
99Swift.web/AgentNew/SendTxn/SendV2.aspx
-
77Swift.web/AgentNew/SendTxn/SendV2.aspx.cs
-
53Swift.web/AgentNew/js/SendTxn/sendTxnInfo.js
-
2Swift.web/AgentPanel/ResetPassword/ResetPassword.aspx.cs
-
72Swift.web/DashboardV2/Dashboard2.aspx
-
4Swift.web/DashboardV2/Dashboard2.aspx.cs
-
3Swift.web/DashboardV2/assets/css/style.css
-
8Swift.web/DashboardV2/assets/js/dashboardv2.js
-
8Swift.web/Library/GetStatic.cs
-
2Swift.web/Library/WebUtils.cs
-
45Swift.web/MobileRemit/Admin/Operation/EditCustomerForApproval.aspx
-
10Swift.web/MobileRemit/Admin/Operation/EditCustomerForApproval.aspx.cs
-
9Swift.web/MobileRemit/Admin/Operation/VerifyMobileCustomer.aspx.cs
-
22Swift.web/MobileRemit/Admin/PushNotification/ManageBroadCast.aspx
-
11Swift.web/MobileRemit/Admin/PushNotification/ManageBroadCast.aspx.cs
-
2Swift.web/MobileRemit/Admin/Reports/CustomerRegistrationStatus.aspx
-
9Swift.web/MobileRemit/Admin/Reports/CustomerRegistrationStatus.aspx.cs
-
1Swift.web/MobileRemit/Agent/ApproveCustomer/EditCustomerFromMobile.aspx.cs
-
2Swift.web/Payment/trans_payment_success.aspx.cs
-
1Swift.web/Remit/Administration/CountrySetup/CollectionMode/List.aspx.cs
-
1Swift.web/Remit/Administration/CountrySetup/CountryCurrency.aspx.cs
-
1Swift.web/Remit/Administration/CountrySetup/CountryIdSetup.aspx.cs
-
1Swift.web/Remit/Administration/CountrySetup/EventSetup/List.aspx.cs
-
1Swift.web/Remit/Administration/CountrySetup/EventSetup/Manage.aspx.cs
-
1Swift.web/Remit/Administration/CountrySetup/Manage.aspx.cs
-
1Swift.web/Remit/Administration/CountrySetup/MobileFormat.aspx.cs
-
86Swift.web/Remit/Administration/CountrySetup/PromotionalRateSetup/List.aspx
-
154Swift.web/Remit/Administration/CountrySetup/PromotionalRateSetup/List.aspx.cs
-
62Swift.web/Remit/Administration/CountrySetup/PromotionalRateSetup/List.aspx.designer.cs
-
149Swift.web/Remit/Administration/CountrySetup/PromotionalRateSetup/Manage.aspx
-
170Swift.web/Remit/Administration/CountrySetup/PromotionalRateSetup/Manage.aspx.cs
-
170Swift.web/Remit/Administration/CountrySetup/PromotionalRateSetup/Manage.aspx.designer.cs
-
1Swift.web/Remit/Administration/CountrySetup/ReceivingMode/List.aspx.cs
-
1Swift.web/Remit/Administration/CountrySetup/StateSetup/List.aspx.cs
-
1Swift.web/Remit/Administration/CountrySetup/StateSetup/Manage.aspx.cs
-
7Swift.web/Remit/Administration/CustomerRegistration/Manage.aspx.cs
-
18Swift.web/Remit/Administration/CustomerRegistration/UpdateKYC.aspx.cs
-
6Swift.web/Remit/Administration/CustomerSetup/List.aspx.cs
-
47Swift.web/Remit/Administration/PromotionalRateDao.cs
-
115Swift.web/Remit/Administration/ReferralSetup/Manage.aspx
-
76Swift.web/Remit/Administration/ReferralSetup/Manage.aspx.cs
-
134Swift.web/Remit/Administration/ReferralSetup/Manage.aspx.designer.cs
-
149Swift.web/Remit/Administration/ReferralSetup/ReferPointMasterSetup.aspx
-
113Swift.web/Remit/Administration/ReferralSetup/ReferPointMasterSetup.aspx.cs
-
62Swift.web/Remit/Administration/ReferralSetup/ReferPointMasterSetup.aspx.designer.cs
-
57Swift.web/Remit/Administration/ReferralSetup/ReferPointSetup.aspx
-
80Swift.web/Remit/Administration/ReferralSetup/ReferPointSetup.aspx.cs
-
35Swift.web/Remit/Administration/ReferralSetup/ReferPointSetup.aspx.designer.cs
-
1Swift.web/Remit/Compliance/ApproveOFACandComplaince/Dashboard.aspx.cs
-
3Swift.web/Remit/Compliance/ApproveOFACandComplaince/List.aspx.cs
-
7Swift.web/Remit/OFACManagement/Import.aspx.cs
-
1Swift.web/Remit/Transaction/ApproveTxn/Manage.aspx.cs
-
1Swift.web/Remit/Transaction/ApproveTxn/holdTxnListMobile.aspx.cs
-
5Swift.web/Remit/Transaction/Modify/ModifyTran.aspx
-
2Swift.web/Remit/Transaction/Reports/TransactionNew/Mange.aspx.cs
-
9Swift.web/Remit/Transaction/Reports/TransactionNew/TranReport.aspx
-
2Swift.web/Remit/Transaction/Reports/TransactionNew/TranReport.aspx.cs
-
8Swift.web/Remit/Transaction/Reports/TransactionNew/TranReport.aspx.designer.cs
-
10Swift.web/Remit/Transaction/VerifyMobileTransaction/VerifyMobileTransaction.aspx
-
3Swift.web/Remit/UserControl/UcTransaction.ascx.cs
-
1Swift.web/RemittanceSystem/RemittanceReports/RejectTransactionReport/Mange.aspx
-
49Swift.web/Swift.web.csproj
-
254Swift.web/doc/tmp/UK_Sanctions_List_Sample.xml
@ -0,0 +1,86 @@ |
|||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="List.aspx.cs" Inherits="Swift.web.Remit.Administration.CountrySetup.PromotionalRateSetup.List" %> |
|||
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
|||
|
|||
<html xmlns="http://www.w3.org/1999/xhtml"> |
|||
<head id="Head1" runat="server"> |
|||
<script src="../../../../js/swift_grid.js" type="text/javascript"> </script> |
|||
<script src="../../../../js/functions.js" type="text/javascript"> </script> |
|||
|
|||
<!-- Bootstrap --> |
|||
<link href="../../../../ui/bootstrap/css/bootstrap.min.css" rel="stylesheet" /> |
|||
<!-- <link rel="stylesheet" href="css/nanoscroller.css">--> |
|||
<link href="../../../../ui/css/menu.css" type="text/css" rel="stylesheet" /> |
|||
<link href="../../../../ui/css/style.css" type="text/css" rel="stylesheet" /> |
|||
<link href="../../../../ui/font-awesome/css/font-awesome.min.css" rel="stylesheet" /> |
|||
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries --> |
|||
<!-- WARNING: Respond.js doesn't work if you view the page via file:// --> |
|||
<!--[if lt IE 9]> |
|||
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> |
|||
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> |
|||
<![endif]--> |
|||
</head> |
|||
|
|||
<body> |
|||
<form id="form1" runat="server"> |
|||
<div class="page-wrapper"> |
|||
<div class="row"> |
|||
<div class="col-sm-12"> |
|||
<div class="page-title"> |
|||
<h1></h1> |
|||
<ol class="breadcrumb"> |
|||
<li><a href="../../../../Front.aspx" target="mainFrame"><i class="fa fa-home"></i></a></li> |
|||
<li><a href="#" onclick="return LoadModule('adminstration')">Administration </a></li> |
|||
<li><a href="#" onclick="return LoadModule('sub_administration')">Sub_Administration</a></li> |
|||
<li class="active"><a href="List.aspx">State Setup</a></li> |
|||
</ol> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<!-- end .page title--> |
|||
|
|||
<!-- Nav tabs --> |
|||
<div class="listtabs"> |
|||
<ul class="nav nav-tabs" role="tablist"> |
|||
<li role="presentation" class="deactive"><a href="List.aspx">Country List </a></li> |
|||
<li role="presentation" class="active"><a href="#list" aria-controls="home" role="tab" data-toggle="tab">Manage Country</a></li> |
|||
</ul> |
|||
</div> |
|||
<div> |
|||
<label><span id="spnCname" runat="server"><%=GetCountryName()%></span></label> |
|||
</div> |
|||
<div id="divTab" runat="server"> |
|||
</div> |
|||
<!-- Tab panes --> |
|||
<div class="tab-content"> |
|||
<div role="tabpanel" class="tab-pane active" id="list"> |
|||
<div class="row"> |
|||
<div class="col-md-12"> |
|||
<div class="panel panel-default "> |
|||
<!-- Start .panel --> |
|||
<div class="panel-heading"> |
|||
<h4 class="panel-title">Promotional Rate Setup</h4> |
|||
<div class="panel-actions"> |
|||
<a href="#" class="panel-action panel-action-toggle" data-panel-toggle></a><%--<a href="#" |
|||
class="panel-action panel-action-dismiss" data-panel-dismiss></a>--%> |
|||
</div> |
|||
</div> |
|||
<div class="panel-body"> |
|||
<div id="rpt_grid" runat="server" class="gridDiv"> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<!-- End .panel --> |
|||
</div> |
|||
<!--end .col--> |
|||
</div> |
|||
<!--end .row--> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</form> |
|||
<script type="text/javascript" src="../../../../ui/js/jquery.min.js"></script> |
|||
<script type="text/javascript" src="../../../../ui/bootstrap/js/bootstrap.min.js"></script> |
|||
<script type="text/javascript" src="../../../../ui/js/metisMenu.min.js"></script> |
|||
</body> |
|||
</html> |
@ -0,0 +1,154 @@ |
|||
using Swift.DAL.BL.Remit.Administration; |
|||
using Swift.DAL.SwiftDAL; |
|||
using Swift.web.Component.Grid; |
|||
using Swift.web.Component.Grid.gridHelper; |
|||
using Swift.web.Component.Tab; |
|||
using Swift.web.Library; |
|||
using System; |
|||
using System.Collections.Generic; |
|||
|
|||
namespace Swift.web.Remit.Administration.CountrySetup.PromotionalRateSetup |
|||
{ |
|||
public partial class List : System.Web.UI.Page |
|||
{ |
|||
private const string ViewFunctionId = "20101200"; |
|||
private const string AddEditFunctionId = "20101210"; |
|||
private const string DeleteFunctionId = "20101220"; |
|||
private readonly RemittanceLibrary swiftLibrary = new RemittanceLibrary(); |
|||
private readonly PromotionalRateDao obj = new PromotionalRateDao(); |
|||
private readonly SwiftGrid grid = new SwiftGrid(); |
|||
private readonly SwiftTab _tab = new SwiftTab(); |
|||
private StaticDataDdl _sl = new StaticDataDdl(); |
|||
private const string GridName = "grid_rate"; |
|||
|
|||
protected void Page_Load(object sender, EventArgs e) |
|||
{ |
|||
if (!IsPostBack) |
|||
{ |
|||
Authenticate(); |
|||
LoadTab(); |
|||
} |
|||
DeleteRow(); |
|||
LoadGrid(); |
|||
} |
|||
|
|||
protected string GetCountryName() |
|||
{ |
|||
return "Country : " + swiftLibrary.GetCountryName(GetCountryId().ToString()); |
|||
} |
|||
|
|||
protected long GetCountryId() |
|||
{ |
|||
return GetStatic.ReadNumericDataFromQueryString("countryId"); |
|||
} |
|||
|
|||
private string GetOperationType() |
|||
{ |
|||
return GetStatic.ReadQueryString("opType", ""); |
|||
} |
|||
|
|||
#region method
|
|||
|
|||
private void LoadTab() |
|||
{ |
|||
var countryId = GetCountryId().ToString(); |
|||
var opType = GetOperationType(); |
|||
|
|||
var queryStrings = "?countryId=" + countryId + "&opType=" + opType; |
|||
_tab.NoOfTabPerRow = 8; |
|||
|
|||
_tab.TabList = new List<TabField> |
|||
{ |
|||
new TabField("Country Info", "../Manage.aspx" + queryStrings), |
|||
new TabField("State Setup", "../StateSetup/List.aspx" + queryStrings), |
|||
new TabField("Allowed Currency", "../CountryCurrency.aspx" + queryStrings), |
|||
new TabField("Mobile Format", "../MobileFormat.aspx" + queryStrings), |
|||
new TabField("Valid ID Setup", "../CountryIdSetup.aspx" + queryStrings), |
|||
new TabField("Promotional Rate Setup", "PromotionalRateSetup/List.aspx" + queryStrings, true), |
|||
}; |
|||
switch (opType) |
|||
{ |
|||
case "B": |
|||
_tab.TabList.Add(new TabField("Collection Mode", "../CollectionMode/List.aspx" + queryStrings)); |
|||
_tab.TabList.Add(new TabField("Receiving Mode", "../ReceivingMode/List.aspx" + queryStrings)); |
|||
break; |
|||
|
|||
case "S": |
|||
_tab.TabList.Add(new TabField("Collection Mode", "../CollectionMode/List.aspx" + queryStrings)); |
|||
break; |
|||
|
|||
case "R": |
|||
_tab.TabList.Add(new TabField("Receiving Mode", "../ReceivingMode/List.aspx" + queryStrings)); |
|||
break; |
|||
} |
|||
_tab.TabList.Add(new TabField("Event", "../EventSetup/List.aspx" + queryStrings)); |
|||
divTab.InnerHtml = _tab.CreateTab(); |
|||
} |
|||
|
|||
private void LoadGrid() |
|||
{ |
|||
grid.FilterList = new List<GridFilter> |
|||
{ |
|||
new GridFilter("depositType", "Deposit Type", "T"), |
|||
//new GridFilter("stateName", "State Name:", "T")
|
|||
}; |
|||
|
|||
grid.ColumnList = new List<GridColumn> |
|||
{ |
|||
new GridColumn("depositType", "Deposit Type", "", "T"), |
|||
new GridColumn("margin", "Rate", "", "T"), |
|||
new GridColumn("purchaseRate", "Promotional Rate", "", "T") |
|||
}; |
|||
|
|||
bool allowAddEdit = swiftLibrary.HasRight(AddEditFunctionId); |
|||
|
|||
grid.GridType = 1; |
|||
grid.GridDataSource = SwiftGrid.GridDS.RemittanceDB; |
|||
grid.GridName = GridName; |
|||
grid.ShowAddButton = true; |
|||
grid.ShowFilterForm = true; |
|||
grid.ShowPagingBar = true; |
|||
|
|||
grid.RowIdField = "depositType"; |
|||
|
|||
grid.AllowEdit = swiftLibrary.HasRight(AddEditFunctionId); |
|||
grid.AllowDelete = swiftLibrary.HasRight(DeleteFunctionId); |
|||
|
|||
grid.AddPage = "Manage.aspx?countryId=" + GetCountryId() + "&opType=" + GetOperationType(); |
|||
|
|||
string sql = "[proc_countryRateMaster] @flag = 'get-list', @countryId = " + GetCountryId(); |
|||
grid.SetComma(); |
|||
|
|||
rpt_grid.InnerHtml = grid.CreateGrid(sql); |
|||
} |
|||
|
|||
private void DeleteRow() |
|||
{ |
|||
string id = grid.GetCurrentRowId(GridName); |
|||
if (string.IsNullOrEmpty(id)) |
|||
return; |
|||
DbResult dbResult = obj.Delete(GetStatic.GetUser(), GetCountryId().ToString(), id); |
|||
ManageMessage(dbResult); |
|||
} |
|||
|
|||
private void ManageMessage(DbResult dbResult) |
|||
{ |
|||
GetStatic.SetMessage(dbResult); |
|||
if (dbResult.ErrorCode != "0") |
|||
{ |
|||
GetStatic.PrintMessage(Page); |
|||
} |
|||
else |
|||
{ |
|||
Response.Redirect("List.aspx?countryId=" + GetCountryId() + "&opType=" + GetOperationType()); |
|||
} |
|||
} |
|||
|
|||
private void Authenticate() |
|||
{ |
|||
swiftLibrary.CheckAuthentication(ViewFunctionId); |
|||
} |
|||
|
|||
#endregion method
|
|||
} |
|||
} |
@ -0,0 +1,62 @@ |
|||
//------------------------------------------------------------------------------
|
|||
// <auto-generated>
|
|||
// This code was generated by a tool.
|
|||
//
|
|||
// Changes to this file may cause incorrect behavior and will be lost if
|
|||
// the code is regenerated.
|
|||
// </auto-generated>
|
|||
//------------------------------------------------------------------------------
|
|||
|
|||
namespace Swift.web.Remit.Administration.CountrySetup.PromotionalRateSetup |
|||
{ |
|||
|
|||
|
|||
public partial class List |
|||
{ |
|||
|
|||
/// <summary>
|
|||
/// Head1 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.HtmlHead Head1; |
|||
|
|||
/// <summary>
|
|||
/// form1 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.HtmlForm form1; |
|||
|
|||
/// <summary>
|
|||
/// spnCname 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.HtmlGenericControl spnCname; |
|||
|
|||
/// <summary>
|
|||
/// divTab 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.HtmlGenericControl divTab; |
|||
|
|||
/// <summary>
|
|||
/// rpt_grid 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.HtmlGenericControl rpt_grid; |
|||
} |
|||
} |
@ -0,0 +1,149 @@ |
|||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Manage.aspx.cs" Inherits="Swift.web.Remit.Administration.CountrySetup.PromotionalRateSetup.Manage" %> |
|||
|
|||
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %> |
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
|||
<html xmlns="http://www.w3.org/1999/xhtml"> |
|||
<head id="Head1" runat="server"> |
|||
<script src="/js/swift_grid.js" type="text/javascript"> </script> |
|||
<script src="/js/functions.js" type="text/javascript"> </script> |
|||
<link href="/js/jQuery/jquery-ui.css" rel="stylesheet" type="text/css" /> |
|||
<link href="/ui/css/menu.css" type="text/css" rel="stylesheet" /> |
|||
<link href="/ui/bootstrap/css/bootstrap.min.css" rel="stylesheet" /> |
|||
<script src="../../../../js/jQuery/jquery.min.js"></script> |
|||
<link href="/ui/css/waves.min.css" type="text/css" rel="stylesheet" /> |
|||
<link href="/ui/css/style.css" type="text/css" rel="stylesheet" /> |
|||
<link href="/ui/font-awesome/css/font-awesome.min.css" rel="stylesheet" /> |
|||
<script type="text/javascript"> |
|||
$(document).ready(function () { |
|||
$("#chkPromRate").click(function () { |
|||
if ($(this).is(":checked")) { |
|||
$("#divPromRate").show(); |
|||
} else { |
|||
$("#divPromRate").hide(); |
|||
} |
|||
}); |
|||
}); |
|||
</script> |
|||
|
|||
</head> |
|||
<body> |
|||
<form id="form1" runat="server"> |
|||
<asp:ScriptManager ID="ScriptManger1" runat="server"></asp:ScriptManager> |
|||
<div class="page-wrapper"> |
|||
<div class="row"> |
|||
<div class="col-sm-12"> |
|||
<div class="page-title"> |
|||
<ol class="breadcrumb"> |
|||
<li><a href="../../../../Front.aspx" target="mainFrame"><i class="fa fa-home"></i></a></li> |
|||
<li><a href="#" onclick="return LoadModule('adminstration')">Administration </a></li> |
|||
<li><a href="#" onclick="return LoadModule('sub_administration')">Sub_Administration</a></li> |
|||
<li class="active"><a href="manage.aspx">Country Setup</a></li> |
|||
</ol> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="listtabs"> |
|||
<ul class="nav nav-tabs" role="tablist"> |
|||
<li role="presentation" class="deactive"><a href="List.aspx">Country List </a></li> |
|||
<li role="presentation" class="active"><a href="#list" aria-controls="home" role="tab" data-toggle="tab">Manage Country</a></li> |
|||
</ul> |
|||
</div> |
|||
<div> |
|||
<label><span id="spnCname" runat="server"><%=GetCountryName()%></span></label> |
|||
</div> |
|||
<div id="divTab" runat="server"> |
|||
</div> |
|||
<div class="tab-content"> |
|||
<div role="tabpanel" class="tab-pane active" id="list"> |
|||
<div class="row"> |
|||
<div class="col-md-6"> |
|||
<div class="panel panel-default "> |
|||
<div class="panel-heading"> |
|||
<h4 class="panel-title">Promotional Rate Setup |
|||
</h4> |
|||
<div class="panel-actions"> |
|||
<a href="#" class="panel-action panel-action-toggle" data-panel-toggle></a> |
|||
</div> |
|||
</div> |
|||
<div class="panel-body"> |
|||
<div class="form-group"> |
|||
<label class="control-label" for=""> |
|||
<span class="ErrMsg">*</span> Fileds are mendotory</label> |
|||
</div> |
|||
<div class="form-group"> |
|||
<asp:Label ID="lblMsg" Font-Bold="true" ForeColor="Red" runat="server" Text=""></asp:Label> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-lg-3 col-md-4 control-label" for=""> |
|||
Deposit Type: |
|||
<span class="errormsg">*</span> |
|||
</label> |
|||
<div class="col-lg-9 col-md-8"> |
|||
<asp:DropDownList ID="depositType" runat="server" CssClass="form-control"> |
|||
<asp:ListItem Value="ONLINE" Selected="true">ONLINE</asp:ListItem> |
|||
<asp:ListItem Value="DEBIT_CARD">DEBIT CARD</asp:ListItem> |
|||
<asp:ListItem Value="EBANKING">EBANKING</asp:ListItem> |
|||
</asp:DropDownList> |
|||
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="depositType" ValidationGroup="static" ErrorMessage="Required!" Display="Dynamic" ForeColor="Red"> |
|||
</asp:RequiredFieldValidator> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-lg-3 col-md-4 control-label" for=""> |
|||
Rate:<span class="errormsg">*</span> |
|||
</label> |
|||
<div class="col-lg-9 col-md-8"> |
|||
<asp:TextBox ID="actualRate" runat="server" TextMode="SingleLine" CssClass="form-control"></asp:TextBox> |
|||
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" |
|||
runat="server" ControlToValidate="actualRate" ValidationGroup="static" ErrorMessage="Required!" Display="Dynamic" ForeColor="Red"> |
|||
</asp:RequiredFieldValidator> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-lg-3 col-md-4 control-label" for=""> |
|||
Is Active: |
|||
</label> |
|||
<div class="col-lg-9 col-md-8"> |
|||
<asp:DropDownList ID="ddlStatus" CssClass="form-control" runat="server" Width="100%"> |
|||
<asp:ListItem Value="Y">Yes</asp:ListItem> |
|||
<asp:ListItem Value="N">No</asp:ListItem> |
|||
</asp:DropDownList> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-lg-3 col-md-4 control-label"> |
|||
<input type="checkbox" runat="server" id="chkPromRate" value="PromotionalRate"/>Promotional Rate</label> |
|||
</div> |
|||
<div class="form-group" id="divPromRate" runat="server" style="display: none"> |
|||
<label class="col-lg-3 col-md-4 control-label" for=""> |
|||
Promotional Rate: |
|||
</label> |
|||
<div class="col-lg-9 col-md-8"> |
|||
<asp:TextBox ID="promRate" CssClass="form-control" runat="server" TextMode="SingleLine"></asp:TextBox> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<div class="col-md-8 col-md-offset-3"> |
|||
<asp:Button ID="btnSumit" runat="server" Text="Submit" ValidationGroup="static" OnClick="btnSubmit_Click" class="btn btn-primary m-t-25" /> |
|||
<cc1:ConfirmButtonExtender ID="btnSumitcc" runat="server" |
|||
ConfirmText="Confirm To Save ?" Enabled="True" TargetControlID="btnSumit"> |
|||
</cc1:ConfirmButtonExtender> |
|||
|
|||
<asp:Button ID="btnDelete" runat="server" Text="Delete" class="btn btn-primary m-t-25" OnClick="btnDelete_Click" /> |
|||
<cc1:ConfirmButtonExtender ID="ConfirmButtonExtender1" runat="server" |
|||
ConfirmText="Are you sure to delete record ?" Enabled="True" TargetControlID="btnDelete"> |
|||
</cc1:ConfirmButtonExtender> |
|||
<input type="button" id="btnBack" value=" Back " class="btn btn-primary m-t-25" onclick="Javascript: history.back(); " /> |
|||
</div> |
|||
</div> |
|||
|
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</form> |
|||
</body> |
|||
</html> |
@ -0,0 +1,170 @@ |
|||
using Swift.DAL.BL.Remit.Administration; |
|||
using Swift.DAL.SwiftDAL; |
|||
using Swift.web.Component.Tab; |
|||
using Swift.web.Library; |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Data; |
|||
|
|||
namespace Swift.web.Remit.Administration.CountrySetup.PromotionalRateSetup |
|||
{ |
|||
public partial class Manage : System.Web.UI.Page |
|||
{ |
|||
private const string ViewFunctionId = "20101200"; |
|||
private const string AddEditFunctionId = "20101210"; |
|||
private const string DeleteFunctionId = "20101220"; |
|||
private readonly RemittanceLibrary _sl1 = new RemittanceLibrary(); |
|||
private readonly PromotionalRateDao obj = new PromotionalRateDao(); |
|||
private readonly SwiftTab _tab = new SwiftTab(); |
|||
private StaticDataDdl _sl = new StaticDataDdl(); |
|||
protected void Page_Load(object sender, EventArgs e) |
|||
{ |
|||
if (!IsPostBack) |
|||
{ |
|||
Authenticate(); |
|||
if (GetType() != "") |
|||
{ |
|||
PopulateDataById(); |
|||
} |
|||
else |
|||
{ |
|||
PopulateDdl(null); |
|||
} |
|||
LoadTab(); |
|||
} |
|||
} |
|||
|
|||
#region QueryString
|
|||
|
|||
protected string GetCountryName() |
|||
{ |
|||
return "Country : " + _sl1.GetCountryName(GetCountryId().ToString()); |
|||
} |
|||
|
|||
private string GetType() |
|||
{ |
|||
return GetStatic.ReadQueryString("depositType", ""); |
|||
} |
|||
|
|||
protected long GetCountryId() |
|||
{ |
|||
return GetStatic.ReadNumericDataFromQueryString("countryId"); |
|||
} |
|||
|
|||
private string GetOperationType() |
|||
{ |
|||
return GetStatic.ReadQueryString("opType", ""); |
|||
} |
|||
|
|||
#endregion QueryString
|
|||
|
|||
#region Method
|
|||
|
|||
private void Authenticate() |
|||
{ |
|||
_sl1.CheckAuthentication(ViewFunctionId + "," + AddEditFunctionId + "," + DeleteFunctionId); |
|||
btnDelete.Visible = _sl1.HasRight(DeleteFunctionId); |
|||
btnSumit.Visible = _sl1.HasRight(AddEditFunctionId); |
|||
} |
|||
|
|||
private void LoadTab() |
|||
{ |
|||
var countryId = GetCountryId().ToString(); |
|||
var opType = GetOperationType(); |
|||
|
|||
var queryStrings = "?countryId=" + countryId + "&opType=" + opType; |
|||
_tab.NoOfTabPerRow = 8; |
|||
|
|||
_tab.TabList = new List<TabField> |
|||
{ |
|||
new TabField("Country Info", "../Manage.aspx" + queryStrings), |
|||
new TabField("State Setup", "List.aspx" + queryStrings), |
|||
new TabField("Allowed Currency", "../CountryCurrency.aspx" + queryStrings), |
|||
new TabField("Mobile Format", "../MobileFormat.aspx" + queryStrings), |
|||
new TabField("Valid ID Setup", "../CountryIdSetup.aspx" + queryStrings), |
|||
//new TabField("Promotional Rate Setup", "PromotionalRateSetup/List.aspx" + queryStrings, true),
|
|||
}; |
|||
switch (opType) |
|||
{ |
|||
case "B": |
|||
_tab.TabList.Add(new TabField("Collection Mode", "../CollectionMode/List.aspx" + queryStrings)); |
|||
_tab.TabList.Add(new TabField("Receiving Mode", "../ReceivingMode/List.aspx" + queryStrings)); |
|||
break; |
|||
|
|||
case "S": |
|||
_tab.TabList.Add(new TabField("Collection Mode", "../CollectionMode/List.aspx" + queryStrings)); |
|||
break; |
|||
|
|||
case "R": |
|||
_tab.TabList.Add(new TabField("Receiving Mode", "../ReceivingMode/List.aspx" + queryStrings)); |
|||
break; |
|||
} |
|||
_tab.TabList.Add(new TabField("Event", "../EventSetup/List.aspx" + queryStrings)); |
|||
_tab.TabList.Add(new TabField("Manage", "", true)); |
|||
divTab.InnerHtml = _tab.CreateTab(); |
|||
} |
|||
|
|||
private void PopulateDdl(DataRow dr) |
|||
{ |
|||
} |
|||
|
|||
private void PopulateDataById() |
|||
{ |
|||
DataRow dr = obj.SelectById(GetStatic.GetUser(), GetCountryId().ToString(), GetType().ToString()); |
|||
if (dr == null) |
|||
return; |
|||
|
|||
depositType.Text = dr["depositType"].ToString(); |
|||
actualRate.Text = dr["margin"].ToString(); |
|||
|
|||
if(dr["purchaseRate"].ToString() != "") |
|||
{ |
|||
promRate.Text = dr["purchaseRate"].ToString(); |
|||
//chkPromRate.Checked = true;
|
|||
divPromRate.Style["display"] = "block"; |
|||
} |
|||
ddlStatus.Text = dr["isActive"].ToString(); |
|||
} |
|||
|
|||
private void Update() |
|||
{ |
|||
var dbResult = obj.Update(GetStatic.GetUser(), GetCountryId().ToString(), depositType.Text, actualRate.Text, promRate.Text, ddlStatus.SelectedValue); |
|||
ManageMessage(dbResult); |
|||
} |
|||
|
|||
private void DeleteRow() |
|||
{ |
|||
var dbResult = obj.Delete(GetStatic.GetUser(), GetCountryId().ToString(), depositType.Text); |
|||
ManageMessage(dbResult); |
|||
} |
|||
|
|||
private void ManageMessage(DbResult dbResult) |
|||
{ |
|||
GetStatic.SetMessage(dbResult); |
|||
if (dbResult.ErrorCode == "0") |
|||
{ |
|||
Response.Redirect("List.aspx?countryId=" + GetCountryId() + "&opType=" + GetOperationType()); |
|||
} |
|||
else |
|||
{ |
|||
GetStatic.PrintMessage(Page); |
|||
} |
|||
} |
|||
|
|||
#endregion Method
|
|||
|
|||
#region Element Method
|
|||
|
|||
protected void btnSubmit_Click(object sender, EventArgs e) |
|||
{ |
|||
Update(); |
|||
} |
|||
|
|||
protected void btnDelete_Click(object sender, EventArgs e) |
|||
{ |
|||
DeleteRow(); |
|||
} |
|||
|
|||
#endregion Element Method
|
|||
} |
|||
} |
@ -0,0 +1,170 @@ |
|||
//------------------------------------------------------------------------------
|
|||
// <auto-generated>
|
|||
// This code was generated by a tool.
|
|||
//
|
|||
// Changes to this file may cause incorrect behavior and will be lost if
|
|||
// the code is regenerated.
|
|||
// </auto-generated>
|
|||
//------------------------------------------------------------------------------
|
|||
|
|||
namespace Swift.web.Remit.Administration.CountrySetup.PromotionalRateSetup |
|||
{ |
|||
|
|||
|
|||
public partial class Manage |
|||
{ |
|||
|
|||
/// <summary>
|
|||
/// Head1 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.HtmlHead Head1; |
|||
|
|||
/// <summary>
|
|||
/// form1 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.HtmlForm form1; |
|||
|
|||
/// <summary>
|
|||
/// ScriptManger1 control.
|
|||
/// </summary>
|
|||
/// <remarks>
|
|||
/// Auto-generated field.
|
|||
/// To modify move field declaration from designer file to code-behind file.
|
|||
/// </remarks>
|
|||
protected global::System.Web.UI.ScriptManager ScriptManger1; |
|||
|
|||
/// <summary>
|
|||
/// spnCname 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.HtmlGenericControl spnCname; |
|||
|
|||
/// <summary>
|
|||
/// divTab 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.HtmlGenericControl divTab; |
|||
|
|||
/// <summary>
|
|||
/// lblMsg 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.Label lblMsg; |
|||
|
|||
/// <summary>
|
|||
/// depositType 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 depositType; |
|||
|
|||
/// <summary>
|
|||
/// RequiredFieldValidator2 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.RequiredFieldValidator RequiredFieldValidator2; |
|||
|
|||
/// <summary>
|
|||
/// actualRate 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 actualRate; |
|||
|
|||
/// <summary>
|
|||
/// RequiredFieldValidator1 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.RequiredFieldValidator RequiredFieldValidator1; |
|||
|
|||
/// <summary>
|
|||
/// ddlStatus 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 ddlStatus; |
|||
|
|||
/// <summary>
|
|||
/// divPromRate 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.HtmlGenericControl divPromRate; |
|||
|
|||
/// <summary>
|
|||
/// promRate 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 promRate; |
|||
|
|||
/// <summary>
|
|||
/// btnSumit 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.Button btnSumit; |
|||
|
|||
/// <summary>
|
|||
/// btnSumitcc control.
|
|||
/// </summary>
|
|||
/// <remarks>
|
|||
/// Auto-generated field.
|
|||
/// To modify move field declaration from designer file to code-behind file.
|
|||
/// </remarks>
|
|||
protected global::AjaxControlToolkit.ConfirmButtonExtender btnSumitcc; |
|||
|
|||
/// <summary>
|
|||
/// btnDelete 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.Button btnDelete; |
|||
|
|||
/// <summary>
|
|||
/// ConfirmButtonExtender1 control.
|
|||
/// </summary>
|
|||
/// <remarks>
|
|||
/// Auto-generated field.
|
|||
/// To modify move field declaration from designer file to code-behind file.
|
|||
/// </remarks>
|
|||
protected global::AjaxControlToolkit.ConfirmButtonExtender ConfirmButtonExtender1; |
|||
} |
|||
} |
@ -0,0 +1,47 @@ |
|||
using Swift.DAL.SwiftDAL; |
|||
using System.Data; |
|||
|
|||
namespace Swift.DAL.BL.Remit.Administration |
|||
{ |
|||
public class PromotionalRateDao : RemittanceDao |
|||
{ |
|||
public DbResult Update(string user, string countryId, string depositType, string actualRate, string promRate, string activeStatus) |
|||
{ |
|||
string sql = "EXEC proc_countryRateMaster"; |
|||
sql += " @flag = 'i-rate'"; |
|||
sql += ", @user = " + FilterString(user); |
|||
sql += ", @countryId = " + FilterString(countryId); |
|||
sql += ", @depositType = " + FilterString(depositType); |
|||
sql += ", @actualRate = " + FilterString(actualRate); |
|||
sql += ", @promRate = " + FilterString(promRate); |
|||
sql += ", @activeStatus = " + FilterString(activeStatus); |
|||
return ParseDbResult(ExecuteDataset(sql).Tables[0]); |
|||
} |
|||
|
|||
public DbResult Delete(string user, string countryId, string depositType) |
|||
{ |
|||
string sql = "EXEC proc_countryRateMaster"; |
|||
sql += " @flag = 'delete'"; |
|||
sql += ", @user = " + FilterString(user); |
|||
sql += ", @countryId = " + FilterString(countryId); |
|||
sql += ", @depositType = " + FilterString(depositType); |
|||
|
|||
return ParseDbResult(ExecuteDataset(sql).Tables[0]); |
|||
} |
|||
|
|||
public DataRow SelectById(string user, string countryId, string depositType) |
|||
{ |
|||
string sql = "EXEC proc_countryRateMaster"; |
|||
sql += " @flag = 'getById'"; |
|||
sql += ", @user = " + FilterString(user); |
|||
sql += ", @countryId = " + FilterString(countryId); |
|||
sql += ", @depositType = " + FilterString(depositType); |
|||
|
|||
DataSet ds = ExecuteDataset(sql); |
|||
if (ds == null || ds.Tables.Count == 0 || ds.Tables[0].Rows.Count == 0) |
|||
return null; |
|||
return ds.Tables[0].Rows[0]; |
|||
} |
|||
|
|||
} |
|||
} |
@ -0,0 +1,115 @@ |
|||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Manage.aspx.cs" Inherits="Swift.web.Remit.Administration.ReferralSetup.Manage" %> |
|||
|
|||
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %> |
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
|||
<html xmlns="http://www.w3.org/1999/xhtml"> |
|||
<head id="Head1" runat="server"> |
|||
<script src="/js/swift_grid.js" type="text/javascript"> </script> |
|||
<script src="/js/functions.js" type="text/javascript"> </script> |
|||
<link href="/js/jQuery/jquery-ui.css" rel="stylesheet" type="text/css" /> |
|||
<link href="/ui/css/menu.css" type="text/css" rel="stylesheet" /> |
|||
<link href="/ui/bootstrap/css/bootstrap.min.css" rel="stylesheet" /> |
|||
<link href="/ui/css/waves.min.css" type="text/css" rel="stylesheet" /> |
|||
<link href="/ui/css/style.css" type="text/css" rel="stylesheet" /> |
|||
<link href="/ui/font-awesome/css/font-awesome.min.css" rel="stylesheet" /> |
|||
</head> |
|||
<body> |
|||
<form id="form1" runat="server"> |
|||
<asp:ScriptManager ID="sm" runat="server"></asp:ScriptManager> |
|||
<div class="page-wrapper"> |
|||
<div class="row"> |
|||
<div class="col-sm-12"> |
|||
<div class="page-title"> |
|||
<ol class="breadcrumb"> |
|||
<li><a href="../../../Front.aspx" target="mainFrame"><i class="fa fa-home"></i></a></li> |
|||
<li><a href="#" onclick="return LoadModule('adminstration')">Mobile </a></li> |
|||
<li><a href="#" onclick="return LoadModule('applicationsetting')">Mobile Setup </a></li> |
|||
<li class="active"><a href="Manage.aspx">Refer Point Setup</a></li> |
|||
</ol> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="listtabs"> |
|||
<ul class="nav nav-tabs" role="tablist"> |
|||
<li role="presentation"><a href="ReferPointSetup.aspx" class="selected" aria-controls="home" role="tab" data-toggle="tab">Refer Point Setup List </a></li> |
|||
<li role="presentation"><a href="ReferPointMasterSetup.aspx" class="selected" aria-controls="home" role="tab" data-toggle="tab">Refer Point Master Setup </a></li> |
|||
<li role="presentation" class="active"><a href="#" class="selected" aria-controls="home" role="tab" data-toggle="tab">Manage Refer Point </a></li> |
|||
</ul> |
|||
</div> |
|||
<div class="tab-content"> |
|||
<div role="tabpanel" class="tab-pane active" id="list"> |
|||
<div class="row"> |
|||
<div class="col-md-6"> |
|||
<div class="panel panel-default "> |
|||
<div class="panel-heading"> |
|||
<h4 class="panel-title"></h4> |
|||
<div class="panel-actions"> |
|||
<a href="#" class="panel-action panel-action-toggle" data-panel-toggle></a> |
|||
</div> |
|||
</div> |
|||
<div class="panel-body"> |
|||
<div class="form-group"> |
|||
<label class="control-label" for=""> |
|||
<span class="ErrMsg">*</span> Fileds are mendotory and use the own idea to input this for</label> |
|||
</div> |
|||
<div class="form-group"> |
|||
<asp:Label ID="lblMsg" Font-Bold="true" ForeColor="Red" runat="server" Text=""></asp:Label> |
|||
</div> |
|||
|
|||
<div class="form-group"> |
|||
<label class="col-lg-3 col-md-4 control-label" for=""> |
|||
Reward Title:<span class="errormsg">*</span> |
|||
</label> |
|||
<div class="col-lg-9 col-md-8"> |
|||
<asp:TextBox ID="promotionType" CssClass="form-control" runat="server" TextMode="MultiLine"></asp:TextBox> |
|||
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" |
|||
runat="server" ControlToValidate="point" ValidationGroup="static" ErrorMessage="Required!" Display="Dynamic" ForeColor="Red"> |
|||
</asp:RequiredFieldValidator> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-lg-3 col-md-4 control-label" for=""> |
|||
Reward Point: <span class="errormsg">*</span> |
|||
</label> |
|||
<div class="col-lg-9 col-md-8"> |
|||
<asp:TextBox ID="point" CssClass="form-control" runat="server" TextMode="MultiLine"></asp:TextBox> |
|||
<asp:RequiredFieldValidator ID="RequiredFieldValidator3" |
|||
runat="server" ControlToValidate="point" ValidationGroup="static" ErrorMessage="Required!" Display="Dynamic" ForeColor="Red"> |
|||
</asp:RequiredFieldValidator> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="col-lg-3 col-md-4 control-label" for=""> |
|||
Is Active: |
|||
</label> |
|||
<div class="col-lg-9 col-md-8"> |
|||
<asp:DropDownList ID="ddlStatus" CssClass="form-control" runat="server" Width="100%"> |
|||
<asp:ListItem Value="Y">Yes</asp:ListItem> |
|||
<asp:ListItem Value="N">No</asp:ListItem> |
|||
</asp:DropDownList> |
|||
</div> |
|||
</div> |
|||
<div class="form-group"> |
|||
<div class="col-md-8 col-md-offset-3"> |
|||
<asp:Button ID="btnSumit" runat="server" Text="Submit" ValidationGroup="static" OnClick="btnSumit_Click" class="btn btn-primary m-t-25" /> |
|||
<cc1:ConfirmButtonExtender ID="btnSumitcc" runat="server" |
|||
ConfirmText="Confirm To Save ?" Enabled="True" TargetControlID="btnSumit"> |
|||
</cc1:ConfirmButtonExtender> |
|||
|
|||
<asp:Button ID="btnDelete" runat="server" Text="Delete" class="btn btn-primary m-t-25" OnClick="btnDelete_Click" /> |
|||
<cc1:ConfirmButtonExtender ID="ConfirmButtonExtender1" runat="server" |
|||
ConfirmText="Are you sure to delete record ?" Enabled="True" TargetControlID="btnDelete"> |
|||
</cc1:ConfirmButtonExtender> |
|||
<input type="button" id="btnBack" value=" Back " class="btn btn-primary m-t-25" onclick="Javascript: history.back(); " /> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</form> |
|||
</body> |
|||
</html> |
@ -0,0 +1,76 @@ |
|||
using Swift.DAL.BL.System.GeneralSettings; |
|||
using Swift.DAL.SwiftDAL; |
|||
using Swift.web.Library; |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Data; |
|||
using System.Linq; |
|||
using System.Web; |
|||
using System.Web.UI; |
|||
using System.Web.UI.WebControls; |
|||
|
|||
namespace Swift.web.Remit.Administration.ReferralSetup |
|||
{ |
|||
public partial class Manage : System.Web.UI.Page |
|||
{ |
|||
private const string ViewFunctionId = "10111000"; |
|||
private const string AddEditFunctionId = "10111010"; |
|||
private const string DeleteFunctionId = "10111020"; |
|||
private readonly StaticDataDao _obj = new StaticDataDao(); |
|||
private readonly StaticDataDdl _sl = new StaticDataDdl(); |
|||
|
|||
protected void Page_Load(object sender, EventArgs e) |
|||
{ |
|||
//Authenticate();
|
|||
if (!IsPostBack) |
|||
{ |
|||
GetStatic.SetActiveMenu(ViewFunctionId); |
|||
|
|||
PopulateDataById(); |
|||
|
|||
} |
|||
} |
|||
|
|||
private void PopulateDataById() |
|||
{ |
|||
string rewardType = GetStatic.ReadQueryString("Promotiontype", ""); |
|||
DataRow dr = _obj.GetDetailById(GetStatic.GetUser(), rewardType); |
|||
if (dr == null) |
|||
return; |
|||
|
|||
promotionType.Text = dr["PromotionType"].ToString(); |
|||
point.Text = dr["Points"].ToString(); |
|||
ddlStatus.Text = dr["isActive"].ToString(); |
|||
//PopulateDdl(dr);
|
|||
} |
|||
|
|||
protected void btnSumit_Click(object sender, EventArgs e) |
|||
{ |
|||
Update(); |
|||
} |
|||
|
|||
private void Update() |
|||
{ |
|||
DbResult dbResult = _obj.UpdateByType(GetStatic.GetUser(), promotionType.Text, point.Text); |
|||
ManageMessage(dbResult); |
|||
} |
|||
|
|||
private void ManageMessage(DbResult dbResult) |
|||
{ |
|||
GetStatic.SetMessage(dbResult); |
|||
if (dbResult.ErrorCode == "0") |
|||
{ |
|||
Response.Redirect("ReferPointSetup.aspx"); |
|||
} |
|||
else |
|||
{ |
|||
GetStatic.PrintMessage(Page); |
|||
} |
|||
} |
|||
|
|||
protected void btnDelete_Click(object sender, EventArgs e) |
|||
{ |
|||
_obj.DeleteByType(GetStatic.GetUser(), promotionType.Text); |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,134 @@ |
|||
//------------------------------------------------------------------------------
|
|||
// <auto-generated>
|
|||
// This code was generated by a tool.
|
|||
//
|
|||
// Changes to this file may cause incorrect behavior and will be lost if
|
|||
// the code is regenerated.
|
|||
// </auto-generated>
|
|||
//------------------------------------------------------------------------------
|
|||
|
|||
namespace Swift.web.Remit.Administration.ReferralSetup |
|||
{ |
|||
|
|||
|
|||
public partial class Manage |
|||
{ |
|||
|
|||
/// <summary>
|
|||
/// Head1 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.HtmlHead Head1; |
|||
|
|||
/// <summary>
|
|||
/// form1 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.HtmlForm form1; |
|||
|
|||
/// <summary>
|
|||
/// sm control.
|
|||
/// </summary>
|
|||
/// <remarks>
|
|||
/// Auto-generated field.
|
|||
/// To modify move field declaration from designer file to code-behind file.
|
|||
/// </remarks>
|
|||
protected global::System.Web.UI.ScriptManager sm; |
|||
|
|||
/// <summary>
|
|||
/// lblMsg 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.Label lblMsg; |
|||
|
|||
/// <summary>
|
|||
/// promotionType 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 promotionType; |
|||
|
|||
/// <summary>
|
|||
/// RequiredFieldValidator2 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.RequiredFieldValidator RequiredFieldValidator2; |
|||
|
|||
/// <summary>
|
|||
/// point 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 point; |
|||
|
|||
/// <summary>
|
|||
/// RequiredFieldValidator3 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.RequiredFieldValidator RequiredFieldValidator3; |
|||
|
|||
/// <summary>
|
|||
/// ddlStatus 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 ddlStatus; |
|||
|
|||
/// <summary>
|
|||
/// btnSumit 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.Button btnSumit; |
|||
|
|||
/// <summary>
|
|||
/// btnSumitcc control.
|
|||
/// </summary>
|
|||
/// <remarks>
|
|||
/// Auto-generated field.
|
|||
/// To modify move field declaration from designer file to code-behind file.
|
|||
/// </remarks>
|
|||
protected global::AjaxControlToolkit.ConfirmButtonExtender btnSumitcc; |
|||
|
|||
/// <summary>
|
|||
/// btnDelete 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.Button btnDelete; |
|||
|
|||
/// <summary>
|
|||
/// ConfirmButtonExtender1 control.
|
|||
/// </summary>
|
|||
/// <remarks>
|
|||
/// Auto-generated field.
|
|||
/// To modify move field declaration from designer file to code-behind file.
|
|||
/// </remarks>
|
|||
protected global::AjaxControlToolkit.ConfirmButtonExtender ConfirmButtonExtender1; |
|||
} |
|||
} |
@ -0,0 +1,149 @@ |
|||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ReferPointMasterSetup.aspx.cs" Inherits="Swift.web.Remit.Administration.ReferralSetup.ReferPointMasterSetup" %> |
|||
|
|||
<!DOCTYPE html> |
|||
|
|||
<html xmlns="http://www.w3.org/1999/xhtml"> |
|||
<head runat="server"> |
|||
<title></title> |
|||
<link href="../../../ui/bootstrap/css/bootstrap.min.css" rel="stylesheet" /> |
|||
<link href="../../../ui/css/style.css" rel="stylesheet" /> |
|||
|
|||
<link href="../../../ui/font-awesome/css/font-awesome.min.css" rel="stylesheet" /> |
|||
<link href="../../../js/jQuery/jquery-ui.css" rel="stylesheet" /> |
|||
<script src="../../../ui/js/jquery.min.js"></script> |
|||
<script src="../../../ui/js/jquery-ui.min.js"></script> |
|||
<script src="../../../ui/bootstrap/js/bootstrap.min.js"></script> |
|||
<script src="../../../js/swift_grid.js" type="text/javascript"></script> |
|||
<script src="../../../js/functions.js" type="text/javascript"></script> |
|||
<script> |
|||
function editAmount(pointsId) { |
|||
debugger |
|||
var params = pointsId.split(','); |
|||
var points = params[0]; |
|||
var rowId = params[1]; |
|||
|
|||
$("#amountPopup").modal("show"); |
|||
$("#oldAmount").val(points); |
|||
$('#oldAmount').attr('readonly', true); |
|||
|
|||
$('#hdnRowId').val(rowId); |
|||
} |
|||
|
|||
function ConfirmSave() { |
|||
debugger; |
|||
var newRewardAmount = $("#newAmount").val(); |
|||
var oldRewardAmount = $("#oldAmount").val(); |
|||
var RowId = $('#hdnRowId').val(); |
|||
alert(RowId); |
|||
if (newRewardAmount == null || newRewardAmount == '') { |
|||
alert("Please enter the reward amount to update!!"); |
|||
return false; |
|||
} |
|||
dataToSend = { MethodName: 'ConfirmSave', rewardAmount: newRewardAmount, oldRewardAmt: oldRewardAmount, rowId: RowId }; |
|||
if (confirm('Do you want to update reward amount?')) { |
|||
$.post("", dataToSend, function (response) { |
|||
var data = jQuery.parseJSON(response); |
|||
if (data.ErrorCode == 0) { |
|||
$("#amountPopup").modal("hide"); |
|||
$("#loadGrid").click(); |
|||
window.location.reload(); |
|||
} |
|||
else { |
|||
alert(data.Msg); |
|||
} |
|||
}); |
|||
} |
|||
return false; |
|||
} |
|||
|
|||
</script> |
|||
</head> |
|||
<body> |
|||
<form id="form1" runat="server"> |
|||
<div class="hidden"> |
|||
<asp:HiddenField ID="hdnRowId" runat="server" /> |
|||
</div> |
|||
<div class="page-wrapper"> |
|||
<div class="row"> |
|||
<div class="col-sm-12"> |
|||
<div class="page-title"> |
|||
<ol class="breadcrumb"> |
|||
<li><a href="../../../Front.aspx" target="mainFrame"><i class="fa fa-home"></i></a></li> |
|||
<li><a href="#">Mobile</a></li> |
|||
<li><a href="#">Mobile Setup</a></li> |
|||
<li class="active"><a href="#">Refer Point Master Setup</a></li> |
|||
</ol> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="listtabs"> |
|||
<ul class="nav nav-tabs"> |
|||
<li><a href="ReferPointSetup.aspx">Refer Point Setup List</a></li> |
|||
<li class="active"><a href="ReferPointMasterSetup.aspx">Refer Point Master Setup</a></li> |
|||
</ul> |
|||
</div> |
|||
<div class="tab-content"> |
|||
<div role="tabpanel" class="tab-pane active" id="list"> |
|||
<div class="row"> |
|||
<div class="col-md-12"> |
|||
<div class="panel panel-default "> |
|||
<div class="panel-heading"> |
|||
<h4 class="panel-title">Refer Point Master Setup List</h4> |
|||
<div class="panel-actions"> |
|||
<a href="#" class="panel-action panel-action-toggle"></a> |
|||
</div> |
|||
</div> |
|||
<div class="panel-body"> |
|||
<div class="form-group"> |
|||
<div id="rpt_grid" runat="server" enableviewstate="false"></div> |
|||
</div> |
|||
</div> |
|||
<div class="container-fluid"> |
|||
<div class="row"> |
|||
<div class="col-md-12"> |
|||
<div class="modal fade" id="amountPopup" tabindex="-1" style="margin-top: 100px; overflow: hidden;" aria-hidden="true" data-backdrop="static" data-keyboard="false"> |
|||
<div class="modal-dialog"> |
|||
<div class="modal-content"> |
|||
<div class="modal-header"> |
|||
<button class="close" data-dismiss="modal">×</button> |
|||
<center> |
|||
<h2 class="modal-title">Edit Reward Amount</h2> |
|||
</center> |
|||
</div> |
|||
<div class="modal-body"> |
|||
<div class="form-inline"> |
|||
<div class="col-md-6"> |
|||
<div class="input-group input-append date"> |
|||
<h4 class="modal-title">Old Reward Amount</h4> |
|||
<asp:TextBox ID="oldAmount" Width="250" runat="server" CssClass="form-control"></asp:TextBox> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-6"> |
|||
<div class="input-group input-append date"> |
|||
<h4 class="modal-title">New Reward Amount</h4> |
|||
<asp:TextBox ID="newAmount" Width="250" runat="server" CssClass="form-control"></asp:TextBox> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<br /> |
|||
<br /> |
|||
<div class="modal-footer"> |
|||
<button class="btn btn-primary" onclick="return ConfirmSave()">Save</button> |
|||
<button class="btn btn-danger" data-dismiss="modal" onclick="return Cancel()">Close</button> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</form> |
|||
</body> |
|||
</html> |
@ -0,0 +1,113 @@ |
|||
using Newtonsoft.Json; |
|||
using Swift.DAL.BL.System.GeneralSettings; |
|||
using Swift.DAL.SwiftDAL; |
|||
using Swift.web.Component.Grid; |
|||
using Swift.web.Component.Grid.gridHelper; |
|||
using Swift.web.Library; |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Data; |
|||
using System.Linq; |
|||
using System.Web; |
|||
using System.Web.UI; |
|||
using System.Web.UI.WebControls; |
|||
|
|||
namespace Swift.web.Remit.Administration.ReferralSetup |
|||
{ |
|||
public partial class ReferPointMasterSetup : System.Web.UI.Page |
|||
{ |
|||
private const string ViewFunctionId = "52480000"; |
|||
private const string AddEditFunctionId = "52480010"; |
|||
private const string GridName = "grd_bldom"; |
|||
private readonly SwiftGrid grid = new SwiftGrid(); |
|||
private readonly RemittanceLibrary swiftLibrary = new RemittanceLibrary(); |
|||
private readonly StaticDataDao _obj = new StaticDataDao(); |
|||
|
|||
protected void Page_Load(object sender, EventArgs e) |
|||
{ |
|||
//Authenticate();
|
|||
var methodName = Request.Form["MethodName"]; |
|||
if (!IsPostBack) |
|||
{ |
|||
if (methodName == "ConfirmSave") |
|||
{ |
|||
UpdateRewardAmount(); |
|||
} |
|||
GetStatic.PrintMessage(Page); |
|||
} |
|||
LoadGrid(); |
|||
} |
|||
private void LoadGrid() |
|||
{ |
|||
grid.FilterList = new List<GridFilter> |
|||
{ |
|||
new GridFilter("Points", "Reward Points", "LT"), |
|||
// new GridFilter("is_Active","Active","T")
|
|||
}; |
|||
|
|||
grid.ColumnList = new List<GridColumn> |
|||
{ |
|||
new GridColumn("RowId", "Id", "", "T"), |
|||
new GridColumn("Points", "Reward Value", "", "T"), |
|||
new GridColumn("isActive", "Is Active", "", "T") |
|||
}; |
|||
|
|||
grid.GridDataSource = SwiftGrid.GridDS.RemittanceDB; |
|||
grid.GridName = GridName; |
|||
grid.GridType = 1; |
|||
|
|||
grid.ShowAddButton = true; |
|||
grid.ShowFilterForm = true; |
|||
grid.ShowPagingBar = true; |
|||
grid.AllowEdit = false; |
|||
grid.SortOrder = "ASC"; |
|||
grid.CustomLinkColumnHeader = "Action"; |
|||
grid.AddButtonTitleText = "Add New"; |
|||
grid.RowIdField = "RowId"; |
|||
grid.ThisPage = "ReferPointMasterSetup.aspx"; |
|||
grid.InputPerRow = 5; |
|||
grid.AllowCustomLink = true; |
|||
grid.AlwaysShowFilterForm = true; |
|||
grid.AllowEdit = false; |
|||
grid.AllowDelete = false; |
|||
|
|||
//grid.EditText = "<a href='Manage.aspx?RowId=@detailTitle'>" + "<img src='/images/edit.gif' border='0' alt='Edit' /></a>";
|
|||
|
|||
//grid.AddPage = "manage.aspx?Id=" + (GetId() == 0 ? Id() : GetId()) + "";
|
|||
var link = " <a class=\"btn btn-xs btn-primary\" title=\"Edit\" onclick=\"return editAmount('@Points,@RowId')\">Edit</a>"; |
|||
grid.CustomLinkText = link; |
|||
grid.CustomLinkVariables = "Points,RowId"; |
|||
|
|||
string sql = "EXEC proc_InsertRewardPoints @flag = 'GET-MASTER'"; |
|||
DataTable gridData = new DataTable(); |
|||
|
|||
grid.SetComma(); |
|||
|
|||
rpt_grid.InnerHtml = grid.CreateGrid(sql); |
|||
} |
|||
private void Authenticate() |
|||
{ |
|||
swiftLibrary.CheckAuthentication(ViewFunctionId); |
|||
} |
|||
|
|||
protected void UpdateRewardAmount() |
|||
{ |
|||
var newPts = Request.Form["rewardAmount"]; |
|||
var oldPts = Request.Form["oldRewardAmt"]; |
|||
var id = Request.Form["rowId"]; |
|||
DbResult _res = new DbResult(); |
|||
if (!string.IsNullOrEmpty(newPts)) |
|||
{ |
|||
_res = _obj.UpdateById(GetStatic.GetUser(), id, newPts, oldPts); |
|||
} |
|||
else |
|||
{ |
|||
GetStatic.AlertMessage(this, "Please enter email address to update!!"); |
|||
} |
|||
Response.ContentType = "text/plain"; |
|||
Response.Write(JsonConvert.SerializeObject(_res)); |
|||
Response.End(); |
|||
|
|||
} |
|||
} |
|||
} |
@ -0,0 +1,62 @@ |
|||
//------------------------------------------------------------------------------
|
|||
// <auto-generated>
|
|||
// This code was generated by a tool.
|
|||
//
|
|||
// Changes to this file may cause incorrect behavior and will be lost if
|
|||
// the code is regenerated.
|
|||
// </auto-generated>
|
|||
//------------------------------------------------------------------------------
|
|||
|
|||
namespace Swift.web.Remit.Administration.ReferralSetup |
|||
{ |
|||
|
|||
|
|||
public partial class ReferPointMasterSetup |
|||
{ |
|||
|
|||
/// <summary>
|
|||
/// form1 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.HtmlForm form1; |
|||
|
|||
/// <summary>
|
|||
/// hdnRowId 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.HiddenField hdnRowId; |
|||
|
|||
/// <summary>
|
|||
/// rpt_grid 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.HtmlGenericControl rpt_grid; |
|||
|
|||
/// <summary>
|
|||
/// oldAmount 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 oldAmount; |
|||
|
|||
/// <summary>
|
|||
/// newAmount 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 newAmount; |
|||
} |
|||
} |
@ -0,0 +1,57 @@ |
|||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ReferPointSetup.aspx.cs" Inherits="Swift.web.Remit.Administration.ReferralSetup.ReferPointSetup" %> |
|||
|
|||
<html xmlns="http://www.w3.org/1999/xhtml"> |
|||
<head runat="server"> |
|||
<title></title> |
|||
<link href="../../../ui/bootstrap/css/bootstrap.min.css" rel="stylesheet" /> |
|||
<link href="../../../ui/css/style.css" rel="stylesheet" /> |
|||
<link href="../../../ui/font-awesome/css/font-awesome.min.css" rel="stylesheet" /> |
|||
<script src="../../../js/swift_grid.js" type="text/javascript"></script> |
|||
<script src="../../../js/functions.js" type="text/javascript"></script> |
|||
</head> |
|||
<body> |
|||
<form id="form1" runat="server"> |
|||
<div class="page-wrapper"> |
|||
<div class="row"> |
|||
<div class="col-sm-12"> |
|||
<div class="page-title"> |
|||
<ol class="breadcrumb"> |
|||
<li><a href="../../../Front.aspx" target="mainFrame"><i class="fa fa-home"></i></a></li> |
|||
<li><a href="#">Mobile</a></li> |
|||
<li><a href="#">Mobile Setup</a></li> |
|||
<li class="active"><a href="#">Refer Point Setup</a></li> |
|||
</ol> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="listtabs"> |
|||
<ul class="nav nav-tabs"> |
|||
<li class="active"><a href="ReferPointSetup.aspx">Refer Point Setup List</a></li> |
|||
<li><a href="ReferPointMasterSetup.aspx">Refer Point Master Setup</a></li> |
|||
</ul> |
|||
</div> |
|||
<div class="tab-content"> |
|||
<div role="tabpanel" class="tab-pane active" id="list"> |
|||
<div class="row"> |
|||
<div class="col-md-12"> |
|||
<div class="panel panel-default "> |
|||
<div class="panel-heading"> |
|||
<h4 class="panel-title">Refer Point Setup List</h4> |
|||
<div class="panel-actions"> |
|||
<a href="#" class="panel-action panel-action-toggle"></a> |
|||
</div> |
|||
</div> |
|||
<div class="panel-body"> |
|||
<div class="form-group"> |
|||
<div id="rpt_grid" runat="server" enableviewstate="false"></div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</form> |
|||
</body> |
|||
</html> |
@ -0,0 +1,80 @@ |
|||
using Swift.web.Component.Grid; |
|||
using Swift.web.Component.Grid.gridHelper; |
|||
using Swift.web.Library; |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Data; |
|||
using System.Linq; |
|||
using System.Web; |
|||
using System.Web.UI; |
|||
using System.Web.UI.WebControls; |
|||
|
|||
namespace Swift.web.Remit.Administration.ReferralSetup |
|||
{ |
|||
public partial class ReferPointSetup : System.Web.UI.Page |
|||
{ |
|||
private const string ViewFunctionId = "52480000"; |
|||
private const string AddEditFunctionId = "52480010"; |
|||
private const string GridName = "grd_bldom"; |
|||
private readonly SwiftGrid grid = new SwiftGrid(); |
|||
private readonly RemittanceLibrary swiftLibrary = new RemittanceLibrary(); |
|||
protected void Page_Load(object sender, EventArgs e) |
|||
{ |
|||
//Authenticate();
|
|||
if (!IsPostBack) |
|||
{ |
|||
GetStatic.PrintMessage(Page); |
|||
} |
|||
LoadGrid(); |
|||
} |
|||
private void LoadGrid() |
|||
{ |
|||
grid.FilterList = new List<GridFilter> |
|||
{ |
|||
new GridFilter("PromotionType", "Reward Type", "LT"), |
|||
// new GridFilter("is_Active","Active","T")
|
|||
}; |
|||
|
|||
grid.ColumnList = new List<GridColumn> |
|||
{ |
|||
new GridColumn("RowId", "Id", "", "T"), |
|||
new GridColumn("PromotionType", "Reward Type", "", "T"), |
|||
new GridColumn("Points", "Reward Value", "", "T"), |
|||
new GridColumn("IsActive", "Is Active", "", "T") |
|||
}; |
|||
|
|||
bool allowAddEdit = swiftLibrary.HasRight(AddEditFunctionId); |
|||
grid.GridDataSource = SwiftGrid.GridDS.RemittanceDB; |
|||
grid.GridName = GridName; |
|||
grid.GridType = 1; |
|||
|
|||
grid.ShowAddButton = true; |
|||
grid.ShowFilterForm = true; |
|||
grid.ShowPagingBar = true; |
|||
grid.AddButtonTitleText = "Add New"; |
|||
grid.RowIdField = "PromotionType"; |
|||
grid.AddPage = "Manage.aspx"; |
|||
grid.InputPerRow = 5; |
|||
grid.AlwaysShowFilterForm = true; |
|||
grid.AllowEdit = true; |
|||
grid.AllowEdit = allowAddEdit; |
|||
grid.AllowDelete = false; |
|||
grid.CustomLinkVariables = "PromotionType"; |
|||
//grid.EditText = "<a href='Manage.aspx?promotiontype=@detailTitle'>" + "<img src='/images/edit.gif' border='0' alt='Edit' /></a>";
|
|||
grid.CustomLinkText = "<a href='Manage.aspx?Promotiontype=@PromotionType'>" + "<img src='/images/edit.gif' border='0' alt='Edit' /></a>"; |
|||
|
|||
//grid.AddPage = "manage.aspx?Id=" + (GetId() == 0 ? Id() : GetId()) + "";
|
|||
string sql = "EXEC proc_InsertRewardPoints @flag = 'GET'"; |
|||
//string sql = "EXEC proc_staticDataValue @flag = 's', @typeId = '8106'";
|
|||
DataTable gridData = new DataTable(); |
|||
|
|||
grid.SetComma(); |
|||
|
|||
rpt_grid.InnerHtml = grid.CreateGrid(sql); |
|||
} |
|||
private void Authenticate() |
|||
{ |
|||
swiftLibrary.CheckAuthentication(ViewFunctionId); |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,35 @@ |
|||
//------------------------------------------------------------------------------
|
|||
// <auto-generated>
|
|||
// This code was generated by a tool.
|
|||
//
|
|||
// Changes to this file may cause incorrect behavior and will be lost if
|
|||
// the code is regenerated.
|
|||
// </auto-generated>
|
|||
//------------------------------------------------------------------------------
|
|||
|
|||
namespace Swift.web.Remit.Administration.ReferralSetup |
|||
{ |
|||
|
|||
|
|||
public partial class ReferPointSetup |
|||
{ |
|||
|
|||
/// <summary>
|
|||
/// form1 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.HtmlForm form1; |
|||
|
|||
/// <summary>
|
|||
/// rpt_grid 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.HtmlGenericControl rpt_grid; |
|||
} |
|||
} |
@ -0,0 +1,254 @@ |
|||
<?xml version="1.0"?> |
|||
<Designations xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
|||
<DateGenerated>10/08/2023</DateGenerated> |
|||
<Designation> |
|||
<LastUpdated>18/12/2021</LastUpdated> |
|||
<DateDesignated>23/02/2001</DateDesignated> |
|||
<UniqueID>AFG0009</UniqueID> |
|||
<OFSIGroupID>7022</OFSIGroupID> |
|||
<UNReferenceNumber>TAi.005</UNReferenceNumber> |
|||
<Names> |
|||
<Name> |
|||
<Name1>Muhammad</Name1> |
|||
<Name2>Taher</Name2> |
|||
<Name6>Anwari</Name6> |
|||
<NameType>Primary Name</NameType> |
|||
</Name> |
|||
<Name> |
|||
<Name1>Mohammad</Name1> |
|||
<Name2>Taher</Name2> |
|||
<Name6>Anwari</Name6> |
|||
<NameType>Alias</NameType> |
|||
<AliasStrength>Good quality a.k.a</AliasStrength> |
|||
</Name> |
|||
<Name> |
|||
<Name1>Mohammad</Name1> |
|||
<Name2>Tahre</Name2> |
|||
<Name6>Anwari</Name6> |
|||
<NameType>Alias</NameType> |
|||
<AliasStrength>Good quality a.k.a</AliasStrength> |
|||
</Name> |
|||
<Name> |
|||
<Name1>Muhammad</Name1> |
|||
<Name2>Tahir</Name2> |
|||
<Name6>Anwari</Name6> |
|||
<NameType>Alias</NameType> |
|||
<AliasStrength>Good quality a.k.a</AliasStrength> |
|||
</Name> |
|||
<Name> |
|||
<Name6>Mudir</Name6> |
|||
<NameType>Alias</NameType> |
|||
<AliasStrength>Low quality a.k.a</AliasStrength> |
|||
</Name> |
|||
</Names> |
|||
<NonLatinNames> |
|||
<NonLatinName> |
|||
<NameNonLatinScript>محمد طاهر أنوري</NameNonLatinScript> |
|||
</NonLatinName> |
|||
</NonLatinNames> |
|||
<Titles> |
|||
<Title>Mullah</Title> |
|||
<Title>Haji</Title> |
|||
</Titles> |
|||
<RegimeName>The Afghanistan (Sanctions) (EU Exit) Regulations 2020</RegimeName> |
|||
<IndividualEntityShip>Individual</IndividualEntityShip> |
|||
<DesignationSource>UN</DesignationSource> |
|||
<SanctionsImposed>Asset freeze|Travel Ban</SanctionsImposed> |
|||
<SanctionsImposedIndicators> |
|||
<AssetFreeze>true</AssetFreeze> |
|||
<ArmsEmbargo>false</ArmsEmbargo> |
|||
<TargetedArmsEmbargo>false</TargetedArmsEmbargo> |
|||
<CharteringOfShips>false</CharteringOfShips> |
|||
<ClosureOfRepresentativeOffices>false</ClosureOfRepresentativeOffices> |
|||
<CrewServicingOfShipsAndAircraft>false</CrewServicingOfShipsAndAircraft> |
|||
<Deflag>false</Deflag> |
|||
<PreventionOfBusinessArrangements>false</PreventionOfBusinessArrangements> |
|||
<ProhibitionOfPortEntry>false</ProhibitionOfPortEntry> |
|||
<TravelBan>true</TravelBan> |
|||
<PreventionOfCharteringOfShips>false</PreventionOfCharteringOfShips> |
|||
<PreventionOfCharteringOfShipsAndAircraft>false</PreventionOfCharteringOfShipsAndAircraft> |
|||
<TechnicalAssistanceRelatedToAircraft>false</TechnicalAssistanceRelatedToAircraft> |
|||
<TrustServicesSanctions>false</TrustServicesSanctions> |
|||
</SanctionsImposedIndicators> |
|||
<OtherInformation>Belongs to Andar tribe. Review pursuant to Security Council resolution 1822 (2008) was concluded on 23 Jul. 2010. INTERPOL-UN Security Council Special Notice web link: https://www.interpol.int/en/How-we-work/Notices/View-UNNotices-Individuals click here</OtherInformation> |
|||
<UKStatementofReasons> |
|||
</UKStatementofReasons> |
|||
<IndividualDetails> |
|||
<Individual> |
|||
<DOBs> |
|||
<DOB>dd/mm/1961</DOB> |
|||
</DOBs> |
|||
<Nationalities> |
|||
<Nationality>Afghanistan</Nationality> |
|||
</Nationalities> |
|||
<Positions> |
|||
<Position>Director of Administrative Affairs under the Taliban regime</Position> |
|||
<Position>Minister of Finance under the Taliban regime</Position> |
|||
</Positions> |
|||
<BirthDetails> |
|||
<Location> |
|||
<TownOfBirth>Zurmat District, Paktia Province</TownOfBirth> |
|||
<CountryOfBirth>Afghanistan</CountryOfBirth> |
|||
</Location> |
|||
</BirthDetails> |
|||
</Individual> |
|||
</IndividualDetails> |
|||
</Designation> |
|||
<Designation> |
|||
<LastUpdated>18/12/2021</LastUpdated> |
|||
<DateDesignated>31/01/2001</DateDesignated> |
|||
<UniqueID>AFG0010</UniqueID> |
|||
<OFSIGroupID>7167</OFSIGroupID> |
|||
<UNReferenceNumber>TAi.006</UNReferenceNumber> |
|||
<Names> |
|||
<Name> |
|||
<Name1>SAYYED MOHAMMED</Name1> |
|||
<Name6>HAQQANI</Name6> |
|||
<NameType>Primary Name</NameType> |
|||
</Name> |
|||
<Name> |
|||
<Name1>Sayyed</Name1> |
|||
<Name2>Mohammad</Name2> |
|||
<Name6>HAQQANI</Name6> |
|||
<NameType>Alias</NameType> |
|||
<AliasStrength>Good quality a.k.a</AliasStrength> |
|||
</Name> |
|||
</Names> |
|||
<NonLatinNames> |
|||
<NonLatinName> |
|||
<NameNonLatinScript>سيد محمد حقانی</NameNonLatinScript> |
|||
</NonLatinName> |
|||
</NonLatinNames> |
|||
<Titles> |
|||
<Title>Mullah</Title> |
|||
</Titles> |
|||
<RegimeName>The Afghanistan (Sanctions) (EU Exit) Regulations 2020</RegimeName> |
|||
<IndividualEntityShip>Individual</IndividualEntityShip> |
|||
<DesignationSource>UN</DesignationSource> |
|||
<SanctionsImposed>Asset freeze|Travel Ban</SanctionsImposed> |
|||
<SanctionsImposedIndicators> |
|||
<AssetFreeze>true</AssetFreeze> |
|||
<ArmsEmbargo>false</ArmsEmbargo> |
|||
<TargetedArmsEmbargo>false</TargetedArmsEmbargo> |
|||
<CharteringOfShips>false</CharteringOfShips> |
|||
<ClosureOfRepresentativeOffices>false</ClosureOfRepresentativeOffices> |
|||
<CrewServicingOfShipsAndAircraft>false</CrewServicingOfShipsAndAircraft> |
|||
<Deflag>false</Deflag> |
|||
<PreventionOfBusinessArrangements>false</PreventionOfBusinessArrangements> |
|||
<ProhibitionOfPortEntry>false</ProhibitionOfPortEntry> |
|||
<TravelBan>true</TravelBan> |
|||
<PreventionOfCharteringOfShips>false</PreventionOfCharteringOfShips> |
|||
<PreventionOfCharteringOfShipsAndAircraft>false</PreventionOfCharteringOfShipsAndAircraft> |
|||
<TechnicalAssistanceRelatedToAircraft>false</TechnicalAssistanceRelatedToAircraft> |
|||
<TrustServicesSanctions>false</TrustServicesSanctions> |
|||
</SanctionsImposedIndicators> |
|||
<OtherInformation>Graduate of the Haqqaniya madrasa in Akora Khattak, Pakistan. Believed to have had close relations with Taliban Leader Mullah Mohammed Omar (TAi.004). Believed to be in Afghanistan/Pakistan border area. Member of Taliban Supreme Council as at June 2010. Belongs to Barakzai tribe. Review pursuant to Security Council resolution 1822 (2008) was concluded on 27 Jul. 2010. Photo available for inclusion in the INTERPOL-UN Security Council Special Notice. Reportedly deceased as of January 2016. INTERPOL-UN Security Council Special Notice web link: https://www.interpol.int/en/How-we-work/Notices/View-UN-Notices-Individuals click here</OtherInformation> |
|||
<UKStatementofReasons> |
|||
</UKStatementofReasons> |
|||
<IndividualDetails> |
|||
<Individual> |
|||
<DOBs> |
|||
<DOB>dd/mm/1965</DOB> |
|||
</DOBs> |
|||
<Nationalities> |
|||
<Nationality>Afghanistan</Nationality> |
|||
</Nationalities> |
|||
<Positions> |
|||
<Position>Director of Administrative Affairs under the Taliban regime</Position> |
|||
<Position>Head of Information and Culture in Kandahar Province under the Taliban regime</Position> |
|||
</Positions> |
|||
<BirthDetails> |
|||
<Location> |
|||
<TownOfBirth>Chaharbagh village, Arghandab District, Kandahar Province</TownOfBirth> |
|||
<CountryOfBirth>Afghanistan</CountryOfBirth> |
|||
</Location> |
|||
</BirthDetails> |
|||
</Individual> |
|||
</IndividualDetails> |
|||
</Designation> |
|||
<Designation> |
|||
<LastUpdated>18/12/2021</LastUpdated> |
|||
<DateDesignated>31/01/2001</DateDesignated> |
|||
<UniqueID>AFG0011</UniqueID> |
|||
<OFSIGroupID>7270</OFSIGroupID> |
|||
<UNReferenceNumber>TAi.007</UNReferenceNumber> |
|||
<Names> |
|||
<Name> |
|||
<Name1>ABDUL</Name1> |
|||
<Name2>LATIF</Name2> |
|||
<Name6>MANSUR</Name6> |
|||
<NameType>Primary Name</NameType> |
|||
</Name> |
|||
<Name> |
|||
<Name1>Abdul</Name1> |
|||
<Name2>Latif</Name2> |
|||
<Name6>MANSOOR</Name6> |
|||
<NameType>Alias</NameType> |
|||
<AliasStrength>Good quality a.k.a</AliasStrength> |
|||
</Name> |
|||
<Name> |
|||
<Name1>Wali</Name1> |
|||
<Name6>MOHAMMAD</Name6> |
|||
<NameType>Alias</NameType> |
|||
<AliasStrength>Good quality a.k.a</AliasStrength> |
|||
</Name> |
|||
</Names> |
|||
<NonLatinNames> |
|||
<NonLatinName> |
|||
<NameNonLatinScript>عبد اللطيف منصور</NameNonLatinScript> |
|||
</NonLatinName> |
|||
</NonLatinNames> |
|||
<Titles> |
|||
<Title>Maulavi</Title> |
|||
</Titles> |
|||
<RegimeName>The Afghanistan (Sanctions) (EU Exit) Regulations 2020</RegimeName> |
|||
<IndividualEntityShip>Individual</IndividualEntityShip> |
|||
<DesignationSource>UN</DesignationSource> |
|||
<SanctionsImposed>Asset freeze|Travel Ban</SanctionsImposed> |
|||
<SanctionsImposedIndicators> |
|||
<AssetFreeze>true</AssetFreeze> |
|||
<ArmsEmbargo>false</ArmsEmbargo> |
|||
<TargetedArmsEmbargo>false</TargetedArmsEmbargo> |
|||
<CharteringOfShips>false</CharteringOfShips> |
|||
<ClosureOfRepresentativeOffices>false</ClosureOfRepresentativeOffices> |
|||
<CrewServicingOfShipsAndAircraft>false</CrewServicingOfShipsAndAircraft> |
|||
<Deflag>false</Deflag> |
|||
<PreventionOfBusinessArrangements>false</PreventionOfBusinessArrangements> |
|||
<ProhibitionOfPortEntry>false</ProhibitionOfPortEntry> |
|||
<TravelBan>true</TravelBan> |
|||
<PreventionOfCharteringOfShips>false</PreventionOfCharteringOfShips> |
|||
<PreventionOfCharteringOfShipsAndAircraft>false</PreventionOfCharteringOfShipsAndAircraft> |
|||
<TechnicalAssistanceRelatedToAircraft>false</TechnicalAssistanceRelatedToAircraft> |
|||
<TrustServicesSanctions>false</TrustServicesSanctions> |
|||
</SanctionsImposedIndicators> |
|||
<OtherInformation>Taliban Shadow Governor for Logar Province as of late 2012. Believed to be in Afghanistan/Pakistan border area. Belongs to Sahak tribe (Ghilzai). Review pursuant to Security Council resolution 1822 (2008) was concluded on 27 Jul. 2010. INTERPOL-UN Security Council Special Notice web link: https://www.interpol.int/en/How-we-work/Notices/View-UN-Notices-Individuals click here</OtherInformation> |
|||
<UKStatementofReasons> |
|||
</UKStatementofReasons> |
|||
<IndividualDetails> |
|||
<Individual> |
|||
<DOBs> |
|||
<DOB>dd/mm/1968</DOB> |
|||
</DOBs> |
|||
<Nationalities> |
|||
<Nationality>Afghanistan</Nationality> |
|||
</Nationalities> |
|||
<Positions> |
|||
<Position>Minister of Agriculture under the Taliban regime</Position> |
|||
</Positions> |
|||
<BirthDetails> |
|||
<Location> |
|||
<TownOfBirth>Zurmat District, Paktia Province</TownOfBirth> |
|||
<CountryOfBirth>Afghanistan</CountryOfBirth> |
|||
</Location> |
|||
<Location> |
|||
<TownOfBirth>Garda Saray District, Paktia Province</TownOfBirth> |
|||
<CountryOfBirth>Afghanistan</CountryOfBirth> |
|||
</Location> |
|||
<Location> |
|||
<CountryOfBirth>Afghanistan</CountryOfBirth> |
|||
</Location> |
|||
</BirthDetails> |
|||
</Individual> |
|||
</IndividualDetails> |
|||
</Designation> |
|||
</Designations> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue