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
22 KiB

  1. <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ViewChanges.aspx.cs" Inherits="Swift.web.ViewChanges" %>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
  4. <html xmlns="http://www.w3.org/1999/xhtml">
  5. <head id="Head1" runat="server">
  6. <link href="ui/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
  7. <link href="ui/font-awesome/css/font-awesome.min.css" rel="stylesheet" />
  8. <link href="css/swift_component.css" rel="stylesheet" type="text/css" />
  9. <script src="js/functions.js" type="text/javascript"></script>
  10. <script src="js/Swift_grid.js" type="text/javascript"></script>
  11. <script language="javascript" type="text/javascript">
  12. document.onkeypress = function (e) {
  13. var e = window.event || e;
  14. if (e.keyCode == 27)
  15. window.close();
  16. }
  17. var isChrome = navigator.userAgent.toLowerCase().indexOf('chrome') > -1;
  18. function CallBack(mes) {
  19. var resultList = ParseMessageToArray(mes);
  20. alert(resultList[1]);
  21. if (resultList[0] != 0) {
  22. return;
  23. }
  24. window.returnValue = resultList[0];
  25. if (isChrome) {
  26. window.opener.ShowMessageToParent(window.returnValue);
  27. }
  28. window.close();
  29. }
  30. function ViewChangesUD() {
  31. document.getElementById("viewUD").className = "selected";
  32. document.getElementById("viewUR").className = "none";
  33. document.getElementById("viewUF").className = "none";
  34. document.getElementById("rpt_grid").style.display = "block";
  35. document.getElementById("rpt_gridUR").style.display = "none";
  36. document.getElementById("rpt_gridUF").style.display = "none";
  37. document.getElementById("spanUD").style.display = "block";
  38. document.getElementById("spanUR").style.display = "none";
  39. document.getElementById("spanUF").style.display = "none";
  40. document.getElementById("approveButtonUD").style.display = "block";
  41. document.getElementById("approveButtonUR").style.display = "none";
  42. document.getElementById("approveButtonUF").style.display = "none";
  43. document.getElementById("divUD").style.display = "block";
  44. document.getElementById("divUR").style.display = "none";
  45. document.getElementById("divUF").style.display = "none";
  46. }
  47. function ViewChangesUR() {
  48. document.getElementById("viewUD").className = "none";
  49. document.getElementById("viewUR").className = "selected";
  50. document.getElementById("viewUF").className = "none";
  51. document.getElementById("rpt_grid").style.display = "none";
  52. document.getElementById("rpt_gridUR").style.display = "block";
  53. document.getElementById("rpt_gridUF").style.display = "none";
  54. document.getElementById("spanUD").style.display = "none";
  55. document.getElementById("spanUR").style.display = "block";
  56. document.getElementById("spanUF").style.display = "none";
  57. document.getElementById("approveButtonUD").style.display = "none";
  58. document.getElementById("approveButtonUR").style.display = "block";
  59. document.getElementById("approveButtonUF").style.display = "none";
  60. document.getElementById("divUD").style.display = "none";
  61. document.getElementById("divUR").style.display = "block";
  62. document.getElementById("divUF").style.display = "none";
  63. }
  64. function ViewChangesUF() {
  65. document.getElementById("viewUD").className = "none";
  66. document.getElementById("viewUR").className = "none";
  67. document.getElementById("viewUF").className = "selected";
  68. document.getElementById("rpt_grid").style.display = "none";
  69. document.getElementById("rpt_gridUR").style.display = "none";
  70. document.getElementById("rpt_gridUF").style.display = "block";
  71. document.getElementById("spanUD").style.display = "none";
  72. document.getElementById("spanUR").style.display = "none";
  73. document.getElementById("spanUF").style.display = "block";
  74. document.getElementById("approveButtonUD").style.display = "none";
  75. document.getElementById("approveButtonUR").style.display = "none";
  76. document.getElementById("approveButtonUF").style.display = "block";
  77. document.getElementById("divUD").style.display = "none";
  78. document.getElementById("divUR").style.display = "none";
  79. document.getElementById("divUF").style.display = "block";
  80. }
  81. function ViewChangesMaster() {
  82. document.getElementById("rpt_grid").style.display = "block";
  83. document.getElementById("rpt_gridDetail").style.display = "none";
  84. document.getElementById("viewMaster").className = "selected";
  85. document.getElementById("viewDetail").className = "none";
  86. }
  87. function ViewChangesDetail() {
  88. document.getElementById("rpt_grid").style.display = "none";
  89. document.getElementById("rpt_gridDetail").style.display = "block";
  90. document.getElementById("viewMaster").className = "none";
  91. document.getElementById("viewDetail").className = "selected";
  92. }
  93. function ShowApproveButton() {
  94. document.getElementById("approveButton").style.display = "block";
  95. }
  96. function HideApproveButton() {
  97. document.getElementById("approveButton").style.display = "none";
  98. }
  99. </script>
  100. <style>
  101. .show-yellow {
  102. background-color: yellow;
  103. color: black;
  104. }
  105. </style>
  106. </head>
  107. <body>
  108. <form id="form1" runat="server">
  109. <asp:ScriptManager ID="sm" runat="server"></asp:ScriptManager>
  110. <div class="page-wrapper">
  111. <div class="row" id="tabPanel1" runat="server" visible="false">
  112. <div class="col-sm-12">
  113. <div class="page-title">
  114. <div class="listtabs">
  115. <ul class="nav nav-tabs" role="tablist">
  116. <li><a role="presentation" id="viewUD" onclick="ViewChangesUD()" href="#" class="selected">User Details</a></li>
  117. <li><a role="presentation" id="viewUR" onclick="ViewChangesUR()" href="#">User Roles</a></li>
  118. <li><a role="presentation" id="viewUF" onclick="ViewChangesUF()" href="#">User Functions</a></li>
  119. </ul>
  120. </div>
  121. </div>
  122. </div>
  123. </div>
  124. <div class="row" id="dscPanel" runat="server" visible="false">
  125. <div class="col-sm-12">
  126. <div class="page-title">
  127. <div class="listtabs">
  128. <ul class="nav nav-tabs" role="tablist">
  129. <li><a id="viewMaster" onclick="ViewChangesMaster()" href="#" class="selected">Master</a></li>
  130. <li><a id="viewDetail" onclick="ViewChangesDetail()" href="#">Detail</a></li>
  131. </ul>
  132. </div>
  133. </div>
  134. </div>
  135. </div>
  136. <asp:UpdatePanel runat="server" ID="upd12">
  137. <ContentTemplate>
  138. <div class="table-responsive">
  139. <table border="0" cellspacing="5" cellpadding="5" class="table table-striped table-bordered">
  140. <tr>
  141. <td>
  142. <div id="divUD">
  143. <table id="tableUD" border="0" width="100%" runat="server" class="table table-striped table-bordered">
  144. <tr>
  145. <td>
  146. <asp:Label ID="lblmsg" runat="server" CssClass="Label"></asp:Label><br />
  147. </td>
  148. </tr>
  149. <tr>
  150. <td nowrap="nowrap">
  151. <div align="left" class="formLabel">
  152. Change Date :
  153. <asp:Label ID="createdDate" runat="server" CssClass="formLabel"></asp:Label>
  154. </div>
  155. </td>
  156. </tr>
  157. <tr>
  158. <td nowrap="nowrap">
  159. <div align="left" class="formLabel">
  160. Menu :
  161. <asp:Label ID="tableName" runat="server" CssClass="formLabel"></asp:Label>
  162. </div>
  163. </td>
  164. </tr>
  165. <tr>
  166. <td nowrap="nowrap">
  167. <div align="left" class="formLabel">
  168. Data Id :
  169. <asp:Label ID="dataId" runat="server" CssClass="formLabel"></asp:Label>
  170. </div>
  171. </td>
  172. </tr>
  173. <tr>
  174. <td nowrap="nowrap">
  175. <div align="left" class="formLabel">
  176. Changed By :
  177. <asp:Label ID="createdBy" runat="server" CssClass="formLabel"></asp:Label>
  178. </div>
  179. </td>
  180. </tr>
  181. <tr>
  182. <td nowrap="nowrap">
  183. <div align="left" class="formLabel">
  184. Change Type :
  185. <asp:Label ID="logType" runat="server" CssClass="formLabel"></asp:Label>
  186. </div>
  187. </td>
  188. </tr>
  189. </table>
  190. </div>
  191. </td>
  192. </tr>
  193. <tr>
  194. <td>
  195. <div id="divUR" style="display: none">
  196. <table id="tableUR" border="0" width="100%" runat="server" class="table table-striped table-bordered">
  197. <tr>
  198. <td>
  199. <asp:Label ID="lblmsgUR" runat="server" CssClass="Label"></asp:Label><br />
  200. </td>
  201. </tr>
  202. <tr>
  203. <td nowrap="nowrap">
  204. <div align="left" class="formLabel">
  205. Change Date :
  206. <asp:Label ID="createdDateUR" runat="server" CssClass="formLabel"></asp:Label>
  207. </div>
  208. </td>
  209. </tr>
  210. <tr>
  211. <td nowrap="nowrap">
  212. <div align="left" class="formLabel">
  213. Menu :
  214. <asp:Label ID="tableNameUR" runat="server" CssClass="formLabel"></asp:Label>
  215. </div>
  216. </td>
  217. </tr>
  218. <tr>
  219. <td nowrap="nowrap">
  220. <div align="left" class="formLabel">
  221. Data Id :
  222. <asp:Label ID="dataIdUR" runat="server" CssClass="formLabel"></asp:Label>
  223. </div>
  224. </td>
  225. </tr>
  226. <tr>
  227. <td nowrap="nowrap">
  228. <div align="left" class="formLabel">
  229. Changed By :
  230. <asp:Label ID="createdByUR" runat="server" CssClass="formLabel"></asp:Label>
  231. </div>
  232. </td>
  233. </tr>
  234. <tr>
  235. <td nowrap="nowrap">
  236. <div align="left" class="formLabel">
  237. Change Type :
  238. <asp:Label ID="logTypeUR" runat="server" CssClass="formLabel"></asp:Label>
  239. </div>
  240. </td>
  241. </tr>
  242. </table>
  243. </div>
  244. </td>
  245. </tr>
  246. <tr>
  247. <td>
  248. <div id="divUF" style="display: none">
  249. <table id="tableUF" border="0" width="100%" runat="server" class="table table-striped table-bordered">
  250. <tr>
  251. <td>
  252. <asp:Label ID="lblmsgUF" runat="server" CssClass="Label"></asp:Label><br />
  253. </td>
  254. </tr>
  255. <tr>
  256. <td nowrap="nowrap">
  257. <div align="left" class="formLabel">
  258. Change Date :
  259. <asp:Label ID="createdDateUF" runat="server" CssClass="formLabel"></asp:Label>
  260. </div>
  261. </td>
  262. </tr>
  263. <tr>
  264. <td nowrap="nowrap">
  265. <div align="left" class="formLabel">
  266. Menu :
  267. <asp:Label ID="tableNameUF" runat="server" CssClass="formLabel"></asp:Label>
  268. </div>
  269. </td>
  270. </tr>
  271. <tr>
  272. <td nowrap="nowrap">
  273. <div align="left" class="formLabel">
  274. Data Id :
  275. <asp:Label ID="dataIdUF" runat="server" CssClass="formLabel"></asp:Label>
  276. </div>
  277. </td>
  278. </tr>
  279. <tr>
  280. <td nowrap="nowrap">
  281. <div align="left" class="formLabel">
  282. Changed By :
  283. <asp:Label ID="createdByUF" runat="server" CssClass="formLabel"></asp:Label>
  284. </div>
  285. </td>
  286. </tr>
  287. <tr>
  288. <td nowrap="nowrap">
  289. <div align="left" class="formLabel">
  290. Change Type :
  291. <asp:Label ID="logTypeUF" runat="server" CssClass="formLabel"></asp:Label>
  292. </div>
  293. </td>
  294. </tr>
  295. </table>
  296. </div>
  297. </td>
  298. </tr>
  299. <tr>
  300. <td>
  301. <div id="rpt_grid" runat="server" style="display: block"></div>
  302. <div id="rpt_gridUR" runat="server" style="display: none"></div>
  303. <div id="rpt_gridUF" runat="server" style="display: none"></div>
  304. <div id="rpt_gridDetail" runat="server" style="display: none"></div>
  305. </td>
  306. </tr>
  307. <tr>
  308. <td nowrap="nowrap">
  309. <span id="approveButtonUD">
  310. <asp:Button ID="btnApprove" runat="server" Text="Approve" CssClass="btn btn-primary m-t-25"
  311. OnClick="btnApprove_Click" Style="float: left" />
  312. <cc1:ConfirmButtonExtender ID="btnApprovecc" runat="server"
  313. ConfirmText="Confirm To Approve?" Enabled="True" TargetControlID="btnApprove">
  314. </cc1:ConfirmButtonExtender>
  315. </span>
  316. <span id="approveButtonUR" style="display: none">&nbsp;
  317. <asp:Button ID="btnApproveUR" runat="server" Text="Approve All" CssClass="btn btn-primary m-t-25"
  318. OnClick="btnApproveUR_Click" Style="float: left" />
  319. <cc1:ConfirmButtonExtender ID="btnApproveURcc" runat="server"
  320. ConfirmText="Confirm To Approve?" Enabled="True" TargetControlID="btnApproveUR">
  321. </cc1:ConfirmButtonExtender>
  322. </span>
  323. <span id="approveButtonUF" style="display: none">&nbsp;
  324. <asp:Button ID="btnApproveUF" runat="server" Text="Approve All" CssClass="btn btn-primary m-t-25"
  325. OnClick="btnApproveUF_Click" Style="float: left" />
  326. <cc1:ConfirmButtonExtender ID="btnApproveUFcc" runat="server"
  327. ConfirmText="Confirm To Approve?" Enabled="True" TargetControlID="btnApproveUF">
  328. </cc1:ConfirmButtonExtender>
  329. </span>
  330. <span id="spanUD" style="display: block">&nbsp;
  331. <asp:Button ID="btnReject" runat="server" Text="Reject" CssClass="btn btn-primary m-t-25"
  332. OnClick="btnReject_Click" />
  333. <cc1:ConfirmButtonExtender ID="btnRejectcc" runat="server"
  334. ConfirmText="Confirm To Reject?" Enabled="True" TargetControlID="btnReject">
  335. </cc1:ConfirmButtonExtender>
  336. </span>
  337. <span id="spanUR" style="display: none">&nbsp;
  338. <asp:Button ID="btnRejectUR" runat="server" Text="Reject" CssClass="btn btn-primary m-t-25"
  339. OnClick="btnRejectUR_Click" />
  340. <cc1:ConfirmButtonExtender ID="btnRejectURcc" runat="server"
  341. ConfirmText="Confirm To Reject?" Enabled="True" TargetControlID="btnRejectUR">
  342. </cc1:ConfirmButtonExtender>
  343. </span>
  344. <span id="spanUF" style="display: none">&nbsp;
  345. <asp:Button ID="btnRejectUF" runat="server" Text="Reject" CssClass="btn btn-primary m-t-25"
  346. OnClick="btnRejectUF_Click" />
  347. <cc1:ConfirmButtonExtender ID="btnRejectUFcc" runat="server"
  348. ConfirmText="Confirm To Reject?" Enabled="True" TargetControlID="btnRejectUF">
  349. </cc1:ConfirmButtonExtender>
  350. </span>
  351. </td>
  352. </tr>
  353. </table>
  354. </div>
  355. </ContentTemplate>
  356. </asp:UpdatePanel>
  357. </div>
  358. </form>
  359. </body>
  360. </html>