protected void btnUpdate18_Click(object sender, EventArgs e)
        {
            DotDanhGiaDanhGiaCheoInfo info = new DotDanhGiaDanhGiaCheoInfo();

            info.IDDotDanhGia   = ConvertUtility.ToInt32(dropDotDanhGia.SelectedValue);
            info.TyTrongDanhGia = ConvertUtility.ToDouble(txtTLHTCongViecQCS.Text);
            info.DiemDanhGia    = info.TyTrongDanhGia * 10 / 100;
            info.IDTrungTam     = 18;

            DotDanhGiaController.UpdateDanhGiaCheo(info);
        }
        protected void btnUpdate1_Click(object sender, EventArgs e)
        {
            DotDanhGiaDanhGiaCheoInfo info = new DotDanhGiaDanhGiaCheoInfo();

            info.IDDotDanhGia = ConvertUtility.ToInt32(dropDotDanhGia.SelectedValue);
            info.TyTrongDanhGia = ConvertUtility.ToDouble(txtTLHTCongViecIT.Text);
            info.DiemDanhGia = info.TyTrongDanhGia * 10/ 100;
            info.IDTrungTam = 1;

            DotDanhGiaController.UpdateDanhGiaCheo(info);
        }
示例#3
0
 public abstract void UpdateDanhGiaCheo(DotDanhGiaDanhGiaCheoInfo _DotDanhGiaInfo);
        protected override void OnPreRender(EventArgs e)
        {
            base.OnPreRender(e);

            DotDanhGiaDanhGiaCheoInfo info = DotDanhGiaController.GetInfoDanhGiaCheo(ConvertUtility.ToInt32(dropDotDanhGia.SelectedValue), 1);

            try
            {
                txtTLHTCongViecIT.Text = info.TyTrongDanhGia.ToString().Replace(".", ",");
                lblDiemCuoiIT.Text     = info.DiemDanhGia.ToString().Replace(".", ",");
            }
            catch
            {
                txtTLHTCongViecIT.Text = "0";
            }

            info = DotDanhGiaController.GetInfoDanhGiaCheo(ConvertUtility.ToInt32(dropDotDanhGia.SelectedValue), 2);

            try
            {
                txtTLHTCongViecNSHC.Text = info.TyTrongDanhGia.ToString().Replace(".", ",");
                lblDiemCuoiNSHC.Text     = info.DiemDanhGia.ToString().Replace(".", ",");
            }
            catch
            {
                txtTLHTCongViecNSHC.Text = "0";
            }

            info = DotDanhGiaController.GetInfoDanhGiaCheo(ConvertUtility.ToInt32(dropDotDanhGia.SelectedValue), 3);

            try
            {
                txtTLHTCongViecTCKT.Text = info.TyTrongDanhGia.ToString().Replace(".", ",");
                lblDiemCuoiTCKT.Text     = info.DiemDanhGia.ToString().Replace(".", ",");
            }
            catch
            {
                txtTLHTCongViecTCKT.Text = "0";
            }

            info = DotDanhGiaController.GetInfoDanhGiaCheo(ConvertUtility.ToInt32(dropDotDanhGia.SelectedValue), 4);

            try
            {
                txtTLHTCongViecPTKD.Text = info.TyTrongDanhGia.ToString().Replace(".", ",");
                lblDiemCuoiPTKD.Text     = info.DiemDanhGia.ToString().Replace(".", ",");
            }
            catch
            {
                txtTLHTCongViecPTKD.Text = "0";
            }

            info = DotDanhGiaController.GetInfoDanhGiaCheo(ConvertUtility.ToInt32(dropDotDanhGia.SelectedValue), 5);

            try
            {
                txtTLHTCongViecPTND.Text = info.TyTrongDanhGia.ToString().Replace(".", ",");
                lblDiemCuoiPTND.Text     = info.DiemDanhGia.ToString().Replace(".", ",");
            }
            catch
            {
                txtTLHTCongViecPTND.Text = "0";
            }

            info = DotDanhGiaController.GetInfoDanhGiaCheo(ConvertUtility.ToInt32(dropDotDanhGia.SelectedValue), 6);

            try
            {
                txtTLHTCongViecLUCKYFONE.Text = info.TyTrongDanhGia.ToString().Replace(".", ",");
                lblDiemCuoiLUCKYFONE.Text     = info.DiemDanhGia.ToString().Replace(".", ",");
            }
            catch
            {
                txtTLHTCongViecLUCKYFONE.Text = "0";
            }

            info = DotDanhGiaController.GetInfoDanhGiaCheo(ConvertUtility.ToInt32(dropDotDanhGia.SelectedValue), 7);

            try
            {
                txtTLHTCongViecBANQUYEN.Text = info.TyTrongDanhGia.ToString().Replace(".", ",");
                lblDiemCuoiBANQUYEN.Text     = info.DiemDanhGia.ToString().Replace(".", ",");
            }
            catch
            {
                txtTLHTCongViecBANQUYEN.Text = "0";
            }

            info = DotDanhGiaController.GetInfoDanhGiaCheo(ConvertUtility.ToInt32(dropDotDanhGia.SelectedValue), 8);

            try
            {
                txtTLHTCongViecDVKH.Text = info.TyTrongDanhGia.ToString().Replace(".", ",");
                lblDiemCuoiDVKH.Text     = info.DiemDanhGia.ToString().Replace(".", ",");
            }
            catch
            {
                txtTLHTCongViecDVKH.Text = "0";
            }

            info = DotDanhGiaController.GetInfoDanhGiaCheo(ConvertUtility.ToInt32(dropDotDanhGia.SelectedValue), 14);

            try
            {
                txtTLHTCongViecDSTC.Text = info.TyTrongDanhGia.ToString().Replace(".", ",");
                lblDiemCuoiDSTC.Text     = info.DiemDanhGia.ToString().Replace(".", ",");
            }
            catch
            {
                txtTLHTCongViecDSTC.Text = "0";
            }

            info = DotDanhGiaController.GetInfoDanhGiaCheo(ConvertUtility.ToInt32(dropDotDanhGia.SelectedValue), 15);

            try
            {
                txtTLHTCongViecVPHCM.Text = info.TyTrongDanhGia.ToString().Replace(".", ",");
                lblDiemCuoiVPHCM.Text     = info.DiemDanhGia.ToString().Replace(".", ",");
            }
            catch
            {
                txtTLHTCongViecVPHCM.Text = "0";
            }

            info = DotDanhGiaController.GetInfoDanhGiaCheo(ConvertUtility.ToInt32(dropDotDanhGia.SelectedValue), 16);

            try
            {
                txtTLHTCongViecPTDV.Text = info.TyTrongDanhGia.ToString().Replace(".", ",");
                lblDiemCuoiPTDV.Text     = info.DiemDanhGia.ToString().Replace(".", ",");
            }
            catch
            {
                txtTLHTCongViecPTDV.Text = "0";
            }

            info = DotDanhGiaController.GetInfoDanhGiaCheo(ConvertUtility.ToInt32(dropDotDanhGia.SelectedValue), 17);

            try
            {
                txtTLHTCongViecMarketing.Text = info.TyTrongDanhGia.ToString().Replace(".", ",");
                lblDiemCuoiMarketing.Text     = info.DiemDanhGia.ToString().Replace(".", ",");
            }
            catch
            {
                txtTLHTCongViecMarketing.Text = "0";
            }

            info = DotDanhGiaController.GetInfoDanhGiaCheo(ConvertUtility.ToInt32(dropDotDanhGia.SelectedValue), 18);

            try
            {
                txtTLHTCongViecQCS.Text = info.TyTrongDanhGia.ToString().Replace(".", ",");
                lblDiemCuoiQCS.Text     = info.DiemDanhGia.ToString().Replace(".", ",");
            }
            catch
            {
                txtTLHTCongViecQCS.Text = "0";
            }
        }
示例#5
0
 public override void UpdateDanhGiaCheo(DotDanhGiaDanhGiaCheoInfo config)
 {
     SqlHelper.ExecuteNonQuery(this.ConnectionString, "DotDanhGia_UpdateDanhGiaCheo", config.IDDotDanhGia, config.TyTrongDanhGia, config.DiemDanhGia, config.IDTrungTam);
 }
 public abstract void UpdateDanhGiaCheo(DotDanhGiaDanhGiaCheoInfo _DotDanhGiaInfo);