Example #1
0
        public fThemSimple(bool isAdd = true, CBoPhan bp = null, fBoPhan.sendMessage send = null, double action = 1)
        {
            InitializeComponent();

            if (isAdd == false && bp == null)
            {
                XtraMessageBox.Show("ERROR : Dữ liệu không được cung cấp để thực hiện hành động !", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Error);
                Close();
            }
            if (isAdd == true)
            {
                table = BUS_NhanVien.LayBoPhan();
                Text  = "Thêm bộ phận";
            }
            else
            {
                editBP = bp;
                Text   = "Sửa thông tin bộ phận";
            }
            add    = isAdd;
            sendBP = send;

            flag = 3;

            InitBP();
        }
Example #2
0
 private void LoadDataBP()
 {
     gleBoPhan.Properties.DataSource = BUS_NhanVien.LayBoPhan();
 }
Example #3
0
 private void LoadData()
 {
     gcMain.DataSource = BUS_NhanVien.LayBoPhan();
 }