コード例 #1
0
        private void LoadGrid()
        {
            try
            {
                DataTable dtTableCT = new DataTable();
                dtTableCT = congtyBUS.GetAll();

                grdCtrlCongTy.DataSource = dtTableCT;
            }
            catch (Exception exception)
            {
                MessageBox.Show(exception.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
コード例 #2
0
        private void LoadCongTyInFo()
        {
            DataTable dtTableCongty = new DataTable();

            dtTableCongty = congtyBUS.GetAll();


            cbo_MaCongTy.DataSource    = dtTableCongty;
            cbo_MaCongTy.ValueMember   = "MaCT";
            cbo_MaCongTy.DisplayMember = "MaCT";

            txt_TenCongTy.DataBindings.Add("Text", dtTableCongty, "TEN_CONG_TY");
            txt_SoTaiKhoan.DataBindings.Add("Text", dtTableCongty, "SO_TAI_KHOAN");
            txt_MaSoThue.DataBindings.Add("Text", dtTableCongty, "MA_SO_THUE");
        }
コード例 #3
0
ファイル: CheckOutUI.cs プロジェクト: haodophuc/etak4
 private void LoadComboCongTy()
 {
     try
     {
         DataTable dtTableCT = new DataTable();
         dtTableCT                = congTyBUS.GetAll();
         cbo_CongTy.DataSource    = dtTableCT;
         cbo_CongTy.DisplayMember = "TEN_CONG_TY";
         cbo_CongTy.ValueMember   = "MaCT";
         cbo_CongTy.Text          = "";
     }
     catch (Exception exception)
     {
         MessageBox.Show(exception.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
コード例 #4
0
 public TimkiemvaChonCongTyUI()
 {
     InitializeComponent();
     grdCtrlCongTy.DataSource = congtyBUS.GetAll();
 }
コード例 #5
0
 public TraCuuCongTyUI()
 {
     InitializeComponent();
     grdCtrlCongTy.DataSource = congtyBUS.GetAll();
 }