You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

381 lines
14 KiB

  1. <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RedeemRequest.aspx.cs" Inherits="Swift.web.AgentPanel.Bonus_Management.RedeemRequest" %>
  2. <%@ Import Namespace="Swift.web.Library" %>
  3. <!DOCTYPE html>
  4. <html xmlns="http://www.w3.org/1999/xhtml">
  5. <head runat="server">
  6. <title></title>
  7. <link href="../../ui/css/style.css" rel="stylesheet" />
  8. <link href="../../ui/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
  9. <link href="../../ui/font-awesome/css/font-awesome.css" rel="stylesheet" />
  10. <script src="../../js/jQuery/jquery.min.js"></script>
  11. <script src="../../js/Swift_grid.js"></script>
  12. <script src="../../js/functions.js"></script>
  13. <script type="text/javascript">
  14. var urlRoot = "<%=GetStatic.GetUrlRoot()%>";
  15. $(document).ready(function () {
  16. <%--$("#<%=userName.ClientID %>").bind('keypress', function (e) {
  17. e = e || window.event;
  18. var charCode = (typeof e.which == "number") ? e.which : e.keyCode;
  19. if ((charCode != 13) && (/[^\d]/.test(String.fromCharCode(charCode)))) {
  20. return false;
  21. }
  22. });--%>
  23. });
  24. function ShowProgressBar() {
  25. if ($.trim($("#<%=userName.ClientID %>").val()) == "")
  26. return false;
  27. Process();
  28. return true;
  29. }
  30. function ShowBonusPointInNewWindow() {
  31. var customerId = GetValue("<%=hdnCustomerId.ClientID%>");
  32. //if (custUserName == "") {
  33. // alert("Please enter Membership Id!");
  34. // return false;
  35. //}
  36. var url = "List.aspx?customerId=" + customerId;
  37. PopUpWindow(url, "dialogHeight:500px;dialogWidth:900px;dialogLeft:200;dialogTop:100;center:yes;");
  38. }
  39. function Close() {
  40. var newdiv = document.getElementById("OTPDiv");
  41. newdiv.style.display = "none";
  42. }
  43. function ShowSenderCustomerNewWindow() {
  44. var customerId = GetValue("<%=hdnCustomerId.ClientID %>");
  45. //if (customerCardNumber == "") {
  46. // alert("Please enter customer user name!");
  47. // return false;
  48. //}
  49. var url = urlRoot + "/Remit/Administration/CustomerSetup/Display.aspx?customerId=" + customerId + "";
  50. OpenDialog(url, 650, 620);
  51. }
  52. </script>
  53. <style type="text/css">
  54. #productIno {
  55. position: absolute;
  56. background: #fff;
  57. padding: 10px;
  58. border: 1px solid #ccc;
  59. z-index: 100;
  60. }
  61. #productIno table .TBLData TH {
  62. font-size: 12px;
  63. font-weight: normal;
  64. }
  65. .style1 {
  66. width: 154px;
  67. }
  68. </style>
  69. </head>
  70. <body>
  71. <form id="form1" runat="server">
  72. <div class="page-wrapper">
  73. <div class="row">
  74. <div class="col-sm-12">
  75. <div class="page-title">
  76. <h1></h1>
  77. <ol class="breadcrumb">
  78. <li><a href="#" class="selected">Bonus Management </a></li>
  79. <li><a href="RedeemRequestList.aspx">Bonus Redeem Request </a></li>
  80. </ol>
  81. </div>
  82. </div>
  83. </div>
  84. <div class="listtabs" style="margin-left: 8px;">
  85. <ul class="nav nav-tabs" role="tablist">
  86. <li role="presentation" class="active"><a href="#" aria-controls="home" role="tab" data-toggle="tab">Redeem Request </a></li>
  87. <li><a href="RedeemRequestList.aspx">Redeem History</a></li>
  88. </ul>
  89. </div>
  90. <div class="row">
  91. <div class="col-md-12">
  92. <div class="panel panel-default ">
  93. <div class="panel-heading">
  94. <h4 class="panel-title">Redeem Request List</h4>
  95. <div class="panel-actions">
  96. <a href="#" class="panel-action panel-action-toggle" data-panel-toggle></a>
  97. </div>
  98. </div>
  99. <div class="panel-body">
  100. <div style="clear: both;">
  101. <table border="0" cellspacing="0" cellpadding="0" class="table-condensed" style="width: 750px; padding: 0em;">
  102. <tr>
  103. <td>
  104. <div class="form-group form-inline col-md-9">
  105. <b>Customer User Name (Email)</b><br />
  106. <asp:TextBox runat="server" ID="userName" Width="250px" CssClass="form-control"></asp:TextBox>
  107. <asp:Button runat="server" ID="btnSearchCustomer" Text="Search"
  108. OnClientClick="return ShowProgressBar();" OnClick="btnSearchCustomer_Click" CssClass="btn btn-primary" />
  109. <span style="cursor: pointer;">
  110. <asp:Image runat="server" ID="infoImg"
  111. AlternateText="info" Width="16px" Style="display: none;" /></span>
  112. </div>
  113. </td>
  114. </tr>
  115. <tr>
  116. <td colspan="2">
  117. <br />
  118. <table class="DbResult" runat="server" id="TBLData" visible="false" align="left" style="width: 750px; padding: 0em; margin-right: 50px">
  119. <tr>
  120. <th colspan="5" style="text-align: left; font-size: small">Customer Detail
  121. </th>
  122. </tr>
  123. <tr>
  124. <td nowrap="nowrap">Full Name:
  125. </td>
  126. <td nowrap="nowrap">
  127. <asp:Label runat="server" ID="fullName" Style="font-weight: bold; color: Red;"></asp:Label>
  128. </td>
  129. <td nowrap="nowrap">DOB:
  130. </td>
  131. <td nowrap="nowrap">
  132. <asp:Label runat="server" ID="dob" Style="font-weight: bold; color: Red;"></asp:Label>
  133. </td>
  134. </tr>
  135. <tr>
  136. <td nowrap="nowrap">Gender:
  137. </td>
  138. <td nowrap="nowrap">
  139. <asp:Label runat="server" ID="gender" Style="font-weight: bold;"></asp:Label>
  140. </td>
  141. <td nowrap="nowrap">Native Country:
  142. </td>
  143. <td nowrap="nowrap">
  144. <asp:Label runat="server" ID="nativeCountry" Style="font-weight: bold;"></asp:Label>
  145. </td>
  146. </tr>
  147. <tr>
  148. <td nowrap="nowrap">ID Type:
  149. </td>
  150. <td nowrap="nowrap">
  151. <asp:Label runat="server" ID="idType" Style="font-weight: bold; color: Red;"></asp:Label>
  152. </td>
  153. <td nowrap="nowrap">ID Number:
  154. </td>
  155. <td nowrap="nowrap">
  156. <asp:Label runat="server" ID="idNumber" Style="font-weight: bold; color: Red;"></asp:Label>
  157. </td>
  158. </tr>
  159. <tr>
  160. <td nowrap="nowrap">Country:
  161. </td>
  162. <td nowrap="nowrap">
  163. <asp:Label runat="server" ID="country" Style="font-weight: bold;"></asp:Label>
  164. </td>
  165. <td nowrap="nowrap">State:
  166. </td>
  167. <td nowrap="nowrap">
  168. <asp:Label runat="server" ID="state" Style="font-weight: bold;"></asp:Label>
  169. </td>
  170. </tr>
  171. <tr>
  172. <td nowrap="nowrap">City:
  173. </td>
  174. <td nowrap="nowrap">
  175. <asp:Label runat="server" ID="city" Style="font-weight: bold;"></asp:Label>
  176. </td>
  177. <td nowrap="nowrap">Address:
  178. </td>
  179. <td width="200px">
  180. <asp:Label runat="server" ID="address" Style="font-weight: bold;"></asp:Label>
  181. </td>
  182. </tr>
  183. <tr>
  184. <td nowrap="nowrap">Mobile No:
  185. </td>
  186. <td nowrap="nowrap">
  187. <asp:Label runat="server" ID="mobileNo" Style="font-weight: bold;"></asp:Label>
  188. </td>
  189. <td nowrap="nowrap">E-mail:
  190. </td>
  191. <td nowrap="nowrap">
  192. <asp:Label runat="server" ID="email" Style="font-weight: bold;"></asp:Label>
  193. </td>
  194. </tr>
  195. <tr>
  196. <td>Member Id Issued Date:
  197. </td>
  198. <td nowrap="nowrap">
  199. <asp:Label runat="server" ID="memberIDissuedDate" Style="font-weight: bold;"></asp:Label>
  200. </td>
  201. <td nowrap="nowrap">Total Bonus Point:
  202. </td>
  203. <td nowrap="nowrap">
  204. <asp:Label runat="server" ID="bonusPoint" Style="font-weight: bold; color: Red;"></asp:Label>
  205. </td>
  206. </tr>
  207. <tr>
  208. <td colspan="5">
  209. <hr />
  210. </td>
  211. </tr>
  212. <tr>
  213. <td nowrap="nowrap">Redeemable available Products
  214. </td>
  215. <td nowrap="nowrap" class="text-amount" style="text-align: center;">
  216. <asp:Label runat="server" ID="redeemAvailableProducts" Style="font-weight: bold;"></asp:Label>
  217. </td>
  218. <td colspan="3">
  219. <%--<asp:Button runat="server" ID="btnReddem" Text="Redeem" Enabled="False"
  220. OnClientClick="return DoSend();" OnClick="btnReddem_Click" CssClass="btn btn-primary" />--%>
  221. <asp:Button runat="server" ID="btnFinalRedeem" Text="Redeem"
  222. OnClick="btnFinalRedeem_Click"
  223. OnClientClick="return confirm('Are you sure want to proceed?')" CssClass="btn btn-primary" />
  224. <asp:Button runat="server" ID="btnTxnHistory" OnClientClick="return ShowBonusPointInNewWindow();" Text="TXN History" CssClass="btn btn-primary" />
  225. <%--<input type="button" name="ViewProfile" id="btnViewProfile" value="View Profile" onclick="ShowSenderCustomerNewWindow()" class="btn btn-primary" />--%>
  226. </td>
  227. </tr>
  228. <%--<tr>
  229. <td colspan="2">&nbsp;</td>
  230. <td>
  231. <asp:LinkButton ID="hlRedeem" Enabled="False" runat="server" OnClick="hlRedeem_Click">Already have OTP?</asp:LinkButton>
  232. </td>
  233. </tr>--%>
  234. <tr>
  235. <td>
  236. <div id="DivLoad" style="height: 20px; width: 220px; background-color: #333333; display: none; float: left">
  237. <img src="../../../../images/progressBar.gif" border="0" alt="Loading..." />
  238. </div>
  239. </td>
  240. <td colspan="2">
  241. <asp:Label runat="server" ID="pendingStatus" Style="font-weight: bold; color: Green;"></asp:Label>
  242. </td>
  243. </tr>
  244. <tr>
  245. <td colspan="2">
  246. <div runat="server" id="productList">
  247. </div>
  248. </td>
  249. </tr>
  250. <tr>
  251. <td colspan="3">
  252. <asp:HiddenField runat="server" ID="hdnPrizeId" />
  253. <asp:HiddenField runat="server" ID="hdnAgentId" />
  254. <asp:HiddenField runat="server" ID="hdnProductBonusPoint" />
  255. <asp:HiddenField runat="server" ID="hdnGiftItem" />
  256. </td>
  257. </tr>
  258. </table>
  259. </td>
  260. </tr>
  261. </table>
  262. </div>
  263. <div id="productIno" runat="server" style="display: none;"></div>
  264. <asp:HiddenField ID="hdnCustomerId" runat="server" />
  265. <asp:HiddenField ID="hdnRedeemId" runat="server" />
  266. <%--<asp:TextBox ID="txtpin" runat="server"
  267. TextMode="SingleLine" Width="215px"></asp:TextBox>--%>
  268. <%--<asp:Button runat="server" ID="btnFinalRedeem" Text="Redeem"
  269. OnClick="btnFinalRedeem_Click"
  270. OnClientClick="return confirm('Are you sure want to proceed?')" Height="21px" CssClass="btn btn-primary" />--%>
  271. </div>
  272. <%--<div id="OTPDiv" runat="server" visible="true" style="width: 320px; z-index: 999; position: absolute; top: 250px; right: 500px; border: 1px solid #999; background: white; padding-bottom: 10px;">
  273. <%--<div style="font-family: verdana; background: Grey; color: #fff; padding: 5px;">
  274. <b>Confirm Redeem:<u><span id="spnICN" style="background-color: red;"></u></span></b><span title="Close" style="margin-right: 1px; position: absolute; top: 0; right: 0; float: right; padding: 3px; border: 1px solid #fff; cursor: pointer; color: White; background-color: Red; font-weight: 900"
  275. onclick="Close();">X </span>
  276. </div>--%>
  277. <%--<div style="padding: 5px;">
  278. <table border="1" cellpadding="3" cellspacing="2" style="width: 100%; font-size: 11px; font-weight: bold">
  279. <tr>
  280. <td class="style1">Customer ID:
  281. </td>
  282. <td>
  283. <asp:Label ID="oMemebershipId" runat="server" Text=""></asp:Label>
  284. </td>
  285. </tr>
  286. <tr>
  287. <td class="style1">Total Bonus Point:
  288. </td>
  289. <td>
  290. <asp:Label ID="oTotalBonus" runat="server" Text=""></asp:Label>
  291. </td>
  292. </tr>
  293. <tr>
  294. <td class="style1">Redeemed Bonus Point:
  295. </td>
  296. <td>
  297. <asp:Label ID="oRedeemed" runat="server" Text=""></asp:Label>
  298. </td>
  299. </tr>
  300. <tr>
  301. <td class="style1">Gift Item:
  302. </td>
  303. <td>
  304. <asp:Label ID="ogift" runat="server" Text=""></asp:Label>
  305. </td>
  306. </tr>
  307. </table>
  308. <br />
  309. <center>
  310. <span style="padding: 5px; color:black;">नम्बर (OTP) एसएमएस मार्फत सेवाग्राहीको मोबाइल नम्बरमा पठाईसकिएको छ | कृपया सेवाग्राहीद्वारा प्राप्त नम्बर इन्ट्री गर्नुहोस् |</span>
  311. </center>
  312. <br />
  313. &nbsp; <span style="font-weight: 600;">OTP Code:</span>
  314. <br />
  315. &nbsp;
  316. </div>--%>
  317. <%--</div>--%>
  318. <asp:HiddenField ID="hdnPin" runat="server" />
  319. <asp:HiddenField ID="hdnId" runat="server" />
  320. <asp:HiddenField ID="hdnMessage" runat="server" />
  321. </div>
  322. </div>
  323. </div>
  324. </div>
  325. </form>
  326. <script type="text/javascript">
  327. <%--function DoSend() {
  328. var resStat = confirm("Are you sure want to redeem request?");
  329. if (resStat == true) {
  330. var pin = generateOTP();
  331. $("#DivLoad").show();
  332. SetValueById("<%=hdnPin.ClientID %>", pin);
  333. GetElement("<%=btnReddem.ClientID %>").click();
  334. return true;
  335. }
  336. return false;
  337. }
  338. function generateOTP() {
  339. var pin = Math.floor(100000 + Math.random() * 900000)
  340. pin = pin.toString().substring(0, 4);
  341. pin = parseInt(pin);
  342. return pin;
  343. }--%>
  344. </script>
  345. </body>
  346. </html>