Exemplo n.º 1
0
        private void labelOrderIn_Click(object sender, EventArgs e)
        {
            FormStorageSequenceFilter fssf = new FormStorageSequenceFilter(false);

            if (fssf.ShowDialog() == DialogResult.OK)
            {
                //得到界面用户选定的值
                FormStorageSequenceFilterValue      filter = fssf.getFilterUIValue();
                FormPurchaseOrderSequence.OrderType type   = new FormPurchaseOrderSequence.OrderType();

                if (filter.sequenceType == "0")
                {
                    type = FormPurchaseOrderSequence.OrderType.PurchaseIn;
                }
                else if (filter.sequenceType == "1")
                {
                    type = FormPurchaseOrderSequence.OrderType.StorageProductIn;
                }
                else if (filter.sequenceType == "2")
                {
                    type = FormPurchaseOrderSequence.OrderType.StorageInCheck;
                }
                else if (filter.sequenceType == "3")
                {
                    type = FormPurchaseOrderSequence.OrderType.StorageInOther;
                }

                FormPurchaseOrderSequence fphpc = new FormPurchaseOrderSequence(type);
                fphpc.setDataFilter(filter);
                fphpc.ShowDialog();
            }
        }
Exemplo n.º 2
0
        private void panelInventoryAccountingOther_Click(object sender, EventArgs e)
        {
            FormPurchaseOrderSequence fphpc = new FormPurchaseOrderSequence(
                FormPurchaseOrderSequence.OrderType.StorageInOther);

            fphpc.setDataFilter(m_filter);
            fphpc.ShowDialog();
        }
Exemplo n.º 3
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 = "";
     }
 }
Exemplo n.º 4
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);
            }
        }
Exemplo n.º 5
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);
                }
            }
        }
Exemplo n.º 6
0
        private void menuSquencePurchaseIn_Click(object sender, EventArgs e)
        {
            FormPurchaseOrderSequence fpos = new FormPurchaseOrderSequence(FormPurchaseOrderSequence.OrderType.PurchaseIn);

            fpos.ShowDialog();
        }
        // 采购成本明细表
        private void labelPurchaseCostDetails_Click(object sender, EventArgs e)
        {
            FormPurchaseOrderSequence fpos = new FormPurchaseOrderSequence(FormPurchaseOrderSequence.OrderType.PurchaseIn);

            fpos.ShowDialog();
        }
Exemplo n.º 8
0
        private void labelPurchaseApplyOrder_Click(object sender, EventArgs e)
        {
            FormPurchaseOrderSequence fpos = new FormPurchaseOrderSequence(FormPurchaseOrderSequence.OrderType.PurchaseApplyOrder);

            fpos.ShowDialog();
        }
Exemplo n.º 9
0
        private void labelPurchaseInPayment_Click(object sender, EventArgs e)
        {
            FormPurchaseOrderSequence fpos = new FormPurchaseOrderSequence(FormPurchaseOrderSequence.OrderType.PurchaseInOrderExcute);

            fpos.ShowDialog();
        }
Exemplo n.º 10
0
        private void panelInventoryAccountingBuyIn_Click(object sender, EventArgs e)
        {
            FormPurchaseOrderSequence fpos = new FormPurchaseOrderSequence(FormPurchaseOrderSequence.OrderType.PurchaseIn);

            fpos.ShowDialog();
        }
Exemplo n.º 11
0
        private void labelPurchaseInvoice_Click(object sender, EventArgs e)
        {
            FormPurchaseOrderSequence fpos = new FormPurchaseOrderSequence(FormPurchaseOrderSequence.OrderType.EngMaterielInfo);

            fpos.ShowDialog();
        }