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YeiTwIOt-lA6-U`!s;E&t+|UcGOPa
zQt08U#{(NFi@Y5Ld5z8o13XFtie7mP1pD07XfKdE-I4ukEW4he3SrS~*@?PzA+&ND
zS=>49v`aN^NA5+B+qe8qX4wy4^oT?nLD2q|5T9h1msOY2716tm5|l&2&uKMfbeOy(
zH)@NyrqUQQ4>;y+p5D?T-j~@C{w)6$S?s$c6d4L$Gbs~8E42xNl-TFZ{u&>
zf^DtVL!c)-#;6F=BY_!HSI@F7UAtJw=&nCeE0VI{Xqo+EN|%VwhxV6B>mEFyZM25F
z9)n2(DyI{KdUz)PX0qDp<!X3z;vtbOz0-?%eGJTX6-J`9T6psK&L(svZVDDt`a{rKv`x&*uWdHNgUa-1)8)$cb;Flc
z^u?Kem+IGDOl$auN7Q7(`
z5Cp1JF@A1~0~
zxtyU9QFW+d2^K91P+wJ{X4br@&hU?x!cZ+v(_CUp^c&_KAN2h8(
z5eoz}a^9h5%EZg1I9#j*+Lc`5i_G}-Em|?hl6foov(ezM8_IK!q?$ZA8u7|;V_YjI
z+mpH~kIc)x%s376Y4lrxYY@ylQ_KDRk_pcmml@B?S0}6q=O&{cVt#6(D6aJOy<-H9
z$?41)qf#{#;(@n^=C{81HmilIf4!@Xg4i3CdT$ALfB9jNG1Yc
r0Z;<2{jP%p{@ExH0C4=RlCJ;T={Iu5cnB&3H!+ohJe2Kxe~119^;5_i
diff --git a/HJGL/FineUIPro.Web/FineUIPro.Web.csproj b/HJGL/FineUIPro.Web/FineUIPro.Web.csproj
index 7b31679..ea19706 100644
--- a/HJGL/FineUIPro.Web/FineUIPro.Web.csproj
+++ b/HJGL/FineUIPro.Web/FineUIPro.Web.csproj
@@ -231,6 +231,7 @@
+
@@ -3418,6 +3419,13 @@
LogList.aspx
+
+ PointForAudit.aspx
+ ASPXCodeBehind
+
+
+ PointForAudit.aspx
+
MaterialCoode.aspx
ASPXCodeBehind
diff --git a/HJGL/FineUIPro.Web/PublicInfo/BaseInfo/MaterialEdit.aspx b/HJGL/FineUIPro.Web/PublicInfo/BaseInfo/MaterialEdit.aspx
index 0b3c521..9a97264 100644
--- a/HJGL/FineUIPro.Web/PublicInfo/BaseInfo/MaterialEdit.aspx
+++ b/HJGL/FineUIPro.Web/PublicInfo/BaseInfo/MaterialEdit.aspx
@@ -22,7 +22,7 @@
-
diff --git a/HJGL/FineUIPro.Web/WelderManage/QualifiedProject.aspx.cs b/HJGL/FineUIPro.Web/WelderManage/QualifiedProject.aspx.cs
index 3f3cedd..7a77c0c 100644
--- a/HJGL/FineUIPro.Web/WelderManage/QualifiedProject.aspx.cs
+++ b/HJGL/FineUIPro.Web/WelderManage/QualifiedProject.aspx.cs
@@ -527,6 +527,7 @@ namespace FineUIPro.Web.WelderManage
updateQue.SizesMin = sizesMin;
updateQue.MaterialTypeName = materialTypeName;
updateQue.WeldType = weldType;
+ updateQue.IsPass = q.IsPass;
BLL.WelderQualifiedService.UpdateWelderQualifiedProject(updateQue);
}
@@ -710,6 +711,7 @@ namespace FineUIPro.Web.WelderManage
}
+ welderQue.IsPass = true;
#endregion
welderQueList.Add(welderQue);
diff --git a/HJGL/FineUIPro.Web/WelderManage/WelderManage.aspx.cs b/HJGL/FineUIPro.Web/WelderManage/WelderManage.aspx.cs
index 579b858..c96d124 100644
--- a/HJGL/FineUIPro.Web/WelderManage/WelderManage.aspx.cs
+++ b/HJGL/FineUIPro.Web/WelderManage/WelderManage.aspx.cs
@@ -379,7 +379,7 @@ namespace FineUIPro.Web.WelderManage
string strSql = @"SELECT Welder.WelderId, Welder.WelderCode, Welder.WelderName, Welder.UnitId,
Welder.Birthday,(CASE WHEN Welder.Sex=1 THEN '男' ELSE '女' END) AS Sex,
- Welder.IdentityCard,Welder.IdentityCard, Welder.CertificateNum, Welder.CertificateValidity,
+ Welder.IdentityCard, Welder.CertificateNum, Welder.CertificateValidity,
Welder.WelderLevel, Welder.Remark,Unit.UnitName,Welder.IsOnDuty
FROM Welder_Welder AS Welder LEFT JOIN Base_Unit AS Unit ON Unit.UnitId = Welder.UnitId
WHERE 1=1 ";
@@ -416,7 +416,7 @@ namespace FineUIPro.Web.WelderManage
//行0
CellRangeAddress region = new CellRangeAddress(rowIndex, rowIndex, 0, 11);
ws.AddMergedRegion(region);
- ws.GetRow(rowIndex).GetCell(0).SetCellValue("巴斯夫(广东)一体化项目专用化学品二区\r\n焊工信息登记表");
+ ws.GetRow(rowIndex).GetCell(0).SetCellValue("巴斯夫(广东)一体化丁辛醇(OXO)\r\n焊工信息登记表");
ws.GetRow(rowIndex).GetCell(0).CellStyle = CommonPrint.SetExcelStyle(hssfworkbook, BorderStyle.Thin, BorderStyle.Thin, BorderStyle.Thin, BorderStyle.Thin, VerticalAlignment.Center, HorizontalAlignment.Center, 16);
//行1
@@ -429,7 +429,7 @@ namespace FineUIPro.Web.WelderManage
ws.GetRow(rowIndex + 2).GetCell(0).SetCellValue("序号");
ws.GetRow(rowIndex + 2).GetCell(1).SetCellValue("焊工姓名");
ws.GetRow(rowIndex + 2).GetCell(2).SetCellValue("考试中心焊工号");
- ws.GetRow(rowIndex + 2).GetCell(3).SetCellValue("CC7焊工号");
+ ws.GetRow(rowIndex + 2).GetCell(3).SetCellValue("CC11焊工号");
ws.GetRow(rowIndex + 2).GetCell(4).SetCellValue("身份证号");
ws.GetRow(rowIndex + 2).GetCell(5).SetCellValue("焊工证号");
ws.GetRow(rowIndex + 2).GetCell(6).SetCellValue("合格项目");
@@ -456,23 +456,26 @@ namespace FineUIPro.Web.WelderManage
{
num = itemWelders.Count - 1;
ws = ExcelCreateRow(ws, hssfworkbook, rowIndex, rowIndex + num, style, 0, 11);
- //合并单元格
- region = new CellRangeAddress(rowIndex, rowIndex + num, 0, 0);
- ws.AddMergedRegion(region);
- region = new CellRangeAddress(rowIndex, rowIndex + num, 1, 1);
- ws.AddMergedRegion(region);
- region = new CellRangeAddress(rowIndex, rowIndex + num, 2, 2);
- ws.AddMergedRegion(region);
- region = new CellRangeAddress(rowIndex, rowIndex + num, 3, 3);
- ws.AddMergedRegion(region);
- region = new CellRangeAddress(rowIndex, rowIndex + num, 4, 4);
- ws.AddMergedRegion(region);
- region = new CellRangeAddress(rowIndex, rowIndex + num, 5, 5);
- ws.AddMergedRegion(region);
- region = new CellRangeAddress(rowIndex, rowIndex + num, 10, 10);
- ws.AddMergedRegion(region);
- region = new CellRangeAddress(rowIndex, rowIndex + num, 11, 11);
- ws.AddMergedRegion(region);
+ if (num > 0)
+ {
+ //合并单元格
+ region = new CellRangeAddress(rowIndex, rowIndex + num, 0, 0);
+ ws.AddMergedRegion(region);
+ region = new CellRangeAddress(rowIndex, rowIndex + num, 1, 1);
+ ws.AddMergedRegion(region);
+ region = new CellRangeAddress(rowIndex, rowIndex + num, 2, 2);
+ ws.AddMergedRegion(region);
+ region = new CellRangeAddress(rowIndex, rowIndex + num, 3, 3);
+ ws.AddMergedRegion(region);
+ region = new CellRangeAddress(rowIndex, rowIndex + num, 4, 4);
+ ws.AddMergedRegion(region);
+ region = new CellRangeAddress(rowIndex, rowIndex + num, 5, 5);
+ ws.AddMergedRegion(region);
+ region = new CellRangeAddress(rowIndex, rowIndex + num, 10, 10);
+ ws.AddMergedRegion(region);
+ region = new CellRangeAddress(rowIndex, rowIndex + num, 11, 11);
+ ws.AddMergedRegion(region);
+ }
int j = 0;
foreach (var item in itemWelders)
{
diff --git a/HJGL/FineUIPro.Web/WeldingProcess/DataIn/DataIn.aspx.cs b/HJGL/FineUIPro.Web/WeldingProcess/DataIn/DataIn.aspx.cs
index 6120518..9b12e2b 100644
--- a/HJGL/FineUIPro.Web/WeldingProcess/DataIn/DataIn.aspx.cs
+++ b/HJGL/FineUIPro.Web/WeldingProcess/DataIn/DataIn.aspx.cs
@@ -65,7 +65,7 @@ namespace FineUIPro.Web.WeldingProcess.DataIn
string strSql = @"SELECT TempId,ProjectId,UserId,Time,RowNo,ToopValue,Value1,Value2,Value3,Value4,Value5,Value6,Value7,
Value8,Value9,Value10,Value11,Value12,Value13,Value14,Value15,Value16,Value17,Value18,Value19,
Value20,Value21,Value22,Value23,Value24,Value25,Value26,Value27,Value28,Value29,Value30,Value31,
- Value32,Value33,Value34,Value35,Value36,Value37,Value38
+ Value32,Value33,Value34,Value35,Value36,Value37,Value38,Value39,Value40
FROM Sys_DataInTemp
WHERE UserId=@UserId";
List listStr = new List();
@@ -1194,31 +1194,8 @@ namespace FineUIPro.Web.WeldingProcess.DataIn
}
}
- if (!string.IsNullOrEmpty(tempData.Value39))
- {
- var cood = coodeList.FirstOrDefault(x => x.Coode == tempData.Value39);
- if (cood == null)
- {
- errInfo += "Coode1:[" + tempData.Value39 + "]不存在;";
- }
- else
- {
- weldJoint.Coode1 = cood.Coode;
- }
- }
-
- if (!string.IsNullOrEmpty(tempData.Value40))
- {
- var cood = coodeList.FirstOrDefault(x => x.Coode == tempData.Value40);
- if (cood == null)
- {
- errInfo += "Coode2:[" + tempData.Value40 + "]不存在;";
- }
- else
- {
- weldJoint.Coode2 = cood.Coode;
- }
- }
+ weldJoint.Coode1 = tempData.Value39;
+ weldJoint.Coode2 = tempData.Value40;
if (!string.IsNullOrEmpty(tempData.Value25))
{
diff --git a/HJGL/FineUIPro.Web/WeldingProcess/DataIn/DataInEdit.aspx b/HJGL/FineUIPro.Web/WeldingProcess/DataIn/DataInEdit.aspx
index 5bd46da..4352b3c 100644
--- a/HJGL/FineUIPro.Web/WeldingProcess/DataIn/DataInEdit.aspx
+++ b/HJGL/FineUIPro.Web/WeldingProcess/DataIn/DataInEdit.aspx
@@ -149,8 +149,6 @@
-
-
@@ -160,13 +158,14 @@
+
+
-
diff --git a/HJGL/FineUIPro.Web/WeldingProcess/DataIn/DataInEdit.aspx.designer.cs b/HJGL/FineUIPro.Web/WeldingProcess/DataIn/DataInEdit.aspx.designer.cs
index 9076f9b..9fa41e9 100644
--- a/HJGL/FineUIPro.Web/WeldingProcess/DataIn/DataInEdit.aspx.designer.cs
+++ b/HJGL/FineUIPro.Web/WeldingProcess/DataIn/DataInEdit.aspx.designer.cs
@@ -7,11 +7,13 @@
// 自动生成>
//------------------------------------------------------------------------------
-namespace FineUIPro.Web.WeldingProcess.DataIn {
-
-
- public partial class DataInEdit {
-
+namespace FineUIPro.Web.WeldingProcess.DataIn
+{
+
+
+ public partial class DataInEdit
+ {
+
///
/// form1 控件。
///
@@ -20,7 +22,7 @@ namespace FineUIPro.Web.WeldingProcess.DataIn {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
-
+
///
/// PageManager1 控件。
///
@@ -29,7 +31,7 @@ namespace FineUIPro.Web.WeldingProcess.DataIn {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.PageManager PageManager1;
-
+
///
/// SimpleForm1 控件。
///
@@ -38,7 +40,7 @@ namespace FineUIPro.Web.WeldingProcess.DataIn {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Form SimpleForm1;
-
+
///
/// Toolbar1 控件。
///
@@ -47,7 +49,7 @@ namespace FineUIPro.Web.WeldingProcess.DataIn {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Toolbar Toolbar1;
-
+
///
/// ToolbarFill1 控件。
///
@@ -56,7 +58,7 @@ namespace FineUIPro.Web.WeldingProcess.DataIn {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.ToolbarFill ToolbarFill1;
-
+
///
/// ckAll 控件。
///
@@ -65,7 +67,7 @@ namespace FineUIPro.Web.WeldingProcess.DataIn {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.CheckBox ckAll;
-
+
///
/// btnSave 控件。
///
@@ -74,7 +76,7 @@ namespace FineUIPro.Web.WeldingProcess.DataIn {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Button btnSave;
-
+
///
/// lbErrCout 控件。
///
@@ -83,7 +85,7 @@ namespace FineUIPro.Web.WeldingProcess.DataIn {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.TextArea lbErrCout;
-
+
///
/// txtValue1 控件。
///
@@ -92,7 +94,7 @@ namespace FineUIPro.Web.WeldingProcess.DataIn {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.TextBox txtValue1;
-
+
///
/// txtValue2 控件。
///
@@ -101,7 +103,7 @@ namespace FineUIPro.Web.WeldingProcess.DataIn {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.TextBox txtValue2;
-
+
///
/// txtValue3 控件。
///
@@ -110,7 +112,7 @@ namespace FineUIPro.Web.WeldingProcess.DataIn {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.TextBox txtValue3;
-
+
///
/// txtValue4 控件。
///
@@ -119,7 +121,7 @@ namespace FineUIPro.Web.WeldingProcess.DataIn {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.TextBox txtValue4;
-
+
///
/// txtValue5 控件。
///
@@ -128,7 +130,7 @@ namespace FineUIPro.Web.WeldingProcess.DataIn {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.TextBox txtValue5;
-
+
///
/// txtValue6 控件。
///
@@ -137,7 +139,7 @@ namespace FineUIPro.Web.WeldingProcess.DataIn {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.TextBox txtValue6;
-
+
///
/// txtValue7 控件。
///
@@ -146,7 +148,7 @@ namespace FineUIPro.Web.WeldingProcess.DataIn {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.TextBox txtValue7;
-
+
///
/// txtValue8 控件。
///
@@ -155,7 +157,7 @@ namespace FineUIPro.Web.WeldingProcess.DataIn {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.TextBox txtValue8;
-
+
///
/// txtValue9 控件。
///
@@ -164,7 +166,7 @@ namespace FineUIPro.Web.WeldingProcess.DataIn {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.TextBox txtValue9;
-
+
///
/// txtValue10 控件。
///
@@ -173,7 +175,7 @@ namespace FineUIPro.Web.WeldingProcess.DataIn {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.TextBox txtValue10;
-
+
///
/// txtValue11 控件。
///
@@ -182,7 +184,7 @@ namespace FineUIPro.Web.WeldingProcess.DataIn {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.TextBox txtValue11;
-
+
///
/// txtValue12 控件。
///
@@ -191,7 +193,7 @@ namespace FineUIPro.Web.WeldingProcess.DataIn {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.TextBox txtValue12;
-
+
///
/// txtValue13 控件。
///
@@ -200,7 +202,7 @@ namespace FineUIPro.Web.WeldingProcess.DataIn {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.TextBox txtValue13;
-
+
///
/// txtValue14 控件。
///
@@ -209,7 +211,7 @@ namespace FineUIPro.Web.WeldingProcess.DataIn {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.TextBox txtValue14;
-
+
///
/// txtValue15 控件。
///
@@ -218,7 +220,7 @@ namespace FineUIPro.Web.WeldingProcess.DataIn {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.TextBox txtValue15;
-
+
///
/// txtValue16 控件。
///
@@ -227,7 +229,7 @@ namespace FineUIPro.Web.WeldingProcess.DataIn {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.TextBox txtValue16;
-
+
///
/// txtValue17 控件。
///
@@ -236,7 +238,7 @@ namespace FineUIPro.Web.WeldingProcess.DataIn {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.TextBox txtValue17;
-
+
///
/// txtValue18 控件。
///
@@ -245,7 +247,7 @@ namespace FineUIPro.Web.WeldingProcess.DataIn {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.TextBox txtValue18;
-
+
///
/// txtValue19 控件。
///
@@ -254,7 +256,7 @@ namespace FineUIPro.Web.WeldingProcess.DataIn {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.TextBox txtValue19;
-
+
///
/// txtValue20 控件。
///
@@ -263,7 +265,7 @@ namespace FineUIPro.Web.WeldingProcess.DataIn {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.TextBox txtValue20;
-
+
///
/// txtValue21 控件。
///
@@ -272,7 +274,7 @@ namespace FineUIPro.Web.WeldingProcess.DataIn {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.TextBox txtValue21;
-
+
///
/// txtValue22 控件。
///
@@ -281,7 +283,7 @@ namespace FineUIPro.Web.WeldingProcess.DataIn {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.NumberBox txtValue22;
-
+
///
/// txtValue23 控件。
///
@@ -290,7 +292,7 @@ namespace FineUIPro.Web.WeldingProcess.DataIn {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.TextBox txtValue23;
-
+
///
/// txtValue24 控件。
///
@@ -299,7 +301,7 @@ namespace FineUIPro.Web.WeldingProcess.DataIn {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.TextBox txtValue24;
-
+
///
/// txtValue25 控件。
///
@@ -308,7 +310,7 @@ namespace FineUIPro.Web.WeldingProcess.DataIn {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.TextBox txtValue25;
-
+
///
/// txtValue26 控件。
///
@@ -317,7 +319,7 @@ namespace FineUIPro.Web.WeldingProcess.DataIn {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.TextBox txtValue26;
-
+
///
/// txtValue27 控件。
///
@@ -326,7 +328,7 @@ namespace FineUIPro.Web.WeldingProcess.DataIn {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.TextBox txtValue27;
-
+
///
/// txtValue28 控件。
///
@@ -335,7 +337,7 @@ namespace FineUIPro.Web.WeldingProcess.DataIn {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.TextBox txtValue28;
-
+
///
/// txtValue29 控件。
///
@@ -344,7 +346,7 @@ namespace FineUIPro.Web.WeldingProcess.DataIn {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.TextBox txtValue29;
-
+
///
/// txtValue30 控件。
///
@@ -353,7 +355,7 @@ namespace FineUIPro.Web.WeldingProcess.DataIn {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.TextBox txtValue30;
-
+
///
/// txtValue31 控件。
///
@@ -362,7 +364,7 @@ namespace FineUIPro.Web.WeldingProcess.DataIn {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.TextBox txtValue31;
-
+
///
/// txtValue32 控件。
///
@@ -371,7 +373,7 @@ namespace FineUIPro.Web.WeldingProcess.DataIn {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.TextBox txtValue32;
-
+
///
/// txtValue33 控件。
///
@@ -380,7 +382,7 @@ namespace FineUIPro.Web.WeldingProcess.DataIn {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.TextBox txtValue33;
-
+
///
/// txtValue34 控件。
///
@@ -389,16 +391,7 @@ namespace FineUIPro.Web.WeldingProcess.DataIn {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.TextBox txtValue34;
-
- ///
- /// txtValue35 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.TextBox txtValue35;
-
+
///
/// txtValue36 控件。
///
@@ -407,7 +400,7 @@ namespace FineUIPro.Web.WeldingProcess.DataIn {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.TextBox txtValue36;
-
+
///
/// txtValue37 控件。
///
@@ -416,7 +409,16 @@ namespace FineUIPro.Web.WeldingProcess.DataIn {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.TextBox txtValue37;
-
+
+ ///
+ /// txtValue35 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtValue35;
+
///
/// txtValue38 控件。
///
@@ -425,7 +427,7 @@ namespace FineUIPro.Web.WeldingProcess.DataIn {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.TextBox txtValue38;
-
+
///
/// txtValue39 控件。
///
@@ -434,7 +436,7 @@ namespace FineUIPro.Web.WeldingProcess.DataIn {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.TextBox txtValue39;
-
+
///
/// txtValue40 控件。
///
diff --git a/HJGL/FineUIPro.Web/WeldingProcess/TrustManage/PointForAudit.aspx b/HJGL/FineUIPro.Web/WeldingProcess/TrustManage/PointForAudit.aspx
new file mode 100644
index 0000000..9a7b3c0
--- /dev/null
+++ b/HJGL/FineUIPro.Web/WeldingProcess/TrustManage/PointForAudit.aspx
@@ -0,0 +1,138 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PointForAudit.aspx.cs" Inherits="FineUIPro.Web.WeldingProcess.TrustManage.PointForAudit" %>
+
+
+
+
+ 点口待审核
+
+
+
+
+
+
diff --git a/HJGL/FineUIPro.Web/WeldingProcess/TrustManage/PointForAudit.aspx.cs b/HJGL/FineUIPro.Web/WeldingProcess/TrustManage/PointForAudit.aspx.cs
new file mode 100644
index 0000000..b9ea68c
--- /dev/null
+++ b/HJGL/FineUIPro.Web/WeldingProcess/TrustManage/PointForAudit.aspx.cs
@@ -0,0 +1,352 @@
+using BLL;
+using System;
+using System.Collections.Generic;
+using System.Data;
+using System.Data.SqlClient;
+using System.Linq;
+using System.Reflection;
+using System.Web.UI.WebControls;
+
+namespace FineUIPro.Web.WeldingProcess.TrustManage
+{
+ public partial class PointForAudit : PageBase
+ {
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack)
+ {
+ this.ddlPageSize.SelectedValue = this.Grid1.PageSize.ToString();
+
+ BLL.Base_DetectionTypeService.InitDetectionTypeDropDownList(drpNde, "", false, "");
+ drpNde.SelectedValue = "296add43-e979-4cf3-b13e-a68bb00a75d2"; // 默认RT
+ BindGrid();
+ }
+ }
+
+ private void BindGrid()
+ {
+ string strSql = @"SELECT PointBatchItemId,PointBatchId,PointBatchCode,WeldJointId,PointState,PointDate,WorkAreaCode,
+ WeldJointCode,JointArea,Size,WelderCode,WeldingDate,PipelineCode,PipingClassName,
+ (CASE WHEN IsWelderFirst=1 THEN '是' ELSE '否' END) AS IsWelderFirst,
+ JLAudit,GLGSAudit,QTAudit,IsPointAudit
+ FROM dbo.View_Batch_PointBatchItem
+ WHERE PointState IS NOT NULL AND TrustBatchItemId IS NULL";
+ List listStr = new List();
+ if (!string.IsNullOrEmpty(this.txtPipeCode.Text))
+ {
+ strSql += " AND PipelineCode LIKE @PipelineCode";
+ listStr.Add(new SqlParameter("@PipelineCode", "%" + this.txtPipeCode.Text.Trim() + "%"));
+ }
+ if (!string.IsNullOrEmpty(this.txtPointStartDate.Text))
+ {
+ strSql += " AND PointDate >= @PointStartDate";
+ listStr.Add(new SqlParameter("@PointStartDate", Convert.ToDateTime(this.txtPointStartDate.Text)));
+ }
+ if (!string.IsNullOrEmpty(this.txtPointEndDate.Text))
+ {
+ strSql += " AND PointDate < @PointEndDate";
+ listStr.Add(new SqlParameter("@PointEndDate", Convert.ToDateTime(this.txtPointEndDate.Text).AddDays(1)));
+ }
+ if (drpNoAudit.SelectedValue != "0")
+ {
+ if (drpNoAudit.SelectedValue == "1")
+ {
+ strSql += " AND JLAudit='未审核'";
+ }
+ if (drpNoAudit.SelectedValue == "2")
+ {
+ strSql += " AND GLGSAudit='未审核'";
+ }
+ if (drpNoAudit.SelectedValue == "3")
+ {
+ strSql += " AND QTAudit='未审核'";
+ }
+ }
+ else
+ {
+ strSql += " AND (JLAudit='未审核' OR GLGSAudit='未审核' OR QTAudit='未审核')";
+ }
+
+ if (drpNde.SelectedValue != null)
+ {
+ strSql += " AND DetectionTypeId=@DetectionTypeId";
+ listStr.Add(new SqlParameter("@DetectionTypeId", drpNde.SelectedValue));
+ }
+
+ SqlParameter[] parameter = listStr.ToArray();
+ DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
+
+ Grid1.RecordCount = tb.Rows.Count;
+ // tb = GetFilteredTable(Grid1.FilteredData, tb);
+ var table = this.GetPagedDataTable(Grid1, tb);
+ Grid1.DataSource = table;
+ Grid1.DataBind();
+ }
+
+ #region
+ ///
+ /// 改变索引事件
+ ///
+ ///
+ ///
+ 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
+
+ protected void BtnAnalyse_Click(object sender, EventArgs e)
+ {
+ BindGrid();
+ }
+ protected void Window2_Close(object sender, WindowCloseEventArgs e)
+ {
+ this.BindGrid();
+ }
+ protected void btnJLAudit_Click(object sender, EventArgs e)
+ {
+ if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.HJGL_PointForAuditMenuId, Const.BtnJLAudit))
+ {
+ if (Grid1.SelectedRowIndexArray.Length <= 0)
+ {
+ Alert.ShowInTop("最少选中一行!", MessageBoxIcon.Warning);
+ return;
+ }
+
+ string userId = CurrUser.UserId;
+ foreach (string pointBatchItemId in Grid1.SelectedRowIDArray)
+ {
+ var pointBatchItem = BLL.Batch_PointBatchItemService.GetPointBatchItemByPointBatchItemId(pointBatchItemId);
+ pointBatchItem.JLAudit = userId;
+ BLL.Funs.DB.SubmitChanges();
+ }
+ Alert.ShowInTop("所选项审核完成!", MessageBoxIcon.Warning);
+ BindGrid();
+
+ }
+ else
+ {
+ ShowNotify(Resources.Lan.NoPrivilegePrompt, MessageBoxIcon.Warning);
+ return;
+ }
+ }
+ protected void btnGLGSAudit_Click(object sender, EventArgs e)
+ {
+ if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.HJGL_PointForAuditMenuId, Const.BtnGLGSAudit))
+ {
+ if (Grid1.SelectedRowIndexArray.Length <= 0)
+ {
+ Alert.ShowInTop("最少选中一行!", MessageBoxIcon.Warning);
+ return;
+ }
+
+ string userId = CurrUser.UserId;
+ foreach (string pointBatchItemId in Grid1.SelectedRowIDArray)
+ {
+ var pointBatchItem = BLL.Batch_PointBatchItemService.GetPointBatchItemByPointBatchItemId(pointBatchItemId);
+ pointBatchItem.GLGSAudit = userId;
+ BLL.Funs.DB.SubmitChanges();
+ }
+ Alert.ShowInTop("所选项审核完成!", MessageBoxIcon.Warning);
+ BindGrid();
+
+ }
+ else
+ {
+ ShowNotify(Resources.Lan.NoPrivilegePrompt, MessageBoxIcon.Warning);
+ return;
+ }
+ }
+ protected void btnOtherAudit_Click(object sender, EventArgs e)
+ {
+ if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.HJGL_PointForAuditMenuId, Const.BtnQTAudit))
+ {
+ if (Grid1.SelectedRowIndexArray.Length <= 0)
+ {
+ Alert.ShowInTop("最少选中一行!", MessageBoxIcon.Warning);
+ return;
+ }
+
+ string userId = CurrUser.UserId;
+ foreach (string pointBatchItemId in Grid1.SelectedRowIDArray)
+ {
+ var pointBatchItem = BLL.Batch_PointBatchItemService.GetPointBatchItemByPointBatchItemId(pointBatchItemId);
+ pointBatchItem.QTAudit = userId;
+ BLL.Funs.DB.SubmitChanges();
+ }
+ Alert.ShowInTop("所选项审核完成!", MessageBoxIcon.Warning);
+ BindGrid();
+
+ }
+ else
+ {
+ ShowNotify(Resources.Lan.NoPrivilegePrompt, MessageBoxIcon.Warning);
+ return;
+ }
+ }
+
+ ///
+ /// 手动生成委托单
+ ///
+ ///
+ ///
+ protected void btnHandGenerate_Click(object sender, EventArgs e)
+ {
+ if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.HJGL_PointManageMenuId, Const.BtnHandGenerate))
+ {
+ List selectRow = new List();
+
+ foreach (string pitem in Grid1.SelectedRowIDArray)
+ {
+ selectRow.Add(pitem);
+ }
+
+ if (selectRow.Count() > 0)
+ {
+ List weldMot = new List();
+ List grooveType = new List();
+ List IsFist = new List();
+ List pointBatchIds = new List();
+ string error = string.Empty;
+
+ foreach (string pointItemId in selectRow)
+ {
+ var pointItem = BLL.Batch_PointBatchItemService.GetPointBatchItemByPointBatchItemId(pointItemId);
+ var jot = BLL.Pipeline_WeldJointService.GetWeldJointByWeldJointId(pointItem.WeldJointId);
+ weldMot.Add(jot.WeldingMethodId);
+ grooveType.Add(jot.GrooveTypeId);
+ IsFist.Add(pointItem.IsWelderFirst == true ? true : false);
+ pointBatchIds.Add(pointItem.PointBatchId);
+ }
+
+ if (pointBatchIds.Distinct().Count() > 1)
+ {
+ error = "勾选的焊口不在一个批次中,";
+ }
+ if (weldMot.Distinct().Count() > 1)
+ {
+ error = "勾选的焊口焊接方法不一至,";
+ }
+ if (grooveType.Distinct().Count() > 1)
+ {
+ error = error + "勾选的焊口坡口类型不一至,";
+ }
+ if (IsFist.Distinct().Count() > 1)
+ {
+ error = error + "勾选的焊口是否首三不一至,";
+ }
+
+ if (error == string.Empty)
+ {
+ var point = BLL.Batch_PointBatchService.GetPointBatchById(pointBatchIds[0]);
+ var iso = BLL.Pipeline_PipelineService.GetPipelineByPipelineId(point.PipelineId);
+ var project = BLL.Base_ProjectService.GetProjectByProjectId(point.ProjectId);
+ var unit = BLL.Base_UnitService.GetUnit(point.UnitId);
+ var ndt = BLL.Base_DetectionTypeService.GetDetectionTypeByDetectionTypeId(point.DetectionTypeId);
+ var work = BLL.Project_WorkAreaService.GetProject_WorkAreaByWorkAreaId(iso.WorkAreaId);
+
+ Model.Batch_BatchTrust newBatchTrust = new Model.Batch_BatchTrust();
+ string perfix = string.Empty;
+ //perfix = unit.UnitCode + "-" + ins.InstallationCode + "-GD-" + ndt.DetectionTypeCode + "-";
+ perfix = ndt.DetectionTypeCode + "-" + unit.UnitCode + "-" + work.WorkAreaCode + "-PI" + "-";
+ newBatchTrust.TrustBatchCode = BLL.SQLHelper.RunProcNewId("SpGetNewCode", "dbo.Batch_BatchTrust", "TrustBatchCode", project.ProjectId, perfix);
+
+ string trustBatchId = SQLHelper.GetNewID(typeof(Model.Batch_BatchTrust));
+ newBatchTrust.TrustBatchId = trustBatchId;
+
+ newBatchTrust.TrustDate = DateTime.Now;
+ newBatchTrust.ProjectId = point.ProjectId;
+ newBatchTrust.UnitId = point.UnitId;
+ newBatchTrust.InstallationId = point.InstallationId;
+ newBatchTrust.WorkAreaId = iso.WorkAreaId;
+ newBatchTrust.WeldingMethodId = weldMot[0];
+ newBatchTrust.GrooveTypeId = grooveType[0];
+ newBatchTrust.IsWelderFirst = IsFist[0];
+ newBatchTrust.DetectionTypeId = point.DetectionTypeId;
+ newBatchTrust.PipelineId = point.PipelineId;
+
+ BLL.Batch_BatchTrustService.AddBatchTrust(newBatchTrust); // 新增委托单
+
+ // 生成委托明细,并回写点口明细信息
+ string toPointBatch = string.Empty;
+ foreach (string pointItemId in selectRow)
+ {
+ var pointItem = BLL.Batch_PointBatchItemService.GetPointBatchItemByPointBatchItemId(pointItemId);
+ if (BLL.Batch_PointBatchService.GetIsGenerateTrust(pointItem.PointBatchItemId)) ////生成委托单的条件判断
+ {
+ if (!toPointBatch.Contains(pointItem.PointBatchId))
+ {
+ toPointBatch = toPointBatch + pointItem.PointBatchId + ",";
+ }
+
+ Model.Batch_BatchTrustItem trustItem = new Model.Batch_BatchTrustItem
+ {
+ TrustBatchItemId = SQLHelper.GetNewID(typeof(Model.Batch_BatchTrustItem)),
+ TrustBatchId = trustBatchId,
+ PointBatchItemId = pointItem.PointBatchItemId,
+ WeldJointId = pointItem.WeldJointId,
+ //FilmNum = fileNum,
+ CreateDate = DateTime.Now
+ };
+ Batch_BatchTrustItemService.AddBatchTrustItem(trustItem);
+ }
+
+ //Model.Batch_PointBatchItem pointBatchItem = Funs.DB.Batch_PointBatchItem.FirstOrDefault(e => e.PointBatchItemId == item.PointBatchItemId);
+
+ pointItem.IsBuildTrust = true;
+ Funs.DB.SubmitChanges();
+ }
+
+ // 回写委托批对应点口信息
+ if (!string.IsNullOrEmpty(toPointBatch))
+ {
+ toPointBatch = toPointBatch.Substring(0, toPointBatch.Length - 1);
+ var updateTrut = BLL.Batch_BatchTrustService.GetBatchTrustById(trustBatchId);
+ if (updateTrut != null)
+ {
+ updateTrut.TopointBatch = toPointBatch;
+ BLL.Batch_BatchTrustService.UpdateBatchTrust(updateTrut);
+ }
+ }
+
+ Alert.ShowInTop("委托单已生成!", MessageBoxIcon.Success);
+ }
+ else
+ {
+ Alert.ShowInTop(error + "不能组成一个委托单!", MessageBoxIcon.Warning);
+ }
+ }
+ else
+ {
+ Alert.ShowInTop("请勾选要生成委托单的焊口!", MessageBoxIcon.Warning);
+ }
+ }
+ else
+ {
+ ShowNotify(Resources.Lan.NoPrivilegePrompt, MessageBoxIcon.Warning);
+ return;
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/HJGL/FineUIPro.Web/WeldingProcess/TrustManage/PointForAudit.aspx.designer.cs b/HJGL/FineUIPro.Web/WeldingProcess/TrustManage/PointForAudit.aspx.designer.cs
new file mode 100644
index 0000000..95dcc3d
--- /dev/null
+++ b/HJGL/FineUIPro.Web/WeldingProcess/TrustManage/PointForAudit.aspx.designer.cs
@@ -0,0 +1,188 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.WeldingProcess.TrustManage
+{
+
+
+ public partial class PointForAudit
+ {
+
+ ///
+ /// 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;
+
+ ///
+ /// drpNoAudit 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList drpNoAudit;
+
+ ///
+ /// txtPipeCode 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtPipeCode;
+
+ ///
+ /// drpNde 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList drpNde;
+
+ ///
+ /// txtPointStartDate 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DatePicker txtPointStartDate;
+
+ ///
+ /// txtPointEndDate 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DatePicker txtPointEndDate;
+
+ ///
+ /// BtnAnalyse 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button BtnAnalyse;
+
+ ///
+ /// ToolbarFill1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarFill ToolbarFill1;
+
+ ///
+ /// btnJLAudit 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnJLAudit;
+
+ ///
+ /// btnGLGSAudit 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnGLGSAudit;
+
+ ///
+ /// btnOtherAudit 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnOtherAudit;
+
+ ///
+ /// btnHandGenerate 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnHandGenerate;
+
+ ///
+ /// ToolbarSeparator1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
+
+ ///
+ /// ToolbarText1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarText ToolbarText1;
+
+ ///
+ /// ddlPageSize 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList ddlPageSize;
+ }
+}
diff --git a/HJGL/FineUIPro.Web/WeldingProcess/TrustManage/PointManage.aspx b/HJGL/FineUIPro.Web/WeldingProcess/TrustManage/PointManage.aspx
index 8b065f6..968c4f7 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 1fa21d4..cfbaa8e 100644
--- a/HJGL/FineUIPro.Web/WeldingProcess/TrustManage/PointManage.aspx.cs
+++ b/HJGL/FineUIPro.Web/WeldingProcess/TrustManage/PointManage.aspx.cs
@@ -850,7 +850,7 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage
}
///
- /// 手动结束批(暂不用)
+ /// 手动结束批
///
///
///
@@ -858,23 +858,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/TrustBatchSelect.aspx.cs b/HJGL/FineUIPro.Web/WeldingProcess/TrustManage/TrustBatchSelect.aspx.cs
index 22f5392..b83977b 100644
--- a/HJGL/FineUIPro.Web/WeldingProcess/TrustManage/TrustBatchSelect.aspx.cs
+++ b/HJGL/FineUIPro.Web/WeldingProcess/TrustManage/TrustBatchSelect.aspx.cs
@@ -37,7 +37,7 @@ namespace FineUIPro.Web.WeldingProcess.TrustManage
private void BindGrid()
{
string strSql = @"SELECT * FROM dbo.View_Batch_BatchTrustItemSelect
- WHERE PointBatchItemId IS NOT NULL AND ProjectId=@ProjectId ";
+ WHERE ProjectId=@ProjectId ";
List listStr = new List();
diff --git a/HJGL/FineUIPro.Web/WeldingProcess/WeldingManage/JointInfoEdit.aspx b/HJGL/FineUIPro.Web/WeldingProcess/WeldingManage/JointInfoEdit.aspx
index 284241a..ffa2fe6 100644
--- a/HJGL/FineUIPro.Web/WeldingProcess/WeldingManage/JointInfoEdit.aspx
+++ b/HJGL/FineUIPro.Web/WeldingProcess/WeldingManage/JointInfoEdit.aspx
@@ -110,20 +110,18 @@
-
-
+
+
+
+
-
-
-
-
diff --git a/HJGL/FineUIPro.Web/WeldingProcess/WeldingManage/JointInfoEdit.aspx.cs b/HJGL/FineUIPro.Web/WeldingProcess/WeldingManage/JointInfoEdit.aspx.cs
index 3015c25..dfbfc9c 100644
--- a/HJGL/FineUIPro.Web/WeldingProcess/WeldingManage/JointInfoEdit.aspx.cs
+++ b/HJGL/FineUIPro.Web/WeldingProcess/WeldingManage/JointInfoEdit.aspx.cs
@@ -127,9 +127,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage
this.drpJointAttribute.DataBind();
Funs.FineUIPleaseSelect(this.drpJointAttribute,Resources.Lan.PleaseSelect);
- // 物料码
- BLL.MaterialCoodeService.InitCoodeDropDownList(this.drpCoode1, this.CurrUser.LoginProjectId, true, Resources.Lan.PleaseSelect);//Coode1
- BLL.MaterialCoodeService.InitCoodeDropDownList(this.drpCoode2, this.CurrUser.LoginProjectId, true, Resources.Lan.PleaseSelect);//Coode2
+
///组件1号
Base_ComponentsService.InitComponentsDropDownList(this.drpPipeAssembly1, true,Resources.Lan.PleaseSelect);
///组件2号
@@ -355,14 +353,14 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage
txtPageNum.Text = jointInfo.PageNum;
if (!string.IsNullOrEmpty(jointInfo.Coode1))
{
- drpCoode1.SelectedValue = jointInfo.Coode1;
- BLL.MaterialCoodeService.InitHeartNoDropDownList(this.drpHeartNo1, drpCoode1.SelectedValue, true, Resources.Lan.PleaseSelect);
+ txtCoode1.Text = jointInfo.Coode1;
+ BLL.MaterialCoodeService.InitHeartNoDropDownList(this.drpHeartNo1, txtCoode1.Text, true, Resources.Lan.PleaseSelect);
drpHeartNo1.SelectedValue = jointInfo.Coode1;
}
if (!string.IsNullOrEmpty(jointInfo.Coode2))
{
- drpCoode2.SelectedValue = jointInfo.Coode2;
- BLL.MaterialCoodeService.InitHeartNoDropDownList(this.drpHeartNo2, drpCoode2.SelectedValue, true, Resources.Lan.PleaseSelect);
+ txtCoode2.Text = jointInfo.Coode2;
+ BLL.MaterialCoodeService.InitHeartNoDropDownList(this.drpHeartNo2, txtCoode2.Text, true, Resources.Lan.PleaseSelect);
drpHeartNo2.SelectedValue = jointInfo.Coode2;
}
@@ -517,19 +515,13 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage
newJointInfo.TestPackageNo = this.txtTestPackageNo.Text.Trim();
newJointInfo.PrepareTemp = this.txtPrepareTemp.Text.Trim();
newJointInfo.PageNum = txtPageNum.Text.Trim();
- if (drpCoode1.SelectedValue != Const._Null)
- {
- newJointInfo.Coode1 = drpCoode1.SelectedValue;
- }
+ newJointInfo.Coode1 = txtCoode1.Text.Trim();
if (drpHeartNo1.SelectedValue != Const._Null)
{
newJointInfo.HeartNo1 = drpHeartNo1.SelectedValue;
}
- if (drpCoode2.SelectedValue != Const._Null)
- {
- newJointInfo.Coode2=drpCoode2.SelectedValue;
- }
+ newJointInfo.Coode2 = txtCoode2.Text.Trim();
if (drpHeartNo2.SelectedValue != Const._Null)
{
newJointInfo.HeartNo2 = drpHeartNo2.SelectedValue;
@@ -658,21 +650,21 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage
}
- protected void drpCoode1_SelectedIndexChanged(object sender, EventArgs e)
+ protected void txtCoode1_TextChanged(object sender, EventArgs e)
{
- if (drpCoode1.SelectedValue != Const._Null)
+ if (!string.IsNullOrEmpty(txtCoode1.Text))
{
drpHeartNo1.Items.Clear();
- BLL.MaterialCoodeService.InitHeartNoDropDownList(this.drpHeartNo1, drpCoode1.SelectedValue, true, Resources.Lan.PleaseSelect);//HeartNo1
+ BLL.MaterialCoodeService.InitHeartNoDropDownList(this.drpHeartNo1, txtCoode1.Text, true, Resources.Lan.PleaseSelect);//HeartNo1
}
}
- protected void drpCoode2_SelectedIndexChanged(object sender, EventArgs e)
+ protected void txtCoode2_TextChanged(object sender, EventArgs e)
{
- if (drpCoode2.SelectedValue != Const._Null)
+ if (!string.IsNullOrEmpty(txtCoode2.Text))
{
drpHeartNo2.Items.Clear();
- BLL.MaterialCoodeService.InitHeartNoDropDownList(this.drpHeartNo2, drpCoode2.SelectedValue, true, Resources.Lan.PleaseSelect);//HeartNo2
+ BLL.MaterialCoodeService.InitHeartNoDropDownList(this.drpHeartNo2, txtCoode2.Text, true, Resources.Lan.PleaseSelect);//HeartNo2
}
}
diff --git a/HJGL/FineUIPro.Web/WeldingProcess/WeldingManage/JointInfoEdit.aspx.designer.cs b/HJGL/FineUIPro.Web/WeldingProcess/WeldingManage/JointInfoEdit.aspx.designer.cs
index 87e145f..e9560ae 100644
--- a/HJGL/FineUIPro.Web/WeldingProcess/WeldingManage/JointInfoEdit.aspx.designer.cs
+++ b/HJGL/FineUIPro.Web/WeldingProcess/WeldingManage/JointInfoEdit.aspx.designer.cs
@@ -249,13 +249,22 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage
protected global::FineUIPro.TextBox txtSystemNumber;
///
- /// drpCoode1 控件。
+ /// txtCoode1 控件。
///
///
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
- protected global::FineUIPro.DropDownList drpCoode1;
+ protected global::FineUIPro.TextBox txtCoode1;
+
+ ///
+ /// txtCoode2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtCoode2;
///
/// drpHeartNo1 控件。
@@ -266,15 +275,6 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage
///
protected global::FineUIPro.DropDownList drpHeartNo1;
- ///
- /// drpCoode2 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.DropDownList drpCoode2;
-
///
/// drpHeartNo2 控件。
///
diff --git a/HJGL/FineUIPro.Web/WeldingProcess/WeldingManage/MaterialCoode.aspx b/HJGL/FineUIPro.Web/WeldingProcess/WeldingManage/MaterialCoode.aspx
index 3b2808f..ce5e9ef 100644
--- a/HJGL/FineUIPro.Web/WeldingProcess/WeldingManage/MaterialCoode.aspx
+++ b/HJGL/FineUIPro.Web/WeldingProcess/WeldingManage/MaterialCoode.aspx
@@ -30,9 +30,18 @@
-
+
+
+
+
+
+
+
+
@@ -49,6 +58,8 @@
FieldType="String" HeaderText="数量" HeaderTextAlign="Center"
TextAlign="Left" SortField="MediumAbbreviation">
+
+
diff --git a/HJGL/FineUIPro.Web/WeldingProcess/WeldingManage/MaterialCoode.aspx.cs b/HJGL/FineUIPro.Web/WeldingProcess/WeldingManage/MaterialCoode.aspx.cs
index 21329d8..586a519 100644
--- a/HJGL/FineUIPro.Web/WeldingProcess/WeldingManage/MaterialCoode.aspx.cs
+++ b/HJGL/FineUIPro.Web/WeldingProcess/WeldingManage/MaterialCoode.aspx.cs
@@ -4,11 +4,25 @@ using System.Collections.Generic;
using System.Linq;
using System.Data;
using System.Data.SqlClient;
+using Model;
+using System.IO;
+using System.Drawing;
+using System.Web.UI.WebControls;
namespace FineUIPro.Web.WeldingProcess.WeldingManage
{
public partial class MaterialCoode : PageBase
{
+ //定义变量
+ ///
+ /// 上传预设的虚拟路径
+ ///
+ private string initPath = Const.ExcelUrl;
+ ///
+ /// 错误集合
+ ///
+ public static string errorInfos = string.Empty;
+
#region 加载
///
/// 加载页面
@@ -179,18 +193,18 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage
foreach (int rowIndex in Grid1.SelectedRowIndexArray)
{
string rowID = Grid1.DataKeys[rowIndex][0].ToString();
- var getMedium = BLL.Base_MediumService.GetMediumByMediumId(rowID);
- if (getMedium != null)
+ var getCoode = BLL.MaterialCoodeService.GetMaterialCoode(rowID,this.CurrUser.LoginProjectId);
+ if (getCoode != null)
{
string cont = judgementDelete(rowID);
if (string.IsNullOrEmpty(cont))
{
- BLL.Base_MediumService.DeleteMediumByMediumId(rowID);
+ BLL.MaterialCoodeService.DeleteMaterialCoode(rowID);
BLL.Sys_LogService.AddLog(Const.System_2, this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.MediumMenuId, Const.BtnDelete, rowID);
}
else
{
- strShowNotify += Resources.Lan.MediumDefinition + ":" + getMedium.MediumCode + cont;
+ strShowNotify += Resources.Lan.MediumDefinition + ":" + getCoode.Coode + cont;
}
}
}
@@ -255,6 +269,181 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage
}
#endregion
+ protected void btnImport_Click(object sender, EventArgs e)
+ {
+ if (this.CoodeUrl.HasFile == false)
+ {
+ ShowNotify("请选择Excel文件!", MessageBoxIcon.Warning);
+ return;
+ }
+ string IsXls = Path.GetExtension(this.CoodeUrl.FileName).ToString().Trim().ToLower();
+ if (IsXls != ".xls" && IsXls != ".xlsx")
+ {
+ ShowNotify("只能选择Excel文件!", MessageBoxIcon.Warning);
+ return;
+ }
+
+ string rootPath = Server.MapPath("~/");
+ string initFullPath = rootPath + initPath;
+ if (!Directory.Exists(initFullPath))
+ {
+ Directory.CreateDirectory(initFullPath);
+ }
+ //指定上传文件名称
+ this.hidFileName.Text = BLL.Funs.GetNewFileName() + IsXls;
+ //上传文件路径
+ string filePath = initFullPath + this.hidFileName.Text;
+ //文件上传服务器
+ this.CoodeUrl.PostedFile.SaveAs(filePath);
+ //文件上传服务器后的名称
+ string fileName = rootPath + initPath + this.hidFileName.Text;
+ //读取Excel
+ DataSet ds = NPOIHelper.ExcelToDataSet(fileName, out errorInfos, true);
+ errorInfos = string.Empty;
+ //验证Excel读取是否有误
+ if (!string.IsNullOrEmpty(errorInfos))
+ {
+ ShowNotify(errorInfos, MessageBoxIcon.Warning);
+ return;
+ }
+
+ string message = string.Empty;
+
+ List coodeList = new List();
+ var coodes = from x in Funs.DB.Base_MaterialCoode where x.ProjectId == this.CurrUser.LoginProjectId select x;
+ for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
+ {
+ Model.Base_MaterialCoode d = new Model.Base_MaterialCoode();
+ d.ProjectId = this.CurrUser.LoginProjectId;
+ d.MaterialCoodeId = SQLHelper.GetNewID(typeof(Model.Base_MaterialCoode));
+ d.Coode = ds.Tables[0].Rows[i]["Coode"].ToString();
+ d.HeartNo = ds.Tables[0].Rows[i]["炉批号"].ToString();
+
+ if (!string.IsNullOrEmpty(d.Coode) && !string.IsNullOrEmpty(d.HeartNo))
+ {
+ var c = from x in coodes where x.Coode == d.Coode && x.HeartNo == d.HeartNo select x;
+ if (c.Count() > 0)
+ {
+ errorInfos += (i + 2) + "行,Coode对应的炉批号已存在!";
+ }
+ }
+
+ if (ds.Tables[0].Rows[i]["数量"] != null && !string.IsNullOrEmpty(ds.Tables[0].Rows[i]["数量"].ToString()))
+ {
+ int? dd = Funs.GetNewInt(ds.Tables[0].Rows[i]["数量"].ToString());
+ if (dd != null)
+ {
+ d.Amount = Funs.GetNewInt(ds.Tables[0].Rows[i]["数量"].ToString());
+ }
+ else
+ {
+ errorInfos += (i + 2) + "行,数量格式不正确!";
+ }
+ }
+ if (ds.Tables[0].Rows[i]["是否启用"] != null && !string.IsNullOrEmpty(ds.Tables[0].Rows[i]["是否启用"].ToString()))
+ {
+ string isUser = ds.Tables[0].Rows[i]["是否启用"].ToString();
+ if (isUser != "是" && isUser != "否")
+ {
+ errorInfos += (i + 2) + "行,是否启用只能录入是或否!";
+ }
+ else
+ {
+ if (isUser == "是")
+ {
+ d.IsUse = true;
+ }
+ else
+ {
+ d.IsUse = false;
+ }
+
+ }
+ }
+ else
+ {
+ d.IsUse = false;
+ }
+
+ coodeList.Add(d);
+ }
+
+ var coodeGroup = coodeList.GroupBy(x => new { x.Coode, x.HeartNo }).Select(g => new { Coode = g.Key.Coode, HeartNo = g.Key.HeartNo });
+ if (coodeList.Count() != coodeGroup.Count())
+ {
+ errorInfos += "Coode对应的炉批号有重复!";
+ }
+
+
+ // 数据验证错误,返回
+ if (!string.IsNullOrEmpty(errorInfos))
+ {
+ ShowNotify(errorInfos, MessageBoxIcon.Warning, 10000);
+ return;
+ }
+ else
+ {
+ foreach (var item in coodeList)
+ {
+
+ BLL.MaterialCoodeService.AddMaterialCoode(item);
+ }
+ ShowNotify("Coode导入成功!", MessageBoxIcon.Success);
+ this.BindGrid();
+
+ }
+ }
+
+ #region 模板下载
+ ///
+ /// 模板下载
+ ///
+ ///
+ ///
+ protected void btnDownLoad_Click(object sender, EventArgs e)
+ {
+ string rootPath = Server.MapPath("~/");
+ string uploadfilepath = rootPath + Const.CoodeInTemplateUrl;
+ string filePath = Const.CoodeInTemplateUrl;
+ string fileName = Path.GetFileName(filePath);
+ FileInfo info = new FileInfo(uploadfilepath);
+ long fileSize = info.Length;
+ Response.ClearContent();
+ Response.AddHeader("Content-Disposition", "attachment;filename=" + System.Web.HttpUtility.UrlEncode(fileName, System.Text.Encoding.UTF8));
+ Response.ContentType = "excel/plain";
+ Response.ContentEncoding = System.Text.Encoding.UTF8;
+ Response.AddHeader("Content-Length", fileSize.ToString().Trim());
+ Response.TransmitFile(uploadfilepath, 0, fileSize);
+ Response.End();
+ //PageContext.RegisterStartupScript(Confirm.GetShowReference("确定要下载焊工资质导入模板?", String.Empty, MessageBoxIcon.Question, PageManager1.GetCustomEventReference(false, "Confirm_OK"), PageManager1.GetCustomEventReference("Confirm_Cancel")));
+ }
+
+ ///
+ /// 下载导入模板
+ ///
+ ///
+ ///
+ protected void PageManager1_CustomEvent(object sender, CustomEventArgs e)
+ {
+ if (e.EventArgument == "Confirm_OK")
+ {
+ string rootPath = Server.MapPath("~/");
+ string uploadfilepath = rootPath + Const.WelderQueTemplateUrl;
+ string filePath = Const.WelderQueTemplateUrl;
+ string fileName = Path.GetFileName(filePath);
+ FileInfo info = new FileInfo(uploadfilepath);
+ long fileSize = info.Length;
+ Response.ClearContent();
+ Response.AddHeader("Content-Disposition", "attachment;filename=" + System.Web.HttpUtility.UrlEncode(fileName, System.Text.Encoding.UTF8));
+ Response.ContentType = "excel/plain";
+ Response.ContentEncoding = System.Text.Encoding.UTF8;
+ Response.AddHeader("Content-Length", fileSize.ToString().Trim());
+ Response.TransmitFile(uploadfilepath, 0, fileSize);
+ Response.End();
+ }
+ }
+ #endregion
+
#region 获取按钮权限
///
/// 获取按钮权限
diff --git a/HJGL/FineUIPro.Web/WeldingProcess/WeldingManage/MaterialCoode.aspx.designer.cs b/HJGL/FineUIPro.Web/WeldingProcess/WeldingManage/MaterialCoode.aspx.designer.cs
index 9b34385..844cb49 100644
--- a/HJGL/FineUIPro.Web/WeldingProcess/WeldingManage/MaterialCoode.aspx.designer.cs
+++ b/HJGL/FineUIPro.Web/WeldingProcess/WeldingManage/MaterialCoode.aspx.designer.cs
@@ -86,6 +86,33 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage
///
protected global::FineUIPro.ToolbarFill ToolbarFill1;
+ ///
+ /// CoodeUrl 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.FileUpload CoodeUrl;
+
+ ///
+ /// btnImport 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnImport;
+
+ ///
+ /// btnDownLoad 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnDownLoad;
+
///
/// btnNew 控件。
///
@@ -95,6 +122,15 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage
///
protected global::FineUIPro.Button btnNew;
+ ///
+ /// hidFileName 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.HiddenField hidFileName;
+
///
/// ToolbarSeparator1 控件。
///
diff --git a/HJGL/FineUIPro.Web/WeldingProcess/WeldingManage/MaterialCoodeEdit.aspx b/HJGL/FineUIPro.Web/WeldingProcess/WeldingManage/MaterialCoodeEdit.aspx
index 3fccf58..bf25e25 100644
--- a/HJGL/FineUIPro.Web/WeldingProcess/WeldingManage/MaterialCoodeEdit.aspx
+++ b/HJGL/FineUIPro.Web/WeldingProcess/WeldingManage/MaterialCoodeEdit.aspx
@@ -35,6 +35,11 @@
+
+
+
+
+
diff --git a/HJGL/FineUIPro.Web/WeldingProcess/WeldingManage/MaterialCoodeEdit.aspx.cs b/HJGL/FineUIPro.Web/WeldingProcess/WeldingManage/MaterialCoodeEdit.aspx.cs
index 9540105..6eb3df3 100644
--- a/HJGL/FineUIPro.Web/WeldingProcess/WeldingManage/MaterialCoodeEdit.aspx.cs
+++ b/HJGL/FineUIPro.Web/WeldingProcess/WeldingManage/MaterialCoodeEdit.aspx.cs
@@ -1,4 +1,5 @@
using BLL;
+using Microsoft.ReportingServices.ReportProcessing.ReportObjectModel;
using System;
using System.Linq;
@@ -52,6 +53,14 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage
{
txtAmount.Text = Material.Amount.Value.ToString();
}
+ if (Material.IsUse.HasValue)
+ {
+ this.cbIsUse.Checked = Material.IsUse.Value;
+ }
+ else
+ {
+ this.cbIsUse.Checked=false;
+ }
}
}
}
@@ -78,6 +87,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage
ProjectId = this.CurrUser.LoginProjectId,
Coode = this.txtCoode.Text.Trim(),
HeartNo = this.txtHeartNo.Text.Trim(),
+ IsUse = this.cbIsUse.Checked,
};
if (this.txtAmount.Text != "")
{
diff --git a/HJGL/FineUIPro.Web/WeldingProcess/WeldingManage/MaterialCoodeEdit.aspx.designer.cs b/HJGL/FineUIPro.Web/WeldingProcess/WeldingManage/MaterialCoodeEdit.aspx.designer.cs
index e0fd6e4..7603872 100644
--- a/HJGL/FineUIPro.Web/WeldingProcess/WeldingManage/MaterialCoodeEdit.aspx.designer.cs
+++ b/HJGL/FineUIPro.Web/WeldingProcess/WeldingManage/MaterialCoodeEdit.aspx.designer.cs
@@ -68,6 +68,15 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage
///
protected global::FineUIPro.NumberBox txtAmount;
+ ///
+ /// cbIsUse 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.CheckBox cbIsUse;
+
///
/// Toolbar1 控件。
///
diff --git a/HJGL/FineUIPro.Web/WeldingProcess/WeldingManage/WeldReport.aspx.cs b/HJGL/FineUIPro.Web/WeldingProcess/WeldingManage/WeldReport.aspx.cs
index 7befe34..6a45af2 100644
--- a/HJGL/FineUIPro.Web/WeldingProcess/WeldingManage/WeldReport.aspx.cs
+++ b/HJGL/FineUIPro.Web/WeldingProcess/WeldingManage/WeldReport.aspx.cs
@@ -1020,40 +1020,26 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage
}
if (ds.Tables[0].Rows[i]["Coode1"] != null && !string.IsNullOrEmpty(ds.Tables[0].Rows[i]["Coode1"].ToString()))
{
- var cood = coodeList.FirstOrDefault(x => x.Coode == ds.Tables[0].Rows[i]["Coode1"].ToString());
- if (cood == null)
- {
- errorInfos += "Coode1:[" + ds.Tables[0].Rows[i]["Coode1"].ToString() + "]不存在;";
- }
- else
- {
- d.Coode1 = cood.Coode;
- }
- }
- else
- {
- errorInfos += (i + 2) + "行,Coode1不能为空!";
+ d.Coode1 = ds.Tables[0].Rows[i]["Coode1"].ToString();
}
+ //else
+ //{
+ // errorInfos += (i + 2) + "行,Coode1不能为空!";
+ //}
+
+
if (ds.Tables[0].Rows[i]["Coode2"] != null && !string.IsNullOrEmpty(ds.Tables[0].Rows[i]["Coode2"].ToString()))
{
- var cood = coodeList.FirstOrDefault(x => x.Coode == ds.Tables[0].Rows[i]["Coode2"].ToString());
- if (cood == null)
- {
- errorInfos += "Coode2:[" + ds.Tables[0].Rows[i]["Coode2"].ToString() + "]不存在;";
- }
- else
- {
- d.Coode1 = cood.Coode;
- }
- }
- else
- {
- errorInfos += (i + 2) + "行,Coode2不能为空!";
+ d.Coode1 = ds.Tables[0].Rows[i]["Coode2"].ToString();
}
+ //else
+ //{
+ // errorInfos += (i + 2) + "行,Coode2不能为空!";
+ //}
if (ds.Tables[0].Rows[i]["炉批号1"] != null && !string.IsNullOrEmpty(ds.Tables[0].Rows[i]["炉批号1"].ToString()))
{
- var cood = coodeList.FirstOrDefault(x => x.Coode == d.Coode1 && x.HeartNo == ds.Tables[0].Rows[i]["炉批号1"].ToString());
+ var cood = coodeList.FirstOrDefault(x =>x.IsUse==true && x.Coode == d.Coode1 && x.HeartNo == ds.Tables[0].Rows[i]["炉批号1"].ToString());
if (cood == null)
{
errorInfos += "炉批号1:[" + ds.Tables[0].Rows[i]["炉批号1"].ToString() + "]或对应的Coode1不存在;";
@@ -1063,14 +1049,14 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage
d.HeartNo1 = ds.Tables[0].Rows[i]["炉批号1"].ToString();
}
}
- else
- {
- errorInfos += (i + 2) + "行,炉批号1不能为空!";
- }
+ //else
+ //{
+ // errorInfos += (i + 2) + "行,炉批号1不能为空!";
+ //}
if (ds.Tables[0].Rows[i]["炉批号2"] != null && !string.IsNullOrEmpty(ds.Tables[0].Rows[i]["炉批号2"].ToString()))
{
- var cood = coodeList.FirstOrDefault(x => x.Coode == d.Coode2 && x.HeartNo == ds.Tables[0].Rows[i]["炉批号2"].ToString());
+ var cood = coodeList.FirstOrDefault(x => x.IsUse == true && x.Coode == d.Coode2 && x.HeartNo == ds.Tables[0].Rows[i]["炉批号2"].ToString());
if (cood == null)
{
errorInfos += "炉批号2:[" + ds.Tables[0].Rows[i]["炉批号2"].ToString() + "]或对应的Coode2不存在;";
@@ -1080,10 +1066,10 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage
d.HeartNo2 = ds.Tables[0].Rows[i]["炉批号2"].ToString();
}
}
- else
- {
- errorInfos += (i + 2) + "行,炉批号2不能为空!";
- }
+ //else
+ //{
+ // errorInfos += (i + 2) + "行,炉批号2不能为空!";
+ //}
//if (ds.Tables[0].Rows[i]["焊丝"] != null && !string.IsNullOrEmpty(ds.Tables[0].Rows[i]["焊丝"].ToString()))
//{
@@ -1166,6 +1152,39 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage
dayList.Add(d);
+ #region 判断WPS资质 暂不用
+ //if (!string.IsNullOrEmpty(errorInfos))
+ //{
+ // ShowNotify(errorInfos, MessageBoxIcon.Warning, 10000);
+ // return;
+ //}
+ //else
+ //{
+ // // 判断WPS资质 暂不用
+ // if (welderQueIsUse == true)
+ // {
+ // if (isExistFloor && isExistCell)
+ // {
+ // //bool canSave = false;
+ // var jot = BLL.Pipeline_WeldJointService.GetWeldJointByWeldJointId(jotId);
+ // var wps = BLL.WPQListServiceService.GetWPQById(jot.WPQId);
+ // if (wps != null)
+ // {
+ // if (wps.WelderIds.Contains(cellWelderId) && wps.WelderIds.Contains(floorWelderId))
+ // {
+
+ // }
+ // else
+ // {
+ // eventArg = eventArg + jot.WeldJointCode + ",";
+ // }
+ // }
+ // }
+ // }
+ //}
+ #endregion
+
+ #region 焊工合格项目资质判断
if (!string.IsNullOrEmpty(errorInfos))
{
ShowNotify(errorInfos, MessageBoxIcon.Warning, 10000);
@@ -1176,125 +1195,98 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage
// 判断资质
if (welderQueIsUse == true)
{
- if (isExistFloor && isExistCell)
+ if (!string.IsNullOrEmpty(jotId) && isExistFloor && isExistCell)
{
- //bool canSave = false;
+ bool canSave = false;
var jot = BLL.Pipeline_WeldJointService.GetWeldJointByWeldJointId(jotId);
- var wps = BLL.WPQListServiceService.GetWPQById(jot.WPQId);
- if (wps.WelderIds.Contains(cellWelderId) && wps.WelderIds.Contains(floorWelderId))
- {
+ var joty = BLL.Base_WeldTypeService.GetWeldTypeByWeldTypeId(jot.WeldTypeId);
+ string weldTypeGroup = joty.Flag;
+ string weldTypeCode = joty.WeldTypeCode;
+ string floorWelder = floorWelderId;
+ string cellWelder = cellWelderId;
+ //decimal? dia = jot.Dia;
+ //decimal? sch = jot.Thickness;
+ string weldingMethodCode = string.Empty;
+ var wm = BLL.Base_WeldingMethodService.GetWeldingMethodByWeldingMethodId(d.WeldingMethodId);
+ if (wm != null)
+ {
+ weldingMethodCode = wm.WeldingMethodCode;
}
+ string[] wmeCodes = weldingMethodCode.Split('+');
+
+ string location = string.Empty;
+ var loc = BLL.Base_WeldingLocationServie.GetWeldingLocationById(d.WeldingLocationId);
+ if (loc != null)
+ {
+ location = loc.WeldingLocationCode;
+ }
+
+ string ste = jot.Material1Id;
+
+ List floorWelderQualifys = (from x in Funs.DB.Welder_WelderQualify
+ where x.WelderId == floorWelder && x.WeldingMethodId != null
+ && x.WeldingLocationId != null && x.MaterialType != null
+ && x.WeldType != null
+ && x.ThicknessMax != null && x.SizesMin != null
+ select x).ToList();
+
+ List cellWelderQualifys = (from x in Funs.DB.Welder_WelderQualify
+ where x.WelderId == cellWelder && x.WeldingMethodId != null
+ && x.WeldingLocationId != null && x.MaterialType != null
+ && x.WeldType != null
+ && x.ThicknessMax != null && x.SizesMin != null
+ select x).ToList();
+
+ // 打底和盖面同一焊工
+ if (floorWelder == cellWelder)
+ {
+ if (floorWelderQualifys != null && floorWelderQualifys.Count() > 0)
+ {
+ if (wmeCodes.Count() <= 1) // 一种焊接方法
+ {
+ canSave = IsOK(floorWelderQualifys, wmeCodes[0], location, weldTypeGroup, ste, dia, sch);
+ }
+ else // 大于一种焊接方法,如氩电联焊
+ {
+ canSave = TwoWmeIsOK(floorWelderQualifys, cellWelderQualifys, wmeCodes[0], wmeCodes[1], location, weldTypeGroup, ste, dia, sch);
+ }
+ }
+ }
+ // 打底和盖面焊工不同
else
+ {
+ bool isok1 = false;
+ bool isok2 = false;
+
+ if (wmeCodes.Count() <= 1) // 一种焊接方法
+ {
+ if (floorWelderQualifys != null && floorWelderQualifys.Count() > 0)
+ {
+ isok1 = IsOK(floorWelderQualifys, wmeCodes[0], location, weldTypeGroup, ste, dia, sch);
+ }
+ if (cellWelderQualifys != null && cellWelderQualifys.Count() > 0)
+ {
+ isok2 = IsOK(cellWelderQualifys, wmeCodes[0], location, weldTypeGroup, ste, dia, sch);
+ }
+ if (isok1 && isok2)
+ {
+ canSave = true;
+ }
+ }
+ else
+ {
+ canSave = TwoWmeIsOK(floorWelderQualifys, cellWelderQualifys, wmeCodes[0], wmeCodes[1], location, weldTypeGroup, ste, dia, sch);
+ }
+ }
+
+ if (canSave == false)
{
eventArg = eventArg + jot.WeldJointCode + ",";
}
}
}
}
- #region 焊工资质判断 ,暂不用,改为和WPS的焊工判断
- //if (!string.IsNullOrEmpty(errorInfos))
- //{
- // ShowNotify(errorInfos, MessageBoxIcon.Warning, 10000);
- // return;
- //}
- //else
- //{
- // // 判断资质
- // if (welderQueIsUse == true)
- // {
- // if (isExistFloor && isExistCell)
- // {
- // bool canSave = false;
- // var jot = BLL.Pipeline_WeldJointService.GetWeldJointByWeldJointId(jotId);
- // var joty = BLL.Base_WeldTypeService.GetWeldTypeByWeldTypeId(jot.WeldTypeId);
- // string weldTypeGroup = joty.Flag;
- // string weldTypeCode = joty.WeldTypeCode;
- // string floorWelder = floorWelderId;
- // string cellWelder = cellWelderId;
- // //decimal? dia = jot.Dia;
- // //decimal? sch = jot.Thickness;
-
- // string weldingMethodCode = string.Empty;
- // var wm = BLL.Base_WeldingMethodService.GetWeldingMethodByWeldingMethodId(jot.WeldingMethodId);
- // if (wm != null)
- // {
- // weldingMethodCode = wm.WeldingMethodCode;
- // }
- // string[] wmeCodes = weldingMethodCode.Split('+');
-
- // string location = string.Empty;
- // var loc = BLL.Base_WeldingLocationServie.GetWeldingLocationById(jot.WeldingLocationId);
- // if (loc != null)
- // {
- // location = loc.WeldingLocationCode;
- // }
-
- // string ste = jot.Material1Id;
-
- // List floorWelderQualifys = (from x in Funs.DB.Welder_WelderQualify
- // where x.WelderId == floorWelder && x.WeldingMethodId != null
- // && x.WeldingLocationId != null && x.MaterialType != null
- // && x.WeldType != null
- // && x.ThicknessMax != null && x.SizesMin != null
- // select x).ToList();
-
- // List cellWelderQualifys = (from x in Funs.DB.Welder_WelderQualify
- // where x.WelderId == cellWelder && x.WeldingMethodId != null
- // && x.WeldingLocationId != null && x.MaterialType != null
- // && x.WeldType != null
- // && x.ThicknessMax != null && x.SizesMin != null
- // select x).ToList();
-
- // // 打底和盖面同一焊工
- // if (floorWelder == cellWelder)
- // {
- // if (floorWelderQualifys != null && floorWelderQualifys.Count() > 0)
- // {
- // if (wmeCodes.Count() <= 1) // 一种焊接方法
- // {
- // canSave = IsOK(floorWelderQualifys, wmeCodes[0], location, weldTypeGroup, ste, dia, sch);
- // }
- // else // 大于一种焊接方法,如氩电联焊
- // {
- // canSave = TwoWmeIsOK(floorWelderQualifys, cellWelderQualifys, wmeCodes[0], wmeCodes[1], location, weldTypeGroup, ste, dia, sch);
- // }
- // }
- // }
- // // 打底和盖面焊工不同
- // else
- // {
- // bool isok1 = false;
- // bool isok2 = false;
-
- // if (wmeCodes.Count() <= 1) // 一种焊接方法
- // {
- // if (floorWelderQualifys != null && floorWelderQualifys.Count() > 0)
- // {
- // isok1 = IsOK(floorWelderQualifys, wmeCodes[0], location, weldTypeGroup, ste, dia, sch);
- // }
- // if (cellWelderQualifys != null && cellWelderQualifys.Count() > 0)
- // {
- // isok2 = IsOK(cellWelderQualifys, wmeCodes[0], location, weldTypeGroup, ste, dia, sch);
- // }
- // if (isok1 && isok2)
- // {
- // canSave = true;
- // }
- // }
- // else
- // {
- // canSave = TwoWmeIsOK(floorWelderQualifys, cellWelderQualifys, wmeCodes[0], wmeCodes[1], location, weldTypeGroup, ste, dia, sch);
- // }
- // }
-
- // if (canSave == false)
- // {
- // eventArg = eventArg + jot.WeldJointCode + ",";
- // }
- // }
- // }
- //}
#endregion
}
diff --git a/HJGL/FineUIPro.Web/WeldingProcess/WeldingManage/WeldReportEdit.aspx b/HJGL/FineUIPro.Web/WeldingProcess/WeldingManage/WeldReportEdit.aspx
index 062f39f..5db557b 100644
--- a/HJGL/FineUIPro.Web/WeldingProcess/WeldingManage/WeldReportEdit.aspx
+++ b/HJGL/FineUIPro.Web/WeldingProcess/WeldingManage/WeldReportEdit.aspx
@@ -208,6 +208,7 @@
+
diff --git a/HJGL/FineUIPro.Web/WeldingProcess/WeldingManage/WeldReportEdit.aspx.cs b/HJGL/FineUIPro.Web/WeldingProcess/WeldingManage/WeldReportEdit.aspx.cs
index a3f5558..770096d 100644
--- a/HJGL/FineUIPro.Web/WeldingProcess/WeldingManage/WeldReportEdit.aspx.cs
+++ b/HJGL/FineUIPro.Web/WeldingProcess/WeldingManage/WeldReportEdit.aspx.cs
@@ -374,99 +374,98 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage
coodeNumError = coodeNumError + "请检查后再导入";
}
- #region 焊工资质判断,暂不用
- //// 焊工资质
- //foreach (var item in GetWeldingDailyItem)
- //{
- // bool canSave = false;
- // var jot = BLL.Pipeline_WeldJointService.GetWeldJointByWeldJointId(item.WeldJointId);
- // var joty = BLL.Base_WeldTypeService.GetWeldTypeByWeldTypeId(jot.WeldTypeId);
- // string weldTypeGroup = joty.Flag;
- // string weldTypeCode = joty.WeldTypeCode;
- // string floorWelder = item.BackingWelderId;
- // string cellWelder = item.CoverWelderId;
- // decimal? dia = item.Dia;
- // decimal? sch = item.Thickness;
- // //string wme = item.WeldingMethodCode;
- // //string wmeCode = string.Empty;
- // //var wm = BLL.HJGL_WeldingMethodService.GetWeldMethodByWMEID(item.WME_ID);
- // //if (wm != null)
- // //{
- // // wmeCode = wm.WME_Code;
- // //}
+ #region 焊工合格项目资质判断
+ foreach (var item in GetWeldingDailyItem)
+ {
+ bool canSave = false;
+ var jot = BLL.Pipeline_WeldJointService.GetWeldJointByWeldJointId(item.WeldJointId);
+ var joty = BLL.Base_WeldTypeService.GetWeldTypeByWeldTypeId(jot.WeldTypeId);
+ string weldTypeGroup = joty.Flag;
+ string weldTypeCode = joty.WeldTypeCode;
+ string floorWelder = item.BackingWelderId;
+ string cellWelder = item.CoverWelderId;
+ decimal? dia = item.Dia;
+ decimal? sch = item.Thickness;
+ //string wme = item.WeldingMethodCode;
+ //string wmeCode = string.Empty;
+ //var wm = BLL.HJGL_WeldingMethodService.GetWeldMethodByWMEID(item.WME_ID);
+ //if (wm != null)
+ //{
+ // wmeCode = wm.WME_Code;
+ //}
- // string[] wmeCodes = item.WeldingMethodCode.Split('+');
- // string location = item.WeldingLocationCode;
- // string ste = jot.Material1Id;
- // var projectWelder = BLL.Welder_ProjectWelderService.GetProjectWelderByProjectIdAndWelderId(this.ProjectId,item.BackingWelderId);
- // var projectUnit = BLL.Project_UnitService.GetProject_UnitByProjectIdUnitId(this.ProjectId,projectWelder.UnitId);
- // if (projectUnit != null && projectUnit.WelderQueIsUse == true)
- // {
- // List floorWelderQualifys = (from x in Funs.DB.Welder_WelderQualify
- // where x.WelderId == floorWelder && x.WeldingMethodId != null
- // && x.WeldingLocationId != null && x.MaterialType != null
- // && x.WeldType != null
- // && x.ThicknessMax != null && x.SizesMin != null
- // select x).ToList();
+ string[] wmeCodes = item.WeldingMethodCode.Split('+');
+ string location = item.WeldingLocationCode;
+ string ste = jot.Material1Id;
+ var projectWelder = BLL.Welder_ProjectWelderService.GetProjectWelderByProjectIdAndWelderId(this.ProjectId, item.BackingWelderId);
+ var projectUnit = BLL.Project_UnitService.GetProject_UnitByProjectIdUnitId(this.ProjectId, projectWelder.UnitId);
+ if (projectUnit != null && projectUnit.WelderQueIsUse == true)
+ {
+ List floorWelderQualifys = (from x in Funs.DB.Welder_WelderQualify
+ where x.WelderId == floorWelder && x.WeldingMethodId != null
+ && x.WeldingLocationId != null && x.MaterialType != null
+ && x.WeldType != null
+ && x.ThicknessMax != null && x.SizesMin != null
+ select x).ToList();
- // List cellWelderQualifys = (from x in Funs.DB.Welder_WelderQualify
- // where x.WelderId == cellWelder && x.WeldingMethodId != null
- // && x.WeldingLocationId != null && x.MaterialType != null
- // && x.WeldType != null
- // && x.ThicknessMax != null && x.SizesMin != null
- // select x).ToList();
- // // 打底和盖面同一焊工
- // if (floorWelder == cellWelder)
- // {
- // if (floorWelderQualifys != null && floorWelderQualifys.Count() > 0)
- // {
- // if (wmeCodes.Count() <= 1) // 一种焊接方法
- // {
- // canSave = IsOK(floorWelderQualifys, wmeCodes[0], location, weldTypeGroup, ste, dia, sch);
- // }
- // else // 大于一种焊接方法,如氩电联焊
- // {
- // canSave = TwoWmeIsOK(floorWelderQualifys, cellWelderQualifys, wmeCodes[0], wmeCodes[1], location, weldTypeGroup, ste, dia, sch);
- // }
- // }
- // }
- // // 打底和盖面焊工不同
- // else
- // {
- // bool isok1 = false;
- // bool isok2 = false;
+ List cellWelderQualifys = (from x in Funs.DB.Welder_WelderQualify
+ where x.WelderId == cellWelder && x.WeldingMethodId != null
+ && x.WeldingLocationId != null && x.MaterialType != null
+ && x.WeldType != null
+ && x.ThicknessMax != null && x.SizesMin != null
+ select x).ToList();
+ // 打底和盖面同一焊工
+ if (floorWelder == cellWelder)
+ {
+ if (floorWelderQualifys != null && floorWelderQualifys.Count() > 0)
+ {
+ if (wmeCodes.Count() <= 1) // 一种焊接方法
+ {
+ canSave = IsOK(floorWelderQualifys, wmeCodes[0], location, weldTypeGroup, ste, dia, sch);
+ }
+ else // 大于一种焊接方法,如氩电联焊
+ {
+ canSave = TwoWmeIsOK(floorWelderQualifys, cellWelderQualifys, wmeCodes[0], wmeCodes[1], location, weldTypeGroup, ste, dia, sch);
+ }
+ }
+ }
+ // 打底和盖面焊工不同
+ else
+ {
+ bool isok1 = false;
+ bool isok2 = false;
- // if (wmeCodes.Count() <= 1) // 一种焊接方法
- // {
- // if (floorWelderQualifys != null && floorWelderQualifys.Count() > 0)
- // {
- // isok1 = IsOK(floorWelderQualifys, wmeCodes[0], location, weldTypeGroup, ste, dia, sch);
- // }
- // if (cellWelderQualifys != null && cellWelderQualifys.Count() > 0)
- // {
- // isok2 = IsOK(cellWelderQualifys, wmeCodes[0], location, weldTypeGroup, ste, dia, sch);
- // }
- // if (isok1 && isok2)
- // {
- // canSave = true;
- // }
- // }
- // else
- // {
- // canSave = TwoWmeIsOK(floorWelderQualifys, cellWelderQualifys, wmeCodes[0], wmeCodes[1], location, weldTypeGroup, ste, dia, sch);
- // }
- // }
- // }
- // else
- // {
- // canSave = true;
- // }
+ if (wmeCodes.Count() <= 1) // 一种焊接方法
+ {
+ if (floorWelderQualifys != null && floorWelderQualifys.Count() > 0)
+ {
+ isok1 = IsOK(floorWelderQualifys, wmeCodes[0], location, weldTypeGroup, ste, dia, sch);
+ }
+ if (cellWelderQualifys != null && cellWelderQualifys.Count() > 0)
+ {
+ isok2 = IsOK(cellWelderQualifys, wmeCodes[0], location, weldTypeGroup, ste, dia, sch);
+ }
+ if (isok1 && isok2)
+ {
+ canSave = true;
+ }
+ }
+ else
+ {
+ canSave = TwoWmeIsOK(floorWelderQualifys, cellWelderQualifys, wmeCodes[0], wmeCodes[1], location, weldTypeGroup, ste, dia, sch);
+ }
+ }
+ }
+ else
+ {
+ canSave = true;
+ }
- // if (canSave == false)
- // {
- // eventArg = eventArg + jot.WeldJointCode + ",";
- // }
- //}
+ if (canSave == false)
+ {
+ eventArg = eventArg + jot.WeldJointCode + ",";
+ }
+ }
#endregion
#region 生成管线的随机数 不用了
diff --git a/HJGL/FineUIPro.Web/WeldingProcess/WeldingReport/JointComprehensive.aspx b/HJGL/FineUIPro.Web/WeldingProcess/WeldingReport/JointComprehensive.aspx
index 98da713..18e6abd 100644
--- a/HJGL/FineUIPro.Web/WeldingProcess/WeldingReport/JointComprehensive.aspx
+++ b/HJGL/FineUIPro.Web/WeldingProcess/WeldingReport/JointComprehensive.aspx
@@ -91,8 +91,8 @@
Width="80px">
-
diff --git a/HJGL/FineUIPro.Web/WeldingProcess/WeldingReport/JointComprehensive.aspx.cs b/HJGL/FineUIPro.Web/WeldingProcess/WeldingReport/JointComprehensive.aspx.cs
index c0323ca..aeef32c 100644
--- a/HJGL/FineUIPro.Web/WeldingProcess/WeldingReport/JointComprehensive.aspx.cs
+++ b/HJGL/FineUIPro.Web/WeldingProcess/WeldingReport/JointComprehensive.aspx.cs
@@ -248,7 +248,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingReport
reportModel.GetRow(rowIndex).GetCell(10).CellStyle = style;
//焊接位置
if (reportModel.GetRow(rowIndex).GetCell(11) == null) reportModel.GetRow(rowIndex).CreateCell(11);
- reportModel.GetRow(rowIndex).GetCell(11).SetCellValue(itemOver["WeldingLocationR"].ToString());
+ reportModel.GetRow(rowIndex).GetCell(11).SetCellValue(itemOver["WeldingLocationCode"].ToString());
reportModel.GetRow(rowIndex).GetCell(11).CellStyle = style;
//管径
if (reportModel.GetRow(rowIndex).GetCell(12) == null) reportModel.GetRow(rowIndex).CreateCell(12);
diff --git a/HJGL/FineUIPro.Web/WeldingProcess/WeldingReport/WeldDailyExport.aspx b/HJGL/FineUIPro.Web/WeldingProcess/WeldingReport/WeldDailyExport.aspx
index 1cbad25..d2443ed 100644
--- a/HJGL/FineUIPro.Web/WeldingProcess/WeldingReport/WeldDailyExport.aspx
+++ b/HJGL/FineUIPro.Web/WeldingProcess/WeldingReport/WeldDailyExport.aspx
@@ -79,8 +79,8 @@
DataField="WeldTypeCode" SortField="WeldTypeCode" FieldType="String" HeaderTextAlign="Center"
Width="120px">
-
diff --git a/HJGL/FineUIPro.Web/WeldingProcess/WeldingReport/WeldDailyExport.aspx.cs b/HJGL/FineUIPro.Web/WeldingProcess/WeldingReport/WeldDailyExport.aspx.cs
index 2e91f35..6837dc2 100644
--- a/HJGL/FineUIPro.Web/WeldingProcess/WeldingReport/WeldDailyExport.aspx.cs
+++ b/HJGL/FineUIPro.Web/WeldingProcess/WeldingReport/WeldDailyExport.aspx.cs
@@ -37,7 +37,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingReport
///
private DataTable GetDataTable()
{
- string strSql = @"SELECT weldJoint.WeldJointId,weldJoint.ProjectId,ins.InstallationCode,unit.UnitName,pipeline.PipelineCode,weldJoint.WeldingLocationR,
+ string strSql = @"SELECT weldJoint.WeldJointId,weldJoint.ProjectId,ins.InstallationCode,unit.UnitName,pipeline.PipelineCode,
(CASE WHEN weldJoint.PageNum IS NOT NULL AND weldJoint.PageNum<>'' THEN pipeline.SingleNumber+'-'+weldJoint.PageNum ELSE pipeline.SingleNumber END) AS SingleNumber,
pipeline.DrawingsNum,CONVERT(NVARCHAR(10),weldingDaily.WeldingDate,120) AS WeldingDate,rate.DetectionRateCode, weldJoint.WeldJointCode,
CAST(ISNULL(weldJoint.Size,0) AS REAL) AS Size,(CAST(ISNULL(weldJoint.Thickness,0) AS REAL)) AS Thickness,weldJoint.Specification,
@@ -283,7 +283,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingReport
//}
//焊接位置
if (reportModel.GetRow(rowIndex).GetCell(5) == null) reportModel.GetRow(rowIndex).CreateCell(5);
- reportModel.GetRow(rowIndex).GetCell(5).SetCellValue(itemOver["WeldingLocationR"].ToString());
+ reportModel.GetRow(rowIndex).GetCell(5).SetCellValue(itemOver["WeldingLocationCode"].ToString());
reportModel.GetRow(rowIndex).GetCell(5).CellStyle = style;
//寸径
if (reportModel.GetRow(rowIndex).GetCell(6) == null) reportModel.GetRow(rowIndex).CreateCell(6);
diff --git a/HJGL/Model/Model.cs b/HJGL/Model/Model.cs
index 64eb08e..69f8b12 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);
@@ -3540,6 +3544,8 @@ namespace Model
private System.Nullable _Amount;
+ private System.Nullable _IsUse;
+
#region 可扩展性方法定义
partial void OnLoaded();
partial void OnValidate(System.Data.Linq.ChangeAction action);
@@ -3554,6 +3560,8 @@ namespace Model
partial void OnHeartNoChanged();
partial void OnAmountChanging(System.Nullable value);
partial void OnAmountChanged();
+ partial void OnIsUseChanging(System.Nullable value);
+ partial void OnIsUseChanged();
#endregion
public Base_MaterialCoode()
@@ -3661,6 +3669,26 @@ namespace Model
}
}
+ [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsUse", DbType="Bit")]
+ public System.Nullable IsUse
+ {
+ get
+ {
+ return this._IsUse;
+ }
+ set
+ {
+ if ((this._IsUse != value))
+ {
+ this.OnIsUseChanging(value);
+ this.SendPropertyChanging();
+ this._IsUse = value;
+ this.SendPropertyChanged("IsUse");
+ this.OnIsUseChanged();
+ }
+ }
+ }
+
public event PropertyChangingEventHandler PropertyChanging;
public event PropertyChangedEventHandler PropertyChanged;
@@ -41282,10 +41310,6 @@ namespace Model
public partial class View_PTP_TestPackageAudit
{
- private string _PipelineId;
-
- private string _PT_PipeId;
-
private string _PTP_ID;
private string _ProjectId;
@@ -41294,59 +41318,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
@@ -41410,8 +41404,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
{
@@ -41426,8 +41452,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
{
@@ -41442,8 +41468,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
{
@@ -41474,18 +41500,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;
}
}
}
@@ -41506,22 +41532,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
{