Ejemplo n.º 1
0
 private void checkAccountBillDetaile()
 {
     // checkAccountBillDetaile函数需要完成弹出一个新的窗口,用来显示单据编号关联的具体单据
     if (m_billNumber.Length > 0)
     {
         if (m_billTypeName.IndexOf("采购") != -1)
         {
             FormPurchaseInOrder fpo = new FormPurchaseInOrder(m_billNumber);
             fpo.ShowDialog();
         }
         else if (m_billTypeName.IndexOf("销售") != -1)
         {
             FormSaleOutOrder fsoo = new FormSaleOutOrder(m_billNumber);
             fsoo.ShowDialog();
         }
         else
         {
             bool isBankBill = BankCashsubLedger.getInctance().checkBillIsExist(m_billNumber);
             if (m_isAccountReceivable)
             {
                 FormReceivableOrder fro = new FormReceivableOrder(m_billNumber, isBankBill);
                 fro.ShowDialog();
             }
             else
             {
                 FormPaymentOrder fpo = new FormPaymentOrder(m_billNumber, isBankBill);
                 fpo.ShowDialog();
             }
         }
     }
 }
Ejemplo n.º 2
0
        private void openBillFromBillNumber(string billNumber)
        {
            if (m_billNumber.Length > 0)
            {
                bool isCashBill = CashCashsubLedger.getInctance().checkBillIsExist(m_billNumber);

                if (m_isReceivablerOrder)
                {
                    FormReceivableOrder fro = new FormReceivableOrder(m_billNumber, !isCashBill);
                    fro.ShowDialog();
                }
                else
                {
                    FormPaymentOrder fpo = new FormPaymentOrder(m_billNumber, !isCashBill);
                    fpo.ShowDialog();
                }
            }
        }
Ejemplo n.º 3
0
 private void checkAccountBillDetaile()
 {
     // checkAccountBillDetaile函数需要完成弹出一个新的窗口,用来显示单据编号关联的具体单据
     if (m_billNumber.Length > 0)
     {
         if (m_billName == "付款单")
         {
             FormPaymentOrder fpo = new FormPaymentOrder(m_billNumber, !m_isCashDetail);
             fpo.ShowDialog();
             updateDataGridView(true);
         }
         else
         {
             FormReceivableOrder fro = new FormReceivableOrder(m_billNumber, !m_isCashDetail);
             fro.ShowDialog();
             updateDataGridView(true);
         }
     }
 }
Ejemplo n.º 4
0
        private void menuBillReceive_Click(object sender, EventArgs e)
        {
            FormReceivableOrder fro = new FormReceivableOrder();

            fro.ShowDialog();
        }
Ejemplo n.º 5
0
        private void panelCashIn_Click(object sender, EventArgs e)
        {
            FormReceivableOrder fro = new FormReceivableOrder();

            fro.ShowDialog();
        }