示例#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_DoubleClick(object sender, EventArgs e)
        {
            if (!this.textBoxSourceOrderNumber.Visible)
            {
                this.labelSourceOrderNumber.Visible   = false;
                this.textBoxSourceOrderNumber.Visible = true;
            }
            else
            {
                FormPurchaseOrderSequence fpos = new FormPurchaseOrderSequence(FormPurchaseOrderSequence.OrderType.PurchaseApplyOrder, true);
                fpos.ShowDialog();

                string strSrcApplyOrderNum = fpos.getSelectOrderNumber();
                this.labelContractNum.Text = fpos.getSelectOrderProjectNum();

                this.textBoxSourceOrderNumber.Text    = strSrcApplyOrderNum;
                this.textBoxSourceOrderNumber.Visible = true;
                this.labelContractNum.Visible         = true;

                writeBillDetailsInfoFromBillNumber(strSrcApplyOrderNum);
            }
        }
示例#3
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)
                {
                    FormPurchaseOrderSequence fpos = new FormPurchaseOrderSequence(FormPurchaseOrderSequence.OrderType.PurchaseOrder, true);
                    fpos.ShowDialog();

                    string sourceBillNumber = fpos.getSelectOrderNumber();

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

                    writeBillDetailsInfoFromBillNumber(sourceBillNumber);
                }
            }
        }