⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rawproductrelation.cpp

📁 嵌入式计算机及接口技术
💻 CPP
字号:
#include "RawProductRelation.h"
//#define as 78
  RawProductRelation::RawProductRelation()
 {
 
 
 /*******************************/
    this->BackColor=Face;

    this->SetCaption("生产批号生成窗口");

    this->ClassType=ClassIDWin; //设置本窗口为主窗口












/***********显示标签****************/
     Lable1.Left=20;
     Lable1.Top=80;
     Lable1.Width=80;
     Lable1.Height=24;
     Lable1.FontColor=Black;
     Lable1.SetCaption("当前的原材料编号为:");
  
     this->AddChird(&Lable1);

/***********显示标签****************/
     Lable2.Left=20;
     Lable2.Top=120;
     Lable2.Width=80;
     Lable2.Height=24;
     Lable2.FontColor=Black;
   //  Lable1.SetCaption("当前的原材料编号为:");
  
     this->AddChird(&Lable2);

/***********显示标签****************/
     Lable3.Left=20;
     Lable3.Top=160;
     Lable3.Width=80;
     Lable3.Height=24;
     Lable3.FontColor=Black;
     Lable3.SetCaption("请输入当前的生产批号");
  
     this->AddChird(&Lable3);





/************显示编辑筐******************/
     Edit1.Left=20;
     Edit1.Top=200;
     Edit1.Width=200;
     Edit1.Height=24;
     Edit1.FontColor=Yellow;
     Edit1.BackColor=Blue;
     Edit1.SetContend("");

     this->AddChird(&Edit1);
     
     /***************************/
     Button1.Left=20;
     Button1.Top=240;
     Button1.Width=200;
     Button1.Height=24;
     Button1.SetCaption("将生产批号和原料批号关联");
     this->AddChird(&Button1);



  };
/********************************/
/*消息处理函数**/
  
  void  RawProductRelation::Message(MessageBody SystemMsg)
  {
     this->SysMessageCheck( SystemMsg);
 switch(SystemMsg.MsgID)
	{


		case Sys_Msg_BtnClick: 
		        if(SystemMsg.Parm1==0)
		        {
		           k1_Click();
		        };
		        
		        break;

    	case PassRawId: 
		     //   strcpy(&RawId[0],SystemMsg.Msg);  //取得原料标号
                 Lable2.SetCaption(SystemMsg.Msg);
                break;

		default: break;
	}
 
 
  };
  
 /*按钮事件相应函数*/ 
  
  void RawProductRelation::k1_Click(void)
  {
  
  // WinRawView->Active(); 
  };
  

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -