diff --git a/HJGL/.vs/HJGL/config/applicationhost.config b/HJGL/.vs/HJGL/config/applicationhost.config
index e47cfd0..1963de0 100644
--- a/HJGL/.vs/HJGL/config/applicationhost.config
+++ b/HJGL/.vs/HJGL/config/applicationhost.config
@@ -162,7 +162,7 @@
-
+
@@ -250,7 +250,7 @@
-
+
diff --git a/HJGL/.vs/HJGL/v17/.suo b/HJGL/.vs/HJGL/v17/.suo
index d599766..b902115 100644
Binary files a/HJGL/.vs/HJGL/v17/.suo and b/HJGL/.vs/HJGL/v17/.suo differ
diff --git a/HJGL/BLL/BLL.csproj b/HJGL/BLL/BLL.csproj
index b94c0d4..7458eeb 100644
--- a/HJGL/BLL/BLL.csproj
+++ b/HJGL/BLL/BLL.csproj
@@ -178,6 +178,7 @@
+
diff --git a/HJGL/BLL/Common/Const.cs b/HJGL/BLL/Common/Const.cs
index 53fe3ce..b265600 100644
--- a/HJGL/BLL/Common/Const.cs
+++ b/HJGL/BLL/Common/Const.cs
@@ -530,6 +530,11 @@ namespace BLL
///
public const string HJGL_PreWeldReportMenuId = "8D92CA4E-F267-4175-9152-56F095668FC9";
+ ///
+ /// 日报完成情况
+ ///
+ public const string DailyReportCompleteMenuId = "948B01F1-27B4-49DF-9315-C42BB7BBE7AF";
+
#endregion
diff --git a/HJGL/BLL/Common/ProjectSet/Welder_TeamGroupService.cs b/HJGL/BLL/Common/ProjectSet/Welder_TeamGroupService.cs
index 7c0425d..288c9ff 100644
--- a/HJGL/BLL/Common/ProjectSet/Welder_TeamGroupService.cs
+++ b/HJGL/BLL/Common/ProjectSet/Welder_TeamGroupService.cs
@@ -84,24 +84,6 @@ namespace BLL
return (from x in Funs.DB.Welder_TeamGroup orderby x.TeamGroupCode select x).ToList();
}
- ///
- /// 班组下拉选择项
- ///
- ///
- ///
- ///
- public static void InitTeamGroupDropDownList(FineUIPro.DropDownList dropName, bool isShowPlease,string itemText)
- {
- dropName.DataValueField = "TeamGroupId";
- dropName.DataTextField = "TeamGroupName";
- dropName.DataSource = GetTeamGroupList();
- dropName.DataBind();
- if (isShowPlease)
- {
- Funs.FineUIPleaseSelect(dropName,itemText);
- }
- }
-
///
/// 获取班组下拉选择项
///
diff --git a/HJGL/BLL/WeldingProcess/WeldingManage/DailyReportCompleteService.cs b/HJGL/BLL/WeldingProcess/WeldingManage/DailyReportCompleteService.cs
new file mode 100644
index 0000000..227b95b
--- /dev/null
+++ b/HJGL/BLL/WeldingProcess/WeldingManage/DailyReportCompleteService.cs
@@ -0,0 +1,92 @@
+using Model;
+using NPOI.SS.Formula.Functions;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+
+namespace BLL
+{
+ public partial class DailyReportCompleteService
+ {
+ ///
+ /// 获取日报完成信息
+ ///
+ /// Id
+ ///
+ public static Model.Pipeline_DailyReportComplete GetDailyReportComplete(string completeId)
+ {
+ return Funs.DB.Pipeline_DailyReportComplete.FirstOrDefault(x => x.DailyReportCompleteId == completeId);
+ }
+
+ ///
+ /// 增加日报完成信息
+ ///
+ ///
+ public static void AddDailyReportComplete(Model.Pipeline_DailyReportComplete complete)
+ {
+ Model.HJGLDB db = Funs.DB;
+ Model.Pipeline_DailyReportComplete newR = new Model.Pipeline_DailyReportComplete();
+ newR.DailyReportCompleteId = complete.DailyReportCompleteId;
+ newR.ProjectId =complete.ProjectId;
+ newR.UnitId = complete.UnitId;
+ newR.TeamGroupId =complete.TeamGroupId;
+ newR.DailyReportDate = complete.DailyReportDate;
+ newR.IsComplete = complete.IsComplete;
+
+ db.Pipeline_DailyReportComplete.InsertOnSubmit(newR);
+ db.SubmitChanges();
+ }
+
+ ///
+ /// 修改日报完成信息
+ ///
+ ///
+ public static void UpdateDailyReportComplete(Model.Pipeline_DailyReportComplete complete)
+ {
+ Model.HJGLDB db = Funs.DB;
+ Model.Pipeline_DailyReportComplete newR = db.Pipeline_DailyReportComplete.First(e => e.DailyReportCompleteId == complete.DailyReportCompleteId);
+ newR.ProjectId = complete.ProjectId;
+ newR.UnitId = complete.UnitId;
+ newR.TeamGroupId = complete.TeamGroupId;
+ newR.DailyReportDate = complete.DailyReportDate;
+ newR.IsComplete = complete.IsComplete;
+
+ db.SubmitChanges();
+ }
+
+ ///
+ /// 删除日报完成信息
+ ///
+ ///
+ public static void DeleteDailyReportComplete(string completeId)
+ {
+ Model.HJGLDB db = Funs.DB;
+ Model.Pipeline_DailyReportComplete delR = db.Pipeline_DailyReportComplete.First(e => e.DailyReportCompleteId == completeId);
+ db.Pipeline_DailyReportComplete.DeleteOnSubmit(delR);
+ db.SubmitChanges();
+ }
+
+ ///
+ /// 是否存在日报完成信息
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// 是否存在
+ public static bool IsExistDailyReportComplete(string projectId , string completeId, string teamGroup, DateTime reportDate)
+ {
+ bool isExist = false;
+ var role = Funs.DB.Pipeline_DailyReportComplete.FirstOrDefault(x => x.ProjectId == projectId && x.TeamGroupId==teamGroup && x.DailyReportDate== reportDate && x.DailyReportCompleteId != completeId);
+ if (role != null)
+ {
+ isExist = true;
+ }
+ return isExist;
+ }
+
+
+
+
+ }
+}
diff --git a/HJGL/FineUIPro.Web/FineUIPro.Web.csproj b/HJGL/FineUIPro.Web/FineUIPro.Web.csproj
index f843a5d..60b98c7 100644
--- a/HJGL/FineUIPro.Web/FineUIPro.Web.csproj
+++ b/HJGL/FineUIPro.Web/FineUIPro.Web.csproj
@@ -1259,6 +1259,8 @@
+
+
@@ -5591,6 +5593,20 @@
TrustBatchSelect.aspx
+
+ DailyReportComplete.aspx
+ ASPXCodeBehind
+
+
+ DailyReportComplete.aspx
+
+
+ DailyReportCompleteEdit.aspx
+ ASPXCodeBehind
+
+
+ DailyReportCompleteEdit.aspx
+
GetWdldingDailyItem.ashx
diff --git a/HJGL/FineUIPro.Web/WeldingProcess/CheckManage/CheckManage.aspx.cs b/HJGL/FineUIPro.Web/WeldingProcess/CheckManage/CheckManage.aspx.cs
index 6cb9eb9..bd29e42 100644
--- a/HJGL/FineUIPro.Web/WeldingProcess/CheckManage/CheckManage.aspx.cs
+++ b/HJGL/FineUIPro.Web/WeldingProcess/CheckManage/CheckManage.aspx.cs
@@ -485,7 +485,7 @@ namespace FineUIPro.Web.CheckManage
if (ndtItem != string.Empty)
{
var q = BLL.Batch_NDEItemService.GetNDEItemById(ndtItem);
- if (q.PassFilm != q.TotalFilm && q.SubmitDate.HasValue)
+ if ((q.PassFilm != q.TotalFilm || q.Remark.Contains("修磨") || q.Remark.Contains("异物")) && q.SubmitDate.HasValue)
{
string window = String.Format("RepairNotice.aspx?NDEItemID={0}", ndtItem, "返修通知单");
PageContext.RegisterStartupScript(WindowRepair.GetShowReference(window));
diff --git a/HJGL/FineUIPro.Web/WeldingProcess/CheckManage/RepairAndExpand.aspx.cs b/HJGL/FineUIPro.Web/WeldingProcess/CheckManage/RepairAndExpand.aspx.cs
index f69a03a..bfe4d97 100644
--- a/HJGL/FineUIPro.Web/WeldingProcess/CheckManage/RepairAndExpand.aspx.cs
+++ b/HJGL/FineUIPro.Web/WeldingProcess/CheckManage/RepairAndExpand.aspx.cs
@@ -210,7 +210,7 @@ namespace FineUIPro.Web.WeldingProcess.CheckManage
if (repairRecord != null && !string.IsNullOrEmpty(repairRecord.RepairRecordCode))
{
// 取返修单后4位
- code4 = repairRecord.RepairRecordCode.Substring(repairRecord.RepairRecordCode.Length - 4);
+ code4 = repairRecord.RepairRecordCode.Substring(repairRecord.RepairRecordCode.Length - 5);
// 取返修单后2位
code2 = repairRecord.RepairRecordCode.Substring(repairRecord.RepairRecordCode.Length - 2);
}
@@ -245,7 +245,7 @@ namespace FineUIPro.Web.WeldingProcess.CheckManage
List listStr = new List();
listStr.Add(new SqlParameter("@DetectionTypeId", repairRecord.DetectionTypeId));
// 如果是第二次返修不加载扩透口
- if (!code4.Contains("K1") && code2 == "R2")
+ if (!code4.Contains("EX1") && code2 == "R2")
{
listStr.Add(new SqlParameter("@ProjectId", "0"));
}
@@ -263,7 +263,7 @@ namespace FineUIPro.Web.WeldingProcess.CheckManage
}
else
{
- if (ndtItem.JudgeGrade == "修磨" || ndtItem.JudgeGrade == "异物")
+ if (ndtItem.Remark.Contains("修磨") || ndtItem.Remark.Contains("异物"))
{
listStr.Add(new SqlParameter("@ProjectId", "0"));
}
@@ -724,7 +724,7 @@ namespace FineUIPro.Web.WeldingProcess.CheckManage
if (code != null && !string.IsNullOrEmpty(code.RepairRecordCode))
{
// 取返修单后4位
- string code4 = code.RepairRecordCode.Substring(code.RepairRecordCode.Length - 4);
+ string code4 = code.RepairRecordCode.Substring(code.RepairRecordCode.Length - 5);
// 取返修单后2位
string code2 = code.RepairRecordCode.Substring(code.RepairRecordCode.Length - 2);
if (code2 == "R1")
@@ -749,7 +749,7 @@ namespace FineUIPro.Web.WeldingProcess.CheckManage
}
else
{
- if (code4.Contains("K1") && code2 == "R2")
+ if (code4.Contains("EX1") && code2 == "R2")
{
Grid1.SelectAllRows();
}
diff --git a/HJGL/FineUIPro.Web/WeldingProcess/CheckManage/RepairNotice.aspx.cs b/HJGL/FineUIPro.Web/WeldingProcess/CheckManage/RepairNotice.aspx.cs
index 58ef0cc..2059ef1 100644
--- a/HJGL/FineUIPro.Web/WeldingProcess/CheckManage/RepairNotice.aspx.cs
+++ b/HJGL/FineUIPro.Web/WeldingProcess/CheckManage/RepairNotice.aspx.cs
@@ -81,7 +81,10 @@ namespace FineUIPro.Web.WeldingProcess.CheckManage
{
newItem.RepairRecordCode = q.TrustBatchCode + "-" + q.WeldJointCode + "P1";
}
-
+ else if (q.Remark.Contains("异物"))
+ {
+ newItem.RepairRecordCode = q.TrustBatchCode + "-" + q.WeldJointCode + "S1";
+ }
else
{
newItem.RepairRecordCode = q.TrustBatchCode + "-" + q.WeldJointCode + "R1";
diff --git a/HJGL/FineUIPro.Web/WeldingProcess/TestPackageManage/TestPackageManageAudit.aspx.cs b/HJGL/FineUIPro.Web/WeldingProcess/TestPackageManage/TestPackageManageAudit.aspx.cs
index 4306801..fa2bedd 100644
--- a/HJGL/FineUIPro.Web/WeldingProcess/TestPackageManage/TestPackageManageAudit.aspx.cs
+++ b/HJGL/FineUIPro.Web/WeldingProcess/TestPackageManage/TestPackageManageAudit.aspx.cs
@@ -664,13 +664,20 @@ namespace FineUIPro.Web.WeldingProcess.TestPackageManage
Alert.ShowInTop("请选择打印报表!", MessageBoxIcon.Warning);
return;
}
- if (string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID) )
+ if (string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID))
{
Alert.ShowInTop("请选择试压包!", MessageBoxIcon.Warning);
return;
}
- CreateDataExcel(selectValArray);
+ try
+ {
+ CreateDataExcel(selectValArray);
+ }
+ catch (Exception ex)
+ {
+ ShowNotify($"导出失败:{ex.Message}", MessageBoxIcon.Error);
+ }
}
#region 绘画模版
@@ -745,7 +752,7 @@ namespace FineUIPro.Web.WeldingProcess.TestPackageManage
ws.GetRow(rowIndex + 11).Height = 11 * 20;
ws.GetRow(rowIndex + 10).GetCell(1).SetCellValue("试压包号\r\nTest Package No.");
- ws.GetRow(rowIndex + 10).GetCell(4).SetCellValue("UG-130-FW-HT-0001");
+ ws.GetRow(rowIndex + 10).GetCell(4).SetCellValue(this.tvControlItem.SelectedNode.Text);
ws.AddMergedRegion(new CellRangeAddress(rowIndex + 12, rowIndex + 13, 2, 4));
ws.AddMergedRegion(new CellRangeAddress(rowIndex + 12, rowIndex + 13, 6, 7));
@@ -3110,32 +3117,66 @@ namespace FineUIPro.Web.WeldingProcess.TestPackageManage
{
var info = GetTestPackageInfo(this.tvControlItem.SelectedNodeID);
- string sql = @" SELECT
- WeldSilkId,
- a.PipelineCode,
- e.WorkAreaCode,
- a.WeldJointCode,
- a.Specification,
- a.Material1Code,
- a.WeldingMethodCode,
- a.WeldingDate,
- a.WeldSilkCode,
- a.WeldMatCode,
- a.BackingWelderCode,
- a.CoverWelderCode,
- a.ProjectName,
- (select top 1 EnProjectName from Base_Project where ProjectId=b.ProjectId ) as EnProjectName,
- (select top 1 WorkAreaName from Project_WorkArea where WorkAreaId=c.WorkAreaId) as WorkAreaName,
- (select top 1 EnWorkAreaName from Project_WorkArea where WorkAreaId=c.WorkAreaId) as EnWorkAreaName,
- a.IsHotProess,(case a.IsHotProess when 1 then '是' else '否' end) as IsHotProessName,PrepareTemp,
- WeldingLocationCode,a.WeldTypeCode,
- (SELECT TOP 1 n.NDEReportNo FROM dbo.Batch_NDEItem n WHERE n.TrustBatchItemId=
- (SELECT TOP 1 bt.TrustBatchItemId FROM dbo.Batch_BatchTrustItem bt WHERE bt.WeldJointId=a.WeldJointId)) AS NDEReportNo
- FROM PTP_TestPackage as b inner join
- PTP_PipelineList as c on b.PTP_ID=c.PTP_ID
- inner join View_Pipeline_WeldJoint as a on c.PipelineId=a.PipelineId
- left join Project_WorkArea as e on e.WorkAreaId=c.WorkAreaId
- WHERE Is_hjName='是' and b.PTP_ID=@PTPID and a.projectId=@projectId
+ string sql = @" SELECT * FROM (
+ SELECT
+ b.PTP_ID,
+ a.projectId,
+ WeldSilkId,
+ a.PipelineCode,
+ a.WeldJointCode,
+ a.Specification,
+ a.MaterialCode,
+ a.WeldingMethodCode,
+ a.WeldingDate,
+ (CASE WHEN a.WeldMatId IS NOT NULL AND a.WeldSilkId IS NOT NULL THEN a.WeldSilkId+'|'+ a.WeldMatId
+ WHEN a.WeldMatId IS NOT NULL AND a.WeldSilkId IS NULL THEN a.WeldMatId
+ WHEN a.WeldSilkId IS NOT NULL AND a.WeldMatId IS NULL THEN a.WeldSilkId
+ ELSE '' END) AS WeldMaterial,
+ a.BackingWelderCode,
+ a.CoverWelderCode,
+ a.ProjectName,
+ (select top 1 EnProjectName from Base_Project where ProjectId=b.ProjectId ) as EnProjectName,
+ (select top 1 WorkAreaName from Project_WorkArea where WorkAreaId=c.WorkAreaId) as WorkAreaName,
+ (select top 1 EnWorkAreaName from Project_WorkArea where WorkAreaId=c.WorkAreaId) as EnWorkAreaName,
+ a.IsHotProess,(case a.IsHotProess when 1 then '是' else '否' end) as IsHotProessName,PrepareTemp,
+ WeldingLocationCode,a.WeldTypeCode,
+ (SELECT TOP 1 n.NDEReportNo FROM dbo.Batch_NDEItem n WHERE n.TrustBatchItemId=
+ (SELECT TOP 1 bt.TrustBatchItemId FROM dbo.Batch_BatchTrustItem bt WHERE bt.WeldJointId=a.WeldJointId)) AS NDEReportNo
+ FROM PTP_TestPackage as b inner join
+ PTP_PipelineList as c on b.PTP_ID=c.PTP_ID
+ inner join View_Pipeline_WeldJoint as a on c.PipelineId=a.PipelineId
+ WHERE c.isAll=1
+ UNION ALL
+ SELECT
+ b.PTP_ID,
+ a.projectId,
+ WeldSilkId,
+ a.PipelineCode,
+ a.WeldJointCode,
+ a.Specification,
+ a.MaterialCode,
+ a.WeldingMethodCode,
+ a.WeldingDate,
+ (CASE WHEN a.WeldMatId IS NOT NULL AND a.WeldSilkId IS NOT NULL THEN a.WeldSilkId+'|'+ a.WeldMatId
+ WHEN a.WeldMatId IS NOT NULL AND a.WeldSilkId IS NULL THEN a.WeldMatId
+ WHEN a.WeldSilkId IS NOT NULL AND a.WeldMatId IS NULL THEN a.WeldSilkId
+ ELSE '' END) AS WeldMaterial,
+ a.BackingWelderCode,
+ a.CoverWelderCode,
+ a.ProjectName,
+ (select top 1 EnProjectName from Base_Project where ProjectId=b.ProjectId ) as EnProjectName,
+ (select top 1 WorkAreaName from Project_WorkArea where WorkAreaId=c.WorkAreaId) as WorkAreaName,
+ (select top 1 EnWorkAreaName from Project_WorkArea where WorkAreaId=c.WorkAreaId) as EnWorkAreaName,
+ a.IsHotProess,(case a.IsHotProess when 1 then '是' else '否' end) as IsHotProessName,PrepareTemp,
+ WeldingLocationCode,a.WeldTypeCode,
+ (SELECT TOP 1 n.NDEReportNo FROM dbo.Batch_NDEItem n WHERE n.TrustBatchItemId=
+ (SELECT TOP 1 bt.TrustBatchItemId FROM dbo.Batch_BatchTrustItem bt WHERE bt.WeldJointId=a.WeldJointId)) AS NDEReportNo
+ FROM PTP_TestPackage as b inner join
+ PTP_PipelineList as c on b.PTP_ID=c.PTP_ID
+ inner join View_Pipeline_WeldJoint as a on c.PipelineId=a.PipelineId
+ WHERE c.isAll=0 AND CHARINDEX(','+a.WeldJointCode+',',','+c.WeldJonintCode+',')>0
+
+ ) AS T WHERE PTP_ID=@PTPID and projectId=@projectId
";
SqlParameter[] parms = {
@@ -3334,23 +3375,15 @@ namespace FineUIPro.Web.WeldingProcess.TestPackageManage
//规格mm
ws.GetRow(dataIndex).GetCell(5).SetCellValue(dr["Specification"].ToString());
//材质
- ws.GetRow(dataIndex).GetCell(6).SetCellValue(dr["Material1Code"].ToString());
+ ws.GetRow(dataIndex).GetCell(6).SetCellValue(dr["MaterialCode"].ToString());
//焊接位置
ws.GetRow(dataIndex).GetCell(7).SetCellValue(dr["WeldingLocationCode"].ToString());
//焊接方法
ws.GetRow(dataIndex).GetCell(8).SetCellValue(dr["WeldingMethodCode"].ToString());
- //焊材牌号
- List silkMats = new List();
- if (!string.IsNullOrWhiteSpace(dr["WeldSilkCode"].ToString()))
- {
- silkMats.Add(dr["WeldSilkCode"].ToString());
- }
- if (!string.IsNullOrWhiteSpace(dr["WeldMatCode"].ToString()))
- {
- silkMats.Add(dr["WeldMatCode"].ToString());
- }
- if (silkMats.Count > 0) silkMats = silkMats.GroupBy(x => x).Select(x => x.Key).ToList();
- ws.GetRow(dataIndex).GetCell(10).SetCellValue(string.Join("/", silkMats));
+
+ string silkMats = ConvertWeldMaterial(dr["WeldMaterial"].ToString());
+
+ ws.GetRow(dataIndex).GetCell(10).SetCellValue(silkMats);
//实际预热温度
ws.GetRow(dataIndex).GetCell(12).SetCellValue(dr["PrepareTemp"].ToString());
//焊接日期
@@ -3718,7 +3751,7 @@ namespace FineUIPro.Web.WeldingProcess.TestPackageManage
ws.GetRow(dataIndex).GetCell(5).SetCellValue(dr["totalNum"].ToString());
ws.GetRow(dataIndex).GetCell(7).SetCellValue(dr["Fnum"].ToString());
ws.GetRow(dataIndex).GetCell(9).SetCellValue(dr["WelderCode"].ToString());
- ws.GetRow(dataIndex).GetCell(11).SetCellValue(dr["Fnum"].ToString());
+ ws.GetRow(dataIndex).GetCell(11).SetCellValue(dr["totalNum"].ToString());
ws.GetRow(dataIndex).GetCell(13).SetCellValue(dr["NdeNum"].ToString());
ws.GetRow(dataIndex).GetCell(15).SetCellValue(dr["FNdeNum"].ToString());
string a = string.IsNullOrEmpty(dr["NdeNum"].ToString())?"0": dr["NdeNum"].ToString();
@@ -4812,8 +4845,8 @@ namespace FineUIPro.Web.WeldingProcess.TestPackageManage
ws.GetRow(dataIndex).GetCell(9).SetCellValue(dr["RTNDEReportNo"].ToString());
ws.GetRow(dataIndex).GetCell(11).SetCellValue(dr["PTCheckResult"].ToString());
ws.GetRow(dataIndex).GetCell(12).SetCellValue(dr["PTNDEReportNo"].ToString());
- ws.GetRow(dataIndex).GetCell(14).SetCellValue(dr[""].ToString());
- ws.GetRow(dataIndex).GetCell(15).SetCellValue(dr[""].ToString());
+ ws.GetRow(dataIndex).GetCell(14).SetCellValue("");
+ ws.GetRow(dataIndex).GetCell(15).SetCellValue("");
ws.GetRow(dataIndex).GetCell(17).SetCellValue(dr["Remark"].ToString());
j++;
}
@@ -6534,7 +6567,7 @@ namespace FineUIPro.Web.WeldingProcess.TestPackageManage
{
Directory.CreateDirectory(filePath);
}
- string fileName = "模版报表-" + DateTime.Now.ToString("yyyyMMddHHmmss") + ".xlsx";
+ string fileName = "试压包报表-" + DateTime.Now.ToString("yyyyMMddHHmmss") + ".xlsx";
string ReportFileName = filePath + fileName;
//XSSFWorkbook hssfworkbook = new XSSFWorkbook();
@@ -6735,7 +6768,87 @@ namespace FineUIPro.Web.WeldingProcess.TestPackageManage
#region 私有方法
+ protected string ConvertWeldMaterial(object WeldMaterial)
+ {
+ string weldMaterial = string.Empty;
+ string silkName = string.Empty;
+ string fluxName = string.Empty;
+ string matName = string.Empty;
+ if (WeldMaterial != null)
+ {
+ string[] wmts = WeldMaterial.ToString().Split('|');
+ if (wmts.Count() > 0)
+ {
+ if (wmts.Count() == 1)
+ {
+ string[] silks = wmts[0].Split(',');
+ if (silks.Count() > 1) // 焊丝
+ {
+ foreach (string s in silks)
+ {
+ var silk = BLL.Base_ConsumablesService.GetConsumablesByConsumablesId(s);
+ if (!string.IsNullOrEmpty(silk.UserFlux))
+ {
+ fluxName = fluxName + silk.UserFlux + "/";
+ silkName = silkName + silk.ConsumablesName + "/";
+ }
+ else
+ {
+ silkName = silkName + silk.ConsumablesName + "/";
+ }
+ }
+
+ if (fluxName.Length > 0)
+ {
+ fluxName = fluxName.Substring(0, fluxName.Length - 1);
+ weldMaterial = silkName + fluxName;
+ }
+ else
+ {
+ weldMaterial = silkName.Substring(0, silkName.Length - 1);
+ }
+
+
+ }
+ else
+ {
+ var mat = BLL.Base_ConsumablesService.GetConsumablesByConsumablesId(wmts[0]);
+ weldMaterial = mat==null?"": mat.ConsumablesName;
+ }
+
+ }
+ else
+ {
+
+ string[] silks = wmts[0].Split(',');
+ foreach (string s in silks)
+ {
+ var silk = BLL.Base_ConsumablesService.GetConsumablesByConsumablesId(s);
+ if (!string.IsNullOrEmpty(silk.UserFlux))
+ {
+ fluxName = fluxName + silk.UserFlux + "/";
+ silkName = silkName + silk.ConsumablesName + "/";
+ }
+ else
+ {
+ silkName = silkName + silk.ConsumablesName + "/";
+ }
+ }
+
+ var mat = BLL.Base_ConsumablesService.GetConsumablesByConsumablesId(wmts[1]);
+ weldMaterial = silkName + mat.ConsumablesName;
+
+ if (fluxName.Length > 0)
+ {
+ fluxName = fluxName.Substring(0, fluxName.Length - 1);
+ weldMaterial = silkName + mat.ConsumablesName + "/" + fluxName;
+ }
+ }
+ }
+ }
+ return weldMaterial;
+ }
public static TestPackageInfoViewModel GetTestPackageInfo(string ptpId)
{
var result = (from a in Funs.DB.PTP_TestPackage
diff --git a/HJGL/FineUIPro.Web/WeldingProcess/TrustManage/PointManage.aspx b/HJGL/FineUIPro.Web/WeldingProcess/TrustManage/PointManage.aspx
index 5a31b11..e884cc5 100644
--- a/HJGL/FineUIPro.Web/WeldingProcess/TrustManage/PointManage.aspx
+++ b/HJGL/FineUIPro.Web/WeldingProcess/TrustManage/PointManage.aspx
@@ -118,7 +118,7 @@
runat="server" OnClick="btnbtnOpenResetPoint_Click">
+ ConfirmText="确定要手动关闭批的待处理状态吗?" OnClick="btnbtnClear_Click">
diff --git a/HJGL/FineUIPro.Web/WeldingProcess/TrustManage/PointManage.aspx.cs b/HJGL/FineUIPro.Web/WeldingProcess/TrustManage/PointManage.aspx.cs
index 8c52f9c..a1167ec 100644
--- a/HJGL/FineUIPro.Web/WeldingProcess/TrustManage/PointManage.aspx.cs
+++ b/HJGL/FineUIPro.Web/WeldingProcess/TrustManage/PointManage.aspx.cs
@@ -855,7 +855,7 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage
}
///
- /// 手动结束批(暂不用)
+ /// 手动结束批
///
///
///
@@ -863,23 +863,30 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage
{
if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.HJGL_PointManageMenuId, Const.BtnClearBatch))
{
- string info = "该批次已关闭!";
- var point = BLL.Batch_PointBatchService.GetPointBatchById(this.PointBatchId);
- if (point != null && !point.EndDate.HasValue)
+ string info = "该批次待处理状态的焊口已关闭!";
+ var pointItemList = (from x in Funs.DB.Batch_PointBatchItem where x.PointBatchId == this.PointBatchId && (x.IsCompletedPoint == null || x.IsCompletedPoint == false) select x).ToList();
+ foreach (var item in pointItemList)
{
- var q = Funs.DB.Batch_PointBatchItem.FirstOrDefault(x => x.PointBatchId == PointBatchId && x.PointState == "1");
- if (q != null)
- {
- BLL.Batch_PointBatchService.UpdatePointBatch(PointBatchId, System.DateTime.Now);
- this.txtEndDate.Text = point.EndDate.Value.ToShortDateString();
- this.txtState.Text = "批关闭";
- BLL.Sys_LogService.AddLog(BLL.Const.System_3, this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.HJGL_PointManageMenuId, Const.BtnClearBatch, this.PointBatchId);
- }
- else
- {
- info = "该批次未点口,请手动点口后再结束批!";
- }
+ item.IsCompletedPoint = true;
}
+ Funs.DB.SubmitChanges();
+
+ //var point = BLL.Batch_PointBatchService.GetPointBatchById(this.PointBatchId);
+ //if (point != null && !point.EndDate.HasValue)
+ //{
+ // var q = Funs.DB.Batch_PointBatchItem.FirstOrDefault(x => x.PointBatchId == PointBatchId && x.PointState == "1");
+ // if (q != null)
+ // {
+ // BLL.Batch_PointBatchService.UpdatePointBatch(PointBatchId, System.DateTime.Now);
+ // this.txtEndDate.Text = point.EndDate.Value.ToShortDateString();
+ // this.txtState.Text = "批关闭";
+ // BLL.Sys_LogService.AddLog(BLL.Const.System_3, this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.HJGL_PointManageMenuId, Const.BtnClearBatch, this.PointBatchId);
+ // }
+ // else
+ // {
+ // info = "该批次未点口,请手动点口后再结束批!";
+ // }
+ //}
Alert.ShowInTop(info);
}
else
diff --git a/HJGL/FineUIPro.Web/WeldingProcess/TrustManage/TrustBatchIn.aspx.cs b/HJGL/FineUIPro.Web/WeldingProcess/TrustManage/TrustBatchIn.aspx.cs
index b0d72fe..bf61c8e 100644
--- a/HJGL/FineUIPro.Web/WeldingProcess/TrustManage/TrustBatchIn.aspx.cs
+++ b/HJGL/FineUIPro.Web/WeldingProcess/TrustManage/TrustBatchIn.aspx.cs
@@ -558,6 +558,14 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage
pointItem.JLAudit = Const.GlyId;
Funs.DB.SubmitChanges();
}
+
+ // 导入后该批次里所有口都关闭
+ var pointItemList = (from x in Funs.DB.Batch_PointBatchItem where x.PointBatchId == newBatchTrust.TopointBatch && (x.IsCompletedPoint == null || x.IsCompletedPoint == false) select x).ToList();
+ foreach (var item in pointItemList)
+ {
+ item.IsCompletedPoint = true;
+ }
+ Funs.DB.SubmitChanges();
}
ShowNotify("导入成功!", MessageBoxIcon.Success);
diff --git a/HJGL/FineUIPro.Web/WeldingProcess/WeldingManage/DailyReportComplete.aspx b/HJGL/FineUIPro.Web/WeldingProcess/WeldingManage/DailyReportComplete.aspx
new file mode 100644
index 0000000..b94e01a
--- /dev/null
+++ b/HJGL/FineUIPro.Web/WeldingProcess/WeldingManage/DailyReportComplete.aspx
@@ -0,0 +1,93 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DailyReportComplete.aspx.cs" Inherits="FineUIPro.Web.WeldingProcess.WeldingManage.DailyReportComplete" %>
+
+
+
+
+
+ 日报完成情况
+
+
+
+
+
+
+
diff --git a/HJGL/FineUIPro.Web/WeldingProcess/WeldingManage/DailyReportComplete.aspx.cs b/HJGL/FineUIPro.Web/WeldingProcess/WeldingManage/DailyReportComplete.aspx.cs
new file mode 100644
index 0000000..e5dad60
--- /dev/null
+++ b/HJGL/FineUIPro.Web/WeldingProcess/WeldingManage/DailyReportComplete.aspx.cs
@@ -0,0 +1,248 @@
+using BLL;
+using System;
+using System.Collections.Generic;
+using System.Data.SqlClient;
+using System.Data;
+using System.Linq;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+using AspNet = System.Web.UI.WebControls;
+using static System.Windows.Forms.VisualStyles.VisualStyleElement;
+
+namespace FineUIPro.Web.WeldingProcess.WeldingManage
+{
+ public partial class DailyReportComplete : PageBase
+ {
+ #region 加载
+ ///
+ /// 加载页面
+ ///
+ ///
+ ///
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack)
+ {
+ this.ddlPageSize.SelectedValue = this.Grid1.PageSize.ToString();
+ var teamGroup = BLL.Welder_TeamGroupService.GetAllTeamGroupList(CurrUser.LoginProjectId, "");
+ drpTeamGroup.DataValueField = "Value";
+ drpTeamGroup.DataTextField = "Text";
+ drpTeamGroup.DataSource = teamGroup;
+ drpTeamGroup.DataBind();
+ Funs.FineUIPleaseSelect(drpTeamGroup, "");
+ this.BindGrid();
+ }
+ }
+
+
+ ///
+ /// 绑定数据
+ ///
+ private void BindGrid()
+ {
+ string strSql = @"SELECT daily.DailyReportCompleteId,unit.UnitCode,team.TeamGroupName,daily.DailyReportDate,daily.IsComplete
+ FROM dbo.Pipeline_DailyReportComplete daily
+ LEFT JOIN dbo.Welder_TeamGroup team ON team.TeamGroupId = daily.TeamGroupId
+ LEFT JOIN dbo.Base_Unit unit ON unit.UnitId = daily.UnitId
+ WHERE 1=1";
+ List parms = new List();
+ if (this.drpTeamGroup.SelectedValue != "" && this.drpTeamGroup.SelectedValue!=Const._Null)
+ {
+ strSql += " and daily.TeamGroupId = @TeamGroupId ";
+ parms.Add(new SqlParameter("@TeamGroupId", this.drpTeamGroup.SelectedValue));
+ }
+ strSql += " ORDER BY daily.DailyReportDate DESC ";
+ SqlParameter[] parameter = parms.ToArray();
+ DataTable dt = SQLHelper.GetDataTableRunText(strSql, parameter);
+ Grid1.RecordCount = dt.Rows.Count;
+ var table = this.GetPagedDataTable(Grid1, dt);
+ Grid1.DataSource = table;
+ Grid1.DataBind();
+ }
+
+ ///
+ /// 改变索引事件
+ ///
+ ///
+ ///
+ protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
+ {
+ BindGrid();
+ }
+
+ ///
+ /// 分页下拉选择事件
+ ///
+ ///
+ ///
+ protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue);
+ BindGrid();
+ }
+
+ ///
+ /// 排序
+ ///
+ ///
+ ///
+ protected void Grid1_Sort(object sender, FineUIPro.GridSortEventArgs e)
+ {
+ this.BindGrid();
+ }
+ #endregion
+
+ #region 统计按钮事件
+ ///
+ /// 统计
+ ///
+ ///
+ ///
+ protected void BtnAnalyse_Click(object sender, EventArgs e)
+ {
+ BindGrid();
+
+ }
+
+ #region 增加按钮事件
+ ///
+ /// 增加按钮事件
+ ///
+ ///
+ ///
+ protected void btnNew_Click(object sender, EventArgs e)
+ {
+ if (GetButtonPower(Const.BtnAdd))
+ {
+ PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("DailyReportCompleteEdit.aspx", "新增 - ")));
+ }
+ else
+ {
+ Alert.ShowInTop(Resources.Lan.NoPrivilegePrompt, MessageBoxIcon.Warning);
+ return;
+ }
+ }
+ #endregion
+
+ #region 编辑/查看/删除数据
+
+ ///
+ /// 编辑
+ ///
+ private void EditData()
+ {
+ if (GetButtonPower(BLL.Const.BtnModify))
+ {
+ if (Grid1.SelectedRowIndexArray.Length == 0)
+ {
+ Alert.ShowInParent(Resources.Lan.SelectLeastOneRecord);
+ return;
+ }
+ string Id = Grid1.SelectedRowID;
+ PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("DailyReportCompleteEdit.aspx?completeId={0}", Id, "编辑 - ")));
+ }
+ else
+ {
+ ShowNotify(Resources.Lan.NoPrivilegePrompt, MessageBoxIcon.Warning);
+ }
+ }
+
+ ///
+ /// Grid行双击事件
+ ///
+ ///
+ ///
+ protected void Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e)
+ {
+ EditData();
+ }
+
+ ///
+ /// 右键编辑事件
+ ///
+ ///
+ ///
+ protected void btnMenuEdit_Click(object sender, EventArgs e)
+ {
+ this.EditData();
+ }
+
+ protected void btnMenuView_Click(object sender, EventArgs e)
+ {
+ if (GetButtonPower(BLL.Const.BtnSee))
+ {
+ PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("DailyReportCompleteEdit.aspx?completeId={0}", Grid1.SelectedRowID, "查看 - ")));
+ }
+ else
+ {
+ ShowNotify(Resources.Lan.NoPrivilegePrompt, MessageBoxIcon.Warning);
+ return;
+ }
+ }
+
+ ///
+ /// 批量删除数据
+ ///
+ ///
+ ///
+ protected void btnMenuDelete_Click(object sender, EventArgs e)
+ {
+ if (GetButtonPower(BLL.Const.BtnDelete))
+ {
+ string strShowNotify = string.Empty;
+ if (Grid1.SelectedRowIndexArray.Length > 0)
+ {
+ foreach (int rowIndex in Grid1.SelectedRowIndexArray)
+ {
+ string rowID = Grid1.DataKeys[rowIndex][0].ToString();
+ BLL.DailyReportCompleteService.DeleteDailyReportComplete(rowID);
+ BLL.Sys_LogService.AddLog(Const.System_1, this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.DailyReportCompleteMenuId, Const.BtnDelete, rowID);
+ }
+ }
+
+ if (!string.IsNullOrEmpty(strShowNotify))
+ {
+ Alert.ShowInTop(strShowNotify, MessageBoxIcon.Warning);
+ }
+ else
+ {
+ BindGrid();
+ ShowNotify(Resources.Lan.DeletedSuccessfully, MessageBoxIcon.Success);
+ }
+ }
+ else
+ {
+ ShowNotify(Resources.Lan.NoPrivilegePrompt, MessageBoxIcon.Warning);
+ }
+ }
+ #endregion
+
+ #region 关闭窗口
+ ///
+ /// 关闭窗口
+ ///
+ ///
+ ///
+ protected void Window1_Close(object sender, EventArgs e)
+ {
+ BindGrid();
+ }
+ #endregion
+
+ #region 获取按钮权限
+ ///
+ /// 获取按钮权限
+ ///
+ ///
+ ///
+ private bool GetButtonPower(string button)
+ {
+ return BLL.CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.DailyReportCompleteMenuId, button);
+ }
+ #endregion
+
+ #endregion
+
+ }
+}
\ No newline at end of file
diff --git a/HJGL/FineUIPro.Web/WeldingProcess/WeldingManage/DailyReportComplete.aspx.designer.cs b/HJGL/FineUIPro.Web/WeldingProcess/WeldingManage/DailyReportComplete.aspx.designer.cs
new file mode 100644
index 0000000..a642f40
--- /dev/null
+++ b/HJGL/FineUIPro.Web/WeldingProcess/WeldingManage/DailyReportComplete.aspx.designer.cs
@@ -0,0 +1,170 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.WeldingProcess.WeldingManage
+{
+
+
+ public partial class DailyReportComplete
+ {
+
+ ///
+ /// form1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.HtmlControls.HtmlForm form1;
+
+ ///
+ /// PageManager1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.PageManager PageManager1;
+
+ ///
+ /// Panel1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Panel Panel1;
+
+ ///
+ /// Grid1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Grid Grid1;
+
+ ///
+ /// Toolbar1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Toolbar Toolbar1;
+
+ ///
+ /// drpTeamGroup 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList drpTeamGroup;
+
+ ///
+ /// BtnAnalyse 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button BtnAnalyse;
+
+ ///
+ /// ToolbarFill1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarFill ToolbarFill1;
+
+ ///
+ /// btnNew 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnNew;
+
+ ///
+ /// ToolbarSeparator1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
+
+ ///
+ /// ToolbarText1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarText ToolbarText1;
+
+ ///
+ /// ddlPageSize 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList ddlPageSize;
+
+ ///
+ /// Window1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Window Window1;
+
+ ///
+ /// Menu1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Menu Menu1;
+
+ ///
+ /// btnMenuEdit 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.MenuButton btnMenuEdit;
+
+ ///
+ /// btnMenuDelete 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.MenuButton btnMenuDelete;
+
+ ///
+ /// btnMenuView 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.MenuButton btnMenuView;
+ }
+}
diff --git a/HJGL/FineUIPro.Web/WeldingProcess/WeldingManage/DailyReportCompleteEdit.aspx b/HJGL/FineUIPro.Web/WeldingProcess/WeldingManage/DailyReportCompleteEdit.aspx
new file mode 100644
index 0000000..688194d
--- /dev/null
+++ b/HJGL/FineUIPro.Web/WeldingProcess/WeldingManage/DailyReportCompleteEdit.aspx
@@ -0,0 +1,54 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DailyReportCompleteEdit.aspx.cs" Inherits="FineUIPro.Web.WeldingProcess.WeldingManage.DailyReportCompleteEdit" %>
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/HJGL/FineUIPro.Web/WeldingProcess/WeldingManage/DailyReportCompleteEdit.aspx.cs b/HJGL/FineUIPro.Web/WeldingProcess/WeldingManage/DailyReportCompleteEdit.aspx.cs
new file mode 100644
index 0000000..e88f8fe
--- /dev/null
+++ b/HJGL/FineUIPro.Web/WeldingProcess/WeldingManage/DailyReportCompleteEdit.aspx.cs
@@ -0,0 +1,124 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+using BLL;
+
+namespace FineUIPro.Web.WeldingProcess.WeldingManage
+{
+ public partial class DailyReportCompleteEdit : PageBase
+ {
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack)
+ {
+ LoadData();
+ string completeId = Request.Params["completeId"];
+ BLL.Base_UnitService.InitUnitDropDownList(this.drpUnit, false, BLL.Const.UnitType_5, Resources.Lan.PleaseSelect);//单位
+
+ var teamGroup = BLL.Welder_TeamGroupService.GetAllTeamGroupList(CurrUser.LoginProjectId, "");
+ drpTeamGroup.DataValueField = "Value";
+ drpTeamGroup.DataTextField = "Text";
+ drpTeamGroup.DataSource = teamGroup;
+ drpTeamGroup.DataBind();
+ Funs.FineUIPleaseSelect(drpTeamGroup, "");
+
+ if (!string.IsNullOrEmpty(completeId))
+ {
+ var daily = BLL.DailyReportCompleteService.GetDailyReportComplete(completeId);
+ if (daily != null)
+ {
+ drpUnit.SelectedValue=daily.UnitId;
+ drpTeamGroup.SelectedValue = daily.TeamGroupId;
+ if (daily.DailyReportDate.HasValue)
+ {
+ this.txtDailyReportDate.Text = string.Format("{0:yyyy-MM-dd}", daily.DailyReportDate);
+ }
+ if (daily.IsComplete == true)
+ {
+ chkIsComplete.Checked = true;
+ }
+ else
+ {
+ chkIsComplete.Checked = false;
+ }
+
+ }
+ }
+ }
+ }
+
+ ///
+ /// 加载页面
+ ///
+ private void LoadData()
+ {
+ btnClose.OnClientClick = ActiveWindow.GetHideReference();
+ }
+
+ ///
+ /// 提交按钮
+ ///
+ ///
+ ///
+ protected void btnSave_Click(object sender, EventArgs e)
+ {
+ if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.RoleMenuId, Const.BtnSave))
+ {
+ string completeId = Request.Params["completeId"];
+ if (drpTeamGroup.SelectedValue == null || drpTeamGroup.SelectedValue == "")
+ {
+ Alert.ShowInParent("施工班组不能为空!");
+ return;
+ }
+
+ string param = completeId != null ? completeId.ToString() : "";
+ if (BLL.DailyReportCompleteService.IsExistDailyReportComplete(this.CurrUser.LoginProjectId, param, drpTeamGroup.SelectedValue,Convert.ToDateTime(txtDailyReportDate.Text).Date))
+ {
+ Alert.ShowInParent("该施工班组这天的日报情况已存在!");
+ return;
+ }
+ else
+ {
+ Model.Pipeline_DailyReportComplete newR = new Model.Pipeline_DailyReportComplete();
+ newR.ProjectId = this.CurrUser.LoginProjectId;
+ newR.UnitId = drpUnit.SelectedValue;
+ newR.TeamGroupId = drpTeamGroup.SelectedValue;
+ newR.DailyReportDate=Convert.ToDateTime(txtDailyReportDate.Text).Date;
+ newR.IsComplete=chkIsComplete.Checked;
+
+
+ if (this.chkIsComplete.Checked)
+ {
+ newR.IsComplete = true;
+ }
+ else
+ {
+ newR.IsComplete = false;
+ }
+
+ if (string.IsNullOrEmpty(completeId))
+ {
+ string newKeyID = SQLHelper.GetNewID(typeof(Model.Pipeline_DailyReportComplete));
+ newR.DailyReportCompleteId = newKeyID;
+ BLL.DailyReportCompleteService.AddDailyReportComplete(newR);
+ BLL.Sys_LogService.AddLog(Const.System_1, this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.DailyReportCompleteMenuId, Const.BtnAdd, newKeyID);
+ }
+ else
+ {
+ newR.DailyReportCompleteId = completeId;
+ BLL.DailyReportCompleteService.UpdateDailyReportComplete(newR);
+ BLL.Sys_LogService.AddLog(Const.System_1, this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.DailyReportCompleteMenuId, Const.BtnModify, completeId);
+ }
+ PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
+ }
+ }
+ else
+ {
+ ShowNotify("您没有这个权限,请与管理员联系!");
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/HJGL/FineUIPro.Web/WeldingProcess/WeldingManage/DailyReportCompleteEdit.aspx.designer.cs b/HJGL/FineUIPro.Web/WeldingProcess/WeldingManage/DailyReportCompleteEdit.aspx.designer.cs
new file mode 100644
index 0000000..9845d14
--- /dev/null
+++ b/HJGL/FineUIPro.Web/WeldingProcess/WeldingManage/DailyReportCompleteEdit.aspx.designer.cs
@@ -0,0 +1,107 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.WeldingProcess.WeldingManage
+{
+
+
+ public partial class DailyReportCompleteEdit
+ {
+
+ ///
+ /// form1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.HtmlControls.HtmlForm form1;
+
+ ///
+ /// PageManager1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.PageManager PageManager1;
+
+ ///
+ /// SimpleForm1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Form SimpleForm1;
+
+ ///
+ /// drpUnit 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList drpUnit;
+
+ ///
+ /// drpTeamGroup 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList drpTeamGroup;
+
+ ///
+ /// txtDailyReportDate 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DatePicker txtDailyReportDate;
+
+ ///
+ /// chkIsComplete 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.CheckBox chkIsComplete;
+
+ ///
+ /// Toolbar1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Toolbar Toolbar1;
+
+ ///
+ /// btnSave 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnSave;
+
+ ///
+ /// btnClose 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnClose;
+ }
+}
diff --git a/HJGL/FineUIPro.Web/WeldingProcess/WeldingReport/JointComprehensive.aspx.cs b/HJGL/FineUIPro.Web/WeldingProcess/WeldingReport/JointComprehensive.aspx.cs
index d69f4c6..3807ef3 100644
--- a/HJGL/FineUIPro.Web/WeldingProcess/WeldingReport/JointComprehensive.aspx.cs
+++ b/HJGL/FineUIPro.Web/WeldingProcess/WeldingReport/JointComprehensive.aspx.cs
@@ -74,6 +74,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingReport
Grid1.DataBind();
var distinctPipelineCode = tb.AsEnumerable().GroupBy(row => row.Field("PipelineCode")).Select(group => group.First());
+ var distinctSingleNumber = tb.AsEnumerable().GroupBy(row => row.Field("SingleNumber")).Select(group => group.First());
var backingWelder = tb.AsEnumerable().Where(row => row.Field("BackingWelderCode")!=null).GroupBy(row => row.Field("BackingWelderCode")).Select(group => group.First());
var coverWelder = tb.AsEnumerable().Where(row => row.Field("CoverWelderCode")!= null).GroupBy(row => row.Field("CoverWelderCode")).Select(group => group.First());
var jotNum = from x in tb.AsEnumerable()
@@ -82,6 +83,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingReport
select new { pipe=g.Key.pipe,jot=g.Key.jot, Size=g.Key.Size };
JObject summary = new JObject();
summary.Add("tfNumber", "合计");
+ summary.Add("SingleNumber", distinctSingleNumber.Count().ToString());
summary.Add("PipelineCode", distinctPipelineCode.Count().ToString());
summary.Add("WeldJointCode", jotNum.Count());
summary.Add("JOT_Size", jotNum.Sum(x=>Convert.ToDouble(x.Size)));
@@ -388,6 +390,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingReport
}
var distinctPipelineCode = tb.AsEnumerable().GroupBy(row => row.Field("PipelineCode")).Select(group => group.First());
+ var distinctSingleNumber = tb.AsEnumerable().GroupBy(row => row.Field("SingleNumber")).Select(group => group.First());
var backingWelder = tb.AsEnumerable().GroupBy(row => row.Field("BackingWelderCode")).Select(group => group.First());
var coverWelder = tb.AsEnumerable().GroupBy(row => row.Field("CoverWelderCode")).Select(group => group.First());
var jotNum = from x in tb.AsEnumerable()
@@ -401,6 +404,11 @@ namespace FineUIPro.Web.WeldingProcess.WeldingReport
reportModel.GetRow(rowIndex).GetCell(0).SetCellValue("合计:");
reportModel.GetRow(rowIndex).GetCell(0).CellStyle.SetFont(cs_content_Font);//将字体绑定到样式
+ //单线图号
+ if (reportModel.GetRow(rowIndex).GetCell(4) == null) reportModel.GetRow(rowIndex).CreateCell(4);
+ reportModel.GetRow(rowIndex).GetCell(4).SetCellValue(distinctSingleNumber.Count().ToString());
+ reportModel.GetRow(rowIndex).GetCell(4).CellStyle.SetFont(cs_content_Font);
+
//管线号
if (reportModel.GetRow(rowIndex).GetCell(5) == null) reportModel.GetRow(rowIndex).CreateCell(5);
reportModel.GetRow(rowIndex).GetCell(5).SetCellValue(distinctPipelineCode.Count().ToString());
diff --git a/HJGL/Model/Model.cs b/HJGL/Model/Model.cs
index 32e181d..ab6bcaa 100644
--- a/HJGL/Model/Model.cs
+++ b/HJGL/Model/Model.cs
@@ -29,6 +29,10 @@ namespace Model
#region 可扩展性方法定义
partial void OnCreated();
+ partial void OnCreated()
+ {
+ this.CommandTimeout = 600;
+ }
partial void InsertAttachFile(AttachFile instance);
partial void UpdateAttachFile(AttachFile instance);
partial void DeleteAttachFile(AttachFile instance);
@@ -173,6 +177,9 @@ namespace Model
partial void InsertHotProess_TrustItem(HotProess_TrustItem instance);
partial void UpdateHotProess_TrustItem(HotProess_TrustItem instance);
partial void DeleteHotProess_TrustItem(HotProess_TrustItem instance);
+ partial void InsertPipeline_DailyReportComplete(Pipeline_DailyReportComplete instance);
+ partial void UpdatePipeline_DailyReportComplete(Pipeline_DailyReportComplete instance);
+ partial void DeletePipeline_DailyReportComplete(Pipeline_DailyReportComplete instance);
partial void InsertPipeline_Pipeline(Pipeline_Pipeline instance);
partial void UpdatePipeline_Pipeline(Pipeline_Pipeline instance);
partial void DeletePipeline_Pipeline(Pipeline_Pipeline instance);
@@ -272,6 +279,9 @@ namespace Model
partial void InsertWelder_TeamGroup(Welder_TeamGroup instance);
partial void UpdateWelder_TeamGroup(Welder_TeamGroup instance);
partial void DeleteWelder_TeamGroup(Welder_TeamGroup instance);
+ partial void InsertWelder_TestInfo(Welder_TestInfo instance);
+ partial void UpdateWelder_TestInfo(Welder_TestInfo instance);
+ partial void DeleteWelder_TestInfo(Welder_TestInfo instance);
partial void InsertWelder_Welder(Welder_Welder instance);
partial void UpdateWelder_Welder(Welder_Welder instance);
partial void DeleteWelder_Welder(Welder_Welder instance);
@@ -691,6 +701,14 @@ namespace Model
}
}
+ public System.Data.Linq.Table Pipeline_DailyReportComplete
+ {
+ get
+ {
+ return this.GetTable();
+ }
+ }
+
public System.Data.Linq.Table Pipeline_Pipeline
{
get
@@ -1235,6 +1253,14 @@ namespace Model
}
}
+ public System.Data.Linq.Table Welder_TestInfo
+ {
+ get
+ {
+ return this.GetTable();
+ }
+ }
+
public System.Data.Linq.Table Welder_Welder
{
get
@@ -17689,6 +17715,188 @@ namespace Model
}
}
+ [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Pipeline_DailyReportComplete")]
+ public partial class Pipeline_DailyReportComplete : INotifyPropertyChanging, INotifyPropertyChanged
+ {
+
+ private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
+
+ private string _DailyReportCompleteId;
+
+ private string _ProjectId;
+
+ private string _UnitId;
+
+ private string _TeamGroupId;
+
+ private System.Nullable _DailyReportDate;
+
+ private System.Nullable _IsComplete;
+
+ #region 可扩展性方法定义
+ partial void OnLoaded();
+ partial void OnValidate(System.Data.Linq.ChangeAction action);
+ partial void OnCreated();
+ partial void OnDailyReportCompleteIdChanging(string value);
+ partial void OnDailyReportCompleteIdChanged();
+ partial void OnProjectIdChanging(string value);
+ partial void OnProjectIdChanged();
+ partial void OnUnitIdChanging(string value);
+ partial void OnUnitIdChanged();
+ partial void OnTeamGroupIdChanging(string value);
+ partial void OnTeamGroupIdChanged();
+ partial void OnDailyReportDateChanging(System.Nullable value);
+ partial void OnDailyReportDateChanged();
+ partial void OnIsCompleteChanging(System.Nullable value);
+ partial void OnIsCompleteChanged();
+ #endregion
+
+ public Pipeline_DailyReportComplete()
+ {
+ OnCreated();
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DailyReportCompleteId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
+ public string DailyReportCompleteId
+ {
+ get
+ {
+ return this._DailyReportCompleteId;
+ }
+ set
+ {
+ if ((this._DailyReportCompleteId != value))
+ {
+ this.OnDailyReportCompleteIdChanging(value);
+ this.SendPropertyChanging();
+ this._DailyReportCompleteId = value;
+ this.SendPropertyChanged("DailyReportCompleteId");
+ this.OnDailyReportCompleteIdChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)")]
+ public string ProjectId
+ {
+ get
+ {
+ return this._ProjectId;
+ }
+ set
+ {
+ if ((this._ProjectId != value))
+ {
+ this.OnProjectIdChanging(value);
+ this.SendPropertyChanging();
+ this._ProjectId = value;
+ this.SendPropertyChanged("ProjectId");
+ this.OnProjectIdChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UnitId", DbType="NVarChar(50)")]
+ public string UnitId
+ {
+ get
+ {
+ return this._UnitId;
+ }
+ set
+ {
+ if ((this._UnitId != value))
+ {
+ this.OnUnitIdChanging(value);
+ this.SendPropertyChanging();
+ this._UnitId = value;
+ this.SendPropertyChanged("UnitId");
+ this.OnUnitIdChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TeamGroupId", DbType="NVarChar(50)")]
+ public string TeamGroupId
+ {
+ get
+ {
+ return this._TeamGroupId;
+ }
+ set
+ {
+ if ((this._TeamGroupId != value))
+ {
+ this.OnTeamGroupIdChanging(value);
+ this.SendPropertyChanging();
+ this._TeamGroupId = value;
+ this.SendPropertyChanged("TeamGroupId");
+ this.OnTeamGroupIdChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DailyReportDate", DbType="DateTime")]
+ public System.Nullable DailyReportDate
+ {
+ get
+ {
+ return this._DailyReportDate;
+ }
+ set
+ {
+ if ((this._DailyReportDate != value))
+ {
+ this.OnDailyReportDateChanging(value);
+ this.SendPropertyChanging();
+ this._DailyReportDate = value;
+ this.SendPropertyChanged("DailyReportDate");
+ this.OnDailyReportDateChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsComplete", DbType="Bit")]
+ public System.Nullable IsComplete
+ {
+ get
+ {
+ return this._IsComplete;
+ }
+ set
+ {
+ if ((this._IsComplete != value))
+ {
+ this.OnIsCompleteChanging(value);
+ this.SendPropertyChanging();
+ this._IsComplete = value;
+ this.SendPropertyChanged("IsComplete");
+ this.OnIsCompleteChanged();
+ }
+ }
+ }
+
+ public event PropertyChangingEventHandler PropertyChanging;
+
+ public event PropertyChangedEventHandler PropertyChanged;
+
+ protected virtual void SendPropertyChanging()
+ {
+ if ((this.PropertyChanging != null))
+ {
+ this.PropertyChanging(this, emptyChangingEventArgs);
+ }
+ }
+
+ protected virtual void SendPropertyChanged(String propertyName)
+ {
+ if ((this.PropertyChanged != null))
+ {
+ this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
+ }
+ }
+ }
+
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Pipeline_Pipeline")]
public partial class Pipeline_Pipeline : INotifyPropertyChanging, INotifyPropertyChanged
{
@@ -20700,6 +20908,8 @@ namespace Model
private System.Nullable _IsPMI;
+ private System.Nullable _AuditStatus;
+
private EntitySet _Batch_BatchTrustItem;
private EntitySet _Batch_PointBatchItem;
@@ -20840,6 +21050,8 @@ namespace Model
partial void OnANSISCHChanged();
partial void OnIsPMIChanging(System.Nullable value);
partial void OnIsPMIChanged();
+ partial void OnAuditStatusChanging(System.Nullable value);
+ partial void OnAuditStatusChanged();
#endregion
public Pipeline_WeldJoint()
@@ -21894,6 +22106,26 @@ namespace Model
}
}
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AuditStatus", DbType="Int")]
+ public System.Nullable AuditStatus
+ {
+ get
+ {
+ return this._AuditStatus;
+ }
+ set
+ {
+ if ((this._AuditStatus != value))
+ {
+ this.OnAuditStatusChanging(value);
+ this.SendPropertyChanging();
+ this._AuditStatus = value;
+ this.SendPropertyChanged("AuditStatus");
+ this.OnAuditStatusChanged();
+ }
+ }
+ }
+
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Batch_BatchTrustItem_Pipeline_WeldJoint", Storage="_Batch_BatchTrustItem", ThisKey="WeldJointId", OtherKey="WeldJointId", DeleteRule="NO ACTION")]
public EntitySet Batch_BatchTrustItem
{
@@ -22518,12 +22750,12 @@ namespace Model
private string _DetectionStandard;
+ private string _Tabler;
+
private string _Remark;
private System.Nullable _CreatedTime;
- private string _Tabler;
-
#region 可扩展性方法定义
partial void OnLoaded();
partial void OnValidate(System.Data.Linq.ChangeAction action);
@@ -22542,12 +22774,12 @@ namespace Model
partial void OnUnitIdChanged();
partial void OnDetectionStandardChanging(string value);
partial void OnDetectionStandardChanged();
+ partial void OnTablerChanging(string value);
+ partial void OnTablerChanged();
partial void OnRemarkChanging(string value);
partial void OnRemarkChanged();
partial void OnCreatedTimeChanging(System.Nullable value);
partial void OnCreatedTimeChanged();
- partial void OnTablerChanging(string value);
- partial void OnTablerChanged();
#endregion
public PMI_Delegation()
@@ -22615,7 +22847,7 @@ namespace Model
}
}
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)")]
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
public string ProjectId
{
get
@@ -22695,6 +22927,26 @@ namespace Model
}
}
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Tabler", DbType="NVarChar(50)")]
+ public string Tabler
+ {
+ get
+ {
+ return this._Tabler;
+ }
+ set
+ {
+ if ((this._Tabler != value))
+ {
+ this.OnTablerChanging(value);
+ this.SendPropertyChanging();
+ this._Tabler = value;
+ this.SendPropertyChanged("Tabler");
+ this.OnTablerChanged();
+ }
+ }
+ }
+
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Remark", DbType="NVarChar(255)")]
public string Remark
{
@@ -22735,26 +22987,6 @@ namespace Model
}
}
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Tabler", DbType="NVarChar(50)")]
- public string Tabler
- {
- get
- {
- return this._Tabler;
- }
- set
- {
- if ((this._Tabler != value))
- {
- this.OnTablerChanging(value);
- this.SendPropertyChanging();
- this._Tabler = value;
- this.SendPropertyChanged("Tabler");
- this.OnTablerChanged();
- }
- }
- }
-
public event PropertyChangingEventHandler PropertyChanging;
public event PropertyChangedEventHandler PropertyChanged;
@@ -22794,10 +23026,10 @@ namespace Model
private int _Status;
- private string _ReportNo;
-
private System.Nullable _CheckTime;
+ private string _ReportNo;
+
private System.Nullable _ReportTime;
private string _WorkAreaId;
@@ -22818,10 +23050,10 @@ namespace Model
partial void OnAcceptanceChanged();
partial void OnStatusChanging(int value);
partial void OnStatusChanged();
- partial void OnReportNoChanging(string value);
- partial void OnReportNoChanged();
partial void OnCheckTimeChanging(System.Nullable value);
partial void OnCheckTimeChanged();
+ partial void OnReportNoChanging(string value);
+ partial void OnReportNoChanged();
partial void OnReportTimeChanging(System.Nullable value);
partial void OnReportTimeChanged();
partial void OnWorkAreaIdChanging(string value);
@@ -22933,7 +23165,7 @@ namespace Model
}
}
- [global::System.Data.Linq.Mapping.ColumnAttribute(Name="status", Storage="_Status", DbType="Int NOT NULL")]
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Status", DbType="Int NOT NULL")]
public int Status
{
get
@@ -22953,26 +23185,6 @@ namespace Model
}
}
- [global::System.Data.Linq.Mapping.ColumnAttribute(Name="reportNo", Storage="_ReportNo", DbType="NVarChar(50)")]
- public string ReportNo
- {
- get
- {
- return this._ReportNo;
- }
- set
- {
- if ((this._ReportNo != value))
- {
- this.OnReportNoChanging(value);
- this.SendPropertyChanging();
- this._ReportNo = value;
- this.SendPropertyChanged("ReportNo");
- this.OnReportNoChanged();
- }
- }
- }
-
[global::System.Data.Linq.Mapping.ColumnAttribute(Name="checkTime", Storage="_CheckTime", DbType="DateTime")]
public System.Nullable CheckTime
{
@@ -22993,6 +23205,26 @@ namespace Model
}
}
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Name="reportNo", Storage="_ReportNo", DbType="NVarChar(50)")]
+ public string ReportNo
+ {
+ get
+ {
+ return this._ReportNo;
+ }
+ set
+ {
+ if ((this._ReportNo != value))
+ {
+ this.OnReportNoChanging(value);
+ this.SendPropertyChanging();
+ this._ReportNo = value;
+ this.SendPropertyChanged("ReportNo");
+ this.OnReportNoChanged();
+ }
+ }
+ }
+
[global::System.Data.Linq.Mapping.ColumnAttribute(Name="reportTime", Storage="_ReportTime", DbType="DateTime")]
public System.Nullable ReportTime
{
@@ -37307,6 +37539,8 @@ namespace Model
private string _PipelineId;
+ private string _WeldJointId;
+
private string _PipelineCode;
private string _WeldJointCode;
@@ -37345,6 +37579,22 @@ namespace Model
}
}
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WeldJointId", DbType="NVarChar(50)")]
+ public string WeldJointId
+ {
+ get
+ {
+ return this._WeldJointId;
+ }
+ set
+ {
+ if ((this._WeldJointId != value))
+ {
+ this._WeldJointId = value;
+ }
+ }
+ }
+
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PipelineCode", DbType="NVarChar(100)")]
public string PipelineCode
{
@@ -39587,8 +39837,6 @@ namespace Model
private string _ProjectId;
- private System.Nullable _IsPMI;
-
private string _PipelineCode;
private string _PipelineId;
@@ -39719,22 +39967,6 @@ namespace Model
}
}
- [global::System.Data.Linq.Mapping.ColumnAttribute(Name="isPMI", Storage="_IsPMI", DbType="Bit")]
- public System.Nullable IsPMI
- {
- get
- {
- return this._IsPMI;
- }
- set
- {
- if ((this._IsPMI != value))
- {
- this._IsPMI = value;
- }
- }
- }
-
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PipelineCode", DbType="NVarChar(100)")]
public string PipelineCode
{
@@ -41743,6 +41975,8 @@ namespace Model
private string _PipingClassCode;
+ private string _PIPClassCode;
+
private string _WeldingDate;
private System.Nullable _IsCancel;
@@ -41757,8 +41991,6 @@ namespace Model
private string _DetectionType;
- private string _PIPClassCode;
-
private string _PageNum;
public View_Pipeline_WeldJoint()
@@ -42853,6 +43085,22 @@ namespace Model
}
}
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PIPClassCode", DbType="NVarChar(50)")]
+ public string PIPClassCode
+ {
+ get
+ {
+ return this._PIPClassCode;
+ }
+ set
+ {
+ if ((this._PIPClassCode != value))
+ {
+ this._PIPClassCode = value;
+ }
+ }
+ }
+
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WeldingDate", DbType="VarChar(100)")]
public string WeldingDate
{
@@ -42965,22 +43213,6 @@ namespace Model
}
}
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PIPClassCode", DbType="NVarChar(50)")]
- public string PIPClassCode
- {
- get
- {
- return this._PIPClassCode;
- }
- set
- {
- if ((this._PIPClassCode != value))
- {
- this._PIPClassCode = value;
- }
- }
- }
-
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PageNum", DbType="NVarChar(10)")]
public string PageNum
{
@@ -43560,10 +43792,6 @@ namespace Model
public partial class View_PTP_TestPackageAudit
{
- private string _PipelineId;
-
- private string _PT_PipeId;
-
private string _PTP_ID;
private string _ProjectId;
@@ -43572,59 +43800,29 @@ namespace Model
private string _PipelineCode;
- private int _WeldJointCount;
+ private string _PipelineId;
- private int _WeldJointCountT;
+ private System.Nullable _IsAll;
- private int _CountS;
+ private System.Nullable _WeldJointCount;
+
+ private System.Nullable _WeldJointCountT;
+
+ private System.Nullable _CountS;
private System.Nullable _CountU;
- private string _NDTR_Name;
+ private int _NDTR_Rate;
private string _Ratio;
- private int _NDTR_Rate;
-
private System.Nullable _RatioC;
public View_PTP_TestPackageAudit()
{
}
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PipelineId", DbType="NVarChar(50)")]
- public string PipelineId
- {
- get
- {
- return this._PipelineId;
- }
- set
- {
- if ((this._PipelineId != value))
- {
- this._PipelineId = value;
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PT_PipeId", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
- public string PT_PipeId
- {
- get
- {
- return this._PT_PipeId;
- }
- set
- {
- if ((this._PT_PipeId != value))
- {
- this._PT_PipeId = value;
- }
- }
- }
-
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PTP_ID", DbType="NVarChar(50)")]
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PTP_ID", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
public string PTP_ID
{
get
@@ -43688,8 +43886,40 @@ namespace Model
}
}
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WeldJointCount", DbType="Int NOT NULL")]
- public int WeldJointCount
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PipelineId", DbType="NVarChar(50)")]
+ public string PipelineId
+ {
+ get
+ {
+ return this._PipelineId;
+ }
+ set
+ {
+ if ((this._PipelineId != value))
+ {
+ this._PipelineId = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Name="isAll", Storage="_IsAll", DbType="Bit")]
+ public System.Nullable IsAll
+ {
+ get
+ {
+ return this._IsAll;
+ }
+ set
+ {
+ if ((this._IsAll != value))
+ {
+ this._IsAll = value;
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WeldJointCount", DbType="BigInt")]
+ public System.Nullable WeldJointCount
{
get
{
@@ -43704,8 +43934,8 @@ namespace Model
}
}
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WeldJointCountT", DbType="Int NOT NULL")]
- public int WeldJointCountT
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WeldJointCountT", DbType="Int")]
+ public System.Nullable WeldJointCountT
{
get
{
@@ -43720,8 +43950,8 @@ namespace Model
}
}
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CountS", DbType="Int NOT NULL")]
- public int CountS
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Name="countS", Storage="_CountS", DbType="Int")]
+ public System.Nullable CountS
{
get
{
@@ -43752,18 +43982,18 @@ namespace Model
}
}
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_NDTR_Name", DbType="VarChar(30)")]
- public string NDTR_Name
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_NDTR_Rate", DbType="Int NOT NULL")]
+ public int NDTR_Rate
{
get
{
- return this._NDTR_Name;
+ return this._NDTR_Rate;
}
set
{
- if ((this._NDTR_Name != value))
+ if ((this._NDTR_Rate != value))
{
- this._NDTR_Name = value;
+ this._NDTR_Rate = value;
}
}
}
@@ -43784,22 +44014,6 @@ namespace Model
}
}
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_NDTR_Rate", DbType="Int NOT NULL")]
- public int NDTR_Rate
- {
- get
- {
- return this._NDTR_Rate;
- }
- set
- {
- if ((this._NDTR_Rate != value))
- {
- this._NDTR_Rate = value;
- }
- }
- }
-
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RatioC", DbType="Decimal(19,2)")]
public System.Nullable RatioC
{
@@ -45895,6 +46109,236 @@ namespace Model
}
}
+ [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Welder_TestInfo")]
+ public partial class Welder_TestInfo : INotifyPropertyChanging, INotifyPropertyChanged
+ {
+
+ private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
+
+ private string _Id;
+
+ private string _ProjectId;
+
+ private bool _IsPass;
+
+ private string _WeldMethodId;
+
+ private string _MaterialId;
+
+ private System.Nullable _CreatedDate;
+
+ private string _Remark;
+
+ private string _WelderId;
+
+ #region 可扩展性方法定义
+ partial void OnLoaded();
+ partial void OnValidate(System.Data.Linq.ChangeAction action);
+ partial void OnCreated();
+ partial void OnIdChanging(string value);
+ partial void OnIdChanged();
+ partial void OnProjectIdChanging(string value);
+ partial void OnProjectIdChanged();
+ partial void OnIsPassChanging(bool value);
+ partial void OnIsPassChanged();
+ partial void OnWeldMethodIdChanging(string value);
+ partial void OnWeldMethodIdChanged();
+ partial void OnMaterialIdChanging(string value);
+ partial void OnMaterialIdChanged();
+ partial void OnCreatedDateChanging(System.Nullable value);
+ partial void OnCreatedDateChanged();
+ partial void OnRemarkChanging(string value);
+ partial void OnRemarkChanged();
+ partial void OnWelderIdChanging(string value);
+ partial void OnWelderIdChanged();
+ #endregion
+
+ public Welder_TestInfo()
+ {
+ OnCreated();
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
+ public string Id
+ {
+ get
+ {
+ return this._Id;
+ }
+ set
+ {
+ if ((this._Id != value))
+ {
+ this.OnIdChanging(value);
+ this.SendPropertyChanging();
+ this._Id = value;
+ this.SendPropertyChanged("Id");
+ this.OnIdChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
+ public string ProjectId
+ {
+ get
+ {
+ return this._ProjectId;
+ }
+ set
+ {
+ if ((this._ProjectId != value))
+ {
+ this.OnProjectIdChanging(value);
+ this.SendPropertyChanging();
+ this._ProjectId = value;
+ this.SendPropertyChanged("ProjectId");
+ this.OnProjectIdChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsPass", DbType="Bit NOT NULL")]
+ public bool IsPass
+ {
+ get
+ {
+ return this._IsPass;
+ }
+ set
+ {
+ if ((this._IsPass != value))
+ {
+ this.OnIsPassChanging(value);
+ this.SendPropertyChanging();
+ this._IsPass = value;
+ this.SendPropertyChanged("IsPass");
+ this.OnIsPassChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WeldMethodId", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
+ public string WeldMethodId
+ {
+ get
+ {
+ return this._WeldMethodId;
+ }
+ set
+ {
+ if ((this._WeldMethodId != value))
+ {
+ this.OnWeldMethodIdChanging(value);
+ this.SendPropertyChanging();
+ this._WeldMethodId = value;
+ this.SendPropertyChanged("WeldMethodId");
+ this.OnWeldMethodIdChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaterialId", DbType="NVarChar(50) NOT NULL", CanBeNull=false)]
+ public string MaterialId
+ {
+ get
+ {
+ return this._MaterialId;
+ }
+ set
+ {
+ if ((this._MaterialId != value))
+ {
+ this.OnMaterialIdChanging(value);
+ this.SendPropertyChanging();
+ this._MaterialId = value;
+ this.SendPropertyChanged("MaterialId");
+ this.OnMaterialIdChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CreatedDate", DbType="DateTime")]
+ public System.Nullable CreatedDate
+ {
+ get
+ {
+ return this._CreatedDate;
+ }
+ set
+ {
+ if ((this._CreatedDate != value))
+ {
+ this.OnCreatedDateChanging(value);
+ this.SendPropertyChanging();
+ this._CreatedDate = value;
+ this.SendPropertyChanged("CreatedDate");
+ this.OnCreatedDateChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Remark", DbType="NVarChar(255)")]
+ public string Remark
+ {
+ get
+ {
+ return this._Remark;
+ }
+ set
+ {
+ if ((this._Remark != value))
+ {
+ this.OnRemarkChanging(value);
+ this.SendPropertyChanging();
+ this._Remark = value;
+ this.SendPropertyChanged("Remark");
+ this.OnRemarkChanged();
+ }
+ }
+ }
+
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WelderId", DbType="NVarChar(50)")]
+ public string WelderId
+ {
+ get
+ {
+ return this._WelderId;
+ }
+ set
+ {
+ if ((this._WelderId != value))
+ {
+ this.OnWelderIdChanging(value);
+ this.SendPropertyChanging();
+ this._WelderId = value;
+ this.SendPropertyChanged("WelderId");
+ this.OnWelderIdChanged();
+ }
+ }
+ }
+
+ public event PropertyChangingEventHandler PropertyChanging;
+
+ public event PropertyChangedEventHandler PropertyChanged;
+
+ protected virtual void SendPropertyChanging()
+ {
+ if ((this.PropertyChanging != null))
+ {
+ this.PropertyChanging(this, emptyChangingEventArgs);
+ }
+ }
+
+ protected virtual void SendPropertyChanged(String propertyName)
+ {
+ if ((this.PropertyChanged != null))
+ {
+ this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
+ }
+ }
+ }
+
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Welder_Welder")]
public partial class Welder_Welder : INotifyPropertyChanging, INotifyPropertyChanged
{
@@ -47811,7 +48255,7 @@ namespace Model
}
}
- [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WelderIds", DbType="VarChar(1000)")]
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WelderIds", DbType="NVarChar(MAX)", UpdateCheck=UpdateCheck.Never)]
public string WelderIds
{
get
diff --git a/HJGL/WebApi/obj/Release/WebApi.csproj.AssemblyReference.cache b/HJGL/WebApi/obj/Release/WebApi.csproj.AssemblyReference.cache
index 9840da7..1a274f0 100644
Binary files a/HJGL/WebApi/obj/Release/WebApi.csproj.AssemblyReference.cache and b/HJGL/WebApi/obj/Release/WebApi.csproj.AssemblyReference.cache differ