0905-材料管理接口增加MTO明细信息一览表

This commit is contained in:
高飞 2022-09-05 10:14:06 +08:00
parent 42531a1b7f
commit c3cbd62265
6 changed files with 783 additions and 207 deletions

View File

@ -0,0 +1,94 @@
CREATE TABLE [dbo].[CLGL_MTODetail](
[Id] [nvarchar](50) NOT NULL,
[ProjectId] [nvarchar](50) NULL,
[DeviceNo] [nvarchar](50) NULL,
[IsoNo] [nvarchar](50) NULL,
[IsoClass] [nvarchar](50) NULL,
[MaterialCode] [nvarchar](50) NULL,
[TagNo] [nvarchar](50) NULL,
[MaterialName] [nvarchar](50) NULL,
[SIZE1] [nvarchar](50) NULL,
[SIZE2] [nvarchar](50) NULL,
[SCH1] [nvarchar](50) NULL,
[SCH2] [nvarchar](50) NULL,
[PressClass] [nvarchar](50) NULL,
[EndFace] [nvarchar](50) NULL,
[BoltLength] [nvarchar](50) NULL,
[Standard] [nvarchar](50) NULL,
[Material] [nvarchar](50) NULL,
[PrefabricationStatus] [nvarchar](50) NULL,
[DesignNum] [nvarchar](50) NULL,
[PlanCheckOutNum] [nvarchar](50) NULL,
[CheckOutNum] [nvarchar](50) NULL,
[StockNumByDeviceNo] [nvarchar](50) NULL,
[StockNumWholePlant] [nvarchar](50) NULL,
CONSTRAINT [PK_CLGL_MTODetail] PRIMARY KEY CLUSTERED
(
[Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'CLGL_MTODetail', @level2type=N'COLUMN',@level2name=N'Id'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'项目Id' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'CLGL_MTODetail', @level2type=N'COLUMN',@level2name=N'ProjectId'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'装置号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'CLGL_MTODetail', @level2type=N'COLUMN',@level2name=N'DeviceNo'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'区域管线号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'CLGL_MTODetail', @level2type=N'COLUMN',@level2name=N'IsoNo'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'管线等级' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'CLGL_MTODetail', @level2type=N'COLUMN',@level2name=N'IsoClass'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'材料编码' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'CLGL_MTODetail', @level2type=N'COLUMN',@level2name=N'MaterialCode'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'位号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'CLGL_MTODetail', @level2type=N'COLUMN',@level2name=N'TagNo'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'材料名称' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'CLGL_MTODetail', @level2type=N'COLUMN',@level2name=N'MaterialName'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'压力等级' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'CLGL_MTODetail', @level2type=N'COLUMN',@level2name=N'PressClass'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'端面' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'CLGL_MTODetail', @level2type=N'COLUMN',@level2name=N'EndFace'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'螺栓长度' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'CLGL_MTODetail', @level2type=N'COLUMN',@level2name=N'BoltLength'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'标准' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'CLGL_MTODetail', @level2type=N'COLUMN',@level2name=N'Standard'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'材质' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'CLGL_MTODetail', @level2type=N'COLUMN',@level2name=N'Material'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'预制状态' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'CLGL_MTODetail', @level2type=N'COLUMN',@level2name=N'PrefabricationStatus'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'设计数量' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'CLGL_MTODetail', @level2type=N'COLUMN',@level2name=N'DesignNum'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'预出库量' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'CLGL_MTODetail', @level2type=N'COLUMN',@level2name=N'PlanCheckOutNum'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'出库量' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'CLGL_MTODetail', @level2type=N'COLUMN',@level2name=N'CheckOutNum'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'库存量(按装置号)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'CLGL_MTODetail', @level2type=N'COLUMN',@level2name=N'StockNumByDeviceNo'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'库存量(全厂)' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'CLGL_MTODetail', @level2type=N'COLUMN',@level2name=N'StockNumWholePlant'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'MTO明细信息表' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'CLGL_MTODetail'
GO

View File

@ -50,6 +50,7 @@
getShelvesNo(project.CLProjectCode ?? 0);
getSubcontractor(project.CLProjectCode ?? 0);
getReqDetails(project.CLProjectCode ?? 0);
getMTODetailInfo(project.CLProjectCode ?? 0);
}
}
@ -238,15 +239,31 @@
JArray arr = JArray.Parse(details);
foreach (var item in arr)
{
Model.CLGL_Material material = new Model.CLGL_Material();
material.Id = SQLHelper.GetNewID();
material.ProjectId = projectId.ToString();
material.MaterialCode = item["材料编码"].ToString();
material.TagNo = item["位号"].ToString();
material.MaterialName = item["材料名称"].ToString();
material.Def = item["规格描述"].ToString();
material.Unit = item["计量单位"].ToString();
db.CLGL_Material.InsertOnSubmit(material);
Model.CLGL_MTODetail mTODetail = new Model.CLGL_MTODetail();
mTODetail.Id = SQLHelper.GetNewID();
mTODetail.ProjectId = projectId.ToString();
mTODetail.DeviceNo = item["装置号"].ToString();
mTODetail.IsoNo = item["区域管线号"].ToString();
mTODetail.IsoClass = item["管线等级"].ToString();
mTODetail.MaterialCode = item["材料编码"].ToString();
mTODetail.TagNo = item["位号"].ToString();
mTODetail.MaterialName = item["材料名称"].ToString();
mTODetail.SIZE1 = item["SIZE1"].ToString();
mTODetail.SIZE2 = item["SIZE2"].ToString();
mTODetail.SCH1 = item["SCH1"].ToString();
mTODetail.SCH2 = item["SCH2"].ToString();
mTODetail.PressClass = item["压力等级"].ToString();
mTODetail.EndFace = item["端面"].ToString();
mTODetail.BoltLength = item["螺栓长度"].ToString();
mTODetail.Standard = item["标准"].ToString();
mTODetail.Material = item["材质"].ToString();
mTODetail.PrefabricationStatus = item["预制状态"].ToString();
mTODetail.DesignNum = item["设计数量"].ToString();
mTODetail.PlanCheckOutNum = item["预出库量"].ToString();
mTODetail.CheckOutNum = item["出库量"].ToString();
mTODetail.StockNumByDeviceNo = item["库存量(按装置号)"].ToString();
mTODetail.StockNumWholePlant = item["库存量(全厂)"].ToString();
db.CLGL_MTODetail.InsertOnSubmit(mTODetail);
db.SubmitChanges();
}
}

View File

@ -11,6 +11,11 @@
white-space: normal;
word-break: break-all;
}
.f-grid-colheader-text {
white-space: normal;
word-break: break-all;
}
</style>
</head>
<body>
@ -37,20 +42,68 @@
<Columns>
<f:RowNumberField EnablePagingNumber="true" HeaderText="序号" Width="45px" HeaderTextAlign="Center"
TextAlign="Center" />
<f:RenderField Width="150px" ColumnID="MaterialCode" DataField="MaterialCode" SortField="MaterialCode"
<f:RenderField Width="100px" ColumnID="DeviceNo" DataField="DeviceNo" SortField="DeviceNo"
FieldType="String" HeaderText="装置号" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
<f:RenderField Width="100px" ColumnID="IsoNo" DataField="IsoNo" SortField="IsoNo"
FieldType="String" HeaderText="区域管线号" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
<f:RenderField Width="100px" ColumnID="IsoClass" DataField="IsoClass" SortField="IsoClass"
FieldType="String" HeaderText="管线等级" HeaderTextAlign="Center" TextAlign="Left" >
</f:RenderField>
<f:RenderField Width="100px" ColumnID="MaterialCode" DataField="MaterialCode" SortField="MaterialCode"
FieldType="String" HeaderText="材料编码" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
<f:RenderField Width="150px" ColumnID="MaterialName" DataField="MaterialName" SortField="MaterialName"
<f:RenderField Width="100px" ColumnID="TagNo" DataField="TagNo" SortField="TagNo"
FieldType="String" HeaderText="位号" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
<f:RenderField Width="100px" ColumnID="MaterialName" DataField="MaterialName" SortField="MaterialName"
FieldType="String" HeaderText="材料名称" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
<f:RenderField Width="100px" ColumnID="TagNo" DataField="TagNo" SortField="TagNo"
FieldType="String" HeaderText="位号" HeaderTextAlign="Center" TextAlign="Left" >
<f:RenderField Width="100px" ColumnID="SIZE1" DataField="SIZE1" SortField="SIZE1"
FieldType="String" HeaderText="SIZE1" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
<f:RenderField Width="200px" ColumnID="Def" DataField="Def" SortField="Def"
FieldType="String" HeaderText="规格描述" HeaderTextAlign="Center" TextAlign="Left">
<f:RenderField Width="100px" ColumnID="SIZE2" DataField="SIZE2" SortField="SIZE2"
FieldType="String" HeaderText="SIZE2" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
<f:RenderField Width="100px" ColumnID="Unit" DataField="Unit" SortField="Unit"
FieldType="String" HeaderText="计量单位" HeaderTextAlign="Center" TextAlign="Left">
<f:RenderField Width="100px" ColumnID="SCH1" DataField="SCH1" SortField="SCH1"
FieldType="String" HeaderText="SCH1" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
<f:RenderField Width="100px" ColumnID="SCH2" DataField="SCH2" SortField="SCH2"
FieldType="String" HeaderText="SCH2" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
<f:RenderField Width="100px" ColumnID="PressClass" DataField="PressClass" SortField="PressClass"
FieldType="String" HeaderText="压力等级" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
<f:RenderField Width="100px" ColumnID="EndFace" DataField="EndFace" SortField="EndFace"
FieldType="String" HeaderText="端面" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
<f:RenderField Width="100px" ColumnID="BoltLength" DataField="BoltLength" SortField="BoltLength"
FieldType="String" HeaderText="螺栓长度" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
<f:RenderField Width="100px" ColumnID="Standard" DataField="Standard" SortField="Standard"
FieldType="String" HeaderText="标准" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
<f:RenderField Width="100px" ColumnID="Material" DataField="Material" SortField="Material"
FieldType="String" HeaderText="材质" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
<f:RenderField Width="100px" ColumnID="PrefabricationStatus" DataField="PrefabricationStatus" SortField="PrefabricationStatus"
FieldType="String" HeaderText="预制状态" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
<f:RenderField Width="100px" ColumnID="DesignNum" DataField="DesignNum" SortField="DesignNum"
FieldType="String" HeaderText="设计数量" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
<f:RenderField Width="100px" ColumnID="PlanCheckOutNum" DataField="PlanCheckOutNum" SortField="PlanCheckOutNum"
FieldType="String" HeaderText="预出库量" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
<f:RenderField Width="100px" ColumnID="CheckOutNum" DataField="CheckOutNum" SortField="CheckOutNum"
FieldType="String" HeaderText="出库量" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
<f:RenderField Width="100px" ColumnID="StockNumByDeviceNo" DataField="StockNumByDeviceNo" SortField="StockNumByDeviceNo"
FieldType="String" HeaderText="库存量(按装置号)" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
<f:RenderField Width="100px" ColumnID="StockNumWholePlant" DataField="StockNumWholePlant" SortField="StockNumWholePlant"
FieldType="String" HeaderText="库存量(全厂)" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
</Columns>
<PageItems>

View File

@ -59,7 +59,7 @@ namespace FineUIPro.Web.CLGL
private void BindGrid()
{
string strSql = @"select *
from dbo.CLGL_Material c
from dbo.CLGL_MTODetail c
where c.ProjectId=@ProjectId order by c.MaterialCode desc";
List<SqlParameter> listStr = new List<SqlParameter>();
listStr.Add(new SqlParameter("@ProjectId", BLL.ProjectService.GetCLProjectCodeByProjectId(this.CurrUser.LoginProjectId)));

View File

@ -1,120 +0,0 @@
错误信息开始=====>
错误类型:EndpointNotFoundException
错误信息:没有终结点在侦听可以接受消息的 http://localhost/CNCECHSSE/HSSEService.svc。这通常是由于不正确的地址或者 SOAP 操作导致的。如果存在此情况,请参见 InnerException 以了解详细信息。
错误堆栈:
Server stack trace:
在 System.ServiceModel.Channels.HttpChannelUtilities.ProcessGetResponseWebException(WebException webException, HttpWebRequest request, HttpAbortReason abortReason)
在 System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
在 System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)
在 System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message message, TimeSpan timeout)
在 System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
在 System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
在 System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
Exception rethrown at [0]:
在 System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
在 System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
在 BLL.CNCECHSSEService.HSSEService.GetSupervise_SubUnitReportListToSUB()
在 BLL.CNCECHSSEService.HSSEServiceClient.GetSupervise_SubUnitReportListToSUB() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Service References\CNCECHSSEService\Reference.cs:行号 13827
在 BLL.CNCECHSSEWebService.getSupervise_SubUnitReport() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 1014
----错误类型:WebException
----错误信息:
----远程服务器返回错误: (404) 未找到。
----错误堆栈:
在 System.Net.HttpWebRequest.GetResponse()
在 System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
出错时间:07/19/2022 11:34:53
出错时间:07/19/2022 11:34:53
错误信息开始=====>
错误类型:EndpointNotFoundException
错误信息:没有终结点在侦听可以接受消息的 http://localhost/CNCECHSSE/HSSEService.svc。这通常是由于不正确的地址或者 SOAP 操作导致的。如果存在此情况,请参见 InnerException 以了解详细信息。
错误堆栈:
Server stack trace:
在 System.ServiceModel.Channels.HttpChannelUtilities.ProcessGetResponseWebException(WebException webException, HttpWebRequest request, HttpAbortReason abortReason)
在 System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
在 System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)
在 System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message message, TimeSpan timeout)
在 System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
在 System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
在 System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
Exception rethrown at [0]:
在 System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
在 System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
在 BLL.CNCECHSSEService.HSSEService.GetCheck_CheckInfo_Table8ItemListToSUB(String unitId)
在 BLL.CNCECHSSEService.HSSEServiceClient.GetCheck_CheckInfo_Table8ItemListToSUB(String unitId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Service References\CNCECHSSEService\Reference.cs:行号 13851
在 BLL.CNCECHSSEWebService.getCheck_CheckInfo_Table8Item() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 879
----错误类型:WebException
----错误信息:
----远程服务器返回错误: (404) 未找到。
----错误堆栈:
在 System.Net.HttpWebRequest.GetResponse()
在 System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
出错时间:07/19/2022 11:34:53
出错时间:07/19/2022 11:34:53
错误信息开始=====>
错误类型:EndpointNotFoundException
错误信息:没有终结点在侦听可以接受消息的 http://localhost/CNCECHSSE/HSSEService.svc。这通常是由于不正确的地址或者 SOAP 操作导致的。如果存在此情况,请参见 InnerException 以了解详细信息。
错误堆栈:
Server stack trace:
在 System.ServiceModel.Channels.HttpChannelUtilities.ProcessGetResponseWebException(WebException webException, HttpWebRequest request, HttpAbortReason abortReason)
在 System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
在 System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)
在 System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message message, TimeSpan timeout)
在 System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
在 System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
在 System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
Exception rethrown at [0]:
在 System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
在 System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
在 BLL.CNCECHSSEService.HSSEService.GetCheck_CheckRectifyListToSUB(String unitId)
在 BLL.CNCECHSSEService.HSSEServiceClient.GetCheck_CheckRectifyListToSUB(String unitId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Service References\CNCECHSSEService\Reference.cs:行号 13843
在 BLL.CNCECHSSEWebService.getCheck_CheckRectify() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 776
----错误类型:WebException
----错误信息:
----远程服务器返回错误: (404) 未找到。
----错误堆栈:
在 System.Net.HttpWebRequest.GetResponse()
在 System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
出错时间:07/19/2022 11:34:53
出错时间:07/19/2022 11:34:53
错误信息开始=====>
错误类型:EndpointNotFoundException
错误信息:没有终结点在侦听可以接受消息的 http://localhost/CNCECHSSE/HSSEService.svc。这通常是由于不正确的地址或者 SOAP 操作导致的。如果存在此情况,请参见 InnerException 以了解详细信息。
错误堆栈:
Server stack trace:
在 System.ServiceModel.Channels.HttpChannelUtilities.ProcessGetResponseWebException(WebException webException, HttpWebRequest request, HttpAbortReason abortReason)
在 System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
在 System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)
在 System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message message, TimeSpan timeout)
在 System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
在 System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
在 System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
Exception rethrown at [0]:
在 System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
在 System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
在 BLL.CNCECHSSEService.HSSEService.GetInformation_UrgeReportToSUB(String unitId)
在 BLL.CNCECHSSEService.HSSEServiceClient.GetInformation_UrgeReportToSUB(String unitId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\Service References\CNCECHSSEService\Reference.cs:行号 13643
在 BLL.CNCECHSSEWebService.getInformation_UrgeReport() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 719
----错误类型:WebException
----错误信息:
----远程服务器返回错误: (404) 未找到。
----错误堆栈:
在 System.Net.HttpWebRequest.GetResponse()
在 System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
出错时间:07/19/2022 11:34:53
出错时间:07/19/2022 11:34:53

View File

@ -437,6 +437,9 @@ namespace Model
partial void InsertCLGL_Material(CLGL_Material instance);
partial void UpdateCLGL_Material(CLGL_Material instance);
partial void DeleteCLGL_Material(CLGL_Material instance);
partial void InsertCLGL_MTODetail(CLGL_MTODetail instance);
partial void UpdateCLGL_MTODetail(CLGL_MTODetail instance);
partial void DeleteCLGL_MTODetail(CLGL_MTODetail instance);
partial void InsertCLGL_PickMaterialRecord(CLGL_PickMaterialRecord instance);
partial void UpdateCLGL_PickMaterialRecord(CLGL_PickMaterialRecord instance);
partial void DeleteCLGL_PickMaterialRecord(CLGL_PickMaterialRecord instance);
@ -3198,6 +3201,14 @@ namespace Model
}
}
public System.Data.Linq.Table<CLGL_MTODetail> CLGL_MTODetail
{
get
{
return this.GetTable<CLGL_MTODetail>();
}
}
public System.Data.Linq.Table<CLGL_PickMaterialRecord> CLGL_PickMaterialRecord
{
get
@ -72254,6 +72265,596 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.CLGL_MTODetail")]
public partial class CLGL_MTODetail : INotifyPropertyChanging, INotifyPropertyChanged
{
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
private string _Id;
private string _ProjectId;
private string _DeviceNo;
private string _IsoNo;
private string _IsoClass;
private string _MaterialCode;
private string _TagNo;
private string _MaterialName;
private string _SIZE1;
private string _SIZE2;
private string _SCH1;
private string _SCH2;
private string _PressClass;
private string _EndFace;
private string _BoltLength;
private string _Standard;
private string _Material;
private string _PrefabricationStatus;
private string _DesignNum;
private string _PlanCheckOutNum;
private string _CheckOutNum;
private string _StockNumByDeviceNo;
private string _StockNumWholePlant;
#region
partial void OnLoaded();
partial void OnValidate(System.Data.Linq.ChangeAction action);
partial void OnCreated();
partial void OnIdChanging(string value);
partial void OnIdChanged();
partial void OnProjectIdChanging(string value);
partial void OnProjectIdChanged();
partial void OnDeviceNoChanging(string value);
partial void OnDeviceNoChanged();
partial void OnIsoNoChanging(string value);
partial void OnIsoNoChanged();
partial void OnIsoClassChanging(string value);
partial void OnIsoClassChanged();
partial void OnMaterialCodeChanging(string value);
partial void OnMaterialCodeChanged();
partial void OnTagNoChanging(string value);
partial void OnTagNoChanged();
partial void OnMaterialNameChanging(string value);
partial void OnMaterialNameChanged();
partial void OnSIZE1Changing(string value);
partial void OnSIZE1Changed();
partial void OnSIZE2Changing(string value);
partial void OnSIZE2Changed();
partial void OnSCH1Changing(string value);
partial void OnSCH1Changed();
partial void OnSCH2Changing(string value);
partial void OnSCH2Changed();
partial void OnPressClassChanging(string value);
partial void OnPressClassChanged();
partial void OnEndFaceChanging(string value);
partial void OnEndFaceChanged();
partial void OnBoltLengthChanging(string value);
partial void OnBoltLengthChanged();
partial void OnStandardChanging(string value);
partial void OnStandardChanged();
partial void OnMaterialChanging(string value);
partial void OnMaterialChanged();
partial void OnPrefabricationStatusChanging(string value);
partial void OnPrefabricationStatusChanged();
partial void OnDesignNumChanging(string value);
partial void OnDesignNumChanged();
partial void OnPlanCheckOutNumChanging(string value);
partial void OnPlanCheckOutNumChanged();
partial void OnCheckOutNumChanging(string value);
partial void OnCheckOutNumChanged();
partial void OnStockNumByDeviceNoChanging(string value);
partial void OnStockNumByDeviceNoChanged();
partial void OnStockNumWholePlantChanging(string value);
partial void OnStockNumWholePlantChanged();
#endregion
public CLGL_MTODetail()
{
OnCreated();
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Id", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)]
public string Id
{
get
{
return this._Id;
}
set
{
if ((this._Id != value))
{
this.OnIdChanging(value);
this.SendPropertyChanging();
this._Id = value;
this.SendPropertyChanged("Id");
this.OnIdChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)")]
public string ProjectId
{
get
{
return this._ProjectId;
}
set
{
if ((this._ProjectId != value))
{
this.OnProjectIdChanging(value);
this.SendPropertyChanging();
this._ProjectId = value;
this.SendPropertyChanged("ProjectId");
this.OnProjectIdChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DeviceNo", DbType="NVarChar(50)")]
public string DeviceNo
{
get
{
return this._DeviceNo;
}
set
{
if ((this._DeviceNo != value))
{
this.OnDeviceNoChanging(value);
this.SendPropertyChanging();
this._DeviceNo = value;
this.SendPropertyChanged("DeviceNo");
this.OnDeviceNoChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsoNo", DbType="NVarChar(50)")]
public string IsoNo
{
get
{
return this._IsoNo;
}
set
{
if ((this._IsoNo != value))
{
this.OnIsoNoChanging(value);
this.SendPropertyChanging();
this._IsoNo = value;
this.SendPropertyChanged("IsoNo");
this.OnIsoNoChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsoClass", DbType="NVarChar(50)")]
public string IsoClass
{
get
{
return this._IsoClass;
}
set
{
if ((this._IsoClass != value))
{
this.OnIsoClassChanging(value);
this.SendPropertyChanging();
this._IsoClass = value;
this.SendPropertyChanged("IsoClass");
this.OnIsoClassChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaterialCode", DbType="NVarChar(50)")]
public string MaterialCode
{
get
{
return this._MaterialCode;
}
set
{
if ((this._MaterialCode != value))
{
this.OnMaterialCodeChanging(value);
this.SendPropertyChanging();
this._MaterialCode = value;
this.SendPropertyChanged("MaterialCode");
this.OnMaterialCodeChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TagNo", DbType="NVarChar(50)")]
public string TagNo
{
get
{
return this._TagNo;
}
set
{
if ((this._TagNo != value))
{
this.OnTagNoChanging(value);
this.SendPropertyChanging();
this._TagNo = value;
this.SendPropertyChanged("TagNo");
this.OnTagNoChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MaterialName", DbType="NVarChar(50)")]
public string MaterialName
{
get
{
return this._MaterialName;
}
set
{
if ((this._MaterialName != value))
{
this.OnMaterialNameChanging(value);
this.SendPropertyChanging();
this._MaterialName = value;
this.SendPropertyChanged("MaterialName");
this.OnMaterialNameChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SIZE1", DbType="NVarChar(50)")]
public string SIZE1
{
get
{
return this._SIZE1;
}
set
{
if ((this._SIZE1 != value))
{
this.OnSIZE1Changing(value);
this.SendPropertyChanging();
this._SIZE1 = value;
this.SendPropertyChanged("SIZE1");
this.OnSIZE1Changed();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SIZE2", DbType="NVarChar(50)")]
public string SIZE2
{
get
{
return this._SIZE2;
}
set
{
if ((this._SIZE2 != value))
{
this.OnSIZE2Changing(value);
this.SendPropertyChanging();
this._SIZE2 = value;
this.SendPropertyChanged("SIZE2");
this.OnSIZE2Changed();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SCH1", DbType="NVarChar(50)")]
public string SCH1
{
get
{
return this._SCH1;
}
set
{
if ((this._SCH1 != value))
{
this.OnSCH1Changing(value);
this.SendPropertyChanging();
this._SCH1 = value;
this.SendPropertyChanged("SCH1");
this.OnSCH1Changed();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SCH2", DbType="NVarChar(50)")]
public string SCH2
{
get
{
return this._SCH2;
}
set
{
if ((this._SCH2 != value))
{
this.OnSCH2Changing(value);
this.SendPropertyChanging();
this._SCH2 = value;
this.SendPropertyChanged("SCH2");
this.OnSCH2Changed();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PressClass", DbType="NVarChar(50)")]
public string PressClass
{
get
{
return this._PressClass;
}
set
{
if ((this._PressClass != value))
{
this.OnPressClassChanging(value);
this.SendPropertyChanging();
this._PressClass = value;
this.SendPropertyChanged("PressClass");
this.OnPressClassChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EndFace", DbType="NVarChar(50)")]
public string EndFace
{
get
{
return this._EndFace;
}
set
{
if ((this._EndFace != value))
{
this.OnEndFaceChanging(value);
this.SendPropertyChanging();
this._EndFace = value;
this.SendPropertyChanged("EndFace");
this.OnEndFaceChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_BoltLength", DbType="NVarChar(50)")]
public string BoltLength
{
get
{
return this._BoltLength;
}
set
{
if ((this._BoltLength != value))
{
this.OnBoltLengthChanging(value);
this.SendPropertyChanging();
this._BoltLength = value;
this.SendPropertyChanged("BoltLength");
this.OnBoltLengthChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Standard", DbType="NVarChar(50)")]
public string Standard
{
get
{
return this._Standard;
}
set
{
if ((this._Standard != value))
{
this.OnStandardChanging(value);
this.SendPropertyChanging();
this._Standard = value;
this.SendPropertyChanged("Standard");
this.OnStandardChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Material", DbType="NVarChar(50)")]
public string Material
{
get
{
return this._Material;
}
set
{
if ((this._Material != value))
{
this.OnMaterialChanging(value);
this.SendPropertyChanging();
this._Material = value;
this.SendPropertyChanged("Material");
this.OnMaterialChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PrefabricationStatus", DbType="NVarChar(50)")]
public string PrefabricationStatus
{
get
{
return this._PrefabricationStatus;
}
set
{
if ((this._PrefabricationStatus != value))
{
this.OnPrefabricationStatusChanging(value);
this.SendPropertyChanging();
this._PrefabricationStatus = value;
this.SendPropertyChanged("PrefabricationStatus");
this.OnPrefabricationStatusChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DesignNum", DbType="NVarChar(50)")]
public string DesignNum
{
get
{
return this._DesignNum;
}
set
{
if ((this._DesignNum != value))
{
this.OnDesignNumChanging(value);
this.SendPropertyChanging();
this._DesignNum = value;
this.SendPropertyChanged("DesignNum");
this.OnDesignNumChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PlanCheckOutNum", DbType="NVarChar(50)")]
public string PlanCheckOutNum
{
get
{
return this._PlanCheckOutNum;
}
set
{
if ((this._PlanCheckOutNum != value))
{
this.OnPlanCheckOutNumChanging(value);
this.SendPropertyChanging();
this._PlanCheckOutNum = value;
this.SendPropertyChanged("PlanCheckOutNum");
this.OnPlanCheckOutNumChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CheckOutNum", DbType="NVarChar(50)")]
public string CheckOutNum
{
get
{
return this._CheckOutNum;
}
set
{
if ((this._CheckOutNum != value))
{
this.OnCheckOutNumChanging(value);
this.SendPropertyChanging();
this._CheckOutNum = value;
this.SendPropertyChanged("CheckOutNum");
this.OnCheckOutNumChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_StockNumByDeviceNo", DbType="NVarChar(50)")]
public string StockNumByDeviceNo
{
get
{
return this._StockNumByDeviceNo;
}
set
{
if ((this._StockNumByDeviceNo != value))
{
this.OnStockNumByDeviceNoChanging(value);
this.SendPropertyChanging();
this._StockNumByDeviceNo = value;
this.SendPropertyChanged("StockNumByDeviceNo");
this.OnStockNumByDeviceNoChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_StockNumWholePlant", DbType="NVarChar(50)")]
public string StockNumWholePlant
{
get
{
return this._StockNumWholePlant;
}
set
{
if ((this._StockNumWholePlant != value))
{
this.OnStockNumWholePlantChanging(value);
this.SendPropertyChanging();
this._StockNumWholePlant = value;
this.SendPropertyChanged("StockNumWholePlant");
this.OnStockNumWholePlantChanged();
}
}
}
public event PropertyChangingEventHandler PropertyChanging;
public event PropertyChangedEventHandler PropertyChanged;
protected virtual void SendPropertyChanging()
{
if ((this.PropertyChanging != null))
{
this.PropertyChanging(this, emptyChangingEventArgs);
}
}
protected virtual void SendPropertyChanged(String propertyName)
{
if ((this.PropertyChanged != null))
{
this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
}
}
}
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.CLGL_PickMaterialRecord")]
public partial class CLGL_PickMaterialRecord : INotifyPropertyChanging, INotifyPropertyChanged
{
@ -110677,8 +111278,6 @@ namespace Model
private EntityRef<Base_TrainType> _Base_TrainType;
private EntityRef<Training_Plan> _Training_Plan;
private EntitySet<EduTrain_TrainTest> _EduTrain_TrainTest;
#region
@ -110739,7 +111338,6 @@ namespace Model
this._Base_Project = default(EntityRef<Base_Project>);
this._Base_TrainLevel = default(EntityRef<Base_TrainLevel>);
this._Base_TrainType = default(EntityRef<Base_TrainType>);
this._Training_Plan = default(EntityRef<Training_Plan>);
this._EduTrain_TrainTest = new EntitySet<EduTrain_TrainTest>(new Action<EduTrain_TrainTest>(this.attach_EduTrain_TrainTest), new Action<EduTrain_TrainTest>(this.detach_EduTrain_TrainTest));
OnCreated();
}
@ -111167,10 +111765,6 @@ namespace Model
{
if ((this._PlanId != value))
{
if (this._Training_Plan.HasLoadedOrAssignedValue)
{
throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
}
this.OnPlanIdChanging(value);
this.SendPropertyChanging();
this._PlanId = value;
@ -111335,40 +111929,6 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_EduTrain_TrainRecord_Training_Plan", Storage="_Training_Plan", ThisKey="PlanId", OtherKey="PlanId", IsForeignKey=true)]
public Training_Plan Training_Plan
{
get
{
return this._Training_Plan.Entity;
}
set
{
Training_Plan previousValue = this._Training_Plan.Entity;
if (((previousValue != value)
|| (this._Training_Plan.HasLoadedOrAssignedValue == false)))
{
this.SendPropertyChanging();
if ((previousValue != null))
{
this._Training_Plan.Entity = null;
previousValue.EduTrain_TrainRecord.Remove(this);
}
this._Training_Plan.Entity = value;
if ((value != null))
{
value.EduTrain_TrainRecord.Add(this);
this._PlanId = value.PlanId;
}
else
{
this._PlanId = default(string);
}
this.SendPropertyChanged("Training_Plan");
}
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_EduTrain_TrainTest_EduTrain_TrainRecord", Storage="_EduTrain_TrainTest", ThisKey="TrainingId", OtherKey="TrainingId", DeleteRule="NO ACTION")]
public EntitySet<EduTrain_TrainTest> EduTrain_TrainTest
{
@ -296731,8 +297291,6 @@ namespace Model
private string _QRCodeUrl;
private EntitySet<EduTrain_TrainRecord> _EduTrain_TrainRecord;
private EntityRef<Base_Project> _Base_Project;
private EntityRef<Base_TrainLevel> _Base_TrainLevel;
@ -296795,7 +297353,6 @@ namespace Model
public Training_Plan()
{
this._EduTrain_TrainRecord = new EntitySet<EduTrain_TrainRecord>(new Action<EduTrain_TrainRecord>(this.attach_EduTrain_TrainRecord), new Action<EduTrain_TrainRecord>(this.detach_EduTrain_TrainRecord));
this._Base_Project = default(EntityRef<Base_Project>);
this._Base_TrainLevel = default(EntityRef<Base_TrainLevel>);
this._Base_TrainType = default(EntityRef<Base_TrainType>);
@ -297203,19 +297760,6 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_EduTrain_TrainRecord_Training_Plan", Storage="_EduTrain_TrainRecord", ThisKey="PlanId", OtherKey="PlanId", DeleteRule="NO ACTION")]
public EntitySet<EduTrain_TrainRecord> EduTrain_TrainRecord
{
get
{
return this._EduTrain_TrainRecord;
}
set
{
this._EduTrain_TrainRecord.Assign(value);
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Training_Plan_Base_Project", Storage="_Base_Project", ThisKey="ProjectId", OtherKey="ProjectId", IsForeignKey=true)]
public Base_Project Base_Project
{
@ -297424,18 +297968,6 @@ namespace Model
}
}
private void attach_EduTrain_TrainRecord(EduTrain_TrainRecord entity)
{
this.SendPropertyChanging();
entity.Training_Plan = this;
}
private void detach_EduTrain_TrainRecord(EduTrain_TrainRecord entity)
{
this.SendPropertyChanging();
entity.Training_Plan = null;
}
private void attach_Training_PlanItem(Training_PlanItem entity)
{
this.SendPropertyChanging();