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

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

            frm.reloadAndFocused = new frmAddTaiSan.ReloadAndFocused(reloadAndFocused);
            frm.ShowDialog();
        }
Exemple #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();
     }
 }
Exemple #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();
            }
        }
Exemple #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();
            }
        }
Exemple #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();
        }
Exemple #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();
        }
 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();
 }
 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();
     }
 }
 private void btnThem_r_Click(object sender, EventArgs e)
 {
     frmAddTaiSan frm = new frmAddTaiSan();
     frm.reloadAndFocused = new frmAddTaiSan.ReloadAndFocused(reloadAndFocused);
     frm.ShowDialog();
 }
 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();
     }
 }
 private void barBtnThemTaiSan_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     frmAddTaiSan frm = new frmAddTaiSan();
     frm.reloadAndFocused = new frmAddTaiSan.ReloadAndFocused(reloadAndFocused);
     frm.ShowDialog();
 }
 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();
     }
 }
 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();
 }