首页 > Web开发 > 详细

MVC 后台DataTable 前台遍历

时间:2016-09-09 18:26:26      阅读:329      评论:0      收藏:0      [点我收藏+]
      /// <summary>
        /// 多级审批流展示
        /// </summary>
        /// <returns></returns>
        public ActionResult AddMoreflow()
        {
            string userid = CommConst.CurrentAccountId;
            DataSet ds = CheckFlowService.LCheckFlowBLL.GetNowFlowList(userid);
            DataTable dt = ds.Tables[0];
            return View(dt);
        }

前台

@using System.Data;   

 @foreach (DataRow item in Model.Rows)
    {
        <table class="table table-bordered">
            <tr>
                <td>流程提交人</td>
                <td>@item["formid"]</td>
                <td>处理状态</td>
                <td>@item["state"]</td>
            </tr>
            <tr>
                <td>内容</td>
                <td colspan="3">@item["checkcontent"]</td>
            </tr>
            <tr>
                <td>时间</td>
                <td colspan="3">@item["checkinserttime"]</td>
            </tr>
        </table>
    }

 

MVC 后台DataTable 前台遍历

原文:http://www.cnblogs.com/youmingkuang/p/5857600.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!