/// <summary>
        ///  更新一条数据
        /// </summary>
        public void Update(MobileSoft.Model.WorkFlow.Tb_WorkFlow_NodeDepartTemp model)
        {
            int rowsAffected;

            SqlParameter[] parameters =
            {
                new SqlParameter("@Tb_WorkFlow_FlowNode_InfoId", SqlDbType.Int,      4),
                new SqlParameter("@Tb_Sys_Department_DepCode",   SqlDbType.NVarChar, 20)
            };
            parameters[0].Value = model.Tb_WorkFlow_FlowNode_InfoId;
            parameters[1].Value = model.Tb_Sys_Department_DepCode;

            DbHelperSQL.RunProcedure("Proc_Tb_WorkFlow_NodeDepartTemp_Update", parameters, out rowsAffected);
        }
        /// <summary>
        /// 得到一个对象实体
        /// </summary>
        public MobileSoft.Model.WorkFlow.Tb_WorkFlow_NodeDepartTemp GetModel()
        {
            SqlParameter[] parameters =
            {
            };

            MobileSoft.Model.WorkFlow.Tb_WorkFlow_NodeDepartTemp model = new MobileSoft.Model.WorkFlow.Tb_WorkFlow_NodeDepartTemp();
            DataSet ds = DbHelperSQL.RunProcedure("Proc_Tb_WorkFlow_NodeDepartTemp_GetModel", parameters, "ds");

            if (ds.Tables[0].Rows.Count > 0)
            {
                if (ds.Tables[0].Rows[0]["Tb_WorkFlow_FlowNode_InfoId"].ToString() != "")
                {
                    model.Tb_WorkFlow_FlowNode_InfoId = int.Parse(ds.Tables[0].Rows[0]["Tb_WorkFlow_FlowNode_InfoId"].ToString());
                }
                model.Tb_Sys_Department_DepCode = ds.Tables[0].Rows[0]["Tb_Sys_Department_DepCode"].ToString();
                return(model);
            }
            else
            {
                return(null);
            }
        }