Ejemplo n.º 1
0
        private void checkAccountBillDetaile()
        {
            if (m_isSelectOrderNumber)
            {
                this.Close();
                return;
            }
            // checkAccountBillDetaile函数需要完成弹出一个新的窗口,用来显示单据编号关联的具体单据

            if (m_billNumber.Length > 0)
            {
                if (m_orderType == OrderType.PurchaseOrder || m_orderType == OrderType.PurchaseOrderExcute)
                {
                    FormPurchaseOrder fpo = new FormPurchaseOrder(m_billNumber);
                    fpo.ShowDialog();
                    updateDataGridView();
                }
                else if (m_orderType == OrderType.PurchaseIn || m_orderType == OrderType.PurchaseInOrderExcute)
                {
                    FormPurchaseInOrder fpo = new FormPurchaseInOrder(m_billNumber);
                    fpo.ShowDialog();
                    updateDataGridView();
                }
                else if (m_orderType == OrderType.PurchaseInvoice)
                {
                    //采购发票序时薄
                }
                else if (m_orderType == OrderType.StorageProductIn)
                {
                    FormMaterielInOrder fmoo = new FormMaterielInOrder(m_billNumber);
                    fmoo.ShowDialog();
                    updateDataGridView();
                }
                else if (m_orderType == OrderType.StorageInCheck)
                {
                    FormMaterielInEarningsOrder fmoo = new FormMaterielInEarningsOrder(m_billNumber);
                    fmoo.ShowDialog();
                    updateDataGridView();
                }
                else if (m_orderType == OrderType.StorageInOther)
                {
                    FormMaterielInOtherOrder fmoo = new FormMaterielInOtherOrder(m_billNumber);
                    fmoo.ShowDialog();
                    updateDataGridView();
                }
                else
                {
                    MessageBoxExtend.messageWarning("暂时不支持的序时薄类型");
                }
            }
        }
Ejemplo n.º 2
0
 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("暂时不支持的序时薄类型");
         }
     }
 }
Ejemplo n.º 3
0
        private void panelPurchaseOrder_Click(object sender, EventArgs e)
        {
            FormPurchaseOrder fpo = new FormPurchaseOrder();

            fpo.ShowDialog();
        }