| | |
| | | //生产计划管理 |
| | | struct PdplanInfo |
| | | { |
| | | int id;//生产计划编号 |
| | | char planName[32];//生产计划名字 |
| | | int planId;//订单编号 |
| | | char planName[32];//订单划名字 |
| | | char startDate[32];//起始日期 |
| | | char closingDate[32];//截至日期 |
| | | char closingDate[32];//交付日期 |
| | | char pdName[8];//产品名 |
| | | double plannedPd;//计划生产量 |
| | | double actualPd;//实际生产量 |
| | | double progress;//生产进度 |
| | |
| | | struct MonoutputInfo |
| | | { |
| | | int month;//月份 |
| | | double output;//月产量 |
| | | double aOutput;//a产品月产量 |
| | | double bOutput;//b产品月产量 |
| | | double cOutput;//c产品月产量 |
| | | }; |
| | | |
| | | //添加一条生产计划的请求结构体 |
| | |
| | | struct QueryPdplanReq |
| | | { |
| | | Head head; |
| | | int id;//生产计划编号 |
| | | char planName[32];//生产计划名字 |
| | | int planId;//订单编号 |
| | | char planName[32];//订单划名字 |
| | | char startDate[32];//起始日期 |
| | | char closingDate[32];//截至日期 |
| | | char closingDate[32];//交付日期 |
| | | char pdName[8];//产品名 |
| | | double plannedPd;//计划生产量 |
| | | double actualPd;//实际生产量 |
| | | double progress;//生产进度 |
| | | int finishOntime;//是否按期完成 |
| | | QueryPdplanReq() { |
| | | head.type = QUERY_PDPLAN_REQ; |
| | |
| | | { |
| | | Head head; |
| | | int month;//月份 |
| | | double output;//月产量 |
| | | double aOutput;//a产品月产量 |
| | | double bOutput;//b产品月产量 |
| | | double cOutput;//c产品月产量 |
| | | QueryMonoutputReq() { |
| | | head.type = QUERY_MONOUTPUT_REQ; |
| | | head.len = sizeof(QueryMonoutputReq); |