📄 var_define.h
字号:
//公共数据定义07-07-08
//by Mr. Li
#include "OracleLib\_p.h"
#include "OracleLib\oralib.h"
using namespace oralib;
using namespace std;
//////////////////////////////////////////////////////////////////////////
// 消息定义
#define MSG_CONNECT_TIMER_EVENT (WM_USER+98)
#define WM_PRINT_MESSAGE (WM_USER+99)
#define WM_THREAD_SHOW (WM_USER+100)
#define WM_QUIT_THREAD (WM_USER+101)
#define WM_DATABASE_CONNECT (WM_USER+102)
#define WM_DATABASE_DISCONNECT (WM_USER+103)
#define WM_INSERT_PLAN (WM_USER+104)
#define WM_UPDATE_SLAB (WM_USER+105)
#define WM_UPDATE_PLAN (WM_USER+106)
#define WM_UPDATE_TABLE (WM_USER+107)
#define WM_UPDATE_PLAN_LIST (WM_USER+108)
//#define WM_SOCKET_START (WM_USER+104)
#define WM_SOCKET_STOP (WM_USER+109)
//事件定义
#define WM_SOCKET_STOP_OK (WM_USER+111)
#define WM_QUIT_OK 1
////////////////////////////////////////////////////////////////////////
//成分上下限
#define CONTENT_MIN 0
#define CONTENT_MAX 20
////////////////////////////////////////////////////////////////////////
//-------------坯料信息结构体--------------
struct Slab_Information
{
Slab_Information()
{
cast_id = _T("");
steel_type;
material_thick = 100;
material_wide = 1000;
material_length = 1500;
material_amount = 1;
DHCR = _T("");
shift = _T("");
cre_operator = _T("");
input_date = _T("");
material_scheduled_amount=0;
C=0;
Si=0;
Mn=0;
P=0;
S=0;
Cu=0;
Nb=0;
V=0;
Ti=0;
Al=0;
Cs1= _T("");
Cs1_value=0;
Cs2= _T("");
Cs2_value=0;
Cs3= _T("");
Cs3_value=0;
Ni=0;
stack = _T("");
material_amount_left=0;
}
CString cast_id;
CString steel_type;
int material_thick;
int material_wide;
int material_length;
int material_amount;
CString DHCR;
CString shift;
CString cre_operator;
CString input_date;
int material_scheduled_amount;
double C;
double Si;
double Mn;
double P;
double S;
double Cu;
double Nb;
double V;
double Ti;
double Al;
CString Cs1;
double Cs1_value;
CString Cs2;
double Cs2_value;
CString Cs3;
double Cs3_value;
double Ni;
CString stack;
int material_amount_left;
};
////////////////////////////////////////////////////////////////////////
//-------------计划信息结构体--------------
struct Plan_List
{
Plan_List()
{
manufacture_date =_T("");
steel_code=_T("");
plan_ID=_T("");
roll_cus=_T("");
term=_T("");
term_time=_T("");
memo=_T("");
cut_HL_question=_T("");
roll_demand=_T("");
cut_demand=_T("");
mark_demand=_T("");
term_ID=0;
hour_produce_amount=0;
slab_height=0;
slab_length=0;
slab_width=0;
slab_quantity=0;
no_part_slab_amount=0;
part_slab_amount=0;
additonal_slab=0;
prod_weight=0;
prod_height=0;
prod_length=0;
prod_width=0;
tolerent_h=_T("");
tolerent_w=_T("");
tolerent_l=_T("");
prod1_length=0;
prod1_amount=0;
prod2_length=0;
prod2_amount=0;
cut_wide=0;
slab_length_flag=0;
create_date=_T("");
creater=_T("");
slab_length_f=0;
slab_length_t=0;
prod_length_f=0;
prod_length_t=0;
prod_weight_f=0;
prod_weight_t=0;
// [8/9/2007]
slab_widthf=0;
slab_widtht=0;
slab_width_range_flag=0;
}
CString manufacture_date ;//不能为空
CString steel_code;
CString plan_ID ;
CString roll_cus ;
CString term ;
CString term_time ;
CString memo;
CString cut_HL_question;
CString roll_demand;
CString cut_demand;
CString mark_demand;
int term_ID;
double hour_produce_amount ;
double prod_height;;
int prod_width;
int prod_length;
double prod_weight;
int slab_height;
int slab_length;
int slab_width;
int slab_quantity;
int no_part_slab_amount;
int part_slab_amount;
int additonal_slab;
CString tolerent_h;
CString tolerent_w;
CString tolerent_l;
int prod1_length;
int prod1_amount;
int prod2_length;
int prod2_amount;
int cut_wide;
int slab_length_flag;
// [7/31/2007]
int slab_length_f;
int slab_length_t;
int prod_length_f;
int prod_length_t;
double prod_weight_f;
double prod_weight_t;
CString create_date;
CString creater;
// [8/9/2007]
int slab_widthf;
int slab_widtht;
int slab_width_range_flag;
};
////////////////////////////////////////////////////////////////////////
//-------------上料信息结构体--------------
struct On_Feed
{
On_Feed()
{
id= _T("");
furcode= _T("");
steel_grade= _T("");
shift_id= _T("");
produce_plan_id= _T("");
slab_order=0;
furnace_number=0;
slab_h=0;
slab_w=0;
slab_l=0;
tar_h=0;
tar_w=0;
tar_l=0;
C=0;
Si=0;
Mn=0;
P=0;
S=0;
Cu=0;
Nb=0;
V=0;
Ti=0;
Al=0;
Cs1= _T("");
Cs1_value=0;
Cs2= _T("");
Cs2_value=0;
Cs3= _T("");
Cs3_value=0;
Ni=0;
}
CString id;
CString furcode;
CString steel_grade;
CString shift_id;
CString produce_plan_id;
int slab_order;
int furnace_number;
int slab_h;
int slab_w;
int slab_l;
int tar_h;
int tar_w;
int tar_l;
double C;
double Si;
double Mn;
double P;
double S;
double Cu;
double Nb;
double V;
double Ti;
double Al;
CString Cs1;
double Cs1_value;
CString Cs2;
double Cs2_value;
CString Cs3;
double Cs3_value;
double Ni;
};
////////////////////////////////////////////////////////////////////////
//-------------炉前信息结构体--------------
struct Before_Furnace
{
Before_Furnace()
{
id=_T("");
furcode=_T("");
cell_id=_T("");
operate_time=_T("");
slab_order=0;
}
CString id;
CString furcode;
CString cell_id;
CString operate_time;
int slab_order;
};
////////////////////////////////////////////////////////////////////////
//-------------垛位信息结构体--------------
struct STACK_INF
{
STACK_INF()
{
ID=_T("");
column=0;
position=0;
furcode=_T("");
furcode_count=0;
out_time=_T("");
}
CString ID;
int column;
int position;
CString furcode;
int furcode_count;
CString out_time;
};
////////////////////////////////////////////////////////////////////////
//-------------挂料记录信息结构体--------------
struct FEED_INF
{
FEED_INF()
{
cell_id=_T("");
feed_date=_T("");
amount=0;
produce_plan_id=_T("");
cast_id=_T("");
}
CString cell_id;
CString feed_date;
int amount;
CString produce_plan_id;
CString cast_id;
};
////////////////////////////////////////////////////////////////////////
//-------------回炉记录信息结构体--------------
struct RETURN_INF
{
RETURN_INF()
{
re_id=_T("");
furcode=_T("");
return_time=_T("");
}
CString re_id;
CString furcode;
CString return_time;
};
////////////////////////////////////////////////////////////////////////
//-------------板坯视图统计信息结构体--------------
struct V_SLAB_TOTAL
{
V_SLAB_TOTAL()
{
status=_T("");
steel_code=_T("");
amount=0;
slab_h=0;
slab_w=0;
slab_l=0;
}
CString status;
CString steel_code;
int amount;
int slab_h;
int slab_w;
int slab_l;
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -