コード例 #1
0
        /// <summary>
        /// 获得数据列表
        /// </summary>
        public List <MobileSoft.Model.WorkFlow.Tb_WorkFlow_NodeUser> DataTableToList(DataTable dt)
        {
            List <MobileSoft.Model.WorkFlow.Tb_WorkFlow_NodeUser> modelList = new List <MobileSoft.Model.WorkFlow.Tb_WorkFlow_NodeUser>();
            int rowsCount = dt.Rows.Count;

            if (rowsCount > 0)
            {
                MobileSoft.Model.WorkFlow.Tb_WorkFlow_NodeUser model;
                for (int n = 0; n < rowsCount; n++)
                {
                    model = new MobileSoft.Model.WorkFlow.Tb_WorkFlow_NodeUser();
                    if (dt.Rows[n]["Tb_WorkFlow_FlowNode_InfoId"].ToString() != "")
                    {
                        model.Tb_WorkFlow_FlowNode_InfoId = int.Parse(dt.Rows[n]["Tb_WorkFlow_FlowNode_InfoId"].ToString());
                    }
                    model.Tb_Sys_User_UserCode = dt.Rows[n]["Tb_Sys_User_UserCode"].ToString();
                    modelList.Add(model);
                }
            }
            return(modelList);
        }
コード例 #2
0
 /// <summary>
 /// 更新一条数据
 /// </summary>
 public void Update(MobileSoft.Model.WorkFlow.Tb_WorkFlow_NodeUser model)
 {
     dal.Update(model);
 }
コード例 #3
0
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public void Add(MobileSoft.Model.WorkFlow.Tb_WorkFlow_NodeUser model)
 {
     dal.Add(model);
 }