|
- @using Learun.Application.Base.SystemModule
- @using Learun.Application.WorkFlow
-
- @{
- ViewBag.Title = "统一信息门户";
- Layout = "~/Views/SSOSystem/_LayoutSSOTwo.cshtml";
- }
- <!-- header -->
- <!-- / warpper -->
- <div class="warpper">
-
- <!-- / index_sec1 -->
- <div class="index_sec index_sec1s inSecShadow">
- <!-- 顶部名称以及搜索 -->
- <div class="inSec1Top">
- <div class="inSec1T">
- <span>网上办事大厅</span>
- </div>
- <div class="inSec1Serch">
- <div class="inSec1SerchList">
- <span id="qtype" qt="1">按名称查询</span><i class="fa fa-angle-down"></i>
- </div>
- <input type="text" id="txtquery" placeholder="请输入您需要的服务" value="@Request.QueryString["keyword"]" />
- <div class="inSec1btn" id="btnquery">
- <img src="/Content/images/SsoSystem/search.png" alt="" />
- </div>
- <!-- 查询下拉 -->
- <ul id="querytype" class="inSec1SerchLists inSecShadow">
- <li><a qt="1">按名称查询</a></li>
- <li><a qt="2">按编号查询</a></li>
- </ul>
- <!-- 查询下拉 -->
- <div class="clear"></div>
- </div>
- </div>
- <div class="inSec1Box">
- <a href="/SSOSystem/workTwo">
- <div class="inSec4T">全部 <i></i> <span>@ViewBag.AllCount</span></div>
- </a>
- @{
- List<DataItemDetailEntity> flowtypelist = ViewBag.FlowType;
- List<WfProcessInstanceEntity> flowlist = ViewBag.FlowList;
- }
- <div class="inSec4Row">
- @foreach (var dataItemDetailEntity in flowtypelist)
- {
- <div class="inSec4Col4">
- <a href="/SSOSystem/workTwo?type=@dataItemDetailEntity.F_ItemValue" class="inSec4Box">
- <span class="inSec4Title">@dataItemDetailEntity.F_ItemName</span>
- <span class="inSec4Line"></span>
- <span class="inSec4Txt">@dataItemDetailEntity.FlowCount</span>
- </a>
- </div>
- }
- </div>
- </div>
-
- </div>
- <!-- / index_sec1 -->
- <!-- / index_sec2 -->
- <div class="index_sec5 inSecShadow">
- @{
- if (!string.IsNullOrEmpty(Request.QueryString["type"]))
- {
- flowtypelist = flowtypelist.Where(m => m.F_ItemValue == Request.QueryString["type"]).ToList();
- }
- }
- @foreach (var list in flowtypelist)
- {
- <div class="inSec5Box">
-
- <a href="/SSOSystem/UserService?type=@list.F_ItemValue">
-
- <div class="publicTitle">
- <div class="publicTbox">
- <img src="/Content/images/SsoSystem/inSec5-1.png" alt="" /> <span>@list.F_ItemName</span>
- </div>
- <div class="publicMoreBox">
- <a href="/Home/Index?autoopen=021a59b0-2589-4f9e-8140-6052177a967c" class="publicMore" target="_blank">更多</a>
- </div>
- </div>
- </a>
-
-
- <div class="inSec5Row">
- @{
- var flowitem = flowlist.Where(m => m.F_Category == list.F_ItemValue).ToList();
- if (!string.IsNullOrEmpty(Request.QueryString["keyword"]))
- {
- if (Request.QueryString["qt"] == "1")
- {
- flowitem = flowitem.Where(m => m.F_Name.Contains(Request.QueryString["keyword"])).ToList();
- }
- else
- {
- flowitem = flowitem.Where(m => m.F_Code.Contains(Request.QueryString["keyword"])).ToList();
- }
- }
- }
- @for (int j = 0; j < flowitem.Count; j++)
- {
- int m = 5;
- if (j < 5)
- {
- m = m - j;
- }
- else
- {
- m = 0;
- }
- <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">
- <span class="inSec5Img"><img src="/Content/images/SsoSystem/inSec2-1.png" alt="" /></span>
- <span class="inSec5T">@flowitem[j].F_Name</span>
- <span class="inSec5Num">编号:@flowitem[j].F_Code</span>
- <span class="inSec5Score">
- @for (int k = 0; k < m; k++)
- {
- <i class="fa fa-star"></i>
- }
- @for (int n = 0; n < 5 - m; n++)
- {
- <i class="fa fa-star-o"></i>
- }
- </span>
- </a>
-
- }
- </div>
-
- </div>
-
-
- }
- <!-- / index_sec2 -->
-
-
-
-
-
- </div>
- <script>
- $(window).load(function () {
- resizes()
- setTimeout(function () {
- resizes()
- }, 0)
- $(".headTab li").eq(0).removeClass("active");
- $(".headTab li").eq(1).addClass("active");
- $(".headTab li").eq(2).removeClass("active");
-
- $("#querytype").find('a').on('click',
- function() {
- $('#qtype').text($(this).text());
- $('#qtype').attr('qt', $(this).attr('qt'));
- });
-
- var paramqt = '@Request.QueryString["qt"]';
- if (!!paramqt) {
- $('#qtype').text($('#querytype').find('a[qt="' + paramqt + '"]').text());
- $('#qtype').attr('qt', paramqt);
- }
-
- $('#btnquery').on("click",
- function() {
- if ($('#txtquery').val()) {
- location.href = "/SSOSystem/workTwo?type=@Request.QueryString["type"]&keyword=" + encodeURI($('#txtquery').val())+"&qt=" + $('#qtype').attr('qt');
- }
- });
- var keyValue = '@Request.QueryString["keyValue"]';
- if (keyValue) {
- $('#txtquery').val(keyValue);
- $('#btnquery').trigger('click');
- }
-
- })
- function resizes() {
- var inSec1H = $('.index_sec1s').outerHeight();
- $('.index_sec5').outerHeight(inSec1H);
- }
- </script>
-
|