Exemplo n.º 1
0
        private void PrepareSourceChucDanhCombo()
        {
            DataTable dtChucDanh = oChucDanh.GetList();

            if (dtChucDanh.Rows.Count > 0)
            {
                comB_ChucDanh.DataSource    = dtChucDanh;
                comB_ChucDanh.DisplayMember = "ten_chuc_danh";
                comB_ChucDanh.ValueMember   = "id";
            }
        }
Exemplo n.º 2
0
        private void PreapreDataSource()
        {
            try
            {
                comB_ChucDanh.DataSource    = oChucDanh.GetList();
                comB_ChucDanh.DisplayMember = "ten_chuc_danh";
                comB_ChucDanh.ValueMember   = "id";

                comB_ChucVu.DataSource    = oChucVu.GetList();
                comB_ChucVu.DisplayMember = "ten_chuc_vu";
                comB_ChucVu.ValueMember   = "id";

                dtDonVi = oDonVi.GetDonVi_All();
                comB_DonVi.DataSource    = dtDonVi;
                comB_DonVi.DisplayMember = "ten_don_vi";
                comB_DonVi.ValueMember   = "id";
                Fill_Info_DonVi();
            }
            catch (Exception)
            {
            }
        }