//protected void btnUpdate1_Click(object sender, EventArgs e)
        //{
        //    DGCBCNVDanhGiaTDvaKLInfo info = new DGCBCNVDanhGiaTDvaKLInfo();
        //    info.IDDotDanhGia = idDotDanhGia;
        //    info.IDNhanVien = idNhanVien;
        //    info.DiemTDG = ConvertUtility.ToInt32(dropDiemDVKH.Text);
        //    info.DiemTBPDG = ConvertUtility.ToInt32(dropDiemDVKH.Text);
        //    info.DiemThongNhat = ConvertUtility.ToInt32(dropDiemDVKH.Text);
        //    info.Loai = 6;
        //    info.GhiChu = txtLyDoDVKH.Text;
        //    DGCBCNVDanhGiaTDvaKLController.DanhGiaThang_DGCBCNVDanhGiaTDvaKL_Update(info);
        //}
        protected void btnUpdate2_Click(object sender, EventArgs e)
        {
            DGCBCNVDanhGiaTDvaKLInfo info = new DGCBCNVDanhGiaTDvaKLInfo();

            info.IDDotDanhGia = idDotDanhGia;
            info.IDNhanVien = idNhanVien;
            info.DiemTDG = ConvertUtility.ToInt32(txtDiemThuong.Text);
            info.DiemTBPDG = ConvertUtility.ToInt32(txtDiemThuong.Text);
            info.DiemThongNhat = ConvertUtility.ToInt32(txtDiemThuong.Text);
            info.Loai = 7;
            info.GhiChu = txtLyDoThuong.Text;

            DGCBCNVDanhGiaTDvaKLController.DanhGiaThang_DGCBCNVDanhGiaTDvaKL_Update(info);
        }
        protected void btnUpdate2_Click(object sender, EventArgs e)
        {
            DGCBCNVDanhGiaTDvaKLInfo info = new DGCBCNVDanhGiaTDvaKLInfo();

            info.IDDotDanhGia = idDotDanhGia;
            info.IDNhanVien = idNhanVien;
            info.DiemTDG = ConvertUtility.ToDouble(txtPTDanhGia2.Text);
            info.DiemTBPDG = ConvertUtility.ToDouble(txtPTDanhGia2.Text);
            info.DiemThongNhat = ConvertUtility.ToDouble(txtPTDanhGia2.Text);

            if (info.DiemTBPDG == -1)
            {
                info.DiemTBPDG = info.DiemTDG;
            }
            if (info.DiemThongNhat == -1)
            {
                info.DiemThongNhat = info.DiemTDG;
            }
            if (info.DiemTBPDG != info.DiemTDG)
            {
                info.DiemThongNhat = info.DiemTBPDG;
            }

            //if (CurrentUser.RoleID == (int)Constants.Role.TruongBoPhanKhoiHoTro || CurrentUser.RoleID == (int)Constants.Role.TruongBoPhanKhoiKinhDoanh)
            //{
            //    if (ConvertUtility.ToDouble(txtPTDanhGia2.Text) != ConvertUtility.ToDouble(txtTBPDanhGia2.Text))
            //    {
            //        info.DiemThongNhat = ConvertUtility.ToDouble(txtTBPDanhGia2.Text);
            //    }
            //}
            //else if (CurrentUser.RoleID == (int)Constants.Role.TruongPhong)
            //{
            //    info.DiemThongNhat = info.DiemTBPDG;
            //}
            info.Loai = 2;
            info.GhiChu = txtNhanXet2.Text;

            DGCBCNVDanhGiaTDvaKLController.DanhGiaThang_DGCBCNVDanhGiaTDvaKL_Update(info);
        }
Exemplo n.º 3
0
 public static void Update(DGCBCNVDanhGiaTDvaKLInfo _DotDanhGiaInfo)
 {
     DataAccessProvider.Instance().UpdateDGCBCNVDanhGiaTDvaKL(_DotDanhGiaInfo);
 }
Exemplo n.º 4
0
 public static void DanhGiaThang_DGCBCNVDanhGiaTDvaKL_Update(DGCBCNVDanhGiaTDvaKLInfo _DotDanhGiaInfo)
 {
     DataAccessProvider.Instance().DanhGiaThang_DGCBCNVDanhGiaTDvaKL_Update(_DotDanhGiaInfo);
 }
 public static void Update(DGCBCNVDanhGiaTDvaKLInfo _DotDanhGiaInfo)
 {
     DataAccessProvider.Instance().UpdateDGCBCNVDanhGiaTDvaKL(_DotDanhGiaInfo);
 }
 public static void DanhGiaThang_DGCBCNVDanhGiaTDvaKL_Update(DGCBCNVDanhGiaTDvaKLInfo _DotDanhGiaInfo)
 {
     DataAccessProvider.Instance().DanhGiaThang_DGCBCNVDanhGiaTDvaKL_Update(_DotDanhGiaInfo);
 }
Exemplo n.º 7
0
 public override void DanhGiaThang_DGCBCNVDanhGiaTDvaKL_Update(DGCBCNVDanhGiaTDvaKLInfo _DGCBCNVDanhGiaTDvaKLInfo)
 {
     SqlHelper.ExecuteNonQuery(this.ConnectionString, "DanhGiaThang_DGCBCNVDanhGiaTDvaKL_Update",
         _DGCBCNVDanhGiaTDvaKLInfo.IDDotDanhGia,
         _DGCBCNVDanhGiaTDvaKLInfo.IDNhanVien,
         _DGCBCNVDanhGiaTDvaKLInfo.DiemTDG,
         _DGCBCNVDanhGiaTDvaKLInfo.DiemTBPDG,
         _DGCBCNVDanhGiaTDvaKLInfo.DiemThongNhat,
         _DGCBCNVDanhGiaTDvaKLInfo.Loai,
         _DGCBCNVDanhGiaTDvaKLInfo.GhiChu);
 }
Exemplo n.º 8
0
 public abstract void UpdateDGCBCNVDanhGiaTDvaKL(DGCBCNVDanhGiaTDvaKLInfo _DotDanhGiaInfo);
Exemplo n.º 9
0
 public abstract void DanhGiaThang_DGCBCNVDanhGiaTDvaKL_Update(DGCBCNVDanhGiaTDvaKLInfo _DotDanhGiaInfo);