福利彩票号码统计View.cpp
资源名称:福利彩票号码统计.rar [点击查看]
上传用户:dinghaosmt
上传日期:2013-03-22
资源大小:110k
文件大小:42k
源码类别:
射击游戏
开发平台:
Visual C++
- // 福利彩票号码统计View.cpp : implementation of the CMyView class
- //
- #include "stdafx.h"
- #include "福利彩票号码统计.h"
- #include "福利彩票号码统计Set.h"
- #include "福利彩票号码统计Doc.h"
- #include "福利彩票号码统计View.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CMyView
- IMPLEMENT_DYNCREATE(CMyView, CRecordView)
- BEGIN_MESSAGE_MAP(CMyView, CRecordView)
- //{{AFX_MSG_MAP(CMyView)
- ON_BN_CLICKED(IDC_ADD_BUTTON, OnAddButton)
- ON_BN_CLICKED(IDC_FIND_BUTTON, OnFindButton)
- ON_BN_CLICKED(IDC_MODIFY_BUTTON, OnModifyButton)
- ON_BN_CLICKED(IDC_TEST_BUTTON, OnTestButton)
- ON_WM_CTLCOLOR()
- ON_BN_CLICKED(IDC_DELETE_BUTTON, OnDeleteButton)
- //}}AFX_MSG_MAP
- // Standard printing commands
- ON_COMMAND(ID_FILE_PRINT, CRecordView::OnFilePrint)
- ON_COMMAND(ID_FILE_PRINT_DIRECT, CRecordView::OnFilePrint)
- ON_COMMAND(ID_FILE_PRINT_PREVIEW, CRecordView::OnFilePrintPreview)
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // CMyView construction/destruction
- CMyView::CMyView()
- : CRecordView(CMyView::IDD)
- {
- //{{AFX_DATA_INIT(CMyView)
- m_pSet = NULL;
- //}}AFX_DATA_INIT
- // TODO: add construction code here
- }
- CMyView::~CMyView()
- {
- }
- void CMyView::DoDataExchange(CDataExchange* pDX)
- {
- CRecordView::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(CMyView)
- DDX_FieldText(pDX, IDC_EDIT1, m_pSet->m_column1, m_pSet);
- DDX_FieldText(pDX, IDC_EDIT2, m_pSet->m_column2, m_pSet);
- DDX_FieldText(pDX, IDC_EDIT3, m_pSet->m_column3, m_pSet);
- DDX_FieldText(pDX, IDC_EDIT4, m_pSet->m_column4, m_pSet);
- DDX_FieldText(pDX, IDC_EDIT5, m_pSet->m_column5, m_pSet);
- DDX_FieldText(pDX, IDC_EDIT6, m_pSet->m_column6, m_pSet);
- DDX_FieldText(pDX, IDC_EDIT7, m_pSet->m_column7, m_pSet);
- DDX_FieldText(pDX, IDC_EDIT8, m_pSet->m_column8, m_pSet);
- DDX_FieldText(pDX, IDC_EDIT9, m_pSet->m_column9, m_pSet);
- //}}AFX_DATA_MAP
- }
- BOOL CMyView::PreCreateWindow(CREATESTRUCT& cs)
- {
- // TODO: Modify the Window class or styles here by modifying
- // the CREATESTRUCT cs
- return CRecordView::PreCreateWindow(cs);
- }
- void CMyView::OnInitialUpdate()
- {
- m_pSet = &GetDocument()->m_mySet;
- m_hbrush=CreateSolidBrush(RGB(187,255,255));
- CRecordView::OnInitialUpdate();
- GetParentFrame()->RecalcLayout();
- ResizeParentToFit();
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMyView printing
- BOOL CMyView::OnPreparePrinting(CPrintInfo* pInfo)
- {
- // default preparation
- return DoPreparePrinting(pInfo);
- }
- void CMyView::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
- {
- // TODO: add extra initialization before printing
- }
- void CMyView::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/)
- {
- // TODO: add cleanup after printing
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMyView diagnostics
- #ifdef _DEBUG
- void CMyView::AssertValid() const
- {
- CRecordView::AssertValid();
- }
- void CMyView::Dump(CDumpContext& dc) const
- {
- CRecordView::Dump(dc);
- }
- CMyDoc* CMyView::GetDocument() // non-debug version is inline
- {
- ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CMyDoc)));
- return (CMyDoc*)m_pDocument;
- }
- #endif //_DEBUG
- /////////////////////////////////////////////////////////////////////////////
- // CMyView database support
- CRecordset* CMyView::OnGetRecordset()
- {
- return m_pSet;
- }
- /////////////////////////////////////////////////////////////////////////////
- // CMyView message handlers
- void CMyView::OnAddButton()
- {
- Ag:
- if(password.DoModal()==IDOK)
- {
- if(password.m_Password=="i love money add")
- {
- if(add.DoModal()==IDOK)
- {
- m_pSet->MoveFirst();
- do
- {
- if(m_pSet->m_column9!=add.m_Add_ID)
- m_pSet->MoveNext();
- else
- {
- AfxMessageBox("此期号码已经存在!");
- return;
- }
- }while(!m_pSet->IsEOF());
- m_pSet->AddNew();
- m_pSet->m_column9=add.m_Add_ID;
- m_pSet->m_column1=add.m_Add_Num1;
- m_pSet->m_column2=add.m_Add_Num2;
- m_pSet->m_column3=add.m_Add_Num3;
- m_pSet->m_column4=add.m_Add_Num4;
- m_pSet->m_column5=add.m_Add_Num5;
- m_pSet->m_column6=add.m_Add_Num6;
- m_pSet->m_column7=add.m_Add_Num7;
- m_pSet->m_column8=add.m_Add_Specious;
- m_pSet->Update();
- m_pSet->Requery();
- m_pSet->MoveLast();
- UpdateData(FALSE);
- }
- }
- else {MessageBox("密码错误!");goto Ag;}
- }
- }
- void CMyView::OnFindButton()
- {
- if(del.DoModal()==IDOK)
- {
- m_pSet->MoveFirst();
- do
- {
- if(m_pSet->m_column9==del.m_Del_ID)
- {
- add.m_Add_ID=m_pSet->m_column9;
- add.m_Add_Num1=m_pSet->m_column1;
- add.m_Add_Num2=m_pSet->m_column2;
- add.m_Add_Num3=m_pSet->m_column3;
- add.m_Add_Num4=m_pSet->m_column4;
- add.m_Add_Num5=m_pSet->m_column5;
- add.m_Add_Num6=m_pSet->m_column6;
- add.m_Add_Num7=m_pSet->m_column7;
- add.m_Add_Specious=m_pSet->m_column8;
- m_pSet->Requery();
- UpdateData(FALSE);
- add.DoModal();
- return;
- }
- else m_pSet->MoveNext();
- }while(!m_pSet->IsEOF());
- if(m_pSet->IsEOF())
- {
- MessageBox("没有您要找的记录!");
- m_pSet->MoveFirst();
- UpdateData(FALSE);
- return;
- }
- }
- }
- void CMyView::OnModifyButton()
- {
- Loop: if(password.DoModal()==IDOK)
- {
- if(password.m_Password=="i love money modify")
- {
- if(change.DoModal()==IDOK)
- {
- m_pSet->MoveFirst();
- do
- {
- if(change.m_Modify_ID==m_pSet->m_column9)
- {
- add.m_Add_ID=m_pSet->m_column9;
- add.m_Add_Num1=m_pSet->m_column1;
- add.m_Add_Num2=m_pSet->m_column2;
- add.m_Add_Num3=m_pSet->m_column3;
- add.m_Add_Num4=m_pSet->m_column4;
- add.m_Add_Num5=m_pSet->m_column5;
- add.m_Add_Num6=m_pSet->m_column6;
- add.m_Add_Num7=m_pSet->m_column7;
- add.m_Add_Specious=m_pSet->m_column8;
- UpdateData(FALSE);
- if(add.DoModal()==IDOK)
- {
- m_pSet->Edit();
- m_pSet->m_column1=add.m_Add_Num1;
- m_pSet->m_column2=add.m_Add_Num2;
- m_pSet->m_column3=add.m_Add_Num3;
- m_pSet->m_column4=add.m_Add_Num4;
- m_pSet->m_column5=add.m_Add_Num5;
- m_pSet->m_column6=add.m_Add_Num6;
- m_pSet->m_column7=add.m_Add_Num7;
- m_pSet->m_column8=add.m_Add_Specious;
- m_pSet->Update();
- UpdateData(FALSE);
- return;
- }
- else return;
- }
- else m_pSet->MoveNext();
- }while(!m_pSet->IsEOF());
- if(m_pSet->IsEOF())
- {
- MessageBox("没有此记录");
- m_pSet->MoveFirst();
- UpdateData(FALSE);
- return;
- }
- else return;
- }
- }
- else {MessageBox("密码错误!");goto Loop;}
- }
- }
- void CMyView::OnTestButton()
- {
- RET:
- if(password.DoModal()==IDOK)
- {
- if(password.m_Password=="let me in")
- {
- BACK:
- long i;
- int j;
- long store_Number=0;
- float measure_Time=0;
- float specious_measure_Time=0;
- float wide_measure_Time=0;
- float mistake[32];
- float mistake_all=0;
- float mistake_average=0;
- float s_mistake[32];
- float s_mistake_all=0;
- float s_mistake_average=0;
- float w_mistake[32];
- float w_mistake_all=0;
- float w_mistake_average=0;
- float End_measure_Time=0;
- float End_measure_Time1=0;
- float End_mistake[10];
- float End_mistake_all=0;
- float End_mistake_average=0;
- float Specious_End_measure_Time1=0;
- float Specious_End_measure_Time=0;
- float Specious_End_mistake[10];
- float Specious_End_mistake_all=0;
- float Specious_End_mistake_average=0;
- for(j=0;j<32;j++)
- {
- Spear_Time[j]=0;
- Specious_Spear_Time[j]=0;
- }
- for(i=0;i<10;i++)
- {
- End_Spear_Time[i]=0;
- Specious_End_Spear_Time[i]=0;
- }
- for(j=0;j<8;j++)
- wide[j]=0;
- m_pSet->MoveFirst();
- do{
- for(i=1;i<33;i++)//获得普通号码出现频率
- {
- if(m_pSet->m_column1==i)
- Spear_Time[i-1]++;
- }
- for(i=1;i<33;i++)
- {
- if(m_pSet->m_column2==i)
- Spear_Time[i-1]++;
- }
- for(i=1;i<33;i++)
- {
- if(m_pSet->m_column3==i)
- Spear_Time[i-1]++;
- }
- for(i=1;i<33;i++)
- {
- if(m_pSet->m_column4==i)
- Spear_Time[i-1]++;
- }
- for(i=1;i<33;i++)
- {
- if(m_pSet->m_column5==i)
- Spear_Time[i-1]++;
- }
- for(i=1;i<33;i++)
- {
- if(m_pSet->m_column6==i)
- Spear_Time[i-1]++;
- }
- for(i=1;i<33;i++)
- {
- if(m_pSet->m_column7==i)
- Spear_Time[i-1]++;
- }
- for(i=1;i<33;i++)//获得特别号码出现频率
- {
- if(m_pSet->m_column8==i)
- Specious_Spear_Time[i-1]++;
- }
- if((m_pSet->m_column1>=1)&&(m_pSet->m_column1<=4))//获得区间出现频率
- wide[0]++;
- else if((m_pSet->m_column1>=5)&&(m_pSet->m_column1<=8))
- wide[1]++;
- else if((m_pSet->m_column1>=9)&&(m_pSet->m_column1<=12))
- wide[2]++;
- else if((m_pSet->m_column1>=13)&&(m_pSet->m_column1<=16))
- wide[3]++;
- else if((m_pSet->m_column1>=17)&&(m_pSet->m_column1<=20))
- wide[4]++;
- else if((m_pSet->m_column1>=21)&&(m_pSet->m_column1<=24))
- wide[5]++;
- else if((m_pSet->m_column1>=25)&&(m_pSet->m_column1<=28))
- wide[6]++;
- else wide[7]++;
- if((m_pSet->m_column2>=1)&&(m_pSet->m_column2<=4))
- wide[0]++;
- else if((m_pSet->m_column2>=5)&&(m_pSet->m_column2<=8))
- wide[1]++;
- else if((m_pSet->m_column2>=9)&&(m_pSet->m_column2<=12))
- wide[2]++;
- else if((m_pSet->m_column2>=13)&&(m_pSet->m_column2<=16))
- wide[3]++;
- else if((m_pSet->m_column2>=17)&&(m_pSet->m_column2<=20))
- wide[4]++;
- else if((m_pSet->m_column2>=21)&&(m_pSet->m_column2<=24))
- wide[5]++;
- else if((m_pSet->m_column2>=25)&&(m_pSet->m_column2<=28))
- wide[6]++;
- else wide[7]++;
- if((m_pSet->m_column3>=1)&&(m_pSet->m_column3<=4))
- wide[0]++;
- else if((m_pSet->m_column3>=5)&&(m_pSet->m_column3<=8))
- wide[1]++;
- else if((m_pSet->m_column3>=9)&&(m_pSet->m_column3<=12))
- wide[2]++;
- else if((m_pSet->m_column3>=13)&&(m_pSet->m_column3<=16))
- wide[3]++;
- else if((m_pSet->m_column3>=17)&&(m_pSet->m_column3<=20))
- wide[4]++;
- else if((m_pSet->m_column3>=21)&&(m_pSet->m_column3<=24))
- wide[5]++;
- else if((m_pSet->m_column3>=25)&&(m_pSet->m_column3<=28))
- wide[6]++;
- else wide[7]++;
- if((m_pSet->m_column4>=1)&&(m_pSet->m_column4<=4))
- wide[0]++;
- else if((m_pSet->m_column4>=5)&&(m_pSet->m_column4<=8))
- wide[1]++;
- else if((m_pSet->m_column4>=9)&&(m_pSet->m_column4<=12))
- wide[2]++;
- else if((m_pSet->m_column4>=13)&&(m_pSet->m_column4<=16))
- wide[3]++;
- else if((m_pSet->m_column4>=17)&&(m_pSet->m_column4<=20))
- wide[4]++;
- else if((m_pSet->m_column4>=21)&&(m_pSet->m_column4<=24))
- wide[5]++;
- else if((m_pSet->m_column4>=25)&&(m_pSet->m_column4<=28))
- wide[6]++;
- else wide[7]++;
- if((m_pSet->m_column5>=1)&&(m_pSet->m_column5<=4))
- wide[0]++;
- else if((m_pSet->m_column5>=5)&&(m_pSet->m_column5<=8))
- wide[1]++;
- else if((m_pSet->m_column5>=9)&&(m_pSet->m_column5<=12))
- wide[2]++;
- else if((m_pSet->m_column5>=13)&&(m_pSet->m_column5<=16))
- wide[3]++;
- else if((m_pSet->m_column5>=17)&&(m_pSet->m_column5<=20))
- wide[4]++;
- else if((m_pSet->m_column5>=21)&&(m_pSet->m_column5<=24))
- wide[5]++;
- else if((m_pSet->m_column5>=25)&&(m_pSet->m_column5<=28))
- wide[6]++;
- else wide[7]++;
- if((m_pSet->m_column6>=1)&&(m_pSet->m_column6<=4))
- wide[0]++;
- else if((m_pSet->m_column6>=5)&&(m_pSet->m_column6<=8))
- wide[1]++;
- else if((m_pSet->m_column6>=9)&&(m_pSet->m_column6<=12))
- wide[2]++;
- else if((m_pSet->m_column6>=13)&&(m_pSet->m_column6<=16))
- wide[3]++;
- else if((m_pSet->m_column6>=17)&&(m_pSet->m_column6<=20))
- wide[4]++;
- else if((m_pSet->m_column6>=21)&&(m_pSet->m_column6<=24))
- wide[5]++;
- else if((m_pSet->m_column6>=25)&&(m_pSet->m_column6<=28))
- wide[6]++;
- else wide[7]++;
- if((m_pSet->m_column7>=1)&&(m_pSet->m_column7<=4))
- wide[0]++;
- else if((m_pSet->m_column7>=5)&&(m_pSet->m_column7<=8))
- wide[1]++;
- else if((m_pSet->m_column7>=9)&&(m_pSet->m_column7<=12))
- wide[2]++;
- else if((m_pSet->m_column7>=13)&&(m_pSet->m_column7<=16))
- wide[3]++;
- else if((m_pSet->m_column7>=17)&&(m_pSet->m_column7<=20))
- wide[4]++;
- else if((m_pSet->m_column7>=21)&&(m_pSet->m_column7<=24))
- wide[5]++;
- else if((m_pSet->m_column7>=25)&&(m_pSet->m_column7<=28))
- wide[6]++;
- else wide[7]++;
- if((m_pSet->m_column8>=1)&&(m_pSet->m_column8<=4))
- wide[0]++;
- else if((m_pSet->m_column8>=5)&&(m_pSet->m_column8<=8))
- wide[1]++;
- else if((m_pSet->m_column8>=9)&&(m_pSet->m_column8<=12))
- wide[2]++;
- else if((m_pSet->m_column8>=13)&&(m_pSet->m_column8<=16))
- wide[3]++;
- else if((m_pSet->m_column8>=17)&&(m_pSet->m_column8<=20))
- wide[4]++;
- else if((m_pSet->m_column8>=21)&&(m_pSet->m_column8<=24))
- wide[5]++;
- else if((m_pSet->m_column8>=25)&&(m_pSet->m_column8<=28))
- wide[6]++;
- else wide[7]++;
- store_Number++;//获得数据库总期数
- switch(m_pSet->m_column1%10)
- {
- case 0:End_Spear_Time[0]++;break;
- case 1:End_Spear_Time[1]++;break;
- case 2:End_Spear_Time[2]++;break;
- case 3:End_Spear_Time[3]++;break;
- case 4:End_Spear_Time[4]++;break;
- case 5:End_Spear_Time[5]++;break;
- case 6:End_Spear_Time[6]++;break;
- case 7:End_Spear_Time[7]++;break;
- case 8:End_Spear_Time[8]++;break;
- case 9:End_Spear_Time[9]++;break;
- default:break;
- }
- switch(m_pSet->m_column2%10)
- {
- case 0:End_Spear_Time[0]++;break;
- case 1:End_Spear_Time[1]++;break;
- case 2:End_Spear_Time[2]++;break;
- case 3:End_Spear_Time[3]++;break;
- case 4:End_Spear_Time[4]++;break;
- case 5:End_Spear_Time[5]++;break;
- case 6:End_Spear_Time[6]++;break;
- case 7:End_Spear_Time[7]++;break;
- case 8:End_Spear_Time[8]++;break;
- case 9:End_Spear_Time[9]++;break;
- default:break;
- }
- switch(m_pSet->m_column3%10)
- {
- case 0:End_Spear_Time[0]++;break;
- case 1:End_Spear_Time[1]++;break;
- case 2:End_Spear_Time[2]++;break;
- case 3:End_Spear_Time[3]++;break;
- case 4:End_Spear_Time[4]++;break;
- case 5:End_Spear_Time[5]++;break;
- case 6:End_Spear_Time[6]++;break;
- case 7:End_Spear_Time[7]++;break;
- case 8:End_Spear_Time[8]++;break;
- case 9:End_Spear_Time[9]++;break;
- default:break;
- }
- switch(m_pSet->m_column4%10)
- {
- case 0:End_Spear_Time[0]++;break;
- case 1:End_Spear_Time[1]++;break;
- case 2:End_Spear_Time[2]++;break;
- case 3:End_Spear_Time[3]++;break;
- case 4:End_Spear_Time[4]++;break;
- case 5:End_Spear_Time[5]++;break;
- case 6:End_Spear_Time[6]++;break;
- case 7:End_Spear_Time[7]++;break;
- case 8:End_Spear_Time[8]++;break;
- case 9:End_Spear_Time[9]++;break;
- default:break;
- }
- switch(m_pSet->m_column5%10)
- {
- case 0:End_Spear_Time[0]++;break;
- case 1:End_Spear_Time[1]++;break;
- case 2:End_Spear_Time[2]++;break;
- case 3:End_Spear_Time[3]++;break;
- case 4:End_Spear_Time[4]++;break;
- case 5:End_Spear_Time[5]++;break;
- case 6:End_Spear_Time[6]++;break;
- case 7:End_Spear_Time[7]++;break;
- case 8:End_Spear_Time[8]++;break;
- case 9:End_Spear_Time[9]++;break;
- default:break;
- }
- switch(m_pSet->m_column6%10)
- {
- case 0:End_Spear_Time[0]++;break;
- case 1:End_Spear_Time[1]++;break;
- case 2:End_Spear_Time[2]++;break;
- case 3:End_Spear_Time[3]++;break;
- case 4:End_Spear_Time[4]++;break;
- case 5:End_Spear_Time[5]++;break;
- case 6:End_Spear_Time[6]++;break;
- case 7:End_Spear_Time[7]++;break;
- case 8:End_Spear_Time[8]++;break;
- case 9:End_Spear_Time[9]++;break;
- default:break;
- }
- switch(m_pSet->m_column7%10)
- {
- case 0:End_Spear_Time[0]++;break;
- case 1:End_Spear_Time[1]++;break;
- case 2:End_Spear_Time[2]++;break;
- case 3:End_Spear_Time[3]++;break;
- case 4:End_Spear_Time[4]++;break;
- case 5:End_Spear_Time[5]++;break;
- case 6:End_Spear_Time[6]++;break;
- case 7:End_Spear_Time[7]++;break;
- case 8:End_Spear_Time[8]++;break;
- case 9:End_Spear_Time[9]++;break;
- default:break;
- }
- switch(m_pSet->m_column8%10)
- {
- case 0:Specious_End_Spear_Time[0]++;break;
- case 1:Specious_End_Spear_Time[1]++;break;
- case 2:Specious_End_Spear_Time[2]++;break;
- case 3:Specious_End_Spear_Time[3]++;break;
- case 4:Specious_End_Spear_Time[4]++;break;
- case 5:Specious_End_Spear_Time[5]++;break;
- case 6:Specious_End_Spear_Time[6]++;break;
- case 7:Specious_End_Spear_Time[7]++;break;
- case 8:Specious_End_Spear_Time[8]++;break;
- case 9:Specious_End_Spear_Time[9]++;break;
- default:break;
- }
- m_pSet->MoveNext();
- }while(!m_pSet->IsEOF());
- m_pSet->MoveFirst();
- if(store_Number>=25)
- {
- measure_Time=(float)((store_Number)*0.22453);//获得普通号码标准
- specious_measure_Time=(float)((store_Number)*0.04);//获得特别号码标准
- wide_measure_Time=(float)((store_Number)*1);//获得区间标准
- result.m_pp=measure_Time;
- result.m_tt=specious_measure_Time;
- result.m_ww=wide_measure_Time;
- for(i=0;i<32;i++)
- {
- if(Spear_Time[i]>=measure_Time)
- mistake[i]=Spear_Time[i]-measure_Time;
- else
- mistake[i]=measure_Time-Spear_Time[i];
- }
- for(i=0;i<32;i++)
- mistake_all=mistake_all+mistake[i];
- mistake_average=mistake_all/32;
- for(i=0;i<32;i++)
- {
- if(Specious_Spear_Time[i]>=specious_measure_Time)
- s_mistake[i]=Specious_Spear_Time[i]-specious_measure_Time;
- else
- s_mistake[i]=specious_measure_Time-Specious_Spear_Time[i];
- }
- for(i=0;i<32;i++)
- s_mistake_all=s_mistake_all+s_mistake[i];
- s_mistake_average=s_mistake_all/32;
- for(i=0;i<8;i++)
- {
- if(wide[i]>=wide_measure_Time)
- w_mistake[i]=wide[i]-wide_measure_Time;
- else
- w_mistake[i]=wide_measure_Time-wide[i];
- }
- for(i=0;i<8;i++)
- w_mistake_all=w_mistake_all+w_mistake[i];
- w_mistake_average=w_mistake_all/32;
- result.m_mistake=mistake_average;
- result.m_spe_mistake=s_mistake_average;
- result.m_wide_mistake=w_mistake_average;
- result.m_1=Spear_Time[0];
- result.m_2=Spear_Time[1];
- result.m_3=Spear_Time[2];
- result.m_4=Spear_Time[3];
- result.m_6=Spear_Time[5];
- result.m_5=Spear_Time[4];
- result.m_7=Spear_Time[6];
- result.m_9=Spear_Time[8];
- result.m_8=Spear_Time[7];
- result.m_10=Spear_Time[9];
- result.m_11=Spear_Time[10];
- result.m_12=Spear_Time[11];
- result.m_13=Spear_Time[12];
- result.m_14=Spear_Time[13];
- result.m_15=Spear_Time[14];
- result.m_16=Spear_Time[15];
- result.m_17=Spear_Time[16];
- result.m_18=Spear_Time[17];
- result.m_19=Spear_Time[18];
- result.m_20=Spear_Time[19];
- result.m_21=Spear_Time[20];
- result.m_22=Spear_Time[21];
- result.m_23=Spear_Time[22];
- result.m_24=Spear_Time[23];
- result.m_25=Spear_Time[24];
- result.m_26=Spear_Time[25];
- result.m_27=Spear_Time[26];
- result.m_28=Spear_Time[27];
- result.m_29=Spear_Time[28];
- result.m_30=Spear_Time[29];
- result.m_31=Spear_Time[30];
- result.m_32=Spear_Time[31];
- result.m_s1=Specious_Spear_Time[0];
- result.m_s2=Specious_Spear_Time[1];
- result.m_s3=Specious_Spear_Time[2];
- result.m_s4=Specious_Spear_Time[3];
- result.m_s5=Specious_Spear_Time[4];
- result.m_s6=Specious_Spear_Time[5];
- result.m_s7=Specious_Spear_Time[6];
- result.m_s8=Specious_Spear_Time[7];
- result.m_s9=Specious_Spear_Time[8];
- result.m_s10=Specious_Spear_Time[9];
- result.m_s11=Specious_Spear_Time[10];
- result.m_s12=Specious_Spear_Time[11];
- result.m_s13=Specious_Spear_Time[12];
- result.m_s14=Specious_Spear_Time[13];
- result.m_s15=Specious_Spear_Time[14];
- result.m_s16=Specious_Spear_Time[15];
- result.m_s17=Specious_Spear_Time[16];
- result.m_s18=Specious_Spear_Time[17];
- result.m_s19=Specious_Spear_Time[18];
- result.m_s20=Specious_Spear_Time[19];
- result.m_s21=Specious_Spear_Time[20];
- result.m_s22=Specious_Spear_Time[21];
- result.m_s23=Specious_Spear_Time[22];
- result.m_s24=Specious_Spear_Time[23];
- result.m_s25=Specious_Spear_Time[24];
- result.m_s26=Specious_Spear_Time[25];
- result.m_s27=Specious_Spear_Time[26];
- result.m_s28=Specious_Spear_Time[27];
- result.m_s29=Specious_Spear_Time[28];
- result.m_s30=Specious_Spear_Time[29];
- result.m_s31=Specious_Spear_Time[30];
- result.m_s32=Specious_Spear_Time[31];
- result.m_w1=wide[0];
- result.m_w2=wide[1];
- result.m_w3=wide[2];
- result.m_w4=wide[3];
- result.m_w5=wide[4];
- result.m_w6=wide[5];
- result.m_w7=wide[6];
- result.m_w8=wide[7];
- if(result.m_1>(measure_Time+mistake_average)) result.m_p1="超标";//普通号码分析
- else if(result.m_1<(measure_Time-mistake_average)) result.m_p1="欠标";
- else result.m_p1="稳定";
- if(result.m_2>(measure_Time+mistake_average)) result.m_p2="超标";
- else if(result.m_2<(measure_Time-mistake_average)) result.m_p2="欠标";
- else result.m_p2="稳定";
- if(result.m_3>(measure_Time+mistake_average)) result.m_p3="超标";
- else if(result.m_3<(measure_Time-mistake_average)) result.m_p3="欠标";
- else result.m_p3="稳定";
- if(result.m_4>(measure_Time+mistake_average)) result.m_p4="超标";
- else if(result.m_4<(measure_Time-mistake_average)) result.m_p4="欠标";
- else result.m_p4="稳定";
- if(result.m_5>(measure_Time+mistake_average)) result.m_p5="超标";
- else if(result.m_5<(measure_Time-mistake_average)) result.m_p5="欠标";
- else result.m_p5="稳定";
- if(result.m_6>(measure_Time+mistake_average)) result.m_p6="超标";
- else if(result.m_6<(measure_Time-mistake_average)) result.m_p6="欠标";
- else result.m_p6="稳定";
- if(result.m_7>(measure_Time+mistake_average)) result.m_p7="超标";
- else if(result.m_7<(measure_Time-mistake_average)) result.m_p7="欠标";
- else result.m_p7="稳定";
- if(result.m_8>(measure_Time+mistake_average)) result.m_p8="超标";
- else if(result.m_8<(measure_Time-mistake_average)) result.m_p8="欠标";
- else result.m_p8="稳定";
- if(result.m_9>(measure_Time+mistake_average)) result.m_p9="超标";
- else if(result.m_9<(measure_Time-mistake_average)) result.m_p9="欠标";
- else result.m_p9="稳定";
- if(result.m_10>(measure_Time+mistake_average)) result.m_p10="超标";
- else if(result.m_10<(measure_Time-mistake_average)) result.m_p10="欠标";
- else result.m_p10="稳定";
- if(result.m_11>(measure_Time+mistake_average)) result.m_p11="超标";
- else if(result.m_11<(measure_Time-mistake_average)) result.m_p11="欠标";
- else result.m_p11="稳定";
- if(result.m_12>(measure_Time+mistake_average)) result.m_p12="超标";
- else if(result.m_12<(measure_Time-mistake_average)) result.m_p12="欠标";
- else result.m_p12="稳定";
- if(result.m_13>(measure_Time+mistake_average)) result.m_p13="超标";
- else if(result.m_13<(measure_Time-mistake_average)) result.m_p13="欠标";
- else result.m_p13="稳定";
- if(result.m_14>(measure_Time+mistake_average)) result.m_p14="超标";
- else if(result.m_14<(measure_Time-mistake_average)) result.m_p14="欠标";
- else result.m_p14="稳定";
- if(result.m_15>(measure_Time+mistake_average)) result.m_p15="超标";
- else if(result.m_15<(measure_Time-mistake_average)) result.m_p15="欠标";
- else result.m_p15="稳定";
- if(result.m_16>(measure_Time+mistake_average)) result.m_p16="超标";
- else if(result.m_16<(measure_Time-mistake_average)) result.m_p16="欠标";
- else result.m_p16="稳定";
- if(result.m_17>(measure_Time+mistake_average)) result.m_p17="超标";
- else if(result.m_17<(measure_Time-mistake_average)) result.m_p17="欠标";
- else result.m_p17="稳定";
- if(result.m_18>(measure_Time+mistake_average)) result.m_p18="超标";
- else if(result.m_18<(measure_Time-mistake_average)) result.m_p18="欠标";
- else result.m_p18="稳定";
- if(result.m_19>(measure_Time+mistake_average)) result.m_p19="超标";
- else if(result.m_19<(measure_Time-mistake_average)) result.m_p19="欠标";
- else result.m_p19="稳定";
- if(result.m_20>(measure_Time+mistake_average)) result.m_p20="超标";
- else if(result.m_20<(measure_Time-mistake_average)) result.m_p20="欠标";
- else result.m_p20="稳定";
- if(result.m_21>(measure_Time+mistake_average)) result.m_p21="超标";
- else if(result.m_21<(measure_Time-mistake_average)) result.m_p21="欠标";
- else result.m_p21="稳定";
- if(result.m_22>(measure_Time+mistake_average)) result.m_p22="超标";
- else if(result.m_22<(measure_Time-mistake_average)) result.m_p22="欠标";
- else result.m_p22="稳定";
- if(result.m_23>(measure_Time+mistake_average)) result.m_p23="超标";
- else if(result.m_23<(measure_Time-mistake_average)) result.m_p23="欠标";
- else result.m_p23="稳定";
- if(result.m_24>(measure_Time+mistake_average)) result.m_p24="超标";
- else if(result.m_24<(measure_Time-mistake_average)) result.m_p24="欠标";
- else result.m_p24="稳定";
- if(result.m_25>(measure_Time+mistake_average)) result.m_p25="超标";
- else if(result.m_25<(measure_Time-mistake_average)) result.m_p25="欠标";
- else result.m_p25="稳定";
- if(result.m_26>(measure_Time+mistake_average)) result.m_p26="超标";
- else if(result.m_26<(measure_Time-mistake_average)) result.m_p26="欠标";
- else result.m_p26="稳定";
- if(result.m_27>(measure_Time+mistake_average)) result.m_p27="超标";
- else if(result.m_27<(measure_Time-mistake_average)) result.m_p27="欠标";
- else result.m_p27="稳定";
- if(result.m_28>(measure_Time+mistake_average)) result.m_p28="超标";
- else if(result.m_28<(measure_Time-mistake_average)) result.m_p28="欠标";
- else result.m_p28="稳定";
- if(result.m_29>(measure_Time+mistake_average)) result.m_p29="超标";
- else if(result.m_29<(measure_Time-mistake_average)) result.m_p29="欠标";
- else result.m_p29="稳定";
- if(result.m_30>(measure_Time+mistake_average)) result.m_p30="超标";
- else if(result.m_30<(measure_Time-mistake_average)) result.m_p30="欠标";
- else result.m_p30="稳定";
- if(result.m_31>(measure_Time+mistake_average)) result.m_p31="超标";
- else if(result.m_31<(measure_Time-mistake_average)) result.m_p31="欠标";
- else result.m_p31="稳定";
- if(result.m_32>(measure_Time+mistake_average)) result.m_p32="超标";
- else if(result.m_32<(measure_Time-mistake_average)) result.m_p32="欠标";
- else result.m_p32="稳定";
- if(result.m_s1>(specious_measure_Time+s_mistake_average)) result.m_sp1="超标";//分析特别号码
- else if(result.m_s1<(specious_measure_Time-s_mistake_average)) result.m_sp1="欠标";
- else result.m_sp1="稳定";
- if(result.m_s2>(specious_measure_Time+s_mistake_average)) result.m_sp2="超标";
- else if(result.m_s2<(specious_measure_Time-s_mistake_average)) result.m_sp2="欠标";
- else result.m_sp2="稳定";
- if(result.m_s3>(specious_measure_Time+s_mistake_average)) result.m_sp3="超标";
- else if(result.m_s3<(specious_measure_Time-s_mistake_average)) result.m_sp3="欠标";
- else result.m_sp3="稳定";
- if(result.m_s4>(specious_measure_Time+s_mistake_average)) result.m_sp4="超标";
- else if(result.m_s4<(specious_measure_Time-s_mistake_average)) result.m_sp4="欠标";
- else result.m_sp4="稳定";
- if(result.m_s5>(specious_measure_Time+s_mistake_average)) result.m_sp5="超标";
- else if(result.m_s5<(specious_measure_Time-s_mistake_average)) result.m_sp5="欠标";
- else result.m_sp5="稳定";
- if(result.m_s6>(specious_measure_Time+s_mistake_average)) result.m_sp6="超标";
- else if(result.m_s6<(specious_measure_Time-s_mistake_average)) result.m_sp6="欠标";
- else result.m_sp6="稳定";
- if(result.m_s7>(specious_measure_Time+s_mistake_average)) result.m_sp7="超标";
- else if(result.m_s7<(specious_measure_Time-s_mistake_average)) result.m_sp7="欠标";
- else result.m_sp7="稳定";
- if(result.m_s8>(specious_measure_Time+s_mistake_average)) result.m_sp8="超标";
- else if(result.m_s8<(specious_measure_Time-s_mistake_average)) result.m_sp8="欠标";
- else result.m_sp8="稳定";
- if(result.m_s9>(specious_measure_Time+s_mistake_average)) result.m_sp9="超标";
- else if(result.m_s9<(specious_measure_Time-s_mistake_average)) result.m_sp9="欠标";
- else result.m_sp9="稳定";
- if(result.m_s10>(specious_measure_Time+s_mistake_average)) result.m_sp10="超标";
- else if(result.m_s10<(specious_measure_Time-s_mistake_average)) result.m_sp10="欠标";
- else result.m_sp10="稳定";
- if(result.m_s11>(specious_measure_Time+s_mistake_average)) result.m_sp11="超标";
- else if(result.m_s11<(specious_measure_Time-s_mistake_average)) result.m_sp11="欠标";
- else result.m_sp11="稳定";
- if(result.m_s12>(specious_measure_Time+s_mistake_average)) result.m_sp12="超标";
- else if(result.m_s12<(specious_measure_Time-s_mistake_average)) result.m_sp12="欠标";
- else result.m_sp12="稳定";
- if(result.m_s13>(specious_measure_Time+s_mistake_average)) result.m_sp13="超标";
- else if(result.m_s13<(specious_measure_Time-s_mistake_average)) result.m_sp13="欠标";
- else result.m_sp13="稳定";
- if(result.m_s14>(specious_measure_Time+s_mistake_average)) result.m_sp14="超标";
- else if(result.m_s14<(specious_measure_Time-s_mistake_average)) result.m_sp14="欠标";
- else result.m_sp14="稳定";
- if(result.m_s15>(specious_measure_Time+s_mistake_average)) result.m_sp15="超标";
- else if(result.m_s15<(specious_measure_Time-s_mistake_average)) result.m_sp15="欠标";
- else result.m_sp15="稳定";
- if(result.m_s16>(specious_measure_Time+s_mistake_average)) result.m_sp16="超标";
- else if(result.m_s16<(specious_measure_Time-s_mistake_average)) result.m_sp16="欠标";
- else result.m_sp16="稳定";
- if(result.m_s17>(specious_measure_Time+s_mistake_average)) result.m_sp17="超标";
- else if(result.m_s17<(specious_measure_Time-s_mistake_average)) result.m_sp17="欠标";
- else result.m_sp17="稳定";
- if(result.m_s18>(specious_measure_Time+s_mistake_average)) result.m_sp18="超标";
- else if(result.m_s18<(specious_measure_Time-s_mistake_average)) result.m_sp18="欠标";
- else result.m_sp18="稳定";
- if(result.m_s19>(specious_measure_Time+s_mistake_average)) result.m_sp19="超标";
- else if(result.m_s19<(specious_measure_Time-s_mistake_average)) result.m_sp19="欠标";
- else result.m_sp19="稳定";
- if(result.m_s20>(specious_measure_Time+s_mistake_average)) result.m_sp20="超标";
- else if(result.m_s20<(specious_measure_Time-s_mistake_average)) result.m_sp20="欠标";
- else result.m_sp20="稳定";
- if(result.m_s21>(specious_measure_Time+s_mistake_average)) result.m_sp21="超标";
- else if(result.m_s21<(specious_measure_Time-s_mistake_average)) result.m_sp21="欠标";
- else result.m_sp21="稳定";
- if(result.m_s22>(specious_measure_Time+s_mistake_average)) result.m_sp22="超标";
- else if(result.m_s22<(specious_measure_Time-s_mistake_average)) result.m_sp22="欠标";
- else result.m_sp22="稳定";
- if(result.m_s23>(specious_measure_Time+s_mistake_average)) result.m_sp23="超标";
- else if(result.m_s23<(specious_measure_Time-s_mistake_average)) result.m_sp23="欠标";
- else result.m_sp23="稳定";
- if(result.m_s24>(specious_measure_Time+s_mistake_average)) result.m_sp24="超标";
- else if(result.m_s24<(specious_measure_Time-s_mistake_average)) result.m_sp24="欠标";
- else result.m_sp24="稳定";
- if(result.m_s25>(specious_measure_Time+s_mistake_average)) result.m_sp25="超标";
- else if(result.m_s25<(specious_measure_Time-s_mistake_average)) result.m_sp25="欠标";
- else result.m_sp25="稳定";
- if(result.m_s26>(specious_measure_Time+s_mistake_average)) result.m_sp26="超标";
- else if(result.m_s26<(specious_measure_Time-s_mistake_average)) result.m_sp26="欠标";
- else result.m_sp26="稳定";
- if(result.m_s27>(specious_measure_Time+s_mistake_average)) result.m_sp27="超标";
- else if(result.m_s27<(specious_measure_Time-s_mistake_average)) result.m_sp27="欠标";
- else result.m_sp27="稳定";
- if(result.m_s28>(specious_measure_Time+s_mistake_average)) result.m_sp28="超标";
- else if(result.m_s28<(specious_measure_Time-s_mistake_average)) result.m_sp28="欠标";
- else result.m_sp28="稳定";
- if(result.m_s29>(specious_measure_Time+s_mistake_average)) result.m_sp29="超标";
- else if(result.m_s29<(specious_measure_Time-s_mistake_average)) result.m_sp29="欠标";
- else result.m_sp29="稳定";
- if(result.m_s30>(specious_measure_Time+s_mistake_average)) result.m_sp30="超标";
- else if(result.m_s30<(specious_measure_Time-s_mistake_average)) result.m_sp30="欠标";
- else result.m_sp30="稳定";
- if(result.m_s31>(specious_measure_Time+s_mistake_average)) result.m_sp31="超标";
- else if(result.m_s31<(specious_measure_Time-s_mistake_average)) result.m_sp31="欠标";
- else result.m_sp31="稳定";
- if(result.m_s32>(specious_measure_Time+s_mistake_average)) result.m_sp32="超标";
- else if(result.m_s32<(specious_measure_Time-s_mistake_average)) result.m_sp32="欠标";
- else result.m_sp32="稳定";
- if(result.m_w1>(wide_measure_Time+w_mistake_average)) result.m_pw1="超标";
- else if(result.m_w1<(wide_measure_Time-w_mistake_average)) result.m_pw1="欠标";
- else result.m_pw1="稳定";
- if(result.m_w2>(wide_measure_Time+w_mistake_average)) result.m_pw2="超标";
- else if(result.m_w2<(wide_measure_Time-w_mistake_average)) result.m_pw2="欠标";
- else result.m_pw2="稳定";
- if(result.m_w3>(wide_measure_Time+w_mistake_average)) result.m_pw3="超标";
- else if(result.m_w3<(wide_measure_Time-w_mistake_average)) result.m_pw3="欠标";
- else result.m_pw3="稳定";
- if(result.m_w4>(wide_measure_Time+w_mistake_average)) result.m_pw4="超标";
- else if(result.m_w4<(wide_measure_Time-w_mistake_average)) result.m_pw4="欠标";
- else result.m_pw4="稳定";
- if(result.m_w5>(wide_measure_Time+w_mistake_average)) result.m_pw5="超标";
- else if(result.m_w5<(wide_measure_Time-w_mistake_average)) result.m_pw5="欠标";
- else result.m_pw5="稳定";
- if(result.m_w6>(wide_measure_Time+w_mistake_average)) result.m_pw6="超标";
- else if(result.m_w6<(wide_measure_Time-w_mistake_average)) result.m_pw6="欠标";
- else result.m_pw6="稳定";
- if(result.m_w7>(wide_measure_Time+w_mistake_average)) result.m_pw7="超标";
- else if(result.m_w7<(wide_measure_Time-w_mistake_average)) result.m_pw7="欠标";
- else result.m_pw7="稳定";
- if(result.m_w8>(wide_measure_Time+w_mistake_average)) result.m_pw8="超标";
- else if(result.m_w8<(wide_measure_Time-w_mistake_average)) result.m_pw8="欠标";
- else result.m_pw8="稳定";
- UpdateData(FALSE);
- if(result.DoModal()==IDOK)
- {
- End_measure_Time=(float)(store_Number*0.67359);
- End_measure_Time1=(float)(store_Number*0.89812);
- Specious_End_measure_Time=(float)(store_Number*0.12);
- Specious_End_measure_Time1=(float)(store_Number*0.16);
- end.m_epp=End_measure_Time;
- end.m_ett=Specious_End_measure_Time;
- end.m_epp1=End_measure_Time1;
- end.m_ett1=Specious_End_measure_Time1;
- for(i=3;i<10;i++)
- {
- if(End_Spear_Time[i]>=End_measure_Time)
- End_mistake[i]=End_Spear_Time[i]-End_measure_Time;
- else
- End_mistake[i]=End_measure_Time-End_Spear_Time[i];
- if(Specious_End_Spear_Time[i]>=Specious_End_measure_Time)
- Specious_End_mistake[i]=Specious_End_Spear_Time[i]-End_measure_Time;
- else
- Specious_End_mistake[i]=Specious_End_measure_Time-Specious_End_Spear_Time[i];
- }
- if(End_Spear_Time[0]>=End_measure_Time)
- End_mistake[0]=End_Spear_Time[0]-End_measure_Time;
- else
- End_mistake[0]=End_measure_Time-End_Spear_Time[0];
- if(End_Spear_Time[1]>=End_measure_Time1)
- End_mistake[1]=End_Spear_Time[1]-End_measure_Time1;
- else
- End_mistake[1]=End_measure_Time1-End_Spear_Time[1];
- if(End_Spear_Time[2]>=End_measure_Time1)
- End_mistake[2]=End_Spear_Time[2]-End_measure_Time1;
- else
- End_mistake[2]=End_measure_Time1-End_Spear_Time[2];
- if(Specious_End_Spear_Time[0]>=Specious_End_measure_Time)
- Specious_End_mistake[0]=Specious_End_Spear_Time[0]-Specious_End_measure_Time;
- else
- Specious_End_mistake[0]=Specious_End_measure_Time-Specious_End_Spear_Time[0];
- if(Specious_End_Spear_Time[1]>=Specious_End_measure_Time1)
- Specious_End_mistake[1]=Specious_End_Spear_Time[1]-Specious_End_measure_Time1;
- else
- Specious_End_mistake[1]=Specious_End_measure_Time1-Specious_End_Spear_Time[1];
- if(Specious_End_Spear_Time[2]>=Specious_End_measure_Time1)
- Specious_End_mistake[2]=Specious_End_Spear_Time[2]-Specious_End_measure_Time1;
- else
- Specious_End_mistake[2]=Specious_End_measure_Time1-Specious_End_Spear_Time[2];
- for(i=0;i<10;i++)
- {
- End_mistake_all=End_mistake_all+End_mistake[i];
- Specious_End_mistake_all=Specious_End_mistake_all+Specious_End_mistake[i];
- }
- End_mistake_average=End_mistake_all/10;
- Specious_End_mistake_average=Specious_End_mistake_all/10;
- end.m_normal_mistake=End_mistake_average;
- end.m_specious_mistake=Specious_End_mistake_average;
- end.m_end0=End_Spear_Time[0];
- end.m_end1=End_Spear_Time[1];
- end.m_end2=End_Spear_Time[2];
- end.m_end3=End_Spear_Time[3];
- end.m_end4=End_Spear_Time[4];
- end.m_end5=End_Spear_Time[5];
- end.m_end6=End_Spear_Time[6];
- end.m_end7=End_Spear_Time[7];
- end.m_end8=End_Spear_Time[8];
- end.m_end9=End_Spear_Time[9];
- end.m_send0=Specious_End_Spear_Time[0];
- end.m_send1=Specious_End_Spear_Time[1];
- end.m_send2=Specious_End_Spear_Time[2];
- end.m_send3=Specious_End_Spear_Time[3];
- end.m_send4=Specious_End_Spear_Time[4];
- end.m_send5=Specious_End_Spear_Time[5];
- end.m_send6=Specious_End_Spear_Time[6];
- end.m_send7=Specious_End_Spear_Time[7];
- end.m_send8=Specious_End_Spear_Time[8];
- end.m_send9=Specious_End_Spear_Time[9];
- if(end.m_end0>End_measure_Time+End_mistake_average) end.m_pend0="超标";
- else if(end.m_end0<End_measure_Time-End_mistake_average) end.m_pend0="欠标";
- else end.m_pend0="稳定";
- if(end.m_end1>End_measure_Time1+End_mistake_average) end.m_pend1="超标";
- else if(end.m_end1<End_measure_Time1-End_mistake_average) end.m_pend1="欠标";
- else end.m_pend1="稳定";
- if(end.m_end2>End_measure_Time1+End_mistake_average) end.m_pend2="超标";
- else if(end.m_end2<End_measure_Time1-End_mistake_average) end.m_pend2="欠标";
- else end.m_pend2="稳定";
- if(end.m_end3>End_measure_Time+End_mistake_average) end.m_pend3="超标";
- else if(end.m_end3<End_measure_Time-End_mistake_average) end.m_pend3="欠标";
- else end.m_pend3="稳定";
- if(end.m_end4>End_measure_Time+End_mistake_average) end.m_pend4="超标";
- else if(end.m_end4<End_measure_Time-End_mistake_average) end.m_pend4="欠标";
- else end.m_pend4="稳定";
- if(end.m_end5>End_measure_Time+End_mistake_average) end.m_pend5="超标";
- else if(end.m_end5<End_measure_Time-End_mistake_average) end.m_pend5="欠标";
- else end.m_pend5="稳定";
- if(end.m_end6>End_measure_Time+End_mistake_average) end.m_pend6="超标";
- else if(end.m_end6<End_measure_Time-End_mistake_average) end.m_pend6="欠标";
- else end.m_pend6="稳定";
- if(end.m_end7>End_measure_Time+End_mistake_average) end.m_pend7="超标";
- else if(end.m_end7<End_measure_Time-End_mistake_average) end.m_pend7="欠标";
- else end.m_pend7="稳定";
- if(end.m_end8>End_measure_Time+End_mistake_average) end.m_pend8="超标";
- else if(end.m_end8<End_measure_Time-End_mistake_average) end.m_pend8="欠标";
- else end.m_pend8="稳定";
- if(end.m_end9>End_measure_Time+End_mistake_average) end.m_pend9="超标";
- else if(end.m_end9<End_measure_Time-End_mistake_average) end.m_pend9="欠标";
- else end.m_pend9="稳定";
- if(end.m_send0>Specious_End_measure_Time+Specious_End_mistake_average) end.m_spend0="超标";
- else if(end.m_send0<Specious_End_measure_Time-Specious_End_mistake_average) end.m_spend0="欠标";
- else end.m_spend0="稳定";
- if(end.m_send1>Specious_End_measure_Time1+Specious_End_mistake_average) end.m_spend1="超标";
- else if(end.m_send1<Specious_End_measure_Time1-Specious_End_mistake_average) end.m_spend1="欠标";
- else end.m_spend1="稳定";
- if(end.m_send2>Specious_End_measure_Time1+Specious_End_mistake_average) end.m_spend2="超标";
- else if(end.m_send2<Specious_End_measure_Time1-Specious_End_mistake_average) end.m_spend2="欠标";
- else end.m_spend2="稳定";
- if(end.m_send3>Specious_End_measure_Time+Specious_End_mistake_average) end.m_spend3="超标";
- else if(end.m_send3<Specious_End_measure_Time-Specious_End_mistake_average) end.m_spend3="欠标";
- else end.m_spend3="稳定";
- if(end.m_send4>Specious_End_measure_Time+Specious_End_mistake_average) end.m_spend4="超标";
- else if(end.m_send4<Specious_End_measure_Time-Specious_End_mistake_average) end.m_spend4="欠标";
- else end.m_spend4="稳定";
- if(end.m_send5>Specious_End_measure_Time+Specious_End_mistake_average) end.m_spend5="超标";
- else if(end.m_send5<Specious_End_measure_Time-Specious_End_mistake_average) end.m_spend5="欠标";
- else end.m_spend5="稳定";
- if(end.m_send6>Specious_End_measure_Time+Specious_End_mistake_average) end.m_spend6="超标";
- else if(end.m_send6<Specious_End_measure_Time-Specious_End_mistake_average) end.m_spend6="欠标";
- else end.m_spend6="稳定";
- if(end.m_send7>Specious_End_measure_Time+Specious_End_mistake_average) end.m_spend7="超标";
- else if(end.m_send7<Specious_End_measure_Time-Specious_End_mistake_average) end.m_spend7="欠标";
- else end.m_spend7="稳定";
- if(end.m_send8>Specious_End_measure_Time+Specious_End_mistake_average) end.m_spend8="超标";
- else if(end.m_send8<Specious_End_measure_Time-Specious_End_mistake_average) end.m_spend8="欠标";
- else end.m_spend8="稳定";
- if(end.m_send9>Specious_End_measure_Time+Specious_End_mistake_average) end.m_spend9="超标";
- else if(end.m_send9<Specious_End_measure_Time-Specious_End_mistake_average) end.m_spend9="欠标";
- else end.m_spend9="稳定";
- UpdateData(FALSE);
- if(end.DoModal()==IDOK)
- goto BACK;
- }
- }
- else {
- MessageBox("分析数据太少!无法统计!");
- return;
- }
- }
- else {
- MessageBox("密码错误!");goto RET;
- }
- }
- else return;
- }
- HBRUSH CMyView::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
- {
- pDC->SetBkMode(TRANSPARENT);
- pDC->SetTextColor(RGB(255,128,255));
- return m_hbrush;
- }
- void CMyView::OnDeleteButton()
- {
- Again:
- if(password.DoModal()==IDOK)
- {
- if(password.m_Password=="i love money delete")
- {
- if(del.DoModal()==IDOK)
- {
- m_pSet->MoveFirst();
- do
- {
- if(del.m_Del_ID!=m_pSet->m_column9)
- m_pSet->MoveNext();
- else
- {
- m_pSet->Delete();
- m_pSet->Requery();
- UpdateData(FALSE);
- break;
- }
- }while(!m_pSet->IsEOF());
- if(m_pSet->IsEOF())
- {
- MessageBox("根本没有此记录!");
- m_pSet->MoveFirst();
- UpdateData(FALSE);
- return;
- }
- }
- }
- else{MessageBox("密码错误!");goto Again;}
- }
- }