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 = "";
     }
 }
Beispiel #2
0
        private void panelSourceOrderNumber_DoubleClick(object sender, EventArgs e)
        {
            if (!this.textBoxSourceOrderNumber.Visible)
            {
                this.labelSourceOrderNumber.Visible   = false;
                this.textBoxSourceOrderNumber.Visible = true;
            }
            else
            {
                if (comboBoxSourceOrderType.SelectedIndex == 0)
                {
                    FormSaleOrderSequence fpos = new FormSaleOrderSequence(FormSaleOrderSequence.OrderType.SaleOrder, true);
                    fpos.ShowDialog();

                    string sourceBillNumber = fpos.getSelectOrderNumber();

                    this.textBoxSourceOrderNumber.Text    = sourceBillNumber;
                    this.textBoxSourceOrderNumber.Visible = true;

                    writeBillDetailsInfoFromBillNumber(sourceBillNumber);
                }
            }
        }