Пример #1
0
 public void LoadDataChecker(tbl_DeSo data)
 {
     lb_user.Text           = data.UserName;
     txt_Truong02.Text      = data.Truong_02;
     txt_Truong05.Text      = data.Truong_05;
     txt_Truong06.Text      = data.Truong_06;
     txt_Truong07.Text      = data.Truong_07;
     txt_Truong08.EditValue = data.Truong_08;
     if (data.Truong_03.Length > 6)
     {
         txt_Truong03_1.Text = data.Truong_03?.Substring(0, 6);
         txt_Truong03_2.Text = data.Truong_03?.Substring(6, data.Truong_03.Length - 6);
     }
     else
     {
         txt_Truong03_1.Text = string.IsNullOrEmpty(data.Truong_03) ? "" : data.Truong_03;
         txt_Truong03_2.Text = "";
     }
     txt_Truong85.Text = data.Truong_85;
     txt_Truong86.Text = data.Truong_86;
     txt_Truong0.Text  = data.Truong_0;
     if (data.CheckQC != null)
     {
         chk_qc.Checked = data.CheckQC.Value;
     }
 }
Пример #2
0
 public void LoadDataChecker(tbl_DeSo data)
 {
     lb_user.Text           = data.UserName;
     txt_Truong02.Text      = data.Truong_02;
     txt_Truong03_1.Text    = data.Truong_03;
     txt_Truong03_2.Text    = data.Truong_03_2;
     txt_Truong04.Text      = data.Truong_04;
     txt_Truong05.Text      = data.Truong_05;
     txt_Truong06.Text      = data.Truong_06;
     txt_Truong07.Text      = data.Truong_07;
     txt_Truong08.EditValue = data.Truong_08;
     txt_Truong13.Text      = data.Truong_13;
     txt_Truong14.Text      = data.Truong_14;
     txt_Truong15.Text      = data.Truong_15;
     txt_Truong16.EditValue = data.Truong_16;
     txt_Truong21.Text      = data.Truong_21;
     txt_Truong22.Text      = data.Truong_22;
     txt_Truong23.Text      = data.Truong_23;
     txt_Truong24.EditValue = data.Truong_24;
     txt_Truong29.Text      = data.Truong_29;
     txt_Truong30.Text      = data.Truong_30;
     txt_Truong31.Text      = data.Truong_31;
     txt_Truong32.EditValue = data.Truong_32;
     txt_Truong37.Text      = data.Truong_37;
     txt_Truong38.Text      = data.Truong_38;
     txt_Truong39.Text      = data.Truong_39;
     txt_Truong40.EditValue = data.Truong_40;
     txt_Truong45.Text      = data.Truong_45;
     txt_Truong46.Text      = data.Truong_46;
     txt_Truong47.Text      = data.Truong_47;
     txt_Truong48.EditValue = data.Truong_48;
     txt_Truong53.Text      = data.Truong_53;
     txt_Truong54.Text      = data.Truong_54;
     txt_Truong55.Text      = data.Truong_55;
     txt_Truong56.EditValue = data.Truong_56;
     txt_Truong61.Text      = data.Truong_61;
     txt_Truong62.Text      = data.Truong_62;
     txt_Truong63.Text      = data.Truong_63;
     txt_Truong64.EditValue = data.Truong_64;
     if (data.CheckQC != null)
     {
         chk_qc.Checked = data.CheckQC.Value;
     }
 }
 public void LoadDataChecker(tbl_DeSo data, string nameCheck)
 {
     lb_Ussername.Text     = nameCheck;
     txt_TruongSo01.Text   = data.TruongSo01;
     txt_TruongSo03.Text   = data.TruongSo03;
     txt_TruongSo04.Text   = data.TruongSo04;
     txt_TruongSo05.Text   = data.TruongSo05;
     txt_TruongSo06.Text   = data.TruongSo06;
     txt_TruongSo07.Text   = data.TruongSo07;
     txt_TruongSo08_1.Text = data.TruongSo08;
     txt_TruongSo08_2.Text = data.TruongSo08_2;
     txt_TruongSo09.Text   = data.TruongSo09;
     txt_TruongSo10.Text   = data.TruongSo10;
     txt_TruongSo11.Text   = data.TruongSo11;
     txt_TruongSo12.Text   = data.TruongSo12;
     txt_TruongSo13.Text   = data.TruongSo13;
     txt_TruongSo14.Text   = data.TruongSo14;
     // txt_FlagError.Text = data.FlagError;
 }