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.

269 lines
13 KiB

  1. <%@ Page Title="" Language="C#" MasterPageFile="~/AgentNew/AgentMain.Master" AutoEventWireup="true" CodeBehind="Dashboard.aspx.cs" Inherits="Swift.web.AgentNew.Dashboard" %>
  2. <asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
  3. <style type="text/css">
  4. .holder {
  5. /*background-color: #ccc;*/
  6. /*width: 300px;*/
  7. height: 250px;
  8. overflow: hidden;
  9. padding: 10px;
  10. /*font-family: Helvetica;*/
  11. }
  12. .holder .mask {
  13. position: relative;
  14. left: 0px;
  15. /*top: 10px;*/
  16. /*width: 300px;*/
  17. height: 240px;
  18. overflow: hidden;
  19. }
  20. .holder ul {
  21. list-style: none;
  22. margin: 0;
  23. padding: 0;
  24. position: relative;
  25. }
  26. .holder ul li {
  27. padding: 10px 0px;
  28. }
  29. .holder ul li a {
  30. /*color: darkred;*/
  31. text-decoration: none;
  32. }
  33. </style>
  34. <script type="text/javascript">
  35. function GetTxnDetail(tranType) {
  36. var url;
  37. switch (tranType) {
  38. case "iSend":
  39. url = "../AgentPanel/Reports.aspx?reportName=40111600&sBranch=<%=Swift.web.Library.GetStatic.GetBranch() %>&orderBy=dot&dateField=confirmDate&from=<%=DateTime.Now.ToString("yyyy-MM-dd")%>&to=<%=DateTime.Now.ToString("yyyy-MM-dd")%>&rptType=s&displayTranNo=N";
  40. break;
  41. case "iCancel":
  42. url = "../AgentPanel/Reports.aspx?reportName=40111600&sBranch=<%=Swift.web.Library.GetStatic.GetBranch() %>&orderBy=dot&fromDate=<%=DateTime.Now.ToString("d")%>&toDate=<%=DateTime.Now.ToString("d")%>&dateField=paidDate&from=<%=DateTime.Now.ToString("yyyy-MM-dd")%>&to=<%=DateTime.Now.ToString("yyyy-MM-dd")%>&transType=Cancel&rptType=s&displayTranNo=N";
  43. break;
  44. case "iPaid":
  45. url = "../AgentPanel/Reports.aspx?reportName=40111600&pCountry=NEPAL&pAgent=&sBranch=<%=Swift.web.Library.GetStatic.GetBranch() %>&dateField=paidDate&from=<%=DateTime.Now.ToString("yyyy-MM-dd")%>&to=<%=DateTime.Now.ToString("yyyy-MM-dd")%>";
  46. break;
  47. case "iUnpaid":
  48. url = "";
  49. break;
  50. }
  51. OpenInNewWindow(url);
  52. }
  53. jQuery.fn.liScroll = function (settings) {
  54. settings = jQuery.extend({
  55. travelocity: 0.03
  56. }, settings);
  57. return this.each(function () {
  58. var $strip = jQuery(this);
  59. $strip.addClass("newsticker")
  60. var stripHeight = 1;
  61. $strip.find("li").each(function (i) {
  62. stripHeight += jQuery(this, i).outerHeight(true); // thanks to Michael Haszprunar and Fabien Volpi
  63. });
  64. var $mask = $strip.wrap("<div class='mask'></div>");
  65. var $tickercontainer = $strip.parent().wrap("<div class='tickercontainer'></div>");
  66. var containerHeight = $strip.parent().parent().height(); //a.k.a. 'mask' width
  67. $strip.height(stripHeight);
  68. var totalTravel = stripHeight;
  69. var defTiming = totalTravel / settings.travelocity; // thanks to Scott Waye
  70. function scrollnews(spazio, tempo) {
  71. $strip.animate({ top: '-=' + spazio }, tempo, "linear", function () { $strip.css("top", containerHeight); scrollnews(totalTravel, defTiming); });
  72. }
  73. scrollnews(totalTravel, defTiming);
  74. $strip.hover(function () {
  75. jQuery(this).stop();
  76. },
  77. function () {
  78. var offset = jQuery(this).offset();
  79. var residualSpace = offset.top + stripHeight;
  80. var residualTime = residualSpace / settings.travelocity;
  81. scrollnews(residualSpace, residualTime);
  82. });
  83. });
  84. };
  85. $(function () {
  86. $("ul#messages").liScroll();
  87. });
  88. </script>
  89. </asp:Content>
  90. <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
  91. <div class="page-wrapper">
  92. <div class="row">
  93. <div class="col-sm-6 col-md-3 margin-b-30" id="sendingAgent" runat="server" visible="false">
  94. <div class="tile blue">
  95. <div class="tile-title clearfix">
  96. Today's Send
  97. </div>
  98. <div class="tile-body clearfix">
  99. <i class="fa fa-credit-card"></i>
  100. <h4 class="pull-right"><a href="#" onclick="GetTxnDetail('iSend')" style="color: white;">
  101. <asp:Label runat="server" ID="iSend"></asp:Label></a></h4>
  102. </div>
  103. <div class="tile-footer">
  104. <a href="#" onclick="GetTxnDetail('iSend')">View Details...</a>
  105. </div>
  106. </div>
  107. </div>
  108. <div class="col-sm-6 col-md-3 margin-b-30" id="sendingAgent1" runat="server" visible="false">
  109. <div class="tile purple">
  110. <div class="tile-title clearfix">
  111. Today's Cancel
  112. </div>
  113. <div class="tile-body clearfix">
  114. <i class="fa fa-credit-card"></i>
  115. <h4 class="pull-right"><a href="#" style="color: white;" onclick="GetTxnDetail('iCancel')">
  116. <asp:Label runat="server" ID="iCancel"></asp:Label></a></h4>
  117. </div>
  118. <div class="tile-footer">
  119. <a href="#" onclick="GetTxnDetail('iCancel')">View Details...</a>
  120. </div>
  121. </div>
  122. </div>
  123. <div class="col-sm-6 col-md-3 margin-b-30" id="payAgent" runat="server" visible="false">
  124. <div class="tile red">
  125. <div class="tile-title clearfix">
  126. Today's Paid
  127. </div>
  128. <div class="tile-body clearfix">
  129. <i class="fa fa-credit-card"></i>
  130. <h4 class="pull-right"><a href="#" onclick="GetTxnDetail('iPaid')" style="color: white;">
  131. <asp:Label runat="server" ID="iPaid"></asp:Label></a></h4>
  132. </div>
  133. <div class="tile-footer">
  134. <a href="#" onclick="GetTxnDetail('iPaid')">View Details...</a>
  135. </div>
  136. </div>
  137. </div>
  138. <div class="col-sm-6 col-md-3 margin-b-30" id="payAgent1" runat="server" visible="false">
  139. <div class="tile green">
  140. <div class="tile-title clearfix">
  141. Today's Unpaid
  142. </div>
  143. <div class="tile-body clearfix">
  144. <i class="fa fa-credit-card"></i>
  145. <h4 class="pull-right"><a href="#" onclick="GetTxnDetail('iUnpaid')" style="color: white;">
  146. <asp:Label runat="server" ID="iUnpaid"></asp:Label></a></h4>
  147. </div>
  148. <div class="tile-footer">
  149. <a href="#" onclick="GetTxnDetail('iUnpaid')">View Details...</a>
  150. </div>
  151. </div>
  152. </div>
  153. </div>
  154. <div class="row">
  155. <div class="col-md-6">
  156. <div class="panel panel-default recent-activites">
  157. <!-- Start .panel -->
  158. <div class="panel-heading">
  159. <h4 class="panel-title">Notification And Messages</h4>
  160. <div class="panel-actions">
  161. </div>
  162. </div>
  163. <div class="panel-body pad-0 holder">
  164. <ul class="list-group" id="messages" runat="server">
  165. <li class="list-group-item">
  166. <a href="#">Remittance Rules 1 from NRB</a>
  167. <small><i class="fa fa-clock-o"></i>13/08/2015 04:51:21</small>
  168. </li>
  169. <li class="list-group-item">
  170. <a href="#">Remittance Rules 1 from NRB</a>
  171. <small><i class="fa fa-clock-o"></i>13/08/2015 04:51:21</small>
  172. </li>
  173. <li class="list-group-item">
  174. <a href="#">Compliance Rules 1 from NRB</a>
  175. <small><i class="fa fa-clock-o"></i>13/08/2015 04:51:21</small>
  176. </li>
  177. <li class="list-group-item">
  178. <a href="#">Deposit Rules 1 from NRB</a>
  179. <small><i class="fa fa-clock-o"></i>13/08/2015 04:51:21</small>
  180. </li>
  181. </ul>
  182. </div>
  183. </div>
  184. </div>
  185. </div>
  186. <%-- <div class="row">
  187. <div class="col-md-12">
  188. <div class="panel panel-default recent-activites">
  189. <div class="panel-heading">
  190. <h3 class="panel-title">Notification List
  191. </h3>
  192. <div class="panel-actions">
  193. <a href="#" class="panel-action panel-action-toggle" data-panel-toggle></a>
  194. </div>
  195. </div>
  196. <div class="panel-body">
  197. <div class="col-md-4">
  198. <fieldset>
  199. <legend>Notification Panel</legend>
  200. <table class="table table-responsive table-bordered table-striped">
  201. <thead>
  202. <tr>
  203. <th>Sno.</th>
  204. <th>Message</th>
  205. <th>Date</th>
  206. </tr>
  207. </thead>
  208. <tbody>
  209. <div id="divMsg" runat="server"></div>
  210. </tbody>
  211. </table>
  212. </fieldset>
  213. </div>
  214. <div class="col-md-8">
  215. <fieldset>
  216. <legend>Full Notification Notification Panel</legend>
  217. <div id="viewMessage">Area to show current message</div>
  218. </fieldset>
  219. </div>
  220. </div>
  221. </div>
  222. </div>
  223. </div>--%>
  224. </div>
  225. <div class="modal fade " id="myModal" role="dialog" style="top: 150px;">
  226. <div class="modal-dialog modal-lg">
  227. <div class="modal-content">
  228. <div class="modal-header">
  229. <button type="button" class="close" data-dismiss="modal">&times;</button>
  230. <h4 class="modal-title">
  231. <label id="createdBy" style="text-transform: uppercase;"></label>
  232. &nbsp;&nbsp;<small style="font-size: 10px;"><i class="fa fa-clock-o"></i>&nbsp;<label id="createdDate"></small></h4>
  233. </div>
  234. <div class="modal-body">
  235. <label id="message"></label>
  236. </div>
  237. </div>
  238. </div>
  239. </div>
  240. <script type="text/javascript">
  241. function ShowMessage(msgId) {
  242. $.ajax({
  243. type: "POST",
  244. url: "/AgentMain.aspx",
  245. data: { MethodName: "Messages", MessageId: msgId },
  246. success: function (result) {
  247. PopulateData(result);
  248. }
  249. });
  250. };
  251. function PopulateData(data) {
  252. $('#myModal').modal('show');
  253. var obj = jQuery.parseJSON(data);
  254. $('#message').html(obj.Message);
  255. $('#createdBy').html(obj.CreatedBy);
  256. $('#createdDate').html(obj.CreatedDate);
  257. //$('#questionDesc').html(obj.Description);
  258. //$('#forumTitle').html(obj.ForumTitle);
  259. };
  260. </script>
  261. </asp:Content>