@using Learun.Application.Base.SystemModule @using Learun.Application.WorkFlow @{ ViewBag.Title = "服务中心"; Layout = "~/Views/SSOSystem/_LayoutSSO.cshtml"; }
服务筛选
搜关键字:
服务类型: 全部 @{ List flowtypelist = ViewBag.FlowType; List flowlist = ViewBag.FlowList; } @for (int i = 0; i < flowtypelist.Count; i++) { @flowtypelist[i].F_ItemName }
@{ if (!string.IsNullOrEmpty(Request.QueryString["type"])) { flowtypelist = flowtypelist.Where(m => m.F_ItemValue == Request.QueryString["type"]).ToList(); } } @for (int i = 0; i < flowtypelist.Count; i++) {
@flowtypelist[i].F_ItemName @flowtypelist[i].F_Description 更多
@{ var flowitem = flowlist.Where(m => m.F_Category == flowtypelist[i].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; } }
}