Пример #1
0
 /// <summary>
 /// 详细确认
 /// </summary>
 private void btnOperate_Click(object sender, EventArgs e)
 {
     if (GetCurrentSelectedTable())
     {
         if (CConstant.PURCHASE_ORDER_SEARCH.Equals(CTag))
         {
             FrmPurchaseOrderEntry frm = new FrmPurchaseOrderEntry();
             frm.UserTable = _userInfo;
             frm.CTag      = CConstant.PURCHASE_ORDER_SEARCH;
             frm.CurrentPurchaseOrderTable = _currentPurchaseOrderTable;
             frm.ShowDialog(this);
             frm.Dispose();
             _currentPurchaseOrderTable = null;
         }
         else if (CConstant.PURCHASE_ORDER_MASTER_SEARCH.Equals(CTag))
         {
             this.DialogResult = DialogResult.OK;
         }
     }
 }
Пример #2
0
 /// <summary>
 /// 修改
 /// </summary>
 private void btnModify_Click(object sender, EventArgs e)
 {
     if (GetCurrentSelectedTable())
     {
         getReceipt(_currentPurchaseOrderTable.SLIP_NUMBER);
         if (Receipt == CConstant.UN_RECEIPT)
         {
             FrmPurchaseOrderEntry frm = new FrmPurchaseOrderEntry();
             frm.UserTable = _userInfo;
             frm.CTag      = CConstant.PURCHASE_ORDER_MODIFY;
             frm.CurrentPurchaseOrderTable = _currentPurchaseOrderTable;
             if (DialogResult.OK == frm.ShowDialog(this))
             {
                 BindData(this.pgControl.GetCurrentPage());
             }
             frm.Dispose();
             _currentPurchaseOrderTable = null;
         }
         else
         {
             MessageBox.Show("明细已入库,不能修改!", this.Text, MessageBoxButtons.OK, MessageBoxIcon.Warning);
         }
     }
 }