📄 rawview.cpp
字号:
#include "RawView.h"
//#define as 78
RawView::RawView()
{
/*******************************/
this->BackColor=Face;
// strcopy(this->Caption,(char*)Firstwin_Title);
this->SetCaption("原材料控制窗口");
this->ClassType=ClassIDWin; //设置本窗口为主窗口
/***************************/
Button1.Left=70;
Button1.Top=80;
Button1.Width=100;
Button1.Height=24;
Button1.SetCaption("原料验收信息");
this->AddChird(&Button1);
/***************************/
Button2.Left=70;
Button2.Top=120;
Button2.Width=100;
Button2.Height=24;
Button2.SetCaption("养殖相关信息");
this->AddChird(&Button2);
/***************************/
Button3.Left=70;
Button3.Top=160;
Button3.Width=100;
Button3.Height=24;
Button3.SetCaption("批次管理信息");
this->AddChird(&Button3);
/***************************/
Button4.Left=70;
Button4.Top=200;
Button4.Width=100;
Button4.Height=24;
Button4.SetCaption("包装材料信息");
this->AddChird(&Button4);
/***************************/
Button5.Left=70;
Button5.Top=240;
Button5.Width=100;
Button5.Height=24;
Button5.SetCaption("生产冰水信息");
this->AddChird(&Button5);
/***************************/
Button6.Left=70;
Button6.Top=280;
Button6.Width=100;
Button6.Height=24;
Button6.SetCaption("辅料检验信息");
this->AddChird(&Button6);
/***************************/
Button7.Left=70;
Button7.Top=40;
Button7.Width=100;
Button7.Height=24;
Button7.SetCaption("原料基本信息");
this->AddChird(&Button7);
}
void RawView::Message(MessageBody SystemMsg)
{
this->SysMessageCheck( SystemMsg);
switch(SystemMsg.MsgID)
{
case Sys_Msg_BtnClick:
if(SystemMsg.Parm1==0)
{
k1_Click();
};
if(SystemMsg.Parm1==1)
{
k2_Click();
};
if(SystemMsg.Parm1==2)
{
k3_Click();
};
if(SystemMsg.Parm1==6)
{
k7_Click();
};
break;
case PassRawId:
strcpy(&RawId[0],SystemMsg.Msg); //取得原料标号
break;
default: break;
}
};
/*按钮事件相应函数*/
void RawView::k1_Click(void)
{
MessageWin("我操");
};
void RawView::k2_Click(void)
{
/*
this->Edit1.SetContend("海洋导航系统");
this-> Lable1.FontColor=Blue;
this->Edit1.Refresh();
this-> Lable1.Refresh();
*/
// this->Close();
};
void RawView::k3_Click(void)
{
// this->Close();
};
void RawView::k7_Click(void)
{
Msg.MsgID=PassRawId;
Msg.Msg=&RawId[0];
WinRawDetail->Message(Msg); //传递原料编号
WinRawDetail->Active();
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -