Beispiel #1
0
 // 应付账款初始化
 private void panelBusinessAccountsData_Click(object sender, EventArgs e)
 {
     if (!InitSubSystemSign.getInctance().isBusinessSystemInit())
     {
         FormInitAccountReceivabler fiar = new FormInitAccountReceivabler(false);
         fiar.ShowDialog();
     }
     else
     {
         MessageBoxExtend.messageWarning("业务系统已启用,无法再录入期初数据");
     }
 }
Beispiel #2
0
 private void panelSourceOrderNumber_Click(object sender, EventArgs e)
 {
     if (comboBoxPaymentType.Text.IndexOf("应付") != -1)
     {
         FormInitAccountReceivabler fiar = new FormInitAccountReceivabler(false, true);
         fiar.ShowDialog();
         m_supplierData = Supplier.getInctance().getSupplierInfoFromPkey(fiar.getCustomerOrSupplierID());
         this.textBoxSourceOrderNumber.Text     = m_supplierData.name;
         this.textBoxSourceOrderNumber.ReadOnly = true;
     }
     else if (comboBoxPaymentType.Text.IndexOf("采购入库") != -1)
     {
         FormPurchaseOrderSequence fpos = new FormPurchaseOrderSequence(FormPurchaseOrderSequence.OrderType.PurchaseIn, true);
         fpos.ShowDialog();
         this.textBoxSourceOrderNumber.Text = fpos.getSelectOrderNumber();
     }
     else
     {
         this.textBoxSourceOrderNumber.Text = "";
     }
 }
 private void panelSourceOrderNumber_Click(object sender, EventArgs e)
 {
     if (comboBoxReceivableType.Text.IndexOf("应收") != -1)
     {
         FormInitAccountReceivabler fiar = new FormInitAccountReceivabler(true, true);
         fiar.ShowDialog();
         m_customerData = Customer.getInctance().getCustomerInfoFromPkey(fiar.getCustomerOrSupplierID());
         this.textBoxSourceOrderNumber.Text     = m_customerData.name;
         this.textBoxSourceOrderNumber.ReadOnly = true;
     }
     else if (comboBoxReceivableType.Text.IndexOf("销售出库") != -1)
     {
         FormSaleOrderSequence fsos = new FormSaleOrderSequence(FormSaleOrderSequence.OrderType.SaleOut, true);
         fsos.ShowDialog();
         this.textBoxSourceOrderNumber.Text = fsos.getSelectOrderNumber();
     }
     else
     {
         this.textBoxSourceOrderNumber.Text = "";
     }
 }