| | |
| | | using WIDESEA_Core.FreeDB; |
| | | using WIDESEA_Core.ManageUser; |
| | | using OfficeOpenXml.FormulaParsing.Excel.Functions.Text; |
| | | using static System.Collections.Specialized.BitVector32; |
| | | |
| | | namespace WIDESEA_WMS.Services |
| | | { |
| | |
| | | //å¤ç§æ·ä¼ç¨å°è¿init代ç ï¼å
¶ä»æ
åµå¯ä»¥ä¸ç¨ |
| | | //base.Init(dbRepository); |
| | | } |
| | | FreeDB freeDB=new FreeDB(); |
| | | FreeDB freeDB = new FreeDB(); |
| | | /// <summary> |
| | | /// 设置ç¼åæ¶ç¦ç¨å¯ç¨ |
| | | /// </summary> |
| | |
| | | return base.Add(saveDataModel); |
| | | } |
| | | |
| | | |
| | | public override WebResponseContent Update(SaveModel saveModel) |
| | | { |
| | | WebResponseContent webResponse = new WebResponseContent(); |
| | | var station = _repository.FindFirst(x => x.id.ToString() == saveModel.MainData["id"].ToString()); |
| | | station.location_state = saveModel.MainData["location_state"].ToString(); |
| | | //station.bindSN = saveModel.MainData["bindSN"].ToString(); |
| | | var SNS = saveModel.MainData["bindSN"].ToString().Split(","); |
| | | List<string> list = new List<string>(); |
| | | foreach (var SN in SNS) |
| | | { |
| | | if (!string.IsNullOrEmpty(SN)) |
| | | list.Add(SN); |
| | | } |
| | | station.bindSN = string.Join(",", list); |
| | | station.quantity = list.Count; |
| | | station.stationType = saveModel.MainData["stationType"].ToString(); |
| | | station.heatNumber = saveModel.MainData["heatNumber"].ToString(); |
| | | station.Number = saveModel.MainData["Number"].ToString(); |
| | | station.remark = saveModel.MainData["remark"].ToString(); |
| | | station.tray_status= saveModel.MainData["tray_status"].ToString(); |
| | | var count = _repository.Update(station, true); |
| | | if (count > 0) |
| | | webResponse.OK(); |
| | | else |
| | | webResponse.Error(); |
| | | return webResponse; |
| | | } |
| | | |
| | | } |
| | | } |