From 2eea48595c784d1d6d58d526f1da12427dfa0a25 Mon Sep 17 00:00:00 2001
From: zhengqifeng <zhengqifeng@hnkhzn.com>
Date: 星期二, 30 十二月 2025 14:34:49 +0800
Subject: [PATCH] 1
---
代码管理/WIDESEAWCS_Server/WIDESEAWCS_Server/WIDESEAWCS_BasicInfoService/FormulaService.cs | 42 +++++++++++++++++++++++++++++++++++++++++-
1 files changed, 41 insertions(+), 1 deletions(-)
diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WIDESEAWCS_Server/WIDESEAWCS_Server/WIDESEAWCS_BasicInfoService/FormulaService.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WIDESEAWCS_Server/WIDESEAWCS_Server/WIDESEAWCS_BasicInfoService/FormulaService.cs"
index 5250084..35c819e 100644
--- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WIDESEAWCS_Server/WIDESEAWCS_Server/WIDESEAWCS_BasicInfoService/FormulaService.cs"
+++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WIDESEAWCS_Server/WIDESEAWCS_Server/WIDESEAWCS_BasicInfoService/FormulaService.cs"
@@ -1,8 +1,10 @@
-锘縰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;
@@ -16,5 +18,43 @@
}
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);
+ }
}
}
--
Gitblit v1.9.3