Esempio n. 1
0
        public int UpdateHisPathCheck(HisPathCheckModel model)
        {
            SqlParameter[] para = new SqlParameter[] { 
            new SqlParameter("@Id",SqlDbType.Int),
            new SqlParameter("@EmpID",SqlDbType.Int),
            new SqlParameter("@Interval",SqlDbType.Int),
            new SqlParameter("@CheckBeginTime",SqlDbType.DateTime),
            new SqlParameter("@CheckEndTime",SqlDbType.DateTime)
        };
            para[0].Value = model.Id;
            para[1].Value = model.EmpNO;
            para[2].Value = model.Interval;
            para[3].Value = model.CheckBeginTime;
            para[4].Value = model.CheckEndTime;


            int result = help.RunProcedureByInt("", para, out outStr);

            return result;
        }
Esempio n. 2
0
        /// <summary>
        /// 更新HisPathCheckDal
        /// </summary>
        /// <param name="model">HisPathCheckModel</param>
        /// <returns>返回执行结果行数</returns>
        public int UpdateHisPathCheck(HisPathCheckModel model)
        {
            if (dal == null)
            {
                dal = new HisPathCheckDal();
            }

            int result = dal.UpdateHisPathCheck(model);
            return result;
        }