Ejemplo n.º 1
0
        private void layDS_CN()
        {
            DataTable dt = cnbus.DANH_SACH_CHI_NHANH();

            //cbbMaCN.DataSource = dt;
            cbbMaCN.DisplayMember = "TENCN";
            cbbMaCN.ValueMember   = "MACN";
            cbbMaCN.DataSource    = dt;
            cbbMaCN.SelectedValue = Thongtindangnhap.macn;
        }
Ejemplo n.º 2
0
        private void layCN()
        {
            DataTable dt        = cnbus.DANH_SACH_CHI_NHANH();
            DataRow   first_row = dt.NewRow();

            first_row[0] = "9999";
            first_row[1] = "Tất cả";
            dt.Rows.InsertAt(first_row, 0);
            //cbbCN.DataSource = dt;
            cbbCN.DisplayMember = "TENCN";
            cbbCN.ValueMember   = "MACN";
            cbbCN.DataSource    = dt;
            cbbCN.SelectedValue = Thongtindangnhap.macn;
        }
Ejemplo n.º 3
0
        private void frmTKKHSPDV_Load(object sender, EventArgs e)
        {
            DataTable dt = cnbus.DANH_SACH_CHI_NHANH();

            //cbCN.DataSource = dt;
            cbCN.DisplayMember = "TENCN";
            cbCN.ValueMember   = "MACN";
            cbCN.DataSource    = dt;
            cbCN.SelectedValue = Thongtindangnhap.macn;


            if (Thongtindangnhap.macn != Thongtindangnhap.ma_hoi_so)
            {
                //cbCN.Text = CRM.frmDangnhap.macn;
                cbCN.Enabled = false;
            }
        }