📄 storeview.cpp
字号:
// StoreView.cpp : implementation of the CStoreView class
//
#include "stdafx.h"
#include "Store.h"
#include "StoreDoc.h"
#include "StoreView.h"
#include "ProductInfo.h"
#include "MaterialInfo.h"
#include "BuyInputForm.h"
#include "MaterialMoveForm.h"
#include "MaterialOutputForm.h"
#include "ProductInputForm.h"
#include "ProductLoseForm.h"
#include "ProductMoveForm.h"
#include "ProductOutputForm.h"
#include "MaterialLoseForm1.h"
#include "MaterialSummary.h"
#include "SearchBuyInputForm.h"
#include "SearchMaterialMoveForm.h"
#include "SearchMaterialOutputForm.h"
#include "SearchProductInputForm.h"
#include "SearchProductOutputForm.h"
#include "SearchProductLoseForm.h"
#include "SearchProductMoveForm.h"
#include "SearchMaterialLoseForm.h"
#include "StoreHouseSumAnalysis.h"
#include "SumInputForm.h"
#include "SumMaterialInputForm.h"
#include "SumProductOutputForm.h"
#include "SumMaterialOutputForm.h"
#include "StoreHouseMaterialSummary.h"
#include "AlarmMaterial.h"
#include "AlarmProduct.h"
#include "Sumary.h"
#include "SearchSumary.h"
#include "Account.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CStoreView
IMPLEMENT_DYNCREATE(CStoreView, CFormView)
BEGIN_MESSAGE_MAP(CStoreView, CFormView)
//{{AFX_MSG_MAP(CStoreView)
ON_COMMAND(ID_input_buyInputForm, OnInputBuyInputForm)
ON_COMMAND(ID_input_materialMoveForm, OnInputMaterialMoveForm)
ON_COMMAND(ID_input_materialOutputForm, OnInputMaterialOutputForm)
ON_COMMAND(ID_input_productInputForm, OnInputProductInputForm)
ON_COMMAND(ID_input_productLoseForm, OnInputProductLoseForm)
ON_COMMAND(ID_input_productOutputForm, OnInputProductOutputForm)
ON_COMMAND(ID_inputProductMoveForm, OnInputProductMoveForm)
ON_COMMAND(ID_search_buyInputForm, OnSearchBuyInputForm)
ON_COMMAND(ID_search_materialMoveForm, OnSearchMaterialMoveForm)
ON_COMMAND(ID_search_materialOutputForm, OnSearchMaterialOutputForm)
ON_COMMAND(ID_search_productInputForm, OnSearchProductInputForm)
ON_COMMAND(ID_search_productOutputForm, OnSearchProductOutputForm)
ON_COMMAND(ID_search_productLoseForm, OnSearchProductLoseForm)
ON_COMMAND(ID_search_productMoveForm, OnSearchProductMoveForm)
ON_COMMAND(ID_analysis_sumProduct, OnAnalysisSumProduct)
ON_COMMAND(ID_analysis_productInput, OnAnalysisProductInput)
ON_COMMAND(ID_analysis_materialInputForm, OnAnalysisMaterialInputForm)
ON_COMMAND(ID_analysis_productOutputForm, OnAnalysisProductOutputForm)
ON_COMMAND(ID_analysis_materialOutputForm, OnAnalysisMaterialOutputForm)
ON_COMMAND(ID_input_sumary, OnInputSumary)
ON_COMMAND(ID_search_sumary, OnSearchSumary)
ON_COMMAND(ID_input_account, OnInputAccount)
ON_COMMAND(ID_inputMaterialLoseForm, OnInputMaterialLoseForm)
ON_COMMAND(ID_search_materialLoseForm, OnSearchMaterialLoseForm)
ON_COMMAND(ID_input_materialSummary, OnInputMaterialSummary)
ON_COMMAND(ID_analysis_sumMaterial, OnAnalysisSumMaterial)
ON_COMMAND(ID_set_productInfo, OnSetProductInfo)
ON_COMMAND(ID_set_materialInfo, OnSetMaterialInfo)
ON_COMMAND(ID_analysis_alarmMaterial, OnAnalysisalarmMaterial)
ON_COMMAND(ID_analysis_alarmProduct, OnAnalysisAlarmProduct)
//}}AFX_MSG_MAP
// Standard printing commands
ON_COMMAND(ID_FILE_PRINT, CFormView::OnFilePrint)
ON_COMMAND(ID_FILE_PRINT_DIRECT, CFormView::OnFilePrint)
ON_COMMAND(ID_FILE_PRINT_PREVIEW, CFormView::OnFilePrintPreview)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CStoreView construction/destruction
CStoreView::CStoreView()
: CFormView(CStoreView::IDD)
{
//{{AFX_DATA_INIT(CStoreView)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
// TODO: add construction code here
}
CStoreView::~CStoreView()
{
}
void CStoreView::DoDataExchange(CDataExchange* pDX)
{
CFormView::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CStoreView)
// NOTE: the ClassWizard will add DDX and DDV calls here
//}}AFX_DATA_MAP
}
BOOL CStoreView::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
return CFormView::PreCreateWindow(cs);
}
void CStoreView::OnInitialUpdate()
{
CFormView::OnInitialUpdate();
GetParentFrame()->RecalcLayout();
ResizeParentToFit();
}
/////////////////////////////////////////////////////////////////////////////
// CStoreView printing
BOOL CStoreView::OnPreparePrinting(CPrintInfo* pInfo)
{
// default preparation
return DoPreparePrinting(pInfo);
}
void CStoreView::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
// TODO: add extra initialization before printing
}
void CStoreView::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
{
// TODO: add cleanup after printing
}
void CStoreView::OnPrint(CDC* pDC, CPrintInfo* /*pInfo*/)
{
// TODO: add customized printing code here
}
/////////////////////////////////////////////////////////////////////////////
// CStoreView diagnostics
#ifdef _DEBUG
void CStoreView::AssertValid() const
{
CFormView::AssertValid();
}
void CStoreView::Dump(CDumpContext& dc) const
{
CFormView::Dump(dc);
}
CStoreDoc* CStoreView::GetDocument() // non-debug version is inline
{
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CStoreDoc)));
return (CStoreDoc*)m_pDocument;
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CStoreView message handlers
void CStoreView::OnInputBuyInputForm()
{
CBuyInputForm dlg;
if(dlg.DoModal()==IDOK)
{
}
}
void CStoreView::OnInputMaterialMoveForm()
{
CMaterialMoveForm dlg;
if(dlg.DoModal()==IDOK)
{
}
}
void CStoreView::OnInputMaterialOutputForm()
{
CMaterialOutputForm dlg;
if(dlg.DoModal()==IDOK)
{
}
}
void CStoreView::OnInputProductInputForm()
{
CProductInputForm dlg;
if(dlg.DoModal()==IDOK)
{
}
}
void CStoreView::OnInputProductLoseForm()
{
CProductLoseForm dlg;
if(dlg.DoModal()==IDOK)
{
}
}
void CStoreView::OnInputProductOutputForm()
{
CProductOutputForm dlg;
if(dlg.DoModal()==IDOK)
{
}
}
void CStoreView::OnInputProductMoveForm()
{
CProductMoveForm dlg;
if(dlg.DoModal()==IDOK)
{
}
}
void CStoreView::OnSearchBuyInputForm()
{
CSearchBuyInputForm dlg;
if(dlg.DoModal()==IDOK)
{
}
}
void CStoreView::OnSearchMaterialMoveForm()
{
CSearchMaterialMoveForm dlg;
if(dlg.DoModal()==IDOK)
{
}
}
void CStoreView::OnSearchMaterialOutputForm()
{
CSearchMaterialOutputForm dlg;
if(dlg.DoModal()==IDOK)
{
}
}
void CStoreView::OnSearchProductInputForm()
{
CSearchProductInputForm dlg;
if(dlg.DoModal()==IDOK)
{
}
}
void CStoreView::OnSearchProductOutputForm()
{
CSearchProductOutputForm dlg;
if(dlg.DoModal()==IDOK)
{
}
}
void CStoreView::OnSearchProductLoseForm()
{
CSearchProductLoseForm dlg;
if(dlg.DoModal()==IDOK)
{
}
}
void CStoreView::OnSearchProductMoveForm()
{
CSearchProductMoveForm dlg;
if(dlg.DoModal()==IDOK)
{
}
}
void CStoreView::OnAnalysisSumProduct()
{
CStoreHouseSumAnalysis dlg;
if(dlg.DoModal()==IDOK)
{
}
}
void CStoreView::OnAnalysisProductInput()
{
CSumInputForm dlg;
if(dlg.DoModal()==IDOK)
{
}
}
void CStoreView::OnAnalysisMaterialInputForm()
{
CSumMaterialInputForm dlg;
if(dlg.DoModal()==IDOK)
{
}
}
void CStoreView::OnAnalysisProductOutputForm()
{
CSumProductOutputForm dlg;
if(dlg.DoModal()==IDOK)
{
}
}
void CStoreView::OnAnalysisMaterialOutputForm()
{
CSumMaterialOutputForm dlg;
if(dlg.DoModal()==IDOK)
{
}
}
void CStoreView::OnInputSumary()
{
CSumary dlg;
if(dlg.DoModal()==IDOK)
{
}
}
void CStoreView::OnSearchSumary()
{
CSearchSumary dlg;
if(dlg.DoModal()==IDOK)
{
}
}
void CStoreView::OnInputAccount()
{
CAccount dlg;
if(dlg.DoModal()==IDOK)
{
}
}
void CStoreView::OnInputMaterialLoseForm()
{
CMaterialLoseForm1 dlg;
if(dlg.DoModal()==IDOK)
{
}
}
void CStoreView::OnSearchMaterialLoseForm()
{
CSearchMaterialLoseForm dlg;
if(dlg.DoModal()==IDOK)
{
}
}
void CStoreView::OnInputMaterialSummary()
{
CMaterialSummary dlg;
if(dlg.DoModal()==IDOK)
{
}
}
void CStoreView::OnAnalysisSumMaterial()
{
CStoreHouseMaterialSummary dlg;
if(dlg.DoModal()==IDOK)
{
}
}
void CStoreView::OnSetProductInfo()
{
CProductInfo dlg;
if(dlg.DoModal()==IDOK)
{
}
}
void CStoreView::OnSetMaterialInfo()
{
CMaterialInfo dlg;
if(dlg.DoModal()==IDOK)
{
}
}
void CStoreView::OnAnalysisalarmMaterial()
{
CAlarmMaterial dlg;
if(dlg.DoModal()==IDOK)
{
}
}
void CStoreView::OnAnalysisAlarmProduct()
{
CAlarmProduct dlg;
if(dlg.DoModal()==IDOK)
{
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -