Exemple #1
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);
        }
Exemple #2
0
        public int InsertHisPathCheck(HisPathCheckModel model)
        {
            SqlParameter[] para = new SqlParameter[] {
                new SqlParameter("@EmpID", SqlDbType.Int),
                new SqlParameter("@Interval", SqlDbType.Int),
                new SqlParameter("@CheckBeginTime", SqlDbType.DateTime),
                new SqlParameter("@CheckEndTime", SqlDbType.DateTime)
            };
            para[0].Value = model.EmpNO;
            para[1].Value = model.Interval;
            para[2].Value = model.CheckBeginTime;
            para[3].Value = model.CheckEndTime;

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

            return(result);
        }