| | |
| | | 锘縰sing System; |
| | | 锘縰sing SqlSugar.Extensions; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using WIDESEAWCS_Core; |
| | | using WIDESEAWCS_Core.BaseRepository; |
| | | using WIDESEAWCS_Core.BaseServices; |
| | | using WIDESEAWCS_Model.Models; |
| | |
| | | } |
| | | |
| | | public IRepository<Dt_Formula> Repository => BaseDal; |
| | | |
| | | public override WebResponseContent AddData(SaveModel saveModel) |
| | | { |
| | | return base.AddData(saveModel); |
| | | } |
| | | |
| | | public override WebResponseContent UpdateData(SaveModel saveModel) |
| | | { |
| | | Dt_Formula dt_Formula=new Dt_Formula() |
| | | { |
| | | Id = saveModel.MainData["id"].ObjToInt(), |
| | | ProductCode = saveModel.MainData["productCode"].ToString(), |
| | | ProductName = saveModel.MainData["productName"].ToString(), |
| | | ProductLength = float.Parse(saveModel.MainData["productLength"].ToString()), |
| | | ProductWidth = float.Parse(saveModel.MainData["productWidth"].ToString()), |
| | | ProductHeight = float.Parse(saveModel.MainData["productHeight"].ToString()), |
| | | ScrewDownsetDistance = float.Parse(saveModel.MainData["screwDownsetDistance"].ToString()), |
| | | ScrewTorqueOutput = float.Parse(saveModel.MainData["screwTorqueOutput"].ToString()), |
| | | DintAutoScrewOn = saveModel.MainData["dintAutoScrewOn"].ObjToInt(), |
| | | XDirectionDistance1 = float.Parse(saveModel.MainData["xDirectionDistance1"].ToString()), |
| | | YDirectionHeight1 = float.Parse(saveModel.MainData["yDirectionHeight1"].ToString()), |
| | | XDirectionDistance2 = float.Parse(saveModel.MainData["xDirectionDistance2"].ToString()), |
| | | YDirectionHeight2 = float.Parse(saveModel.MainData["yDirectionHeight2"].ToString()), |
| | | XDirectionDistance3 = float.Parse(saveModel.MainData["xDirectionDistance3"].ToString()), |
| | | YDirectionHeight3 = float.Parse(saveModel.MainData["yDirectionHeight3"].ToString()) |
| | | |
| | | //ScrewTorque = float.Parse(saveModel.MainData["ScrewTorque"].ToString()), |
| | | //UpdateBy = saveModel.UpdateBy, |
| | | //UpdateTime = DateTime.Now |
| | | }; |
| | | return UpdateData(dt_Formula); |
| | | //return base.UpdateData(saveModel); |
| | | } |
| | | |
| | | public override WebResponseContent UpdateData(Dt_Formula entity) |
| | | { |
| | | return base.UpdateData(entity); |
| | | } |
| | | } |
| | | } |