public ResponseResult SuaPhanCongCongTac(PhanCongCongTacModel model)
        {
            ResponseResult res = null;

            try
            {
                res = PhanCongGiangVienDA.SuaPhanCongCongTac(model);
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return(res);
        }
        public ResponseResult ThemPhanCongCongTac(PhanCongCongTacModel model)
        {
            ResponseResult res = null;

            try
            {
                model.NguoiTao = AccountUtils.CurrentUsername();
                res            = PhanCongGiangVienDA.ThemPhanCongCongTac(model);
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return(res);
        }
Exemple #3
0
        public ResponseResult SuaPhanCongCongTac(PhanCongCongTacModel model)
        {
            ResponseResult res = null;

            try
            {
                List <SqlParameter> listParameter = new List <SqlParameter>();
                listParameter.Add(new SqlParameter("@PhanCongCongTacID", model.PhanCongCongTacID));
                listParameter.Add(new SqlParameter("@CongTacKhacLogID", model.CongTacKhacLogID));
                listParameter.Add(new SqlParameter("@TrangThai", model.TrangThai));
                listParameter.Add(new SqlParameter("@NguoiTao", model.NguoiTao));
                res = DBUtils.ExecuteSP <ResponseResult>("SP_PhanCongCongTac_Sua", listParameter);
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return(res);
        }
Exemple #4
0
        public ResponseResult ThemPhanCongCongTac(PhanCongCongTacModel model)
        {
            ResponseResult res = null;

            try
            {
                List <SqlParameter> listParameter = new List <SqlParameter>();
                listParameter.Add(new SqlParameter("@CongTacKhacLogID", model.CongTacKhacLogID));
                listParameter.Add(new SqlParameter("@BangPhanCongID", model.BangPhanCongID));
                listParameter.Add(new SqlParameter("@GiangVienLogID", model.GiangVienLogID));
                listParameter.Add(new SqlParameter("@NguoiTao", model.NguoiTao));
                res = DBUtils.ExecuteSP <ResponseResult>("SP_PhanCongCongTac_Them", listParameter);
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return(res);
        }