構建ASP.NET MVC4+EF5+EasyUI+Unity2.x注入的後台管理系統(47)-工作流程設計-補充

來源:互聯網
上載者:User

標籤:

原文:構建ASP.NET MVC4+EF5+EasyUI+Unity2.x注入的後台管理系統(47)-工作流程設計-補充

系列目錄

補充一下,有人要表單的代碼,這個用代碼產生器產生表Flow_Form表的Index代碼就可以

加上幾個按鈕就可以了

<div class="mvctool">    <input id="txtQuery" type="text" class="searchText" />    @Html.ToolButton("btnQuery", "icon-search", "查詢", perm, "Query", true)    @Html.ToolButton("btnCreate", "icon-add", "設計表單", perm, "Create", true)    @Html.ToolButton("btnEdit", "icon-edit", "1.修改表單", perm, "Edit", true)    @Html.ToolButton("btnEditStep", "icon-edit", "2.設計步驟", perm, "Edit", true)    @Html.ToolButton("btnEditStepRule", "icon-edit", "3.設計分支", perm, "Edit", true)    @Html.ToolButton("btnEditLayout", "icon-edit", "4.設計布局", perm, "Edit", true)    @Html.ToolButton("btnDetails", "icon-details", "查看詳情", perm, "Details", true)    @Html.ToolButton("btnDelete", "icon-remove", "刪除", perm, "Delete", true)</div>

然後再補充個查看詳情

@model App.Models.Flow.Flow_FormModel@using App.Common;@using App.Models.Flow;@using App.Admin;@using App.Models.Sys;@{    ViewBag.Title = "建立";    Layout = "~/Views/Shared/_Index_LayoutEdit.cshtml";    List<permModel> perm = (List<permModel>)ViewBag.Perm;    if (perm == null)    {        perm = new List<permModel>();    }}<style>    .tbdetail { width: 98%; border-collapse: collapse; }.tbdetail .alignRight { width: 150px; text-align: right; }.tbdetail td { border-bottom: 1px solid #F4F4F4; height: 30px; word-wrap:break-word; word-break:break-all; }.tbcalendar, .tbcalendar td, .tbcalendar th { border: 1px solid #cccccc; border-collapse: collapse; padding: 5px; text-align: center; }.tbcalendar th{ background: #f4f4f4; }</style>       <div class="tc" style="padding:10px;"> @Model.Name</div> <table class="tbdetail">@{    int i = 0;    foreach (var item in Model.stepList)    {        i++;             <tr>                <td align="center">         <table class="tbdetail">                        <tr>                            <td class="alignRight">                                第                                @i                                步:                            </td>                            <td>                                @item.Name                            </td>                        </tr>                        <tr>                            <td class="alignRight">                                流轉規則:                            </td>                            <td>                               按@(item.FlowRule)                            </td>                        </tr>                        @{                            int j = 0;                            foreach (var judge in item.stepRuleList)                            {                                j++;                                            <tr>                                                <td class="alignRight">                                                    分支                                                    @j:                                                </td>                                                <td>                                                    @String.Format("如果 [{0} {1} {2}] → [{3}]", judge.AttrName, judge.Operator, judge.Result, judge.NextStep == "0" ? "流程結束" : judge.NextStepName)                                                </td>                                            </tr>                            }                         }                    </table>                </td>            </tr>            <tr>                <td align="center">                    ↓                </td>            </tr>    }}        <tr>            <td align="center">                流程結束            </td>        </tr>        </table>
Details
 #region 詳細       [SupportFilter(ActionName = "Edit")]        public ActionResult Details(string id)        {            ViewBag.Perm = GetPermission();            Flow_FormModel flowFormModel = m_BLL.GetById(id);            //擷取現有的步驟            GridPager pager = new GridPager()            {                rows = 1000,                page = 1,                sort = "Id",                order = "asc"            };            flowFormModel.stepList = new List<Flow_StepModel>();            flowFormModel.stepList = stepBLL.GetList(ref pager, flowFormModel.Id);            for (int i = 0; i < flowFormModel.stepList.Count; i++)//擷取步驟下面的步驟規則            {                flowFormModel.stepList[i].stepRuleList = new List<Flow_StepRuleModel>();                flowFormModel.stepList[i].stepRuleList = GetStepRuleListByStepId(flowFormModel.stepList[i].Id);            }            return View(flowFormModel);        }        #endregion
Details Action

到目前為止,終於有點範兒了。

構建ASP.NET MVC4+EF5+EasyUI+Unity2.x注入的後台管理系統(47)-工作流程設計-補充

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.