private void checkAccountBillDetaile() { if (m_billNumber.Length > 0) { if (m_orderType == OrderType.PurchaseApplyOrder) { FormPurchaseApply fpa = new FormPurchaseApply(m_billNumber); fpa.ShowDialog(); updateDataGridView(); } else if (m_orderType == OrderType.PurchaseOrder) { FormPurchaseOrder fpo = new FormPurchaseOrder(m_billNumber); fpo.ShowDialog(); updateDataGridView(); } else if (m_orderType == OrderType.PurchaseIn) { FormPurchaseInOrder fpo = new FormPurchaseInOrder(m_billNumber); fpo.ShowDialog(); updateDataGridView(); } else if (m_orderType == OrderType.StorageMaterielOut) { FormMaterielOutOrder fmoo = new FormMaterielOutOrder(m_billNumber); fmoo.ShowDialog(); updateDataGridView(); } else if (m_orderType == OrderType.ChangeApply) { FormProjectMaterielChangeOrder fmoo = new FormProjectMaterielChangeOrder(m_billNumber); fmoo.ShowDialog(); updateDataGridView(); } else { MessageBoxExtend.messageWarning("暂时不支持的序时薄类型"); } } }
private void toolStripButtonChange_Click(object sender, EventArgs e) { FormProjectMaterielChangeOrder fpmco = new FormProjectMaterielChangeOrder(m_tablesType, this.labelBillNumber.Text, m_ProjectInfo.projectNum); fpmco.ShowDialog(); }