From 00acffe3d94443cb69a75eb042589c5bab51eae6 Mon Sep 17 00:00:00 2001
From: fly-l <1420031550@qq.com>
Date: Thu, 9 Mar 2023 16:35:16 +0800
Subject: [PATCH] =?UTF-8?q?2023-03-09=20=E5=AE=9E=E4=B8=9A=E5=B7=A5?=
=?UTF-8?q?=E5=8E=82=E5=A2=9E=E5=8A=A0=E5=9D=90=E6=A0=87?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.vs/VSWorkspaceState.json | 7 ++++++
SGGL/BLL/BaseInfo/BaseFactoryService.cs | 2 ++
.../ZHGL/DataSync/SYHSEData_DataService.cs | 1 +
.../BaseInfo/BaseFactoryEdit.aspx | 8 +++++++
.../BaseInfo/BaseFactoryEdit.aspx.cs | 2 ++
.../BaseInfo/BaseFactoryEdit.aspx.designer.cs | 18 ++++++++++++++
.../ZHGL/DataSync/SYHSEData_Data.aspx | 2 +-
.../ZHGL/DataSync/SYHSEData_DataEdit.aspx | 4 ++--
SGGL/Model/APIItem/SHHSE/NewSYHSEDataItem.cs | 4 ++++
SGGL/Model/Model.cs | 24 +++++++++++++++++++
10 files changed, 69 insertions(+), 3 deletions(-)
create mode 100644 .vs/VSWorkspaceState.json
diff --git a/.vs/VSWorkspaceState.json b/.vs/VSWorkspaceState.json
new file mode 100644
index 00000000..75b31f26
--- /dev/null
+++ b/.vs/VSWorkspaceState.json
@@ -0,0 +1,7 @@
+{
+ "ExpandedNodes": [
+ ""
+ ],
+ "SelectedNode": "\\SGGL.sln",
+ "PreviewInSolutionExplorer": false
+}
\ No newline at end of file
diff --git a/SGGL/BLL/BaseInfo/BaseFactoryService.cs b/SGGL/BLL/BaseInfo/BaseFactoryService.cs
index e490be6d..eaf7fe17 100644
--- a/SGGL/BLL/BaseInfo/BaseFactoryService.cs
+++ b/SGGL/BLL/BaseInfo/BaseFactoryService.cs
@@ -104,6 +104,7 @@ namespace BLL
FactoryCode = newtable.FactoryCode,
FactoryName = newtable.FactoryName,
Address = newtable.Address,
+ MapCoordinates= newtable.MapCoordinates,
};
db.Base_Factory.InsertOnSubmit(table);
db.SubmitChanges();
@@ -128,6 +129,7 @@ namespace BLL
table.FactoryCode = newtable.FactoryCode;
table.FactoryName = newtable.FactoryName;
table.Address = newtable.Address;
+ table.MapCoordinates = newtable.MapCoordinates;
db.SubmitChanges();
}
diff --git a/SGGL/BLL/ZHGL/DataSync/SYHSEData_DataService.cs b/SGGL/BLL/ZHGL/DataSync/SYHSEData_DataService.cs
index d26fa414..a6035ce3 100644
--- a/SGGL/BLL/ZHGL/DataSync/SYHSEData_DataService.cs
+++ b/SGGL/BLL/ZHGL/DataSync/SYHSEData_DataService.cs
@@ -154,6 +154,7 @@ namespace BLL
Item.FactoryCode = BLL.Base_FactoryService.GetBase_FactoryById(data.FactoryId).FactoryCode;
Item.FactoryName = BLL.Base_FactoryService.GetBase_FactoryById(data.FactoryId).FactoryName;
Item.Address = BLL.Base_FactoryService.GetBase_FactoryById(data.FactoryId).Address;
+ Item.MapCoordinates= BLL.Base_FactoryService.GetBase_FactoryById(data.FactoryId).MapCoordinates;
Item.SafetyMnaHours = data.SafetyMnaHours.HasValue ? data.SafetyMnaHours.Value : 0;
Item.GeneralRiskNum = data.GeneralRiskNum.HasValue ? data.GeneralRiskNum.Value : 0;
Item.LowRiskNum = data.LowRiskNum.HasValue ? data.LowRiskNum.Value : 0;
diff --git a/SGGL/FineUIPro.Web/BaseInfo/BaseFactoryEdit.aspx b/SGGL/FineUIPro.Web/BaseInfo/BaseFactoryEdit.aspx
index 4e4b03e2..db5aff90 100644
--- a/SGGL/FineUIPro.Web/BaseInfo/BaseFactoryEdit.aspx
+++ b/SGGL/FineUIPro.Web/BaseInfo/BaseFactoryEdit.aspx
@@ -33,6 +33,14 @@
+
+
+
+
+ 拾取坐标
+
+
+
diff --git a/SGGL/FineUIPro.Web/BaseInfo/BaseFactoryEdit.aspx.cs b/SGGL/FineUIPro.Web/BaseInfo/BaseFactoryEdit.aspx.cs
index d64f9d66..b848bdcd 100644
--- a/SGGL/FineUIPro.Web/BaseInfo/BaseFactoryEdit.aspx.cs
+++ b/SGGL/FineUIPro.Web/BaseInfo/BaseFactoryEdit.aspx.cs
@@ -44,6 +44,7 @@ namespace FineUIPro.Web.BaseInfo
this.txtFactoryCode.Text = model.FactoryCode;
this.txtFactoryName.Text = model.FactoryName;
this.txtAddress.Text = model.Address;
+ this.txtMapCoordinates.Text = model.MapCoordinates;
}
}
@@ -67,6 +68,7 @@ namespace FineUIPro.Web.BaseInfo
table.FactoryCode = this.txtFactoryCode.Text;
table.FactoryName = this.txtFactoryName.Text;
table.Address = this.txtAddress.Text;
+ table.MapCoordinates=this.txtMapCoordinates.Text;
if (string.IsNullOrEmpty(this.FactoryId))
{
table.FactoryId = SQLHelper.GetNewID(typeof(Model.Base_Factory));
diff --git a/SGGL/FineUIPro.Web/BaseInfo/BaseFactoryEdit.aspx.designer.cs b/SGGL/FineUIPro.Web/BaseInfo/BaseFactoryEdit.aspx.designer.cs
index 8671a426..49a796c2 100644
--- a/SGGL/FineUIPro.Web/BaseInfo/BaseFactoryEdit.aspx.designer.cs
+++ b/SGGL/FineUIPro.Web/BaseInfo/BaseFactoryEdit.aspx.designer.cs
@@ -68,6 +68,24 @@ namespace FineUIPro.Web.BaseInfo
///
protected global::FineUIPro.TextBox txtAddress;
+ ///
+ /// txtMapCoordinates 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtMapCoordinates;
+
+ ///
+ /// bottomPanel 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ContentPanel bottomPanel;
+
///
/// Toolbar1 控件。
///
diff --git a/SGGL/FineUIPro.Web/ZHGL/DataSync/SYHSEData_Data.aspx b/SGGL/FineUIPro.Web/ZHGL/DataSync/SYHSEData_Data.aspx
index ada86ceb..f23ca492 100644
--- a/SGGL/FineUIPro.Web/ZHGL/DataSync/SYHSEData_Data.aspx
+++ b/SGGL/FineUIPro.Web/ZHGL/DataSync/SYHSEData_Data.aspx
@@ -103,7 +103,7 @@