20260418 热处理
This commit is contained in:
parent
01ba82ba06
commit
bf76ee4136
|
|
@ -0,0 +1,89 @@
|
|||
alter table HJGL_HotProessItem add PostHeatingDate datetime
|
||||
go
|
||||
|
||||
|
||||
ALTER PROC [dbo].[HJGL_sp_HeatTreatmentEstimateRecord]
|
||||
@projectId NVARCHAR(50) = NULL,
|
||||
@type NVARCHAR(50) = NULL
|
||||
AS
|
||||
/*管线综合分析*/
|
||||
SELECT
|
||||
isoinfo.ProjectId
|
||||
,isoinfo.ISO_ID
|
||||
,isoinfo.ISO_IsoNo
|
||||
,ndtRate.NDTR_Name --对接焊缝检测比例
|
||||
,ISNULL(total_jot.total_jot,0) AS total_jot --焊口总数量
|
||||
,ISNULL(total_bw1jot.total_bw1jot,0) AS total_bw1jot --对接焊口数量
|
||||
,ISNULL(total_hotjot.total_hotjot ,0) AS total_hotjot --预计热处理焊口数量
|
||||
,ISNULL(total_OKhotjot.total_OKhotjot ,0) AS total_OKhotjot --热处理合格焊口数量
|
||||
,ISNULL(total_Trusthotjot.total_Trusthotjot ,0) AS total_Trusthotjot --已委托热处理焊口数量
|
||||
,ISNULL(total_Inputhotjot.total_Inputhotjot ,0) AS total_Inputhotjot --已录入热处理焊口数量
|
||||
,ISNULL(total_hotjot.total_hotjot ,0)-ISNULL(total_OKhotjot.total_OKhotjot ,0) AS total_NotOKhotjot --热处理未合格焊口数量
|
||||
,CEILING(ISNULL(total_bw1jot.total_bw1jot,0)*ndtRate.NDTR_Rate/100.00) AS maybe_bw1jot
|
||||
--,CASE WHEN
|
||||
--CAST(total_jot.total_jot AS DECIMAL(9,2))*ndtRate.NDTR_Rate/100>CAST((ISNULL(total_jot.total_jot,0)*ndtRate.NDTR_Rate/100) AS INT)
|
||||
-- THEN CAST((ISNULL(total_jot.total_jot,0)*ndtRate.NDTR_Rate/100) AS INT)+1
|
||||
--ELSE CAST((ISNULL(total_jot.total_jot,0)*ndtRate.NDTR_Rate/100) AS INT) END
|
||||
-- AS maybe_bw1jot --预计检测接头数量比例
|
||||
,ISNULL(postHeating_jot.postHeating_jot,0) AS postHeating_jot --后热焊口数量
|
||||
FROM HJGL_PW_IsoInfo AS isoinfo
|
||||
--对接焊缝检测比例
|
||||
LEFT JOIN HJGL_BS_WeldControl AS weldControl ON weldControl.ISC_ID=isoinfo.ISC_ID AND weldControl.ExecStandardId=isoinfo.ISO_Executive
|
||||
LEFT JOIN HJGL_BS_NDTRate AS ndtRate ON ndtRate.NDTR_ID=weldControl.Joty_Rate
|
||||
----焊口总数量
|
||||
LEFT JOIN (SELECT COUNT(*) AS total_jot
|
||||
,HJGL_PW_JointInfo.ISO_ID
|
||||
FROM HJGL_PW_JointInfo
|
||||
GROUP BY HJGL_PW_JointInfo.ISO_ID) AS total_jot ON total_jot.ISO_ID =isoinfo.ISO_ID
|
||||
----对接焊口数量
|
||||
LEFT JOIN (SELECT COUNT(*) AS total_bw1jot
|
||||
,jointinfo.ISO_ID
|
||||
FROM HJGL_PW_JointInfo AS jointinfo
|
||||
WHERE jointinfo.JOTY_ID='1e2704c8-b088-4389-9adf-9d89ceffe85b'
|
||||
GROUP BY jointinfo.ISO_ID) AS total_bw1jot ON total_bw1jot.ISO_ID =isoinfo.ISO_ID
|
||||
--预计热处理焊口数量
|
||||
LEFT JOIN (SELECT COUNT(*) AS total_hotjot
|
||||
,jointinfo.ISO_ID
|
||||
FROM HJGL_PW_JointInfo AS jointinfo
|
||||
WHERE jointinfo.IS_Proess='1' and jointinfo.ProessTypes like '%'+@type+'%'
|
||||
GROUP BY jointinfo.ISO_ID) AS total_hotjot ON total_hotjot.ISO_ID =isoinfo.ISO_ID
|
||||
--热处理合格焊口数量
|
||||
LEFT JOIN (SELECT COUNT(*) AS total_OKhotjot
|
||||
,jointinfo.ISO_ID
|
||||
FROM HJGL_PW_JointInfo AS jointinfo
|
||||
WHERE jointinfo.IS_Proess='1' and jointinfo.ProessTypes like '%'+@type+'%'
|
||||
and ((select count(*) from HJGL_CH_HotProessResult r where r.JOT_ID=jointinfo.JOT_ID and r.ProessTypes=@type and r.IsOK=1)>0 or (select count(*) from HJGL_CH_HardTestResult r where r.JOT_ID=jointinfo.JOT_ID and r.IsOK=1)>0)
|
||||
GROUP BY jointinfo.ISO_ID) AS total_OKhotjot ON total_OKhotjot.ISO_ID =isoinfo.ISO_ID
|
||||
--已委托热处理焊口数量
|
||||
LEFT JOIN (SELECT COUNT(*) AS total_Trusthotjot
|
||||
,jointinfo.ISO_ID
|
||||
FROM HJGL_PW_JointInfo AS jointinfo
|
||||
WHERE jointinfo.IS_Proess='1' and jointinfo.ProessTypes like '%'+@type+'%'
|
||||
and (select count(*) from HJGL_CH_HotProessTrustItem r where r.JOT_ID=jointinfo.JOT_ID and r.ProessTypes=@type)>0
|
||||
GROUP BY jointinfo.ISO_ID) AS total_Trusthotjot ON total_Trusthotjot.ISO_ID =isoinfo.ISO_ID
|
||||
--已录入热处理焊口数量
|
||||
--LEFT JOIN (SELECT COUNT(*) AS total_Inputhotjot
|
||||
-- ,jointinfo.ISO_ID
|
||||
-- FROM HJGL_PW_JointInfo AS jointinfo
|
||||
-- WHERE jointinfo.IS_Proess='1' and jointinfo.ProessTypes like '%'+@type+'%'
|
||||
-- and (select count(*) from HJGL_HotProessItem r where r.JOT_ID=jointinfo.JOT_ID and r.ProessTypes=@type and r.RecordChartNo is not null and r.RecordChartNo!='')>0
|
||||
-- GROUP BY jointinfo.ISO_ID) AS total_Inputhotjot ON total_Inputhotjot.ISO_ID =isoinfo.ISO_ID
|
||||
LEFT JOIN (SELECT COUNT(*) AS total_Inputhotjot
|
||||
,jointinfo.ISO_ID
|
||||
FROM HJGL_HotProessItem AS r
|
||||
left join HJGL_PW_JointInfo jointinfo on jointinfo.JOT_ID = r.JOT_ID
|
||||
WHERE r.ProessTypes=@type --and r.RecordChartNo is not null and r.RecordChartNo!=''
|
||||
GROUP BY jointinfo.ISO_ID) AS total_Inputhotjot ON total_Inputhotjot.ISO_ID =isoinfo.ISO_ID
|
||||
|
||||
LEFT JOIN (SELECT COUNT(*) AS postHeating_jot
|
||||
,jointinfo.ISO_ID
|
||||
FROM HJGL_HotProessItem AS r
|
||||
left join HJGL_PW_JointInfo jointinfo on jointinfo.JOT_ID = r.JOT_ID
|
||||
WHERE r.ProessTypes=@type and r.PostHeatingDate is not null
|
||||
GROUP BY jointinfo.ISO_ID) AS postHeating_jot ON postHeating_jot.ISO_ID =isoinfo.ISO_ID
|
||||
|
||||
WHERE (isoinfo.ProjectId = @projectId OR @projectId IS NULL)
|
||||
ORDER BY isoinfo.ISO_IsoNo
|
||||
|
||||
|
||||
GO
|
||||
Binary file not shown.
|
|
@ -1,4 +1,4 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<UseIISExpress>true</UseIISExpress>
|
||||
|
|
|
|||
|
|
@ -159,6 +159,14 @@
|
|||
SortField="JOT_JointDesc" FieldType="String" HeaderTextAlign="Center" TextAlign="Left"
|
||||
Width="80px">
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="后热日期" ColumnID="PostHeatingDate" DataField="PostHeatingDate"
|
||||
SortField="PostHeatingDate" HeaderTextAlign="Center" TextAlign="Left" Width="100px"
|
||||
RendererArgument="yyyy-MM-dd" FieldType="Date" Renderer="Date">
|
||||
<Editor>
|
||||
<f:DatePicker ID="txtPostHeatingDate" runat="server" DateFormatString="yyyy-MM-dd">
|
||||
</f:DatePicker>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="测温点编号" ColumnID="PointCount" DataField="PointCount" SortField="PointCount"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="60px">
|
||||
<Editor>
|
||||
|
|
|
|||
|
|
@ -137,7 +137,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage
|
|||
left join dbo.HJGL_CH_HardTestReport re on item.HardTestReportId=re.HardTestReportId
|
||||
WHERE item.JOT_ID=HotProessItem.JOT_ID AND item.HotProessTrustId=HotProessItem.HotProessTrustId and (re.FileType='R' or re.FileType is null)))
|
||||
AS HardnessReportNo,
|
||||
HotProessItem.HotProessItemId,HotProessItem.SortIndex,HotProessItem.ProessTypes,JointInfo.JOT_JointDesc,isnull(HotProessItem.Remark,'') as Remark
|
||||
HotProessItem.HotProessItemId,HotProessItem.SortIndex,HotProessItem.ProessTypes,JointInfo.JOT_JointDesc,isnull(HotProessItem.Remark,'') as Remark,HotProessItem.PostHeatingDate
|
||||
FROM dbo.HJGL_HotProessItem AS HotProessItem
|
||||
LEFT JOIN dbo.HJGL_PW_JointInfo AS JointInfo ON JointInfo.JOT_ID = HotProessItem.JOT_ID
|
||||
LEFT JOIN dbo.HJGL_PW_IsoInfo AS IsoInfo ON JointInfo.ISO_ID = IsoInfo.ISO_ID
|
||||
|
|
@ -199,7 +199,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage
|
|||
left join dbo.HJGL_CH_HardTestReport re on item.HardTestReportId=re.HardTestReportId
|
||||
WHERE item.JOT_ID=HotProessItem.JOT_ID AND item.HotProessTrustId=HotProessItem.HotProessTrustId and (re.FileType='R' or re.FileType is null)))
|
||||
AS HardnessReportNo,
|
||||
HotProessItem.ProessTypes,JointInfo.JOT_JointDesc,isnull(HotProessItem.Remark,'') as Remark
|
||||
HotProessItem.ProessTypes,JointInfo.JOT_JointDesc,isnull(HotProessItem.Remark,'') as Remark,HotProessItem.PostHeatingDate
|
||||
FROM dbo.HJGL_HotProessItem AS HotProessItem
|
||||
LEFT JOIN dbo.HJGL_PW_JointInfo AS JointInfo ON JointInfo.JOT_ID = HotProessItem.JOT_ID
|
||||
LEFT JOIN dbo.HJGL_PW_IsoInfo AS IsoInfo ON JointInfo.ISO_ID = IsoInfo.ISO_ID
|
||||
|
|
@ -238,7 +238,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage
|
|||
// 2.获取当前分页数据
|
||||
//var table = this.GetPagedDataTable(Grid1, tb1);
|
||||
Grid1.RecordCount = tb.Rows.Count;
|
||||
tb = GetFilteredTable(Grid1.FilteredData, tb);
|
||||
//tb = GetFilteredTable(Grid1.FilteredData, tb);
|
||||
var table = this.GetPagedDataTable(Grid1, tb);
|
||||
Grid1.DataSource = table;
|
||||
Grid1.DataBind();
|
||||
|
|
@ -989,7 +989,8 @@ namespace FineUIPro.Web.HJGL.HotProessManage
|
|||
/// </summary>
|
||||
private void SaveData()
|
||||
{
|
||||
bool isEmpty = false;//是否为空
|
||||
bool isEmptyPostHeatingDate = false;//后热日期是否为空
|
||||
bool isEmpty = false;//热处理数据是否为空
|
||||
string isoidLog = string.Empty; //是否同一管线标记
|
||||
int i = 0; //检验数量
|
||||
int flag = 0; //打印标记
|
||||
|
|
@ -1139,13 +1140,21 @@ namespace FineUIPro.Web.HJGL.HotProessManage
|
|||
isEmpty = true;
|
||||
}
|
||||
newHotProessItem.Remark = values.Value<string>("Remark").ToString();
|
||||
if (!isEmpty)
|
||||
if (!string.IsNullOrEmpty(values.Value<string>("PostHeatingDate").ToString()))
|
||||
{
|
||||
newHotProessItem.PostHeatingDate = Funs.GetNewDateTime(values.Value<string>("PostHeatingDate").ToString());
|
||||
}
|
||||
else
|
||||
{
|
||||
isEmptyPostHeatingDate = true;
|
||||
}
|
||||
if (!isEmpty || !isEmptyPostHeatingDate)
|
||||
{
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
else
|
||||
{
|
||||
Alert.ShowInTop("测温点编号、热处理温度℃(要求)、热处理温度℃(实际)、恒温时间h(要求)、恒温时间h(实际)、热处理日期、记录曲线图编号、热电偶数量、加热范围、保温范围、保温厚度、热处理开始时间、热处理完成时间不能为空!", MessageBoxIcon.Warning);
|
||||
Alert.ShowInTop("后热日期或测温点编号、热处理温度℃(要求)、热处理温度℃(实际)、恒温时间h(要求)、恒温时间h(实际)、热处理日期、记录曲线图编号、热电偶数量、加热范围、保温范围、保温厚度、热处理开始时间、热处理完成时间不能为空!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
//}
|
||||
|
|
@ -1369,7 +1378,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage
|
|||
// oldHardTestReport2.TestCount = i;
|
||||
// BLL.HJGL_CH_HardTestReportService.UpdateCH_HardTestReport(oldHardTestReport2);
|
||||
//}
|
||||
if (!isEmpty)
|
||||
if (!isEmpty || !isEmptyPostHeatingDate)
|
||||
{
|
||||
ShowNotify("提交成功!", MessageBoxIcon.Success);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,11 +7,13 @@
|
|||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.HJGL.HotProessManage {
|
||||
|
||||
|
||||
public partial class HotProessManageEdit {
|
||||
|
||||
namespace FineUIPro.Web.HJGL.HotProessManage
|
||||
{
|
||||
|
||||
|
||||
public partial class HotProessManageEdit
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Head1 控件。
|
||||
/// </summary>
|
||||
|
|
@ -20,7 +22,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlHead Head1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// form1 控件。
|
||||
/// </summary>
|
||||
|
|
@ -29,7 +31,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// PageManager1 控件。
|
||||
/// </summary>
|
||||
|
|
@ -38,7 +40,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.PageManager PageManager1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Panel1 控件。
|
||||
/// </summary>
|
||||
|
|
@ -47,7 +49,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel Panel1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// panelLeftRegion 控件。
|
||||
/// </summary>
|
||||
|
|
@ -56,7 +58,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel panelLeftRegion;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar5 控件。
|
||||
/// </summary>
|
||||
|
|
@ -65,7 +67,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar5;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// drpProjectId 控件。
|
||||
/// </summary>
|
||||
|
|
@ -74,7 +76,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpProjectId;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// tvControlItem 控件。
|
||||
/// </summary>
|
||||
|
|
@ -83,7 +85,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Tree tvControlItem;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// panelCenterRegion 控件。
|
||||
/// </summary>
|
||||
|
|
@ -92,7 +94,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel panelCenterRegion;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar2 控件。
|
||||
/// </summary>
|
||||
|
|
@ -101,7 +103,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar2;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// hdHotProessId 控件。
|
||||
/// </summary>
|
||||
|
|
@ -110,7 +112,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.HiddenField hdHotProessId;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarFill1 控件。
|
||||
/// </summary>
|
||||
|
|
@ -119,7 +121,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarFill ToolbarFill1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// rblIsPrint 控件。
|
||||
/// </summary>
|
||||
|
|
@ -128,7 +130,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.RadioButtonList rblIsPrint;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnPrint 控件。
|
||||
/// </summary>
|
||||
|
|
@ -137,7 +139,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnPrint;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnPrintNew 控件。
|
||||
/// </summary>
|
||||
|
|
@ -146,7 +148,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnPrintNew;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnSave 控件。
|
||||
/// </summary>
|
||||
|
|
@ -155,7 +157,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnSave;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// SimpleForm1 控件。
|
||||
/// </summary>
|
||||
|
|
@ -164,7 +166,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form SimpleForm1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtHotProessNo 控件。
|
||||
/// </summary>
|
||||
|
|
@ -173,7 +175,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label txtHotProessNo;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtUnit 控件。
|
||||
/// </summary>
|
||||
|
|
@ -182,7 +184,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtUnit;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtProessMethod 控件。
|
||||
/// </summary>
|
||||
|
|
@ -191,7 +193,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtProessMethod;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtProessEquipment 控件。
|
||||
/// </summary>
|
||||
|
|
@ -200,7 +202,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtProessEquipment;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Grid1 控件。
|
||||
/// </summary>
|
||||
|
|
@ -209,7 +211,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid Grid1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar3 控件。
|
||||
/// </summary>
|
||||
|
|
@ -218,7 +220,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar3;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// drpIsoNo 控件。
|
||||
/// </summary>
|
||||
|
|
@ -227,7 +229,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpIsoNo;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtSearchNo 控件。
|
||||
/// </summary>
|
||||
|
|
@ -236,7 +238,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtSearchNo;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarFill2 控件。
|
||||
/// </summary>
|
||||
|
|
@ -245,7 +247,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarFill ToolbarFill2;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// hdItemsString 控件。
|
||||
/// </summary>
|
||||
|
|
@ -254,7 +256,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.HiddenField hdItemsString;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnImport 控件。
|
||||
/// </summary>
|
||||
|
|
@ -263,7 +265,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnImport;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnCopy 控件。
|
||||
/// </summary>
|
||||
|
|
@ -272,7 +274,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnCopy;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ckSelect 控件。
|
||||
/// </summary>
|
||||
|
|
@ -281,7 +283,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button ckSelect;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnOut 控件。
|
||||
/// </summary>
|
||||
|
|
@ -290,7 +292,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnOut;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// lbJOT_JointNo 控件。
|
||||
/// </summary>
|
||||
|
|
@ -299,7 +301,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lbJOT_JointNo;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Label8 控件。
|
||||
/// </summary>
|
||||
|
|
@ -308,7 +310,16 @@ namespace FineUIPro.Web.HJGL.HotProessManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label Label8;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtPostHeatingDate 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker txtPostHeatingDate;
|
||||
|
||||
/// <summary>
|
||||
/// nbPointCount 控件。
|
||||
/// </summary>
|
||||
|
|
@ -317,7 +328,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox nbPointCount;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtRequiredT 控件。
|
||||
/// </summary>
|
||||
|
|
@ -326,7 +337,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtRequiredT;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtActualT 控件。
|
||||
/// </summary>
|
||||
|
|
@ -335,7 +346,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtActualT;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtRequestTime 控件。
|
||||
/// </summary>
|
||||
|
|
@ -344,7 +355,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtRequestTime;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtActualTime 控件。
|
||||
/// </summary>
|
||||
|
|
@ -353,7 +364,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtActualTime;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtHotProessDate 控件。
|
||||
/// </summary>
|
||||
|
|
@ -362,7 +373,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker txtHotProessDate;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtRecordChartNo 控件。
|
||||
/// </summary>
|
||||
|
|
@ -371,7 +382,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtRecordChartNo;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtThermocouplesNum 控件。
|
||||
/// </summary>
|
||||
|
|
@ -380,7 +391,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtThermocouplesNum;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtHeatingRange 控件。
|
||||
/// </summary>
|
||||
|
|
@ -389,7 +400,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtHeatingRange;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtInsulationRange 控件。
|
||||
/// </summary>
|
||||
|
|
@ -398,7 +409,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtInsulationRange;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtInsulationThickness 控件。
|
||||
/// </summary>
|
||||
|
|
@ -407,7 +418,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtInsulationThickness;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtHotStartDate 控件。
|
||||
/// </summary>
|
||||
|
|
@ -416,7 +427,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker txtHotStartDate;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtHotEndDate 控件。
|
||||
/// </summary>
|
||||
|
|
@ -425,7 +436,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker txtHotEndDate;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtRemark 控件。
|
||||
/// </summary>
|
||||
|
|
@ -434,7 +445,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtRemark;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Label1 控件。
|
||||
/// </summary>
|
||||
|
|
@ -443,7 +454,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label Label1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarSeparator1 控件。
|
||||
/// </summary>
|
||||
|
|
@ -452,7 +463,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarText1 控件。
|
||||
/// </summary>
|
||||
|
|
@ -461,7 +472,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarText ToolbarText1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ddlPageSize 控件。
|
||||
/// </summary>
|
||||
|
|
@ -470,7 +481,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList ddlPageSize;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Window1 控件。
|
||||
/// </summary>
|
||||
|
|
@ -479,7 +490,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window Window1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Window5 控件。
|
||||
/// </summary>
|
||||
|
|
@ -488,7 +499,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window Window5;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Window2 控件。
|
||||
/// </summary>
|
||||
|
|
@ -497,7 +508,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window Window2;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Window4 控件。
|
||||
/// </summary>
|
||||
|
|
@ -506,7 +517,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window Window4;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Window3 控件。
|
||||
/// </summary>
|
||||
|
|
@ -515,7 +526,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window Window3;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Window6 控件。
|
||||
/// </summary>
|
||||
|
|
@ -524,7 +535,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window Window6;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Menu1 控件。
|
||||
/// </summary>
|
||||
|
|
@ -533,7 +544,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Menu Menu1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnAdd 控件。
|
||||
/// </summary>
|
||||
|
|
@ -542,7 +553,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.MenuButton btnAdd;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnDelete 控件。
|
||||
/// </summary>
|
||||
|
|
|
|||
|
|
@ -80,6 +80,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage
|
|||
|
||||
protected void btnAudit_Click(object sender, EventArgs e)
|
||||
{
|
||||
bool isEmptyPostHeatingDate = false;
|
||||
string message = string.Empty;
|
||||
errorInfos = string.Empty;
|
||||
try
|
||||
|
|
@ -178,14 +179,33 @@ namespace FineUIPro.Web.HJGL.HotProessManage
|
|||
{
|
||||
errorInfos += (i + 2) + "行, [施工号、管线号和焊口号] 不能为空|";
|
||||
}
|
||||
|
||||
if (ds.Tables[0].Rows[i]["测温点编号"] != null && !string.IsNullOrEmpty(ds.Tables[0].Rows[i]["测温点编号"].ToString()))
|
||||
if(ds.Tables[0].Rows[i]["后热日期"] != null && !string.IsNullOrEmpty(ds.Tables[0].Rows[i]["后热日期"].ToString()))
|
||||
{
|
||||
|
||||
try
|
||||
{
|
||||
DateTime date = Convert.ToDateTime(ds.Tables[0].Rows[i]["后热日期"].ToString());
|
||||
isEmptyPostHeatingDate = true;
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
errorInfos += (i + 2) + "行, [热处理开始时间] 必须为日期型|";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
errorInfos += (i + 2) + "行, [测温点编号] 不能为空|";
|
||||
isEmptyPostHeatingDate = false;
|
||||
errorInfos += (i + 2) + "行, [后热日期]或热处理数据,不能为空|";
|
||||
}
|
||||
if (ds.Tables[0].Rows[i]["测温点编号"] != null && !string.IsNullOrEmpty(ds.Tables[0].Rows[i]["测温点编号"].ToString()))
|
||||
{
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
if (isEmptyPostHeatingDate == false)
|
||||
{
|
||||
errorInfos += (i + 2) + "行, [测温点编号] 不能为空|";
|
||||
}
|
||||
}
|
||||
|
||||
if (ds.Tables[0].Rows[i]["热处理温度℃(要求)"] != null && !string.IsNullOrEmpty(ds.Tables[0].Rows[i]["热处理温度℃(要求)"].ToString()))
|
||||
|
|
@ -193,7 +213,10 @@ namespace FineUIPro.Web.HJGL.HotProessManage
|
|||
}
|
||||
else
|
||||
{
|
||||
errorInfos += (i + 2) + "行, [热处理温度℃(要求)] 不能为空|";
|
||||
if (isEmptyPostHeatingDate == false)
|
||||
{
|
||||
errorInfos += (i + 2) + "行, [热处理温度℃(要求)] 不能为空|";
|
||||
}
|
||||
}
|
||||
|
||||
if (ds.Tables[0].Rows[i]["热处理温度℃(实际)"] != null && !string.IsNullOrEmpty(ds.Tables[0].Rows[i]["热处理温度℃(实际)"].ToString()))
|
||||
|
|
@ -201,7 +224,10 @@ namespace FineUIPro.Web.HJGL.HotProessManage
|
|||
}
|
||||
else
|
||||
{
|
||||
errorInfos += (i + 2) + "行, [热处理温度℃(实际)] 不能为空|";
|
||||
if (isEmptyPostHeatingDate == false)
|
||||
{
|
||||
errorInfos += (i + 2) + "行, [热处理温度℃(实际)] 不能为空|";
|
||||
}
|
||||
}
|
||||
|
||||
if (ds.Tables[0].Rows[i]["恒温时间h(要求)"] != null && !string.IsNullOrEmpty(ds.Tables[0].Rows[i]["恒温时间h(要求)"].ToString()))
|
||||
|
|
@ -209,7 +235,10 @@ namespace FineUIPro.Web.HJGL.HotProessManage
|
|||
}
|
||||
else
|
||||
{
|
||||
errorInfos += (i + 2) + "行, [恒温时间h(要求)] 不能为空|";
|
||||
if (isEmptyPostHeatingDate == false)
|
||||
{
|
||||
errorInfos += (i + 2) + "行, [恒温时间h(要求)] 不能为空|";
|
||||
}
|
||||
}
|
||||
|
||||
if (ds.Tables[0].Rows[i]["恒温时间h(实际)"] != null && !string.IsNullOrEmpty(ds.Tables[0].Rows[i]["恒温时间h(实际)"].ToString()))
|
||||
|
|
@ -217,7 +246,10 @@ namespace FineUIPro.Web.HJGL.HotProessManage
|
|||
}
|
||||
else
|
||||
{
|
||||
errorInfos += (i + 2) + "行, [恒温时间h(实际)] 不能为空|";
|
||||
if (isEmptyPostHeatingDate == false)
|
||||
{
|
||||
errorInfos += (i + 2) + "行, [恒温时间h(实际)] 不能为空|";
|
||||
}
|
||||
}
|
||||
|
||||
if (ds.Tables[0].Rows[i]["热处理日期"] != null && !string.IsNullOrEmpty(ds.Tables[0].Rows[i]["热处理日期"].ToString()))
|
||||
|
|
@ -228,12 +260,15 @@ namespace FineUIPro.Web.HJGL.HotProessManage
|
|||
}
|
||||
catch (Exception)
|
||||
{
|
||||
errorInfos += (i + 2) + "行, [热处理日期] 必须为日期型|";
|
||||
errorInfos += (i + 2) + "行, [热处理日期] 必须为日期型|";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
errorInfos += (i + 2) + "行, [热处理日期] 不能为空|";
|
||||
if (isEmptyPostHeatingDate == false)
|
||||
{
|
||||
errorInfos += (i + 2) + "行, [热处理日期] 不能为空|";
|
||||
}
|
||||
}
|
||||
|
||||
if (ds.Tables[0].Rows[i]["记录曲线图编号"] != null && !string.IsNullOrEmpty(ds.Tables[0].Rows[i]["记录曲线图编号"].ToString()))
|
||||
|
|
@ -241,7 +276,10 @@ namespace FineUIPro.Web.HJGL.HotProessManage
|
|||
}
|
||||
else
|
||||
{
|
||||
errorInfos += (i + 2) + "行, [记录曲线图编号] 不能为空|";
|
||||
if (isEmptyPostHeatingDate == false)
|
||||
{
|
||||
errorInfos += (i + 2) + "行, [记录曲线图编号] 不能为空|";
|
||||
}
|
||||
}
|
||||
|
||||
if (ds.Tables[0].Rows[i]["热电偶数量/个"] != null && !string.IsNullOrEmpty(ds.Tables[0].Rows[i]["热电偶数量/个"].ToString()))
|
||||
|
|
@ -249,7 +287,10 @@ namespace FineUIPro.Web.HJGL.HotProessManage
|
|||
}
|
||||
else
|
||||
{
|
||||
errorInfos += (i + 2) + "行, [热电偶数量/个] 不能为空|";
|
||||
if (isEmptyPostHeatingDate == false)
|
||||
{
|
||||
errorInfos += (i + 2) + "行, [热电偶数量/个] 不能为空|";
|
||||
}
|
||||
}
|
||||
|
||||
if (ds.Tables[0].Rows[i]["加热范围/mm"] != null && !string.IsNullOrEmpty(ds.Tables[0].Rows[i]["加热范围/mm"].ToString()))
|
||||
|
|
@ -257,7 +298,10 @@ namespace FineUIPro.Web.HJGL.HotProessManage
|
|||
}
|
||||
else
|
||||
{
|
||||
errorInfos += (i + 2) + "行, [加热范围/mm] 不能为空|";
|
||||
if (isEmptyPostHeatingDate == false)
|
||||
{
|
||||
errorInfos += (i + 2) + "行, [加热范围/mm] 不能为空|";
|
||||
}
|
||||
}
|
||||
|
||||
if (ds.Tables[0].Rows[i]["保温范围/mm"] != null && !string.IsNullOrEmpty(ds.Tables[0].Rows[i]["保温范围/mm"].ToString()))
|
||||
|
|
@ -265,7 +309,10 @@ namespace FineUIPro.Web.HJGL.HotProessManage
|
|||
}
|
||||
else
|
||||
{
|
||||
errorInfos += (i + 2) + "行, [保温范围/mm] 不能为空|";
|
||||
if (isEmptyPostHeatingDate == false)
|
||||
{
|
||||
errorInfos += (i + 2) + "行, [保温范围/mm] 不能为空|";
|
||||
}
|
||||
}
|
||||
|
||||
if (ds.Tables[0].Rows[i]["保温厚度/mm"] != null && !string.IsNullOrEmpty(ds.Tables[0].Rows[i]["保温厚度/mm"].ToString()))
|
||||
|
|
@ -273,7 +320,10 @@ namespace FineUIPro.Web.HJGL.HotProessManage
|
|||
}
|
||||
else
|
||||
{
|
||||
errorInfos += (i + 2) + "行, [保温厚度/mm] 不能为空|";
|
||||
if (isEmptyPostHeatingDate == false)
|
||||
{
|
||||
errorInfos += (i + 2) + "行, [保温厚度/mm] 不能为空|";
|
||||
}
|
||||
}
|
||||
|
||||
if (ds.Tables[0].Rows[i]["热处理开始时间"] != null && !string.IsNullOrEmpty(ds.Tables[0].Rows[i]["热处理开始时间"].ToString()))
|
||||
|
|
@ -290,7 +340,10 @@ namespace FineUIPro.Web.HJGL.HotProessManage
|
|||
}
|
||||
else
|
||||
{
|
||||
errorInfos += (i + 2) + "行, [热处理开始时间] 不能为空|";
|
||||
if (isEmptyPostHeatingDate == false)
|
||||
{
|
||||
errorInfos += (i + 2) + "行, [热处理开始时间] 不能为空|";
|
||||
}
|
||||
}
|
||||
|
||||
if (ds.Tables[0].Rows[i]["热处理完成时间"] != null && !string.IsNullOrEmpty(ds.Tables[0].Rows[i]["热处理完成时间"].ToString()))
|
||||
|
|
@ -307,7 +360,10 @@ namespace FineUIPro.Web.HJGL.HotProessManage
|
|||
}
|
||||
else
|
||||
{
|
||||
errorInfos += (i + 2) + "行, [热处理完成时间] 不能为空|";
|
||||
if (isEmptyPostHeatingDate == false)
|
||||
{
|
||||
errorInfos += (i + 2) + "行, [热处理完成时间] 不能为空|";
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
|
|
@ -334,6 +390,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage
|
|||
}
|
||||
else
|
||||
{
|
||||
isEmptyPostHeatingDate = false;
|
||||
errorInfos = string.Empty;
|
||||
ShowNotify("数据审核成功!请点击导入数据!", MessageBoxIcon.Success);
|
||||
}
|
||||
|
|
@ -447,6 +504,7 @@ namespace FineUIPro.Web.HJGL.HotProessManage
|
|||
newItem.HotProessTrustId = item.HotProessTrustId;
|
||||
newItem.ProessTypes = item.ProessTypes;
|
||||
newItem.SortIndex = item.SortIndex;
|
||||
newItem.PostHeatingDate = Funs.GetNewDateTime(ds.Tables[0].Rows[i]["后热日期"].ToString());
|
||||
newItem.PointCount = ds.Tables[0].Rows[i]["测温点编号"].ToString();
|
||||
newItem.RequiredT = ds.Tables[0].Rows[i]["热处理温度℃(要求)"].ToString();
|
||||
newItem.ActualT = ds.Tables[0].Rows[i]["热处理温度℃(实际)"].ToString();
|
||||
|
|
@ -545,19 +603,19 @@ namespace FineUIPro.Web.HJGL.HotProessManage
|
|||
int a = anchor.Row1;
|
||||
int b = anchor.Col1;
|
||||
string jotId = dic[a];
|
||||
if (b == 16)
|
||||
if (b == 17)
|
||||
{
|
||||
jotId += "1";
|
||||
}
|
||||
else if (b == 17)
|
||||
else if (b == 18)
|
||||
{
|
||||
jotId += "2";
|
||||
}
|
||||
else if (b == 18)
|
||||
else if (b == 19)
|
||||
{
|
||||
jotId += "3";
|
||||
}
|
||||
else if (b == 19)
|
||||
else if (b == 20)
|
||||
{
|
||||
jotId += "4";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1339,26 +1339,50 @@ namespace FineUIPro.Web.HJGL.WeldingManage
|
|||
{
|
||||
var joint = BLL.HJGL_PW_JointInfoService.GetJointInfoByJotID(d.JOT_ID);
|
||||
if (joint.IS_Proess == "1") //需要热处理
|
||||
{
|
||||
{
|
||||
if (joint.HotProessResultOK == false || joint.HotProessResultOK == null)
|
||||
{
|
||||
EventArg = EventArg + "焊口" + joint.JOT_JointNo + "热处理未合格,";
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!string.IsNullOrEmpty(joint.STE_ID))
|
||||
var material = BLL.HJGL_MaterialService.GetSteelBySteID(joint.STE_ID);
|
||||
if (material.IsCracking == true)
|
||||
{
|
||||
//材质有延迟裂纹倾向,热处理合格未满24小时提醒
|
||||
var material = BLL.HJGL_MaterialService.GetSteelBySteID(joint.STE_ID);
|
||||
if (material.IsCracking == true && (DateTime.Now - joint.HotResultDate.Value).Days < 1)
|
||||
var hotProessItem = (from x in Funs.DB.HJGL_HotProessItem where x.JOT_ID == joint.JOT_ID select x).FirstOrDefault();
|
||||
if (hotProessItem != null)
|
||||
{
|
||||
EventArg = EventArg + "焊口" + joint.JOT_JointNo + "热处理合格未满24小时,";
|
||||
if (hotProessItem.PostHeatingDate.HasValue || (!string.IsNullOrEmpty(hotProessItem.PointCount)
|
||||
&& !string.IsNullOrEmpty(hotProessItem.RequiredT) && !string.IsNullOrEmpty(hotProessItem.ActualT)
|
||||
&& !string.IsNullOrEmpty(hotProessItem.RequestTime) && !string.IsNullOrEmpty(hotProessItem.ActualTime)
|
||||
&& hotProessItem.HotProessDate.HasValue && !string.IsNullOrEmpty(hotProessItem.RecordChartNo)
|
||||
&& !string.IsNullOrEmpty(hotProessItem.ThermocouplesNum) && !string.IsNullOrEmpty(hotProessItem.HeatingRange)
|
||||
&& !string.IsNullOrEmpty(hotProessItem.InsulationRange) && !string.IsNullOrEmpty(hotProessItem.InsulationThickness)
|
||||
&& hotProessItem.HotStartDate.HasValue && hotProessItem.HotEndDate.HasValue))
|
||||
{
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
EventArg = EventArg + "焊口" + joint.JOT_JointNo + "后热日期未填写或热处理数据未录入,请录入数据后进行委托,";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//if (!string.IsNullOrEmpty(joint.STE_ID))
|
||||
//{
|
||||
// //材质有延迟裂纹倾向,热处理合格未满24小时提醒
|
||||
// var material = BLL.HJGL_MaterialService.GetSteelBySteID(joint.STE_ID);
|
||||
// if (material.IsCracking == true && (DateTime.Now - joint.HotResultDate.Value).Days < 1)
|
||||
// {
|
||||
// EventArg = EventArg + "焊口" + joint.JOT_JointNo + "热处理合格未满24小时,";
|
||||
// }
|
||||
//}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (EventArg != string.Empty)
|
||||
{
|
||||
EventArg = EventArg.Substring(0, EventArg.Length - 1);
|
||||
|
|
@ -1539,15 +1563,38 @@ namespace FineUIPro.Web.HJGL.WeldingManage
|
|||
}
|
||||
else
|
||||
{
|
||||
if (!string.IsNullOrEmpty(joint.STE_ID))
|
||||
var material = BLL.HJGL_MaterialService.GetSteelBySteID(joint.STE_ID);
|
||||
if (material.IsCracking == true)
|
||||
{
|
||||
//材质有延迟裂纹倾向,热处理合格未满24小时提醒
|
||||
var material = BLL.HJGL_MaterialService.GetSteelBySteID(joint.STE_ID);
|
||||
if (material.IsCracking == true && (DateTime.Now - joint.HotResultDate.Value).Days < 1)
|
||||
var hotProessItem = (from x in Funs.DB.HJGL_HotProessItem where x.JOT_ID == joint.JOT_ID select x).FirstOrDefault();
|
||||
if (hotProessItem != null)
|
||||
{
|
||||
EventArg = EventArg + "焊口" + joint.JOT_JointNo + "热处理合格未满24小时,";
|
||||
if (hotProessItem.PostHeatingDate.HasValue || (!string.IsNullOrEmpty(hotProessItem.PointCount)
|
||||
&& !string.IsNullOrEmpty(hotProessItem.RequiredT) && !string.IsNullOrEmpty(hotProessItem.ActualT)
|
||||
&& !string.IsNullOrEmpty(hotProessItem.RequestTime) && !string.IsNullOrEmpty(hotProessItem.ActualTime)
|
||||
&& hotProessItem.HotProessDate.HasValue && !string.IsNullOrEmpty(hotProessItem.RecordChartNo)
|
||||
&& !string.IsNullOrEmpty(hotProessItem.ThermocouplesNum) && !string.IsNullOrEmpty(hotProessItem.HeatingRange)
|
||||
&& !string.IsNullOrEmpty(hotProessItem.InsulationRange) && !string.IsNullOrEmpty(hotProessItem.InsulationThickness)
|
||||
&& hotProessItem.HotStartDate.HasValue && hotProessItem.HotEndDate.HasValue))
|
||||
{
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
EventArg = EventArg + "焊口" + joint.JOT_JointNo + "后热日期未填写或热处理数据未录入,请录入数据后进行委托,";
|
||||
}
|
||||
}
|
||||
}
|
||||
//if (!string.IsNullOrEmpty(joint.STE_ID))
|
||||
//{
|
||||
// //材质有延迟裂纹倾向,热处理合格未满24小时提醒
|
||||
// var material = BLL.HJGL_MaterialService.GetSteelBySteID(joint.STE_ID);
|
||||
// if (material.IsCracking == true && (DateTime.Now - joint.HotResultDate.Value).Days < 1)
|
||||
// {
|
||||
// EventArg = EventArg + "焊口" + joint.JOT_JointNo + "热处理合格未满24小时,";
|
||||
// }
|
||||
//}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -77,22 +77,25 @@
|
|||
FieldType="String" HeaderTextAlign="Center" TextAlign="Center" Width="180px">
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="焊口总数量" ColumnID="total_jot" DataField="total_jot" SortField="total_jot"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Center" Width="130px">
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Center" Width="120px">
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="对接焊口数量" ColumnID="total_bw1jot" DataField="total_bw1jot" SortField="total_bw1jot"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Center" Width="140px">
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Center" Width="130px">
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="热处理焊口总数量" ColumnID="total_hotjot" DataField="total_hotjot" SortField="total_hotjot"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Center" Width="180px">
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Center" Width="150px">
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="已委托热处理焊口数量" ColumnID="total_Trusthotjot" DataField="total_Trusthotjot" SortField="total_Trusthotjot"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Center" Width="180px">
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Center" Width="160px">
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="后热焊口数量" ColumnID="postHeating_jot" DataField="postHeating_jot" SortField="postHeating_jot"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Center" Width="120px">
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="已录入热处理焊口数量" ColumnID="total_Inputhotjot" DataField="total_Inputhotjot" SortField="total_Inputhotjot"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Center" Width="180px">
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Center" Width="160px">
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="热处理合格焊口数量" ColumnID="total_OKhotjot" DataField="total_OKhotjot" SortField="total_OKhotjot"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Center" Width="180px">
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Center" Width="160px">
|
||||
</f:RenderField>
|
||||
<f:RenderField HeaderText="热处理尚未合格焊口数量" ColumnID="total_NotOKhotjot" DataField="total_NotOKhotjot" SortField="total_NotOKhotjot"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Center" Width="180px">
|
||||
|
|
|
|||
|
|
@ -52,6 +52,7 @@ namespace FineUIPro.Web.HJGL.WeldingReport
|
|||
int total_Trusthotjot = 0;
|
||||
int total_Inputhotjot = 0;
|
||||
int total_NotOKhotjot = 0;
|
||||
int postHeating_jot = 0;
|
||||
//int maybe_bw1jot = 0;
|
||||
foreach (DataRow row in tb.Rows)
|
||||
{
|
||||
|
|
@ -63,6 +64,7 @@ namespace FineUIPro.Web.HJGL.WeldingReport
|
|||
total_Trusthotjot += Convert.ToInt32(row["total_Trusthotjot"]);
|
||||
total_Inputhotjot += Convert.ToInt32(row["total_Inputhotjot"]);
|
||||
total_NotOKhotjot += Convert.ToInt32(row["total_NotOKhotjot"]);
|
||||
postHeating_jot += Convert.ToInt32(row["postHeating_jot"]);
|
||||
}
|
||||
|
||||
JObject summary = new JObject();
|
||||
|
|
@ -75,7 +77,7 @@ namespace FineUIPro.Web.HJGL.WeldingReport
|
|||
summary.Add("total_Trusthotjot", total_Trusthotjot);
|
||||
summary.Add("total_Inputhotjot", total_Inputhotjot);
|
||||
summary.Add("total_NotOKhotjot", total_NotOKhotjot);
|
||||
//summary.Add("maybe_bw1jot", maybe_bw1jot);
|
||||
summary.Add("postHeating_jot", postHeating_jot);
|
||||
|
||||
Grid1.SummaryData = summary;
|
||||
}
|
||||
|
|
@ -233,6 +235,7 @@ namespace FineUIPro.Web.HJGL.WeldingReport
|
|||
sb.AppendFormat("<td>{0}</td>", this.Grid1.SummaryData.GetValue("total_bw1jot").ToString());
|
||||
sb.AppendFormat("<td>{0}</td>", this.Grid1.SummaryData.GetValue("total_hotjot").ToString());
|
||||
sb.AppendFormat("<td>{0}</td>", this.Grid1.SummaryData.GetValue("total_Trusthotjot").ToString());
|
||||
sb.AppendFormat("<td>{0}</td>", this.Grid1.SummaryData.GetValue("postHeating_jot").ToString());
|
||||
sb.AppendFormat("<td>{0}</td>", this.Grid1.SummaryData.GetValue("total_Inputhotjot").ToString());
|
||||
sb.AppendFormat("<td>{0}</td>", this.Grid1.SummaryData.GetValue("total_OKhotjot").ToString());
|
||||
sb.AppendFormat("<td>{0}</td>", this.Grid1.SummaryData.GetValue("total_NotOKhotjot").ToString());
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
<FineUIPro DebugMode="false" Theme="Cupertino"/>
|
||||
<appSettings>
|
||||
<!--连接字符串-->
|
||||
<add key="ConnectionString" value="Server=.\MSSQLSERVER01;Database=HJGLDB_DS;Integrated Security=False;User ID=sa;Password=1111;MultipleActiveResultSets=true;Max Pool Size = 1000;Connect Timeout=1200"/>
|
||||
<add key="ConnectionString" value="Server=.\SQL2022;Database=HJGLDB_DS;Integrated Security=False;User ID=sa;Password=1111;MultipleActiveResultSets=true;Max Pool Size = 1000;Connect Timeout=1200"/>
|
||||
<!--系统名称-->
|
||||
<add key="SystemName" value="诺必达焊接管理系统"/>
|
||||
<add key="ChartImageHandler" value="storage=file;timeout=20;url=~/Images/;"/>
|
||||
|
|
|
|||
|
|
@ -19,7 +19,6 @@
|
|||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar2" Position="Top" runat="server">
|
||||
<Items>
|
||||
<f:Label ID="lblWED_ID" runat="server" Hidden="true"></f:Label>
|
||||
<f:TextBox ID="txtName" runat="server" Label="焊材牌号" EmptyText="输入查询条件" AutoPostBack="true"
|
||||
OnTextChanged="TextBox_TextChanged" Width="250px" LabelWidth="80px" LabelAlign="Right">
|
||||
</f:TextBox>
|
||||
|
|
|
|||
|
|
@ -34,7 +34,6 @@ namespace FineUIPro.Web.WeldMat.UsingPlan
|
|||
if (!IsPostBack)
|
||||
{
|
||||
this.ProjectId = Request.Params["projectId"];
|
||||
this.lblWED_ID.Text = Request.Params["wed_Id"];
|
||||
|
||||
ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
|
||||
this.drpWeldType.DataTextField = "WeldTypeName";
|
||||
|
|
@ -54,40 +53,40 @@ namespace FineUIPro.Web.WeldMat.UsingPlan
|
|||
private void BindGrid()
|
||||
{
|
||||
string strSql = string.Empty;
|
||||
bool isQua = false;
|
||||
if (!string.IsNullOrEmpty(this.lblWED_ID.Text.Trim()))
|
||||
{
|
||||
var qualifiedProject = BLL.HJGL_WelderQualifiedProjectService.GetWelderQualifiedProjectByWedId(this.lblWED_ID.Text.Trim());
|
||||
if (qualifiedProject.Count > 0)
|
||||
{
|
||||
//当材质类型为FeⅢ并且资质后面三个数中间的为11时可领用FeⅢ无保护气体焊丝
|
||||
qualifiedProject = qualifiedProject.Where(e => e.MaterialType.Contains("FeⅢ") && e.QualifiedProjectCode.Contains("/11/")).ToList();
|
||||
if (qualifiedProject.Count > 0)
|
||||
{
|
||||
isQua = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
//bool isQua = false;
|
||||
//if (!string.IsNullOrEmpty(this.lblWED_ID.Text.Trim()))
|
||||
//{
|
||||
// var qualifiedProject = BLL.HJGL_WelderQualifiedProjectService.GetWelderQualifiedProjectByWedId(this.lblWED_ID.Text.Trim());
|
||||
// if (qualifiedProject.Count > 0)
|
||||
// {
|
||||
// //当材质类型为FeⅢ并且资质后面三个数中间的为11时可领用FeⅢ无保护气体焊丝
|
||||
// qualifiedProject = qualifiedProject.Where(e => e.MaterialType.Contains("FeⅢ") && e.QualifiedProjectCode.Contains("/11/")).ToList();
|
||||
// if (qualifiedProject.Count > 0)
|
||||
// {
|
||||
// isQua = true;
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
|
||||
if (isQua)
|
||||
{
|
||||
strSql = @"SELECT weld.WeldId, weld.WeldCode, weld.WeldName, weld.WeldSpec,weld.WeldTypeId,weld.SteelType,
|
||||
//if (isQua)
|
||||
//{
|
||||
strSql = @"SELECT weld.WeldId, weld.WeldCode, weld.WeldName, weld.WeldSpec,weld.WeldTypeId,weld.SteelType,
|
||||
WeldType.WeldTypeName,WeldType.WeldUnit
|
||||
FROM dbo.Weld_WeldInfo weld
|
||||
LEFT JOIN Weld_WeldType AS weldType ON weldType.WeldTypeId =weld.WeldTypeId
|
||||
WHERE 1 = 1 and (weld.IsLock is null or weld.IsLock=0)
|
||||
and (select SUM(ISNULL(stockIn.Amount,0)) from Weld_StockIn stockIn where UnitStoreId=@UnitStoreId and WeldId=weld.WeldId)>0";
|
||||
}
|
||||
else
|
||||
{
|
||||
strSql = @"SELECT weld.WeldId, weld.WeldCode, weld.WeldName, weld.WeldSpec,weld.WeldTypeId,weld.SteelType,
|
||||
WeldType.WeldTypeName,WeldType.WeldUnit
|
||||
FROM dbo.Weld_WeldInfo weld
|
||||
LEFT JOIN Weld_WeldType AS weldType ON weldType.WeldTypeId =weld.WeldTypeId
|
||||
WHERE 1 = 1 and (weld.IsLock is null or weld.IsLock=0)
|
||||
and weld.SteelType != 'FeⅢ无保护气体'
|
||||
and (select SUM(ISNULL(stockIn.Amount,0)) from Weld_StockIn stockIn where UnitStoreId=@UnitStoreId and WeldId=weld.WeldId)>0";
|
||||
}
|
||||
//}
|
||||
//else
|
||||
//{
|
||||
// strSql = @"SELECT weld.WeldId, weld.WeldCode, weld.WeldName, weld.WeldSpec,weld.WeldTypeId,weld.SteelType,
|
||||
// WeldType.WeldTypeName,WeldType.WeldUnit
|
||||
// FROM dbo.Weld_WeldInfo weld
|
||||
// LEFT JOIN Weld_WeldType AS weldType ON weldType.WeldTypeId =weld.WeldTypeId
|
||||
// WHERE 1 = 1 and (weld.IsLock is null or weld.IsLock=0)
|
||||
// and weld.SteelType != 'FeⅢ无保护气体'
|
||||
// and (select SUM(ISNULL(stockIn.Amount,0)) from Weld_StockIn stockIn where UnitStoreId=@UnitStoreId and WeldId=weld.WeldId)>0";
|
||||
//}
|
||||
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||
//listStr.Add(new SqlParameter("@ProjectId", this.ProjectId));
|
||||
listStr.Add(new SqlParameter("@UnitStoreId", Request.Params["unitStoreId"]));
|
||||
|
|
|
|||
|
|
@ -68,15 +68,6 @@ namespace FineUIPro.Web.WeldMat.UsingPlan
|
|||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar2;
|
||||
|
||||
/// <summary>
|
||||
/// lblWED_ID 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label lblWED_ID;
|
||||
|
||||
/// <summary>
|
||||
/// txtName 控件。
|
||||
/// </summary>
|
||||
|
|
|
|||
|
|
@ -349,7 +349,24 @@ namespace FineUIPro.Web.WeldMat.UsingPlan
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!string.IsNullOrEmpty(weld.SteelType) && weld.SteelType == "FeⅢ无保护气体")
|
||||
{
|
||||
if (!string.IsNullOrEmpty(this.hdUsingMan1.Text.Trim()))
|
||||
{
|
||||
var qualifiedProject = BLL.HJGL_WelderQualifiedProjectService.GetWelderQualifiedProjectByWedId(this.hdUsingMan1.Text.Trim());
|
||||
if (qualifiedProject.Count > 0)
|
||||
{
|
||||
//当材质类型为FeⅢ并且资质后面三个数中间的为11时可领用FeⅢ无保护气体焊丝
|
||||
qualifiedProject = qualifiedProject.Where(e => e.MaterialType.Contains("FeⅢ") && e.QualifiedProjectCode.Contains("/11/")).ToList();
|
||||
if (qualifiedProject.Count == 0)
|
||||
{
|
||||
Alert.ShowInTop("无FeⅢ无保护气体资质,不可领用!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Model.Weld_UsingPlan usingPlan = new Model.Weld_UsingPlan();
|
||||
usingPlan.UnitStoreId = this.drpUnitStore.SelectedValue;
|
||||
|
|
@ -578,13 +595,8 @@ namespace FineUIPro.Web.WeldMat.UsingPlan
|
|||
{
|
||||
Alert.ShowInTop("请选择焊材库!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
if (string.IsNullOrEmpty(this.hdUsingMan1.Text.Trim()))
|
||||
{
|
||||
Alert.ShowInTop("请选择领料人!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
string window = String.Format("ShowPlanWeld.aspx?projectId={0}&unitStoreId={1}&wed_Id={2}", drpProjectId.SelectedValue, this.drpUnitStore.SelectedValue, hdUsingMan1.Text.Trim(), "编辑 - ");
|
||||
}
|
||||
string window = String.Format("ShowPlanWeld.aspx?projectId={0}&unitStoreId={1}", drpProjectId.SelectedValue, this.drpUnitStore.SelectedValue, "编辑 - ");
|
||||
PageContext.RegisterStartupScript(Window1.GetSaveStateReference(this.hdWeldId.ClientID) + Window1.GetShowReference(window));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -44079,6 +44079,8 @@ namespace Model
|
|||
|
||||
private System.Nullable<System.DateTime> _HotEndDate;
|
||||
|
||||
private System.Nullable<System.DateTime> _PostHeatingDate;
|
||||
|
||||
private EntityRef<HJGL_PW_JointInfo> _HJGL_PW_JointInfo;
|
||||
|
||||
#region 可扩展性方法定义
|
||||
|
|
@ -44131,6 +44133,8 @@ namespace Model
|
|||
partial void OnHotStartDateChanged();
|
||||
partial void OnHotEndDateChanging(System.Nullable<System.DateTime> value);
|
||||
partial void OnHotEndDateChanged();
|
||||
partial void OnPostHeatingDateChanging(System.Nullable<System.DateTime> value);
|
||||
partial void OnPostHeatingDateChanged();
|
||||
#endregion
|
||||
|
||||
public HJGL_HotProessItem()
|
||||
|
|
@ -44603,6 +44607,26 @@ namespace Model
|
|||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PostHeatingDate", DbType="DateTime")]
|
||||
public System.Nullable<System.DateTime> PostHeatingDate
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._PostHeatingDate;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._PostHeatingDate != value))
|
||||
{
|
||||
this.OnPostHeatingDateChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._PostHeatingDate = value;
|
||||
this.SendPropertyChanged("PostHeatingDate");
|
||||
this.OnPostHeatingDateChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_HJGL_HotProessItem_HJGL_PW_JointInfo", Storage="_HJGL_PW_JointInfo", ThisKey="JOT_ID", OtherKey="JOT_ID", IsForeignKey=true)]
|
||||
public HJGL_PW_JointInfo HJGL_PW_JointInfo
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<LastActiveSolutionConfig>Release|Any CPU</LastActiveSolutionConfig>
|
||||
|
|
|
|||
Loading…
Reference in New Issue