Exemplo n.º 1
0
        protected void btnUpdate18_Click(object sender, EventArgs e)
        {
            DotDanhGiaTLHTCVInfo info = new DotDanhGiaTLHTCVInfo();

            info.IDDotDanhGia = ConvertUtility.ToInt32(dropDotDanhGia.SelectedValue);
            info.TLHTCongViec = ConvertUtility.ToDouble(txtTLHTCongViecQCS.Text);
            info.IDTrungTam   = 18;

            DotDanhGiaController.UpdateTLHTCongViec(info);
        }
Exemplo n.º 2
0
 public abstract void UpdateTLHTCongViec(DotDanhGiaTLHTCVInfo _DotDanhGiaInfo);
Exemplo n.º 3
0
        protected override void OnPreRender(EventArgs e)
        {
            base.OnPreRender(e);

            DotDanhGiaTLHTCVInfo info = DotDanhGiaController.GetInfoTLHTCongViec(ConvertUtility.ToInt32(dropDotDanhGia.SelectedValue), 1);

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

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

            try
            {
                txtTLHTCongViecNSHC.Text = info.TLHTCongViec.ToString();
            }
            catch
            {
                txtTLHTCongViecNSHC.Text = "0";
            }

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

            try
            {
                txtTLHTCongViecTCKT.Text = info.TLHTCongViec.ToString();
            }
            catch
            {
                txtTLHTCongViecTCKT.Text = "0";
            }

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

            try
            {
                txtTLHTCongViecPTKD.Text = info.TLHTCongViec.ToString();
            }
            catch
            {
                txtTLHTCongViecPTKD.Text = "0";
            }

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

            try
            {
                txtTLHTCongViecPTND.Text = info.TLHTCongViec.ToString();
            }
            catch
            {
                txtTLHTCongViecPTND.Text = "0";
            }

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

            try
            {
                txtTLHTCongViecLUCKYFONE.Text = info.TLHTCongViec.ToString();
            }
            catch
            {
                txtTLHTCongViecLUCKYFONE.Text = "0";
            }

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

            try
            {
                txtTLHTCongViecBANQUYEN.Text = info.TLHTCongViec.ToString();
            }
            catch
            {
                txtTLHTCongViecBANQUYEN.Text = "0";
            }

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

            try
            {
                txtTLHTCongViecDVKH.Text = info.TLHTCongViec.ToString();
            }
            catch
            {
                txtTLHTCongViecDVKH.Text = "0";
            }

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

            try
            {
                txtTLHTCongViecDSTC.Text = info.TLHTCongViec.ToString();
            }
            catch
            {
                txtTLHTCongViecDSTC.Text = "0";
            }

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

            try
            {
                txtTLHTCongViecVPHCM.Text = info.TLHTCongViec.ToString();
            }
            catch
            {
                txtTLHTCongViecVPHCM.Text = "0";
            }

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

            try
            {
                txtTLHTCongViecPTDV.Text = info.TLHTCongViec.ToString();
            }
            catch
            {
                txtTLHTCongViecPTDV.Text = "0";
            }

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

            try
            {
                txtTLHTCongViecMAR.Text = info.TLHTCongViec.ToString();
            }
            catch
            {
                txtTLHTCongViecMAR.Text = "0";
            }

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

            try
            {
                txtTLHTCongViecQCS.Text = info.TLHTCongViec.ToString();
            }
            catch
            {
                txtTLHTCongViecQCS.Text = "0";
            }
        }