// 确定 private void buttonEnter_Click(object sender, EventArgs e) { m_proInfoListUser.Clear(); for (int index = 0; index < m_proInfoList.Count; index++) { if (Convert.ToBoolean(dataGridViewDataList.Rows[index].Cells[(int)DataGridColumnName.Select].Value)) { m_proInfoListUser.Add(m_proInfoListUser.Count, m_proInfoList[index]); } } if (m_proInfoListUser.Count > 12) { MessageBoxExtend.messageWarning("选择的数据条目不得超过12条, 请重新选择"); return; } if (m_proInfoListUser.Count == 0) { MessageBoxExtend.messageWarning("未选择任何数据, 请重新选择"); return; } if (m_dataType == 1) { FormMaterielProOccupied fmpo = new FormMaterielProOccupied("", m_proInfoListUser); fmpo.ShowDialog(); } else if (m_dataType == 2) { FormPurchaseApply fmpo = new FormPurchaseApply("", m_proInfoListUser); fmpo.ShowDialog(); } else if (m_dataType == 3) { FormMaterielOutOrder fmpo = new FormMaterielOutOrder("", m_proInfoListUser); fmpo.ShowDialog(); } this.Close(); }
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 panelPurchaseApply_Click(object sender, EventArgs e) { FormPurchaseApply fpa = new FormPurchaseApply(); fpa.ShowDialog(); }
private void ToolStripMenuItemToApply_Click(object sender, EventArgs e) { FormPurchaseApply fpa = new FormPurchaseApply(""); fpa.ShowDialog(); }