コード例 #1
0
        private void barBtnThemTaiSan_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            frmAddTaiSan frm = new frmAddTaiSan();

            frm.reloadAndFocused = new frmAddTaiSan.ReloadAndFocused(reloadAndFocused);
            frm.ShowDialog();
        }
コード例 #2
0
        private void btnThem_r_Click(object sender, EventArgs e)
        {
            frmAddTaiSan frm = new frmAddTaiSan();

            frm.reloadAndFocused = new frmAddTaiSan.ReloadAndFocused(reloadAndFocused);
            frm.ShowDialog();
        }
コード例 #3
0
 private void btnSua_Click(object sender, EventArgs e)
 {
     if (gridViewTaiSan.GetFocusedRow() != null)
     {
         frmAddTaiSan frm = new frmAddTaiSan((gridViewTaiSan.GetFocusedRow() as TaiSanHienThi).obj, listTinhTrang, listLoaiTaiSan);
         frm.reloadAndFocused = new frmAddTaiSan.ReloadAndFocused(reload);
         frm.Text             = "Sửa tài sản kèm theo";
         frm.ShowDialog();
     }
 }
コード例 #4
0
        private void btnSua_r_Click(object sender, EventArgs e)
        {
            CTTaiSan obj = ucGridControlTaiSan1.CTTaiSan;

            if (obj != null)
            {
                frmAddTaiSan frm = new frmAddTaiSan(obj);
                frm.Text             = "Sửa tài sản";
                frm.reloadAndFocused = new frmAddTaiSan.ReloadAndFocused(reloadAndFocused);
                frm.ShowDialog();
            }
        }
コード例 #5
0
        private void barBtnSuaTaiSan_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            CTTaiSan obj = ucGridControlTaiSan1.CTTaiSan;

            if (obj != null)
            {
                frmAddTaiSan frm = new frmAddTaiSan(obj);
                frm.Text             = "Sửa tài sản";
                frm.reloadAndFocused = new frmAddTaiSan.ReloadAndFocused(reloadAndFocused);
                frm.ShowDialog();
            }
        }
コード例 #6
0
        private void btnAddNew_Click(object sender, EventArgs e)
        {
            id        = lookUpTinhTrang.EditValue;
            objLoaiTS = ucComboBoxLoaiTS1.LoaiTS;
            frmAddTaiSan frm = new frmAddTaiSan(listCTTaiSan, listTinhTrang, listLoaiTaiSan);

            frm.reloadAndFocused           = new ReloadAndFocused(reload);
            frm.reLoadAndSetValueLoaiTS    = new ReLoadAndSetValueLoaiTS(reloadLoaiTS);
            frm.reLoadAndSetValueTinhTrang = new ReLoadAndSetValueTinhTrang(reloadTinhTrang);
            frm.Text = "Thêm tài sản kèm theo";
            frm.ShowDialog();
        }
コード例 #7
0
        private void barBtnThemTaiSan_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            DonVi obj = ucTreeDonVi1.DonVi;
            //if (obj != null)
            //{
            //    frmAddTaiSanExist frm = new frmAddTaiSanExist(obj);
            //    frm.reloadAndFocused = new frmAddTaiSanExist.ReloadAndFocused(reloadAndFocused);
            //    frm.ShowDialog();
            //}
            frmAddTaiSan frm = new frmAddTaiSan(obj);

            frm.reloadAndFocused = new frmAddTaiSan.ReloadAndFocused(reloadAndFocused);
            frm.ShowDialog();
        }
コード例 #8
0
 private void barBtnThemTaiSan_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     DonVi obj = ucTreeDonVi1.DonVi;
     //if (obj != null)
     //{
     //    frmAddTaiSanExist frm = new frmAddTaiSanExist(obj);
     //    frm.reloadAndFocused = new frmAddTaiSanExist.ReloadAndFocused(reloadAndFocused);
     //    frm.ShowDialog();
     //}
     frmAddTaiSan frm = new frmAddTaiSan(obj);
     frm.reloadAndFocused = new frmAddTaiSan.ReloadAndFocused(reloadAndFocused);
     frm.ShowDialog();
 }
コード例 #9
0
 private void barBtnSuaTaiSan_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     CTTaiSan obj = ucGridControlTaiSan1.CTTaiSan;
     if (obj != null)
     {
         frmAddTaiSan frm = new frmAddTaiSan(obj);
         frm.Text = "Sửa tài sản";
         frm.reloadAndFocused = new frmAddTaiSan.ReloadAndFocused(reloadAndFocused);
         frm.ShowDialog();
     }
 }
コード例 #10
0
 private void btnThem_r_Click(object sender, EventArgs e)
 {
     frmAddTaiSan frm = new frmAddTaiSan();
     frm.reloadAndFocused = new frmAddTaiSan.ReloadAndFocused(reloadAndFocused);
     frm.ShowDialog();
 }
コード例 #11
0
 private void btnSua_r_Click(object sender, EventArgs e)
 {
     CTTaiSan obj = ucGridControlTaiSan1.CTTaiSan;
     if (obj != null)
     {
         frmAddTaiSan frm = new frmAddTaiSan(obj);
         frm.Text = "Sửa tài sản";
         frm.reloadAndFocused = new frmAddTaiSan.ReloadAndFocused(reloadAndFocused);
         frm.ShowDialog();
     }
 }
コード例 #12
0
 private void barBtnThemTaiSan_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     frmAddTaiSan frm = new frmAddTaiSan();
     frm.reloadAndFocused = new frmAddTaiSan.ReloadAndFocused(reloadAndFocused);
     frm.ShowDialog();
 }
コード例 #13
0
 private void btnSua_Click(object sender, EventArgs e)
 {
     if (gridViewTaiSan.GetFocusedRow() != null)
     {
         frmAddTaiSan frm = new frmAddTaiSan((gridViewTaiSan.GetFocusedRow() as TaiSanHienThi).obj, listTinhTrang, listLoaiTaiSan);
         frm.reloadAndFocused = new frmAddTaiSan.ReloadAndFocused(reload);
         frm.Text = "Sửa tài sản kèm theo";
         frm.ShowDialog();
     }
 }
コード例 #14
0
 private void btnAddNew_Click(object sender, EventArgs e)
 {
     id = lookUpTinhTrang.EditValue;
     objLoaiTS = ucComboBoxLoaiTS1.LoaiTS;
     frmAddTaiSan frm = new frmAddTaiSan(listCTTaiSan, listTinhTrang, listLoaiTaiSan);
     frm.reloadAndFocused = new ReloadAndFocused(reload);
     frm.reLoadAndSetValueLoaiTS = new ReLoadAndSetValueLoaiTS(reloadLoaiTS);
     frm.reLoadAndSetValueTinhTrang = new ReLoadAndSetValueTinhTrang(reloadTinhTrang);
     frm.Text = "Thêm tài sản kèm theo";
     frm.ShowDialog();
 }