示例#1
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 = "";
     }
 }
示例#2
0
 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 = "";
     }
 }