diff --git a/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj b/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj
index 36f19ba..953d204 100644
--- a/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj
+++ b/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj
@@ -7026,7 +7026,7 @@
Cover.aspx
- Component
+ ASPXCodeBehind
Cover.aspx
@@ -7159,7 +7159,7 @@
CommencementReportEdit.aspx
- Component
+ ASPXCodeBehind
CommencementReportEdit.aspx
@@ -8704,6 +8704,27 @@
10.0
$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)
+
+ true
+ bin\
+ DEBUG;TRACE
+ true
+ full
+ x86
+ 7.3
+ prompt
+
+
+ bin\
+ TRACE
+ true
+ true
+ 0
+ pdbonly
+ x86
+ 7.3
+ prompt
+
diff --git a/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj.user b/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj.user
index 80f7761..e3436b8 100644
--- a/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj.user
+++ b/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj.user
@@ -1,4 +1,4 @@
-
+
true
diff --git a/HJGL_DS/FineUIPro.Web/HJGL/DataIn/JointIn.aspx.cs b/HJGL_DS/FineUIPro.Web/HJGL/DataIn/JointIn.aspx.cs
index e558b26..84ad7d6 100644
--- a/HJGL_DS/FineUIPro.Web/HJGL/DataIn/JointIn.aspx.cs
+++ b/HJGL_DS/FineUIPro.Web/HJGL/DataIn/JointIn.aspx.cs
@@ -16,6 +16,11 @@ namespace FineUIPro.Web.HJGL.DataIn
{
public partial class JointIn : PageBase
{
+ ///
+ /// 图纸标注生成的焊口临时数据类型。
+ ///
+ private const string DrawingJointTempType = "0";
+
///
/// 导入的焊口Id
///
@@ -915,6 +920,11 @@ namespace FineUIPro.Web.HJGL.DataIn
}
newJointInfo.JOT_ID = SQLHelper.GetNewID(typeof(Model.HJGL_PW_JointInfo));
BLL.HJGL_PW_JointInfoService.AddJointInfo(newJointInfo);
+ SyncCoordinatesFromTempAndDelete(
+ newJointInfo.JOT_ID,
+ getProject.ProjectId,
+ getPWisInfo.ISO_IsoNo,
+ col2);
// 更新排序字段
string strSort = @"UPDATE dbo.HJGL_PW_JointInfo SET
Sort1=(case when PATINDEX('[A-Z]%',JOT_JointNo)>0 THEN 'B'
@@ -962,6 +972,11 @@ namespace FineUIPro.Web.HJGL.DataIn
}
newJointInfo.JOT_ID = getJoint.JOT_ID;
BLL.HJGL_PW_JointInfoService.UpdateJointInfo(newJointInfo);
+ SyncCoordinatesFromTempAndDelete(
+ newJointInfo.JOT_ID,
+ getProject.ProjectId,
+ getPWisInfo.ISO_IsoNo,
+ col2);
// 更新排序字段
string strSort = @"UPDATE dbo.HJGL_PW_JointInfo SET
@@ -1018,6 +1033,57 @@ namespace FineUIPro.Web.HJGL.DataIn
return;
}
}
+
+ ///
+ /// 将图纸标注临时数据中的坐标同步到焊口,并删除已消费的临时记录。
+ ///
+ private void SyncCoordinatesFromTempAndDelete(
+ string jointId,
+ string projectId,
+ string isoNo,
+ string jointNo)
+ {
+ if (string.IsNullOrWhiteSpace(jointId)
+ || string.IsNullOrWhiteSpace(projectId)
+ || string.IsNullOrWhiteSpace(isoNo)
+ || string.IsNullOrWhiteSpace(jointNo))
+ {
+ return;
+ }
+
+ Model.SGGLDB db = Funs.DB;
+ List tempJointList = db.HJGL_Sys_DataInTemp
+ .Where(x => x.ProjectId == projectId
+ && x.UserId == this.CurrUser.UserId
+ && x.Type == DrawingJointTempType
+ && x.Value3 == isoNo
+ && x.Value4 == jointNo)
+ .ToList();
+ if (tempJointList.Count == 0)
+ {
+ return;
+ }
+
+ Model.HJGL_PW_JointInfo jointInfo = db.HJGL_PW_JointInfo
+ .FirstOrDefault(x => x.JOT_ID == jointId);
+ if (jointInfo == null)
+ {
+ return;
+ }
+
+ Model.HJGL_Sys_DataInTemp coordinateSource = tempJointList
+ .OrderByDescending(x => x.Time)
+ .ThenByDescending(x => x.RowNo)
+ .First();
+ jointInfo.X = coordinateSource.Value46;
+ jointInfo.Y = coordinateSource.Value47;
+ jointInfo.X2 = coordinateSource.Value48;
+ jointInfo.Y2 = coordinateSource.Value49;
+
+ db.HJGL_Sys_DataInTemp.DeleteAllOnSubmit(tempJointList);
+ db.SubmitChanges();
+ }
+
#endregion
protected void imgbtnUpload_Click(object sender, EventArgs e)
{
@@ -1077,4 +1143,4 @@ namespace FineUIPro.Web.HJGL.DataIn
}
#endregion
}
-}
\ No newline at end of file
+}
diff --git a/HJGL_DS/FineUIPro.Web/HJGL/JoinMarking/PDFShow.aspx b/HJGL_DS/FineUIPro.Web/HJGL/JoinMarking/PDFShow.aspx
index c37162d..2795007 100644
--- a/HJGL_DS/FineUIPro.Web/HJGL/JoinMarking/PDFShow.aspx
+++ b/HJGL_DS/FineUIPro.Web/HJGL/JoinMarking/PDFShow.aspx
@@ -14,17 +14,18 @@
--%>
-
+
-
+