高级排程
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
692 B

  1. package service
  2. import "strconv"
  3. /**描述工序前后关系**/
  4. type OperationRelSrv struct{
  5. OrderId string // 关联订单号
  6. OperationNr int // 关联工序号
  7. SplitNr int // 关联工序拆分号
  8. Relation string // 参见工序关系常量定义:ES / SS / SSEE / EES / ESE
  9. }
  10. // 获取关联工序完整键值:工单ID-工序号-工序拆分号
  11. func(ors *OperationRelSrv)GetFullKey()(string){
  12. return ors.OrderId + "-" + strconv.Itoa(ors.OperationNr) + "-" + strconv.Itoa(ors.SplitNr)
  13. }
  14. // 获取关联工序键值:工序号-工序拆分号
  15. func(ors *OperationRelSrv)GetOpKey()(string){
  16. return strconv.Itoa(ors.OperationNr) + "-" + strconv.Itoa(ors.SplitNr)
  17. }