55 lines
993 B
C++
55 lines
993 B
C++
#ifndef LSTDEFINE_H_
|
|
#define LSTDEFINE_H_
|
|
#include <map>
|
|
#include <vector>
|
|
#include <string>
|
|
using namespace std;
|
|
|
|
struct S_LOVSHIFT
|
|
{
|
|
string shift;
|
|
string nextShift;
|
|
int offset;
|
|
int duration;
|
|
int daychange;
|
|
};
|
|
|
|
struct S_TURN
|
|
{
|
|
int dayno;
|
|
string shiftNo;
|
|
string turnNo;
|
|
};
|
|
|
|
struct S_SHIFTINFO
|
|
{
|
|
S_TURN turn;//班组结构体
|
|
string prodDay;//生产日期
|
|
string startTime;//开始时间
|
|
string endTime;//结束时间
|
|
int duration;//持续时间
|
|
};
|
|
|
|
struct S_PRODUCTINFO
|
|
{
|
|
int inCoilNum; //输入钢卷数
|
|
int outCoilNum; //产出钢卷数
|
|
int inCoilWeight; //输入钢卷重量
|
|
int outCoilWeight; //产出钢卷重量
|
|
int coilLengthOut; //产出钢卷总长度
|
|
};
|
|
|
|
struct S_LINEDOWNINFO
|
|
{
|
|
int totalDownTimes; //停机时间
|
|
int totalDownNum;//停机次数
|
|
};
|
|
|
|
typedef vector<S_LOVSHIFT> V_LOVSHIFT;
|
|
typedef map<int,vector<S_TURN> > M_LOVTURNLIST;
|
|
|
|
#define CS_N_START_WAIT 8000 //开机等待8秒
|
|
#define CS_N_STOP_WAIT 6000 //停机等待6秒
|
|
|
|
#endif
|