1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace IMCS.DefaultList
- {
- public class ItemHttpPostDefaultList
- {
- public short MachineOperation
- {
- get
- {
- switch (MachineType)
- {
- case "取":
- return 1;
- case "移动":
- return 7; ;
- case "放":
- return 4; ;
- default:
- return 0; ;
- }
- }
- }
- public string MachineName { get; set; } = "柔性线";
- public string MachineType { get; set; } = "取";
- public short StartIndex { get; set; } = 0;
- public string Machine_Content { get; set; } = "";
- public int TaskId { get; set; } = 1;
- public string MachineAddress
- {
- get
- {
- switch (MachineType)
- {
- case "取":
- return "DB200.46";
- case "移动":
- return "DB200.48";
- case "放":
- return "DB200.48";
- default:
- return "DB200.46";
- }
- }
- }
- public bool JsonOK
- {
- get
- {
- if (MachineType.Equals("取") || MachineType.Equals("放") || MachineType.Equals("移动") || MachineType.Equals("查询") || MachineType.Equals("打标")
- || MachineType.Equals("机床4")
- || MachineType.Equals("清洗机")) { return true; }
- return false;
- }
- }
- }
- }
|