diff --git a/HJGL/.vs/HJGL/v17/.suo b/HJGL/.vs/HJGL/v17/.suo
index ba670be..08ae704 100644
Binary files a/HJGL/.vs/HJGL/v17/.suo and b/HJGL/.vs/HJGL/v17/.suo differ
diff --git a/HJGL/FineUIPro.Web/WeldingProcess/TrustManage/PointManage.aspx b/HJGL/FineUIPro.Web/WeldingProcess/TrustManage/PointManage.aspx
index 7474490..5a31b11 100644
--- a/HJGL/FineUIPro.Web/WeldingProcess/TrustManage/PointManage.aspx
+++ b/HJGL/FineUIPro.Web/WeldingProcess/TrustManage/PointManage.aspx
@@ -123,6 +123,8 @@
+
+
diff --git a/HJGL/FineUIPro.Web/WeldingProcess/TrustManage/PointManage.aspx.cs b/HJGL/FineUIPro.Web/WeldingProcess/TrustManage/PointManage.aspx.cs
index bfc2562..c8afdf3 100644
--- a/HJGL/FineUIPro.Web/WeldingProcess/TrustManage/PointManage.aspx.cs
+++ b/HJGL/FineUIPro.Web/WeldingProcess/TrustManage/PointManage.aspx.cs
@@ -1,9 +1,14 @@
using BLL;
+using FineUIPro.Web.common.BaseInfo;
+using FineUIPro.Web.common.ProjectSet;
+using NPOI.SS.Formula.Functions;
+using Org.BouncyCastle.Asn1.Tsp;
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
+using System.Management;
using System.Reflection;
using System.Web.UI.WebControls;
@@ -1534,6 +1539,66 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage
}
#endregion
+ protected void btnPTIn_Click(object sender, EventArgs e)
+ {
+ string strSql = @"SELECT pipe.PipelineId,pipe.PipelineCode,pipe.DetectionRateId,rate.DetectionRateCode
+ FROM dbo.Pipeline_Pipeline pipe
+ LEFT JOIN dbo.Base_DetectionRate rate ON rate.DetectionRateId = pipe.DetectionRateId
+ WHERE (SELECT COUNT(*) FROM dbo.Pipeline_WeldJoint jot
+ WHERE jot.PipelineId=pipe.PipelineId
+ AND jot.WeldingDailyId IS NOT NULL
+ AND jot.DetectionType LIKE '%53704a2c-ce45-41d9-a6e7-be24f0780d87%' )>0";
+ DataTable tb = SQLHelper.GetDataTableRunText(strSql, null);
+ if (tb != null)
+ {
+ foreach (DataRow dr in tb.Rows)
+ {
+ string pipelineId =dr["PipelineId"].ToString();
+ string pipelineCode = dr["PipelineCode"].ToString();
+ string detectionRateId = dr["DetectionRateId"].ToString();
+ string detectionRateCode = dr["DetectionRateCode"].ToString();
+ Model.Batch_PointBatch newPointBatch = new Model.Batch_PointBatch();
+ string pointBatchId = SQLHelper.GetNewID(typeof(Model.Batch_PointBatch));
+ string pointBatchCode = Batch_PointBatchService.GetNewPointBatchCode("0bbe1ae1-e643-4f86-9695-4381ed792ec9", pipelineCode, "PT", detectionRateCode);
+
+ newPointBatch.PointBatchId = pointBatchId;
+ newPointBatch.PointBatchCode = pointBatchCode;
+ newPointBatch.ProjectId = "0bbe1ae1-e643-4f86-9695-4381ed792ec9";
+ newPointBatch.UnitId = "8c730dfc-07a5-424e-8f58-75098493e0c5";
+ newPointBatch.PipelineId = pipelineId;
+ newPointBatch.InstallationId = "2990422b-4589-42a1-b2b5-b0c2e39324d0";
+ newPointBatch.DetectionTypeId = "53704a2c-ce45-41d9-a6e7-be24f0780d87";
+ newPointBatch.DetectionRateId = detectionRateId;
+
+ newPointBatch.StartDate = System.DateTime.Now;
+ newPointBatch.IsTrust = true;
+
+ Batch_PointBatchService.AddPointBatch(newPointBatch); // 生成主表
+
+ // 增加明细
+ var jotList = (from x in Funs.DB.Pipeline_WeldJoint
+ join y in Funs.DB.Pipeline_WeldingDaily on x.WeldingDailyId equals y.WeldingDailyId
+ where x.PipelineId == pipelineId && x.WeldingDailyId != null
+ && x.DetectionType.Contains("53704a2c-ce45-41d9-a6e7-be24f0780d87")
+ select new { x.WeldJointId, y.WeldingDate }).ToList();
+ foreach (var jot in jotList)
+ {
+ Model.Batch_PointBatchItem newPointBatchItem = new Model.Batch_PointBatchItem();
+ string pointBatchItemId = SQLHelper.GetNewID(typeof(Model.Batch_PointBatchItem));
+ newPointBatchItem.PointBatchItemId = pointBatchItemId;
+ newPointBatchItem.PointBatchId = pointBatchId;
+ newPointBatchItem.WeldJointId = jot.WeldJointId;
+ newPointBatchItem.WeldingDate = jot.WeldingDate;
+ newPointBatchItem.IsCheckRepair = false;
+ newPointBatchItem.AcceptLevel = "Ⅰ";
+ newPointBatchItem.IsCompletedPoint = true;
+ BLL.Batch_PointBatchItemService.AddPointBatchItem(newPointBatchItem); // 插入明细表
+
+ }
+ }
+ }
+ }
+
private string GetNewTrust(string code)
{
int r_num = 0;
@@ -1558,5 +1623,7 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage
return newTrustCode;
}
+
+
}
}
\ No newline at end of file
diff --git a/HJGL/FineUIPro.Web/WeldingProcess/TrustManage/PointManage.aspx.designer.cs b/HJGL/FineUIPro.Web/WeldingProcess/TrustManage/PointManage.aspx.designer.cs
index 5e8f2f1..177199f 100644
--- a/HJGL/FineUIPro.Web/WeldingProcess/TrustManage/PointManage.aspx.designer.cs
+++ b/HJGL/FineUIPro.Web/WeldingProcess/TrustManage/PointManage.aspx.designer.cs
@@ -7,11 +7,13 @@
// 自动生成>
//------------------------------------------------------------------------------
-namespace FineUIPro.Web.WeldingProcess.TrustManage {
-
-
- public partial class PointManage {
-
+namespace FineUIPro.Web.WeldingProcess.TrustManage
+{
+
+
+ public partial class PointManage
+ {
+
///
/// form1 控件。
///
@@ -20,7 +22,7 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
-
+
///
/// PageManager1 控件。
///
@@ -29,7 +31,7 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.PageManager PageManager1;
-
+
///
/// Panel1 控件。
///
@@ -38,7 +40,7 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Panel Panel1;
-
+
///
/// panelLeftRegion 控件。
///
@@ -47,7 +49,7 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Panel panelLeftRegion;
-
+
///
/// Toolbar1 控件。
///
@@ -56,7 +58,7 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Toolbar Toolbar1;
-
+
///
/// drpTrust 控件。
///
@@ -65,7 +67,7 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.DropDownList drpTrust;
-
+
///
/// Toolbar3 控件。
///
@@ -74,7 +76,7 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Toolbar Toolbar3;
-
+
///
/// drpNde 控件。
///
@@ -83,7 +85,7 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.DropDownList drpNde;
-
+
///
/// Toolbar6 控件。
///
@@ -92,7 +94,7 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Toolbar Toolbar6;
-
+
///
/// txtPipeCode 控件。
///
@@ -101,7 +103,7 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.TextBox txtPipeCode;
-
+
///
/// Toolbar5 控件。
///
@@ -110,7 +112,7 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Toolbar Toolbar5;
-
+
///
/// txtJotDate 控件。
///
@@ -119,7 +121,7 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.DatePicker txtJotDate;
-
+
///
/// tvControlItem 控件。
///
@@ -128,7 +130,7 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Tree tvControlItem;
-
+
///
/// panelCenterRegion 控件。
///
@@ -137,7 +139,7 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Panel panelCenterRegion;
-
+
///
/// Toolbar2 控件。
///
@@ -146,7 +148,7 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Toolbar Toolbar2;
-
+
///
/// drpIsTrust 控件。
///
@@ -155,7 +157,7 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.DropDownList drpIsTrust;
-
+
///
/// drpIsCompletedPoint 控件。
///
@@ -164,7 +166,7 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.DropDownList drpIsCompletedPoint;
-
+
///
/// drpWelder 控件。
///
@@ -173,7 +175,7 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.DropDownList drpWelder;
-
+
///
/// ToolbarFill1 控件。
///
@@ -182,7 +184,7 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.ToolbarFill ToolbarFill1;
-
+
///
/// btnGenerate 控件。
///
@@ -191,7 +193,7 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Button btnGenerate;
-
+
///
/// btnHandGenerate 控件。
///
@@ -200,7 +202,7 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Button btnHandGenerate;
-
+
///
/// btnbtnOpenResetPoint 控件。
///
@@ -209,7 +211,7 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Button btnbtnOpenResetPoint;
-
+
///
/// btnClear 控件。
///
@@ -218,7 +220,7 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Button btnClear;
-
+
///
/// btnSelectExpandPoint 控件。
///
@@ -227,7 +229,16 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Button btnSelectExpandPoint;
-
+
+ ///
+ /// btnPTIn 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnPTIn;
+
///
/// SimpleForm1 控件。
///
@@ -236,7 +247,7 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Form SimpleForm1;
-
+
///
/// txtStartDate 控件。
///
@@ -245,7 +256,7 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Label txtStartDate;
-
+
///
/// txtEndDate 控件。
///
@@ -254,7 +265,7 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Label txtEndDate;
-
+
///
/// txtState 控件。
///
@@ -263,7 +274,7 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Label txtState;
-
+
///
/// Grid1 控件。
///
@@ -272,7 +283,7 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Grid Grid1;
-
+
///
/// ToolbarSeparator1 控件。
///
@@ -281,7 +292,7 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
-
+
///
/// ToolbarText1 控件。
///
@@ -290,7 +301,7 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.ToolbarText ToolbarText1;
-
+
///
/// ddlPageSize 控件。
///
@@ -299,7 +310,7 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.DropDownList ddlPageSize;
-
+
///
/// Window1 控件。
///
@@ -308,7 +319,7 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Window Window1;
-
+
///
/// Window2 控件。
///
@@ -317,7 +328,7 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Window Window2;
-
+
///
/// Menu1 控件。
///
@@ -326,7 +337,7 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Menu Menu1;
-
+
///
/// btnCancelPoint 控件。
///
@@ -335,7 +346,7 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.MenuButton btnCancelPoint;
-
+
///
/// btnCancel 控件。
///
@@ -344,7 +355,7 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.MenuButton btnCancel;
-
+
///
/// btnModefyFristWeld 控件。
///
@@ -353,7 +364,7 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.MenuButton btnModefyFristWeld;
-
+
///
/// btnCut 控件。
///
diff --git a/HJGL/WebApi/obj/Release/WebApi.csproj.AssemblyReference.cache b/HJGL/WebApi/obj/Release/WebApi.csproj.AssemblyReference.cache
index 1c046a3..ff3b52c 100644
Binary files a/HJGL/WebApi/obj/Release/WebApi.csproj.AssemblyReference.cache and b/HJGL/WebApi/obj/Release/WebApi.csproj.AssemblyReference.cache differ