| | |
| | | { |
| | | return DebugService.AgvSeriesReports(model); |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 初始化数据库 |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [HttpPost] |
| | | [Route("CreateDatabase")] |
| | | public string CreateDatabase() { |
| | | return DebugService.CreateDatabase(); |
| | | } |
| | | |
| | | [HttpPost] |
| | | [Route("InsertLocation")] |
| | | public string InsertLocation(InsertLocationInfo model) { |
| | | try { |
| | | var db = DbHelper.GetDbClient(); |
| | | |
| | | var locList = new List<TN_Location>(); |
| | | locList.Add(new TN_Location { S_AREA_CODE = model.AreaCode, S_CODE = model.Code}); |
| | | |
| | | if (db.Insertable<TN_Location>(locList).ExecuteCommand() <= 0) { |
| | | return "失败"; |
| | | } |
| | | |
| | | } |
| | | catch (Exception ex) { |
| | | LogHelper.Info($"发生了异常"); |
| | | return "添加货位错误" + ex.Message; |
| | | } |
| | | //return res ? "成功" : "失败"; |
| | | return "成功"; |
| | | public string CreateDatabase(CoverInfo model) { |
| | | return DebugService.CreateDatabase(model.IsCover); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | public string InsertLocCntrCg() { |
| | | return DebugService.InsertLocCntrCg(); |
| | | } |
| | | |
| | | } |
| | | |
| | | public class CgInfo { |
| | | public string ItemCode { get; set; } |
| | | public string CntId { get; set; } |
| | | public string LocId { get; set; } |
| | | } |
| | | |
| | | public class InsertLocationInfo { |
| | | public string Code { set; get; } |
| | | public string AreaCode { set; get; } |
| | | } |
| | | |
| | | public class UpdateTaskWeightInfo { |
| | | public string TaskID { set; get; } |
| | | public float Weight { set; get; } |
| | | } |
| | | } |