コード例 #1
0
        private void checkAccountBillDetaile()
        {
            if (m_isSelectOrderNumber)
            {
                this.Close();
                return;
            }
            // checkAccountBillDetaile函数需要完成弹出一个新的窗口,用来显示单据编号关联的具体单据

            if (m_billNumber.Length > 0)
            {
                if (m_orderType == OrderType.SaleOrder || m_orderType == OrderType.SaleOrderExcute)
                {
                    FormSaleOrder fpo = new FormSaleOrder(m_billNumber);
                    fpo.ShowDialog();
                    updateDataGridView();
                }
                else if (m_orderType == OrderType.SaleOut || m_orderType == OrderType.SaleOutOrderExcute)
                {
                    FormSaleOutOrder fpo = new FormSaleOutOrder(m_billNumber);
                    fpo.ShowDialog();
                    updateDataGridView();
                }
                else if (m_orderType == OrderType.SaleInvoice)
                {
                    //销售发票序时薄
                }
                else if (m_orderType == OrderType.SaleQuotation)
                {
                    FormSaleQuotationOrder fsqo = new FormSaleQuotationOrder(m_billNumber);
                    fsqo.ShowDialog();
                    updateDataGridView();
                }
                else if (m_orderType == OrderType.StorageMaterielOut)
                {
                    FormMaterielOutOrder fmoo = new FormMaterielOutOrder(m_billNumber);
                    fmoo.ShowDialog();
                    updateDataGridView();
                }
                else if (m_orderType == OrderType.StorageOutCheck)
                {
                    FormMaterielOutEarningsOrder fmoo = new FormMaterielOutEarningsOrder(m_billNumber);
                    fmoo.ShowDialog();
                    updateDataGridView();
                }
                else if (m_orderType == OrderType.StorageOutOther)
                {
                    FormMaterielOutOtherOrder fmoo = new FormMaterielOutOtherOrder(m_billNumber);
                    fmoo.ShowDialog();
                    updateDataGridView();
                }
                else
                {
                    MessageBoxExtend.messageWarning("暂时不支持的序时薄类型");
                }
            }
        }
コード例 #2
0
        // 确定
        private void buttonEnter_Click(object sender, EventArgs e)
        {
            m_proInfoListUser.Clear();

            for (int index = 0; index < m_proInfoList.Count; index++)
            {
                if (Convert.ToBoolean(dataGridViewDataList.Rows[index].Cells[(int)DataGridColumnName.Select].Value))
                {
                    m_proInfoListUser.Add(m_proInfoListUser.Count, m_proInfoList[index]);
                }
            }

            if (m_proInfoListUser.Count > 12)
            {
                MessageBoxExtend.messageWarning("选择的数据条目不得超过12条, 请重新选择");

                return;
            }

            if (m_proInfoListUser.Count == 0)
            {
                MessageBoxExtend.messageWarning("未选择任何数据, 请重新选择");
                return;
            }

            if (m_dataType == 1)
            {
                FormMaterielProOccupied fmpo = new FormMaterielProOccupied("", m_proInfoListUser);
                fmpo.ShowDialog();
            }
            else if (m_dataType == 2)
            {
                FormPurchaseApply fmpo = new FormPurchaseApply("", m_proInfoListUser);
                fmpo.ShowDialog();
            }
            else if (m_dataType == 3)
            {
                FormMaterielOutOrder fmpo = new FormMaterielOutOrder("", m_proInfoListUser);
                fmpo.ShowDialog();
            }

            this.Close();
        }
コード例 #3
0
 private void checkAccountBillDetaile()
 {
     if (m_billNumber.Length > 0)
     {
         if (m_orderType == OrderType.PurchaseApplyOrder)
         {
             FormPurchaseApply fpa = new FormPurchaseApply(m_billNumber);
             fpa.ShowDialog();
             updateDataGridView();
         }
         else if (m_orderType == OrderType.PurchaseOrder)
         {
             FormPurchaseOrder fpo = new FormPurchaseOrder(m_billNumber);
             fpo.ShowDialog();
             updateDataGridView();
         }
         else if (m_orderType == OrderType.PurchaseIn)
         {
             FormPurchaseInOrder fpo = new FormPurchaseInOrder(m_billNumber);
             fpo.ShowDialog();
             updateDataGridView();
         }
         else if (m_orderType == OrderType.StorageMaterielOut)
         {
             FormMaterielOutOrder fmoo = new FormMaterielOutOrder(m_billNumber);
             fmoo.ShowDialog();
             updateDataGridView();
         }
         else if (m_orderType == OrderType.ChangeApply)
         {
             FormProjectMaterielChangeOrder fmoo = new FormProjectMaterielChangeOrder(m_billNumber);
             fmoo.ShowDialog();
             updateDataGridView();
         }
         else
         {
             MessageBoxExtend.messageWarning("暂时不支持的序时薄类型");
         }
     }
 }
コード例 #4
0
        private void menuBillMaterielOut_Click(object sender, EventArgs e)
        {
            FormMaterielOutOrder fmoo = new FormMaterielOutOrder();

            fmoo.ShowDialog();
        }
コード例 #5
0
        private void dataGridViewList_DoubleClick(object sender, EventArgs e)
        {
            try
            {
                if (m_dataGridRecordCount > 0)
                {
                    // 当单击某个单元格时,自动选择整行
                    for (int i = 0; i < this.dataGridViewList.RowCount; i++)
                    {
                        for (int j = 0; j < dataGridViewList.ColumnCount; j++)
                        {
                            if (dataGridViewList.Rows[i].Cells[j].Selected)
                            {
                                dataGridViewList.Rows[i].Selected = true;

                                m_billNumber = dataGridViewList.Rows[i].Cells[2].Value.ToString();
                                m_billType   = dataGridViewList.Rows[i].Cells[3].Value.ToString();
                                break;
                            }
                        }
                    }
                }

                if (m_billType.Length > 0 && m_billNumber.Length > 0)
                {
                    if (m_billType == "采购入库")
                    {
                        FormPurchaseInOrder fpo = new FormPurchaseInOrder(m_billNumber);
                        fpo.ShowDialog();
                    }
                    else if (m_billType == "盘盈入库")
                    {
                        FormMaterielInEarningsOrder fmoo = new FormMaterielInEarningsOrder(m_billNumber);
                        fmoo.ShowDialog();
                    }
                    else if (m_billType == "产品入库")
                    {
                        FormMaterielInOrder fmoo = new FormMaterielInOrder(m_billNumber);
                        fmoo.ShowDialog();
                    }
                    else if (m_billType == "其他入库")
                    {
                        FormMaterielInOtherOrder fmoo = new FormMaterielInOtherOrder(m_billNumber);
                        fmoo.ShowDialog();
                    }
                    else if (m_billType == "生产领料")
                    {
                        FormMaterielOutOrder fmoo = new FormMaterielOutOrder(m_billNumber);
                        fmoo.ShowDialog();
                    }
                    else if (m_billType == "其他出库")
                    {
                        FormMaterielOutOtherOrder fmoo = new FormMaterielOutOtherOrder(m_billNumber);
                        fmoo.ShowDialog();
                    }
                    else if (m_billType == "盘盈毁损")
                    {
                        FormMaterielOutEarningsOrder fmoo = new FormMaterielOutEarningsOrder(m_billNumber);
                        fmoo.ShowDialog();
                    }
                    else if (m_billType == "销售出库")
                    {
                        FormSaleOutOrder fpo = new FormSaleOutOrder(m_billNumber);
                        fpo.ShowDialog();
                    }
                }
            }
            catch (Exception)
            {
            }
        }
コード例 #6
0
        private void panelStorageProductionOut_Click(object sender, EventArgs e)
        {
            FormMaterielOutOrder fmoo = new FormMaterielOutOrder();

            fmoo.ShowDialog();
        }