예제 #1
0
 private void cboAccountingObjectId_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
 {
     if (e.Button.Index.Equals(1))
     {
         FrmXtraAccountingObjectDetail frmAccountingObjectDetail = new FrmXtraAccountingObjectDetail();
         frmAccountingObjectDetail.ShowDialog();
         if (frmAccountingObjectDetail.CloseBox)
         {
             if (!string.IsNullOrEmpty(GlobalVariable.AccountingObjectIDInventoryItemDetailForm))
             {
                 _accountingObjectsPresenters.DisplayActive(true);
                 cboAccountingObjectId.EditValue = GlobalVariable.AccountingObjectIDInventoryItemDetailForm;
             }
         }
     }
 }
예제 #2
0
 private void lookUpEditAccountingObject_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
 {
     if (e.Button.Index.Equals(1))
     {
         using (var frmDetail = new FrmXtraAccountingObjectDetail())
         {
             frmDetail.ShowDialog();
             if (frmDetail.CloseBox)
             {
                 if (!string.IsNullOrEmpty(GlobalVariable.AccountingObjectIDInventoryItemDetailForm))
                 {
                     _accountingObjectsPresenter.Display();
                     lkVendor.EditValue = GlobalVariable.AccountingObjectIDInventoryItemDetailForm;
                 }
             }
         }
     }
 }