Beispiel #1
0
        private void btnKhuVuc_ThemKhachHang_Click(object sender, EventArgs e)
        {
            fThemSimple kv = new fThemSimple(true, null, null);

            kv.ShowDialog();
            LoadDataKV();
        }
Beispiel #2
0
        private void btnThemBP_ThemNhanVien_Click(object sender, EventArgs e)
        {
            fThemSimple bp = new fThemSimple(true, null, null, (double)1);

            bp.ShowDialog();
            LoadDataBP();
        }
Beispiel #3
0
        private void BtnSua_ItemClick(object sender, ItemClickEventArgs e)
        {
            int     rowIndex = gvMain.FocusedRowHandle;
            CBoPhan bp       = new CBoPhan
            {
                MaBP   = gvMain.GetRowCellValue(rowIndex, "Department_ID").ToString(),
                TenBP  = gvMain.GetRowCellValue(rowIndex, "Department_Name").ToString(),
                GhiChu = gvMain.GetRowCellValue(rowIndex, "Description").ToString(),
                ConQL  = bool.Parse(gvMain.GetRowCellValue(rowIndex, "Active").ToString())
            };
            fThemSimple sua = new fThemSimple(false, bp, LoadData);

            sua.ShowDialog();
        }
Beispiel #4
0
        private void btnThemNhomhang_ThemHangHoa_Click(object sender, EventArgs e)
        {
            fThemSimple nh = new fThemSimple(true, null, null, (float)1);

            nh.ShowDialog();
        }
Beispiel #5
0
        private void BtnThem_ItemClick(object sender, ItemClickEventArgs e)
        {
            fThemSimple themKhuVuc = new fThemSimple(true, null, LoadData, (double)1);

            themKhuVuc.ShowDialog();
        }