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.
 
 
 
 
 
 

183 lines
7.0 KiB

  1. @using Learun.Application.Base.SystemModule
  2. @using Learun.Application.WorkFlow
  3. @{
  4. ViewBag.Title = "统一信息门户";
  5. Layout = "~/Views/SSOSystem/_LayoutSSOTwo.cshtml";
  6. }
  7. <!-- header -->
  8. <!-- / warpper -->
  9. <div class="warpper">
  10. <!-- / index_sec1 -->
  11. <div class="index_sec index_sec1s inSecShadow">
  12. <!-- 顶部名称以及搜索 -->
  13. <div class="inSec1Top">
  14. <div class="inSec1T">
  15. <span>网上办事大厅</span>
  16. </div>
  17. <div class="inSec1Serch">
  18. <div class="inSec1SerchList">
  19. <span id="qtype" qt="1">按名称查询</span><i class="fa fa-angle-down"></i>
  20. </div>
  21. <input type="text" id="txtquery" placeholder="请输入您需要的服务" value="@Request.QueryString["keyword"]" />
  22. <div class="inSec1btn" id="btnquery">
  23. <img src="/Content/images/SsoSystem/search.png" alt="" />
  24. </div>
  25. <!-- 查询下拉 -->
  26. <ul id="querytype" class="inSec1SerchLists inSecShadow">
  27. <li><a qt="1">按名称查询</a></li>
  28. <li><a qt="2">按编号查询</a></li>
  29. </ul>
  30. <!-- 查询下拉 -->
  31. <div class="clear"></div>
  32. </div>
  33. </div>
  34. <div class="inSec1Box">
  35. <a href="/SSOSystem/workTwo">
  36. <div class="inSec4T">全部 <i></i> <span>@ViewBag.AllCount</span></div>
  37. </a>
  38. @{
  39. List<DataItemDetailEntity> flowtypelist = ViewBag.FlowType;
  40. List<WfProcessInstanceEntity> flowlist = ViewBag.FlowList;
  41. }
  42. <div class="inSec4Row">
  43. @foreach (var dataItemDetailEntity in flowtypelist)
  44. {
  45. <div class="inSec4Col4">
  46. <a href="/SSOSystem/workTwo?type=@dataItemDetailEntity.F_ItemValue" class="inSec4Box">
  47. <span class="inSec4Title">@dataItemDetailEntity.F_ItemName</span>
  48. <span class="inSec4Line"></span>
  49. <span class="inSec4Txt">@dataItemDetailEntity.FlowCount</span>
  50. </a>
  51. </div>
  52. }
  53. </div>
  54. </div>
  55. </div>
  56. <!-- / index_sec1 -->
  57. <!-- / index_sec2 -->
  58. <div class="index_sec5 inSecShadow">
  59. @{
  60. if (!string.IsNullOrEmpty(Request.QueryString["type"]))
  61. {
  62. flowtypelist = flowtypelist.Where(m => m.F_ItemValue == Request.QueryString["type"]).ToList();
  63. }
  64. }
  65. @foreach (var list in flowtypelist)
  66. {
  67. <div class="inSec5Box">
  68. <a href="/SSOSystem/UserService?type=@list.F_ItemValue">
  69. <div class="publicTitle">
  70. <div class="publicTbox">
  71. <img src="/Content/images/SsoSystem/inSec5-1.png" alt="" /> <span>@list.F_ItemName</span>
  72. </div>
  73. <div class="publicMoreBox">
  74. <a href="/Home/Index?autoopen=021a59b0-2589-4f9e-8140-6052177a967c" class="publicMore" target="_blank">更多</a>
  75. </div>
  76. </div>
  77. </a>
  78. <div class="inSec5Row">
  79. @{
  80. var flowitem = flowlist.Where(m => m.F_Category == list.F_ItemValue).ToList();
  81. if (!string.IsNullOrEmpty(Request.QueryString["keyword"]))
  82. {
  83. if (Request.QueryString["qt"] == "1")
  84. {
  85. flowitem = flowitem.Where(m => m.F_Name.Contains(Request.QueryString["keyword"])).ToList();
  86. }
  87. else
  88. {
  89. flowitem = flowitem.Where(m => m.F_Code.Contains(Request.QueryString["keyword"])).ToList();
  90. }
  91. }
  92. }
  93. @for (int j = 0; j < flowitem.Count; j++)
  94. {
  95. int m = 5;
  96. if (j < 5)
  97. {
  98. m = m - j;
  99. }
  100. else
  101. {
  102. m = 0;
  103. }
  104. <a href="/Home/Index?autoopen=021a59b0-2589-4f9e-8140-6052177a967c&id=@flowitem[j].F_Id&shcemeCode=@flowitem[j].F_Code" target="_blank" class="inSec5Con" title="@list.F_ItemName">
  105. <span class="inSec5Img"><img src="/Content/images/SsoSystem/inSec2-1.png" alt="" /></span>
  106. <span class="inSec5T">@flowitem[j].F_Name</span>
  107. <span class="inSec5Num">编号:@flowitem[j].F_Code</span>
  108. <span class="inSec5Score">
  109. @for (int k = 0; k < m; k++)
  110. {
  111. <i class="fa fa-star"></i>
  112. }
  113. @for (int n = 0; n < 5 - m; n++)
  114. {
  115. <i class="fa fa-star-o"></i>
  116. }
  117. </span>
  118. </a>
  119. }
  120. </div>
  121. </div>
  122. }
  123. <!-- / index_sec2 -->
  124. </div>
  125. <script>
  126. $(window).load(function () {
  127. resizes()
  128. setTimeout(function () {
  129. resizes()
  130. }, 0)
  131. $(".headTab li").eq(0).removeClass("active");
  132. $(".headTab li").eq(1).addClass("active");
  133. $(".headTab li").eq(2).removeClass("active");
  134. $("#querytype").find('a').on('click',
  135. function() {
  136. $('#qtype').text($(this).text());
  137. $('#qtype').attr('qt', $(this).attr('qt'));
  138. });
  139. var paramqt = '@Request.QueryString["qt"]';
  140. if (!!paramqt) {
  141. $('#qtype').text($('#querytype').find('a[qt="' + paramqt + '"]').text());
  142. $('#qtype').attr('qt', paramqt);
  143. }
  144. $('#btnquery').on("click",
  145. function() {
  146. if ($('#txtquery').val()) {
  147. location.href = "/SSOSystem/workTwo?type=@Request.QueryString["type"]&keyword=" + encodeURI($('#txtquery').val())+"&qt=" + $('#qtype').attr('qt');
  148. }
  149. });
  150. var keyValue = '@Request.QueryString["keyValue"]';
  151. if (keyValue) {
  152. $('#txtquery').val(keyValue);
  153. $('#btnquery').trigger('click');
  154. }
  155. })
  156. function resizes() {
  157. var inSec1H = $('.index_sec1s').outerHeight();
  158. $('.index_sec5').outerHeight(inSec1H);
  159. }
  160. </script>