| | |
| | | /// </summary> |
| | | /// <param name="endPoint"></param> |
| | | /// <returns></returns> |
| | | public WebResponseContent CallMateriel(string endPoint) |
| | | public WebResponseContent CallMateriel(SaveModel saveModel) |
| | | { |
| | | try |
| | | { |
| | | string endPoint = saveModel.MainData["endPoint"].ToString(); |
| | | |
| | | Dt_CachePoint cachePoint = GetCachePointByEndPoint(endPoint); |
| | | |
| | | Dt_Task task = new Dt_Task() |
| | |
| | | Repository.AddData(task); |
| | | return WebResponseContent.Instance.OK(); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | return WebResponseContent.Instance.Error(ex.Message); |
| | | } |
| | | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 鐗╂枡鎼繍 |
| | | /// </summary> |
| | | /// <param name="startPoint"></param> |
| | | /// <returns></returns> |
| | | public WebResponseContent MaterielCarry(string startPoint) |
| | | public WebResponseContent MaterielCarry(SaveModel saveModel) |
| | | { |
| | | try |
| | | { |
| | | string startPoint = saveModel.MainData["startPoint"].ToString(); |
| | | |
| | | Dt_CachePoint cachePoint = GetCachePointByStartPoint(startPoint); |
| | | |
| | | Dt_Task task = new() |
| | |
| | | Repository.AddData(task); |
| | | return WebResponseContent.Instance.OK(); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | return WebResponseContent.Instance.Error(ex.Message); |
| | | } |
| | | } |
| | | |
| | | private Dt_CachePoint GetCachePointByStartPoint(string startPoint) |
| | | { |