DZKJTaskStatisticsView.aspx 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DZKJTaskStatisticsView.aspx.cs" Inherits="LYFZ.WeixinServers.DZKJ.DZKJTaskStatisticsView" %>
  2. <!--#include file="/WeiXinAPP/html/head.html" -->
  3. <!--#include file="/WeiXinAPP/html/leftMenu.html" -->
  4. <div class="content">
  5. <ul class="breadcrumb">
  6. <!--#include file="/WeiXinAPP/html/indexBread.html" -->
  7. <li class="active">点赞科技爆客系统使用分析统计</li>
  8. </ul>
  9. <div class="container-fluid">
  10. <div class="row-fluid">
  11. <div style="width:100%; min-height:700px;">
  12. <div style="height:32px;" class="btn-toolbar">
  13. <div style="width:100%;height:24px; float:left;">
  14. <form style="display:block;width:100%;height:24px; float:left;" id="tab2" >
  15. <label style="width:50px;height:100%; padding-top:5px; float:left;">关键字</label>
  16. <div style="width:200px;height:100%; float:left; margin-right:5px;">
  17. <input id="Keyword" name="Keyword" type="text" class="span12" />
  18. </div>
  19. <%-- <label style="width:70px;height:100%; padding-top:5px; float:left;">查询方式</label>--%>
  20. <div style="width:82px;height:100%; float:left; margin-right:5px;">
  21. <select style="width:80px;" name="viewtype" id="viewtype" class="input-xlarge">
  22. <option value="0">按年</option>
  23. <option value="1">按月</option>
  24. <option value="2">按日</option>
  25. </select>
  26. </div>
  27. <div id="myForm_date_day" style="float:left;width:160px; height:24px; " class="controls input-append date form_date_day" data-date="" data-date-format="yyyy-mm-dd" data-link-field="dtp_input" data-link-format="yyyy-mm-dd" >
  28. <input style="width:90px;" id="form_date_day" size="16" type="text" value="<%=DateTime.Now.ToString("yyyy-MM-dd") %>" readonly="readonly">
  29. <span id="btnremove" class="add-on"><i class="icon-remove"></i></span>
  30. <span id="btnaddon" class="add-on"><i class="icon-th"></i></span>
  31. </div>
  32. <input type="hidden" name="ExecDate" id="dtp_input" value="<%=DateTime.Now.ToString("yyyy-MM-dd") %>" />
  33. <button style="float:left;" class="btn">查询</button>
  34. </form>
  35. </div>
  36. <!-- <button class="btn">Import</button>
  37. <button class="btn">Export</button>-->
  38. <div class="btn-group">
  39. </div>
  40. </div>
  41. <div class="well">
  42. <h4><%=TaskStatistics %></h4>
  43. <table class="table">
  44. <thead>
  45. <tr>
  46. <th style="width:220px;">企业名称</th>
  47. <th style="width:120px;">帐号</th>
  48. <th style="width:220px;">功能</th>
  49. <th style="width:100px;">使用次数</th>
  50. <th style="width:auto;">图形统计</th>
  51. </tr>
  52. </thead>&nbsp;
  53. <tbody>
  54. <%=this.TaskStatisticsViewListHtmlTb.ToString() %>
  55. </tbody>
  56. </table>
  57. </div>
  58. <%=PagingInfoHtml %>
  59. </div>
  60. <!--#include file="/WeiXinAPP/html/DeleteDialog.html" -->
  61. <!--#include file="/WeiXinAPP/html/footer.html" -->
  62. </div>
  63. </div>
  64. </div>
  65. <script type="text/javascript">
  66. $(document).ready(function () {
  67. $("#viewtype").val(2);
  68. var dateFormat = "yyyy-mm-dd";
  69. var dateStartView = 2;
  70. var dateMinView = 2;
  71. SetForm_date(dateFormat, dateStartView, dateMinView);
  72. $("#viewtype").change(function () {
  73. var vType = $(this).val();
  74. switch (vType)
  75. {
  76. case "0":
  77. dateFormat = "yyyy";
  78. dateStartView = 4;
  79. dateMinView = 4;
  80. break;
  81. case "1":
  82. dateFormat = "yyyy-mm";
  83. dateStartView = 3;
  84. dateMinView = 3;
  85. break;
  86. case "2":
  87. dateFormat = "yyyy-mm-dd";
  88. dateStartView = 2;
  89. dateMinView = 2;
  90. break;
  91. }
  92. SetForm_date(dateFormat, dateStartView, dateMinView);
  93. });
  94. var Keyword = GetQueryString("Keyword");
  95. if (Keyword) {
  96. $("#Keyword").val(Keyword);
  97. }
  98. var viewtype = GetQueryString("viewtype");
  99. if (viewtype) {
  100. $("#viewtype").val(viewtype);
  101. $("#viewtype").change();
  102. }
  103. let dtp_input = GetQueryString("ExecDate");
  104. if (dtp_input) {
  105. $("#dtp_input").val(dtp_input);
  106. // $('#form_date_day').val(dtp_input);
  107. var mydate = new Date(Date.parse(dtp_input.replace(/-/g, "/")));
  108. if (viewtype == 0) {
  109. $('#form_date_day').val(mydate.getFullYear());
  110. } else if (viewtype == 1) {
  111. $('#form_date_day').val(mydate.getFullYear() + "-" + (mydate.getMonth() + 1));
  112. } else {
  113. $('#form_date_day').val(dtp_input);
  114. }
  115. }
  116. $("#btnaddon").click(function () {
  117. $('#btnremove').click();
  118. });
  119. });
  120. function SetForm_date(dateFormat, dateStartView, dateMinView)
  121. {
  122. $('.form_date_day').datetimepicker('remove');
  123. $('.form_date_day').datetimepicker({
  124. format: dateFormat,
  125. weekStart: 1,
  126. todayHighlight: 1,
  127. autoclose: true,
  128. todayBtn: true,
  129. startView: dateStartView,
  130. minView: dateMinView,
  131. language: 'zh-CN',
  132. pickerPosition: "bottom-left"
  133. });
  134. // $('#form_date_day').val($("#dtp_input").val());
  135. // $('#btnremove').click();
  136. }
  137. </script>
  138. <!--#include file="/WeiXinAPP/html/bottom.html" -->