private void SelectBuyerWin_Load(object sender, EventArgs e)
        {
            DataTable dt = new DataTable();

            Database.ERPSOFT.t_TL_BuyerInfor t_TL_BuyerInfor = new Database.ERPSOFT.t_TL_BuyerInfor();
            dt = t_TL_BuyerInfor.GetAllDataTable();
            dtgv_buyerSelect.DataSource = dt;
            DataGridViewCheckBoxColumn checkBoxCell = new DataGridViewCheckBoxColumn();

            checkBoxCell.Name         = "checkbox";
            checkBoxCell.HeaderText   = "Select";
            checkBoxCell.DisplayIndex = 0;
            dtgv_buyerSelect.Columns.Add(checkBoxCell);
        }
Exemple #2
0
        private void LoadDataBuyerInformation()
        {
            OrderSelected = -1;
            dtgv_BuyerInfor.Columns.Clear();
            Database.ERPSOFT.t_TL_BuyerInfor BuyerInfor = new Database.ERPSOFT.t_TL_BuyerInfor();
            DataTable dtData = BuyerInfor.GetAllDataTable();

            dtgv_BuyerInfor.DataSource = dtData;
            DataGridViewCheckBoxColumn checkBoxCell = new DataGridViewCheckBoxColumn();

            checkBoxCell.Name         = "checkbox";
            checkBoxCell.HeaderText   = "Select";
            checkBoxCell.DisplayIndex = 0;
            dtgv_BuyerInfor.Columns.Add(checkBoxCell);
        }
Exemple #3
0
        private void btn_Add_Click(object sender, EventArgs e)
        {
            OrderSelected = -1;
            dtgv_BuyerInfor.Columns.Clear();
            Database.ERPSOFT.t_TL_BuyerInfor BuyerInfor = new Database.ERPSOFT.t_TL_BuyerInfor();
            var       insertRow = BuyerInfor.InsertRowTableBuyerInfor(txt_BuyerCode.Text.Trim(), txt_BuyerERP.Text.Trim(), txt_buyerInfor.Text.Trim(), txt_buyerConsignee.Text.Trim());
            DataTable dtData    = BuyerInfor.GetAllDataTable();

            dtgv_BuyerInfor.DataSource = dtData;
            DataGridViewCheckBoxColumn checkBoxCell = new DataGridViewCheckBoxColumn();

            checkBoxCell.Name         = "checkbox";
            checkBoxCell.HeaderText   = "Select";
            checkBoxCell.DisplayIndex = 0;
            dtgv_BuyerInfor.Columns.Add(checkBoxCell);
        }