| | |
| | | internal static bool CreateTaskDj(string no, string from, string to, string taskType, int pri, string cntrInfo,string orderName, int cntrCount = 1, int startLayer = 1, int endLayer = 1) |
| | | { |
| | | var fromLoc = LocationHelper.GetLocation(from); |
| | | var endLoc = LocationHelper.GetLocation(to); |
| | | //因为有点到未知的情况 |
| | | string endLocAreaStr = null; |
| | | if (to!=null && to != "") |
| | | { |
| | | endLocAreaStr = LocationHelper.GetLocation(to).S_AREA_CODE; |
| | | } |
| | | WCSTask TN_Task = new WCSTask() |
| | | { |
| | | //S_CODE = GenerateTaskNo(), |
| | | S_CODE = orderName, |
| | | S_START_AREA = fromLoc.S_AREA_CODE, |
| | | S_END_AREA = endLoc.S_AREA_CODE, |
| | | S_END_AREA = endLocAreaStr, |
| | | S_START_LOC = from, |
| | | S_END_LOC = to, |
| | | S_TYPE = taskType, |