20240206 生产人员培训

This commit is contained in:
毕文静 2024-02-06 17:11:15 +08:00
parent 68f0498287
commit 49458be8e5
20 changed files with 1885 additions and 911 deletions

View File

@ -0,0 +1,25 @@
update Sys_Menu set MenuName='人员培训计划' where MenuId='C8AD8E40-0E96-4007-A02F-62DDB0B275D5'
go
alter table TestRun_TrainRecords add ClassHours decimal(18,1) --
alter table TestRun_TrainRecords add TrainingTime DateTime --
alter table TestRun_TrainRecords add TrainingAddress nvarchar(50) --
alter table TestRun_TrainRecords add TrainingLevel nvarchar(50) --
alter table TestRun_TrainRecords add Speaker nvarchar(50) --
alter table TestRun_TrainRecords add States char(1) --
go
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'学时数' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'TestRun_TrainRecords', @level2type=N'COLUMN',@level2name=N'ClassHours'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'培训时间' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'TestRun_TrainRecords', @level2type=N'COLUMN',@level2name=N'TrainingTime'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'培训地点' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'TestRun_TrainRecords', @level2type=N'COLUMN',@level2name=N'TrainingAddress'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'培训级别' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'TestRun_TrainRecords', @level2type=N'COLUMN',@level2name=N'TrainingLevel'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主讲人' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'TestRun_TrainRecords', @level2type=N'COLUMN',@level2name=N'Speaker'
GO

View File

@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Linq;
namespace BLL
{
@ -36,7 +32,13 @@ namespace BLL
UploadDate = trainRecords.UploadDate,
CompileMan = trainRecords.CompileMan,
CompileDate = trainRecords.CompileDate,
Remark = trainRecords.Remark
Remark = trainRecords.Remark,
ClassHours = trainRecords.ClassHours,
TrainingTime = trainRecords.TrainingTime,
TrainingAddress = trainRecords.TrainingAddress,
TrainingLevel = trainRecords.TrainingLevel,
Speaker = trainRecords.Speaker,
States=trainRecords.States
};
Funs.DB.TestRun_TrainRecords.InsertOnSubmit(newTrainRecords);
Funs.DB.SubmitChanges();
@ -57,6 +59,12 @@ namespace BLL
newTrainRecords.CompileMan = trainRecords.CompileMan;
newTrainRecords.CompileDate = trainRecords.CompileDate;
newTrainRecords.Remark = trainRecords.Remark;
newTrainRecords.ClassHours = trainRecords.ClassHours;
newTrainRecords.TrainingTime = trainRecords.TrainingTime;
newTrainRecords.TrainingAddress = trainRecords.TrainingAddress;
newTrainRecords.TrainingLevel = trainRecords.TrainingLevel;
newTrainRecords.Speaker = trainRecords.Speaker;
newTrainRecords.States = trainRecords.States;
Funs.DB.SubmitChanges();
}
}
@ -70,7 +78,8 @@ namespace BLL
Model.TestRun_TrainRecords newTrainRecords = Funs.DB.TestRun_TrainRecords.FirstOrDefault(e => e.TrainRecordsId == trainRecordId);
if (newTrainRecords != null)
{
CommonService.DeleteAttachFileById(trainRecordId);//删除附件
CommonService.DeleteAttachFileById(trainRecordId + "#1");//删除附件
CommonService.DeleteAttachFileById(trainRecordId + "#2");//删除附件
Funs.DB.TestRun_TrainRecords.DeleteOnSubmit(newTrainRecords);
Funs.DB.SubmitChanges();
}

View File

@ -75,3 +75,462 @@ IP地址:::1
出错时间:02/04/2024 10:42:45
错误信息开始=====>
错误类型:ArgumentException
错误信息:提供的 URI 方案“http”无效应为“https”。
参数名: via
错误堆栈:
在 System.ServiceModel.Channels.TransportChannelFactory`1.ValidateScheme(Uri via)
在 System.ServiceModel.Channels.HttpChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
在 System.ServiceModel.Channels.HttpsChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
在 System.ServiceModel.Channels.HttpsChannelFactory`1.OnCreateChannelCore(EndpointAddress address, Uri via)
在 System.ServiceModel.Channels.HttpChannelFactory`1.OnCreateChannel(EndpointAddress remoteAddress, Uri via)
在 System.ServiceModel.Channels.ChannelFactoryBase`1.InternalCreateChannel(EndpointAddress address, Uri via)
在 System.ServiceModel.Channels.ChannelFactoryBase`1.CreateChannel(EndpointAddress address, Uri via)
在 System.ServiceModel.Channels.ServiceChannelFactory.ServiceChannelFactoryOverRequest.CreateInnerChannelBinder(EndpointAddress to, Uri via)
在 System.ServiceModel.Channels.ServiceChannelFactory.CreateServiceChannel(EndpointAddress address, Uri via)
在 System.ServiceModel.Channels.ServiceChannelFactory.CreateChannel(Type channelType, EndpointAddress address, Uri via)
在 System.ServiceModel.ChannelFactory`1.CreateChannel(EndpointAddress address, Uri via)
在 System.ServiceModel.ChannelFactory`1.CreateChannel()
在 System.ServiceModel.ClientBase`1.CreateChannel()
在 System.ServiceModel.ClientBase`1.CreateChannelInternal()
在 System.ServiceModel.ClientBase`1.get_Channel()
在 BLL.CNCECHSSEService.HSSEServiceClient.GetSupervise_SubUnitReportListToSUB() 位置 E:\五环\SGGL_CWCEC\SGGL\BLL\Service References\CNCECHSSEService\Reference.cs:行号 14204
在 BLL.CNCECHSSEWebService.getSupervise_SubUnitReport() 位置 E:\五环\SGGL_CWCEC\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 2181
出错时间:02/05/2024 18:19:34
出错时间:02/05/2024 18:19:34
错误信息开始=====>
错误类型:ArgumentException
错误信息:提供的 URI 方案“http”无效应为“https”。
参数名: via
错误堆栈:
在 System.ServiceModel.Channels.TransportChannelFactory`1.ValidateScheme(Uri via)
在 System.ServiceModel.Channels.HttpChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
在 System.ServiceModel.Channels.HttpsChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
在 System.ServiceModel.Channels.HttpsChannelFactory`1.OnCreateChannelCore(EndpointAddress address, Uri via)
在 System.ServiceModel.Channels.HttpChannelFactory`1.OnCreateChannel(EndpointAddress remoteAddress, Uri via)
在 System.ServiceModel.Channels.ChannelFactoryBase`1.InternalCreateChannel(EndpointAddress address, Uri via)
在 System.ServiceModel.Channels.ChannelFactoryBase`1.CreateChannel(EndpointAddress address, Uri via)
在 System.ServiceModel.Channels.ServiceChannelFactory.ServiceChannelFactoryOverRequest.CreateInnerChannelBinder(EndpointAddress to, Uri via)
在 System.ServiceModel.Channels.ServiceChannelFactory.CreateServiceChannel(EndpointAddress address, Uri via)
在 System.ServiceModel.Channels.ServiceChannelFactory.CreateChannel(Type channelType, EndpointAddress address, Uri via)
在 System.ServiceModel.ChannelFactory`1.CreateChannel(EndpointAddress address, Uri via)
在 System.ServiceModel.ChannelFactory`1.CreateChannel()
在 System.ServiceModel.ClientBase`1.CreateChannel()
在 System.ServiceModel.ClientBase`1.CreateChannelInternal()
在 System.ServiceModel.ClientBase`1.get_Channel()
在 BLL.CNCECHSSEService.HSSEServiceClient.GetCheck_CheckInfo_Table8ItemListToSUB(String unitId) 位置 E:\五环\SGGL_CWCEC\SGGL\BLL\Service References\CNCECHSSEService\Reference.cs:行号 14228
在 BLL.CNCECHSSEWebService.getCheck_CheckInfo_Table8Item() 位置 E:\五环\SGGL_CWCEC\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 2046
出错时间:02/05/2024 18:19:34
出错时间:02/05/2024 18:19:34
错误信息开始=====>
错误类型:ArgumentException
错误信息:提供的 URI 方案“http”无效应为“https”。
参数名: via
错误堆栈:
在 System.ServiceModel.Channels.TransportChannelFactory`1.ValidateScheme(Uri via)
在 System.ServiceModel.Channels.HttpChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
在 System.ServiceModel.Channels.HttpsChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
在 System.ServiceModel.Channels.HttpsChannelFactory`1.OnCreateChannelCore(EndpointAddress address, Uri via)
在 System.ServiceModel.Channels.HttpChannelFactory`1.OnCreateChannel(EndpointAddress remoteAddress, Uri via)
在 System.ServiceModel.Channels.ChannelFactoryBase`1.InternalCreateChannel(EndpointAddress address, Uri via)
在 System.ServiceModel.Channels.ChannelFactoryBase`1.CreateChannel(EndpointAddress address, Uri via)
在 System.ServiceModel.Channels.ServiceChannelFactory.ServiceChannelFactoryOverRequest.CreateInnerChannelBinder(EndpointAddress to, Uri via)
在 System.ServiceModel.Channels.ServiceChannelFactory.CreateServiceChannel(EndpointAddress address, Uri via)
在 System.ServiceModel.Channels.ServiceChannelFactory.CreateChannel(Type channelType, EndpointAddress address, Uri via)
在 System.ServiceModel.ChannelFactory`1.CreateChannel(EndpointAddress address, Uri via)
在 System.ServiceModel.ChannelFactory`1.CreateChannel()
在 System.ServiceModel.ClientBase`1.CreateChannel()
在 System.ServiceModel.ClientBase`1.CreateChannelInternal()
在 System.ServiceModel.ClientBase`1.get_Channel()
在 BLL.CNCECHSSEService.HSSEServiceClient.GetCheck_CheckRectifyListToSUB(String unitId) 位置 E:\五环\SGGL_CWCEC\SGGL\BLL\Service References\CNCECHSSEService\Reference.cs:行号 14220
在 BLL.CNCECHSSEWebService.getCheck_CheckRectify() 位置 E:\五环\SGGL_CWCEC\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 1942
出错时间:02/05/2024 18:19:34
出错时间:02/05/2024 18:19:34
错误信息开始=====>
错误类型:ArgumentException
错误信息:提供的 URI 方案“http”无效应为“https”。
参数名: via
错误堆栈:
在 System.ServiceModel.Channels.TransportChannelFactory`1.ValidateScheme(Uri via)
在 System.ServiceModel.Channels.HttpChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
在 System.ServiceModel.Channels.HttpsChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
在 System.ServiceModel.Channels.HttpsChannelFactory`1.OnCreateChannelCore(EndpointAddress address, Uri via)
在 System.ServiceModel.Channels.HttpChannelFactory`1.OnCreateChannel(EndpointAddress remoteAddress, Uri via)
在 System.ServiceModel.Channels.ChannelFactoryBase`1.InternalCreateChannel(EndpointAddress address, Uri via)
在 System.ServiceModel.Channels.ChannelFactoryBase`1.CreateChannel(EndpointAddress address, Uri via)
在 System.ServiceModel.Channels.ServiceChannelFactory.ServiceChannelFactoryOverRequest.CreateInnerChannelBinder(EndpointAddress to, Uri via)
在 System.ServiceModel.Channels.ServiceChannelFactory.CreateServiceChannel(EndpointAddress address, Uri via)
在 System.ServiceModel.Channels.ServiceChannelFactory.CreateChannel(Type channelType, EndpointAddress address, Uri via)
在 System.ServiceModel.ChannelFactory`1.CreateChannel(EndpointAddress address, Uri via)
在 System.ServiceModel.ChannelFactory`1.CreateChannel()
在 System.ServiceModel.ClientBase`1.CreateChannel()
在 System.ServiceModel.ClientBase`1.CreateChannelInternal()
在 System.ServiceModel.ClientBase`1.get_Channel()
在 BLL.CNCECHSSEService.HSSEServiceClient.GetInformation_UrgeReportToSUB(String unitId) 位置 E:\五环\SGGL_CWCEC\SGGL\BLL\Service References\CNCECHSSEService\Reference.cs:行号 14020
在 BLL.CNCECHSSEWebService.getInformation_UrgeReport() 位置 E:\五环\SGGL_CWCEC\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 1884
出错时间:02/05/2024 18:19:34
出错时间:02/05/2024 18:19:34
错误信息开始=====>
错误类型:ArgumentException
错误信息:提供的 URI 方案“http”无效应为“https”。
参数名: via
错误堆栈:
在 System.ServiceModel.Channels.TransportChannelFactory`1.ValidateScheme(Uri via)
在 System.ServiceModel.Channels.HttpChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
在 System.ServiceModel.Channels.HttpsChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
在 System.ServiceModel.Channels.HttpsChannelFactory`1.OnCreateChannelCore(EndpointAddress address, Uri via)
在 System.ServiceModel.Channels.HttpChannelFactory`1.OnCreateChannel(EndpointAddress remoteAddress, Uri via)
在 System.ServiceModel.Channels.ChannelFactoryBase`1.InternalCreateChannel(EndpointAddress address, Uri via)
在 System.ServiceModel.Channels.ChannelFactoryBase`1.CreateChannel(EndpointAddress address, Uri via)
在 System.ServiceModel.Channels.ServiceChannelFactory.ServiceChannelFactoryOverRequest.CreateInnerChannelBinder(EndpointAddress to, Uri via)
在 System.ServiceModel.Channels.ServiceChannelFactory.CreateServiceChannel(EndpointAddress address, Uri via)
在 System.ServiceModel.Channels.ServiceChannelFactory.CreateChannel(Type channelType, EndpointAddress address, Uri via)
在 System.ServiceModel.ChannelFactory`1.CreateChannel(EndpointAddress address, Uri via)
在 System.ServiceModel.ChannelFactory`1.CreateChannel()
在 System.ServiceModel.ClientBase`1.CreateChannel()
在 System.ServiceModel.ClientBase`1.CreateChannelInternal()
在 System.ServiceModel.ClientBase`1.get_Channel()
在 BLL.CNCECHSSEService.HSSEServiceClient.GetSupervise_SubUnitReportListToSUB() 位置 E:\五环\SGGL_CWCEC\SGGL\BLL\Service References\CNCECHSSEService\Reference.cs:行号 14204
在 BLL.CNCECHSSEWebService.getSupervise_SubUnitReport() 位置 E:\五环\SGGL_CWCEC\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 2181
出错时间:02/05/2024 20:19:33
出错时间:02/05/2024 20:19:33
错误信息开始=====>
错误类型:ArgumentException
错误信息:提供的 URI 方案“http”无效应为“https”。
参数名: via
错误堆栈:
在 System.ServiceModel.Channels.TransportChannelFactory`1.ValidateScheme(Uri via)
在 System.ServiceModel.Channels.HttpChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
在 System.ServiceModel.Channels.HttpsChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
在 System.ServiceModel.Channels.HttpsChannelFactory`1.OnCreateChannelCore(EndpointAddress address, Uri via)
在 System.ServiceModel.Channels.HttpChannelFactory`1.OnCreateChannel(EndpointAddress remoteAddress, Uri via)
在 System.ServiceModel.Channels.ChannelFactoryBase`1.InternalCreateChannel(EndpointAddress address, Uri via)
在 System.ServiceModel.Channels.ChannelFactoryBase`1.CreateChannel(EndpointAddress address, Uri via)
在 System.ServiceModel.Channels.ServiceChannelFactory.ServiceChannelFactoryOverRequest.CreateInnerChannelBinder(EndpointAddress to, Uri via)
在 System.ServiceModel.Channels.ServiceChannelFactory.CreateServiceChannel(EndpointAddress address, Uri via)
在 System.ServiceModel.Channels.ServiceChannelFactory.CreateChannel(Type channelType, EndpointAddress address, Uri via)
在 System.ServiceModel.ChannelFactory`1.CreateChannel(EndpointAddress address, Uri via)
在 System.ServiceModel.ChannelFactory`1.CreateChannel()
在 System.ServiceModel.ClientBase`1.CreateChannel()
在 System.ServiceModel.ClientBase`1.CreateChannelInternal()
在 System.ServiceModel.ClientBase`1.get_Channel()
在 BLL.CNCECHSSEService.HSSEServiceClient.GetCheck_CheckInfo_Table8ItemListToSUB(String unitId) 位置 E:\五环\SGGL_CWCEC\SGGL\BLL\Service References\CNCECHSSEService\Reference.cs:行号 14228
在 BLL.CNCECHSSEWebService.getCheck_CheckInfo_Table8Item() 位置 E:\五环\SGGL_CWCEC\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 2046
出错时间:02/05/2024 20:19:33
出错时间:02/05/2024 20:19:33
错误信息开始=====>
错误类型:ArgumentException
错误信息:提供的 URI 方案“http”无效应为“https”。
参数名: via
错误堆栈:
在 System.ServiceModel.Channels.TransportChannelFactory`1.ValidateScheme(Uri via)
在 System.ServiceModel.Channels.HttpChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
在 System.ServiceModel.Channels.HttpsChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
在 System.ServiceModel.Channels.HttpsChannelFactory`1.OnCreateChannelCore(EndpointAddress address, Uri via)
在 System.ServiceModel.Channels.HttpChannelFactory`1.OnCreateChannel(EndpointAddress remoteAddress, Uri via)
在 System.ServiceModel.Channels.ChannelFactoryBase`1.InternalCreateChannel(EndpointAddress address, Uri via)
在 System.ServiceModel.Channels.ChannelFactoryBase`1.CreateChannel(EndpointAddress address, Uri via)
在 System.ServiceModel.Channels.ServiceChannelFactory.ServiceChannelFactoryOverRequest.CreateInnerChannelBinder(EndpointAddress to, Uri via)
在 System.ServiceModel.Channels.ServiceChannelFactory.CreateServiceChannel(EndpointAddress address, Uri via)
在 System.ServiceModel.Channels.ServiceChannelFactory.CreateChannel(Type channelType, EndpointAddress address, Uri via)
在 System.ServiceModel.ChannelFactory`1.CreateChannel(EndpointAddress address, Uri via)
在 System.ServiceModel.ChannelFactory`1.CreateChannel()
在 System.ServiceModel.ClientBase`1.CreateChannel()
在 System.ServiceModel.ClientBase`1.CreateChannelInternal()
在 System.ServiceModel.ClientBase`1.get_Channel()
在 BLL.CNCECHSSEService.HSSEServiceClient.GetCheck_CheckRectifyListToSUB(String unitId) 位置 E:\五环\SGGL_CWCEC\SGGL\BLL\Service References\CNCECHSSEService\Reference.cs:行号 14220
在 BLL.CNCECHSSEWebService.getCheck_CheckRectify() 位置 E:\五环\SGGL_CWCEC\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 1942
出错时间:02/05/2024 20:19:33
出错时间:02/05/2024 20:19:34
错误信息开始=====>
错误类型:ArgumentException
错误信息:提供的 URI 方案“http”无效应为“https”。
参数名: via
错误堆栈:
在 System.ServiceModel.Channels.TransportChannelFactory`1.ValidateScheme(Uri via)
在 System.ServiceModel.Channels.HttpChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
在 System.ServiceModel.Channels.HttpsChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
在 System.ServiceModel.Channels.HttpsChannelFactory`1.OnCreateChannelCore(EndpointAddress address, Uri via)
在 System.ServiceModel.Channels.HttpChannelFactory`1.OnCreateChannel(EndpointAddress remoteAddress, Uri via)
在 System.ServiceModel.Channels.ChannelFactoryBase`1.InternalCreateChannel(EndpointAddress address, Uri via)
在 System.ServiceModel.Channels.ChannelFactoryBase`1.CreateChannel(EndpointAddress address, Uri via)
在 System.ServiceModel.Channels.ServiceChannelFactory.ServiceChannelFactoryOverRequest.CreateInnerChannelBinder(EndpointAddress to, Uri via)
在 System.ServiceModel.Channels.ServiceChannelFactory.CreateServiceChannel(EndpointAddress address, Uri via)
在 System.ServiceModel.Channels.ServiceChannelFactory.CreateChannel(Type channelType, EndpointAddress address, Uri via)
在 System.ServiceModel.ChannelFactory`1.CreateChannel(EndpointAddress address, Uri via)
在 System.ServiceModel.ChannelFactory`1.CreateChannel()
在 System.ServiceModel.ClientBase`1.CreateChannel()
在 System.ServiceModel.ClientBase`1.CreateChannelInternal()
在 System.ServiceModel.ClientBase`1.get_Channel()
在 BLL.CNCECHSSEService.HSSEServiceClient.GetInformation_UrgeReportToSUB(String unitId) 位置 E:\五环\SGGL_CWCEC\SGGL\BLL\Service References\CNCECHSSEService\Reference.cs:行号 14020
在 BLL.CNCECHSSEWebService.getInformation_UrgeReport() 位置 E:\五环\SGGL_CWCEC\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 1884
出错时间:02/05/2024 20:19:34
出错时间:02/05/2024 20:19:34
错误信息开始=====>
错误类型:ArgumentException
错误信息:The argument cannot be null or empty string.
参数名: fileName
错误堆栈:
 .(String , String )
在 Aspose.Words.Document..ctor(String fileName, LoadOptions loadOptions)
在 Aspose.Words.Document..ctor(String fileName)
在 FineUIPro.Web.TestRun.PersonTrain.TrainRecords.btnDonwLoadTrainRecords_Click(Object sender, EventArgs e) 位置 E:\五环\SGGL_CWCEC\SGGL\FineUIPro.Web\TestRun\PersonTrain\TrainRecords.aspx.cs:行号 276
在 FineUIPro.Button.OnClick(EventArgs e)
在 (Button , EventArgs )
在 FineUIPro.Button.RaisePostBackEvent(String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
出错时间:02/05/2024 22:21:55
出错文件:http://localhost:8579/TestRun/PersonTrain/TrainRecords.aspx
IP地址:::1
操作人员:JT
出错时间:02/05/2024 22:21:56
错误信息开始=====>
错误类型:ArgumentException
错误信息:The argument cannot be null or empty string.
参数名: fileName
错误堆栈:
 .(String , String )
在 Aspose.Words.Document..ctor(String fileName, LoadOptions loadOptions)
在 Aspose.Words.Document..ctor(String fileName)
在 FineUIPro.Web.TestRun.PersonTrain.TrainRecords.btnDonwLoadTrainRecords_Click(Object sender, EventArgs e) 位置 E:\五环\SGGL_CWCEC\SGGL\FineUIPro.Web\TestRun\PersonTrain\TrainRecords.aspx.cs:行号 276
在 FineUIPro.Button.OnClick(EventArgs e)
在 (Button , EventArgs )
在 FineUIPro.Button.RaisePostBackEvent(String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
出错时间:02/05/2024 22:21:58
出错文件:http://localhost:8579/TestRun/PersonTrain/TrainRecords.aspx
IP地址:::1
操作人员:JT
出错时间:02/05/2024 22:21:58
错误信息开始=====>
错误类型:ArgumentException
错误信息:The argument cannot be null or empty string.
参数名: fileName
错误堆栈:
 .(String , String )
在 Aspose.Words.Document..ctor(String fileName, LoadOptions loadOptions)
在 Aspose.Words.Document..ctor(String fileName)
在 FineUIPro.Web.TestRun.PersonTrain.TrainRecords.btnDonwLoadTrainRecords_Click(Object sender, EventArgs e) 位置 E:\五环\SGGL_CWCEC\SGGL\FineUIPro.Web\TestRun\PersonTrain\TrainRecords.aspx.cs:行号 276
在 FineUIPro.Button.OnClick(EventArgs e)
在 (Button , EventArgs )
在 FineUIPro.Button.RaisePostBackEvent(String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
出错时间:02/05/2024 22:21:59
出错文件:http://localhost:8579/TestRun/PersonTrain/TrainRecords.aspx
IP地址:::1
操作人员:JT
出错时间:02/05/2024 22:21:59
错误信息开始=====>
错误类型:ArgumentException
错误信息:The argument cannot be null or empty string.
参数名: fileName
错误堆栈:
 .(String , String )
在 Aspose.Words.Document..ctor(String fileName, LoadOptions loadOptions)
在 Aspose.Words.Document..ctor(String fileName)
在 FineUIPro.Web.TestRun.PersonTrain.TrainRecords.btnDonwLoadTrainRecords_Click(Object sender, EventArgs e) 位置 E:\五环\SGGL_CWCEC\SGGL\FineUIPro.Web\TestRun\PersonTrain\TrainRecords.aspx.cs:行号 276
在 FineUIPro.Button.OnClick(EventArgs e)
在 (Button , EventArgs )
在 FineUIPro.Button.RaisePostBackEvent(String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
出错时间:02/05/2024 22:21:59
出错文件:http://localhost:8579/TestRun/PersonTrain/TrainRecords.aspx
IP地址:::1
操作人员:JT
出错时间:02/05/2024 22:21:59
错误信息开始=====>
错误类型:ArgumentException
错误信息:The argument cannot be null or empty string.
参数名: fileName
错误堆栈:
 .(String , String )
在 Aspose.Words.Document..ctor(String fileName, LoadOptions loadOptions)
在 Aspose.Words.Document..ctor(String fileName)
在 FineUIPro.Web.TestRun.PersonTrain.TrainRecords.btnDonwLoadTrainRecords_Click(Object sender, EventArgs e) 位置 E:\五环\SGGL_CWCEC\SGGL\FineUIPro.Web\TestRun\PersonTrain\TrainRecords.aspx.cs:行号 276
在 FineUIPro.Button.OnClick(EventArgs e)
在 (Button , EventArgs )
在 FineUIPro.Button.RaisePostBackEvent(String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
出错时间:02/05/2024 22:21:59
出错文件:http://localhost:8579/TestRun/PersonTrain/TrainRecords.aspx
IP地址:::1
操作人员:JT
出错时间:02/05/2024 22:21:59
错误信息开始=====>
错误类型:ArgumentException
错误信息:The argument cannot be null or empty string.
参数名: fileName
错误堆栈:
 .(String , String )
在 Aspose.Words.Document..ctor(String fileName, LoadOptions loadOptions)
在 Aspose.Words.Document..ctor(String fileName)
在 FineUIPro.Web.TestRun.PersonTrain.TrainRecords.btnDonwLoadTrainRecords_Click(Object sender, EventArgs e) 位置 E:\五环\SGGL_CWCEC\SGGL\FineUIPro.Web\TestRun\PersonTrain\TrainRecords.aspx.cs:行号 276
在 FineUIPro.Button.OnClick(EventArgs e)
在 (Button , EventArgs )
在 FineUIPro.Button.RaisePostBackEvent(String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
出错时间:02/05/2024 22:21:59
出错文件:http://localhost:8579/TestRun/PersonTrain/TrainRecords.aspx
IP地址:::1
操作人员:JT
出错时间:02/05/2024 22:21:59
错误信息开始=====>
错误类型:ArgumentException
错误信息:The argument cannot be null or empty string.
参数名: fileName
错误堆栈:
 .(String , String )
在 Aspose.Words.Document..ctor(String fileName, LoadOptions loadOptions)
在 Aspose.Words.Document..ctor(String fileName)
在 FineUIPro.Web.TestRun.PersonTrain.TrainRecords.btnDonwLoadTrainRecords_Click(Object sender, EventArgs e) 位置 E:\五环\SGGL_CWCEC\SGGL\FineUIPro.Web\TestRun\PersonTrain\TrainRecords.aspx.cs:行号 276
在 FineUIPro.Button.OnClick(EventArgs e)
在 (Button , EventArgs )
在 FineUIPro.Button.RaisePostBackEvent(String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
出错时间:02/05/2024 22:21:59
出错文件:http://localhost:8579/TestRun/PersonTrain/TrainRecords.aspx
IP地址:::1
操作人员:JT
出错时间:02/05/2024 22:21:59
错误信息开始=====>
错误类型:ArgumentException
错误信息:The argument cannot be null or empty string.
参数名: fileName
错误堆栈:
 .(String , String )
在 Aspose.Words.Document..ctor(String fileName, LoadOptions loadOptions)
在 Aspose.Words.Document..ctor(String fileName)
在 FineUIPro.Web.TestRun.PersonTrain.TrainRecords.btnDonwLoadTrainRecords_Click(Object sender, EventArgs e) 位置 E:\五环\SGGL_CWCEC\SGGL\FineUIPro.Web\TestRun\PersonTrain\TrainRecords.aspx.cs:行号 276
在 FineUIPro.Button.OnClick(EventArgs e)
在 (Button , EventArgs )
在 FineUIPro.Button.RaisePostBackEvent(String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
出错时间:02/05/2024 22:21:59
出错文件:http://localhost:8579/TestRun/PersonTrain/TrainRecords.aspx
IP地址:::1
操作人员:JT
出错时间:02/05/2024 22:21:59
错误信息开始=====>
错误类型:ArgumentException
错误信息:The argument cannot be null or empty string.
参数名: fileName
错误堆栈:
 .(String , String )
在 Aspose.Words.Document..ctor(String fileName, LoadOptions loadOptions)
在 Aspose.Words.Document..ctor(String fileName)
在 FineUIPro.Web.TestRun.PersonTrain.TrainRecords.btnDonwLoadTrainRecords_Click(Object sender, EventArgs e) 位置 E:\五环\SGGL_CWCEC\SGGL\FineUIPro.Web\TestRun\PersonTrain\TrainRecords.aspx.cs:行号 276
在 FineUIPro.Button.OnClick(EventArgs e)
在 (Button , EventArgs )
在 FineUIPro.Button.RaisePostBackEvent(String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
出错时间:02/05/2024 22:22:00
出错文件:http://localhost:8579/TestRun/PersonTrain/TrainRecords.aspx
IP地址:::1
操作人员:JT
出错时间:02/05/2024 22:22:00
错误信息开始=====>
错误类型:FileNotFoundException
错误信息:未能找到文件“E:\五环\SGGL_CWCEC\SGGL\FineUIPro.Web\File\Word\TestRun\生产人员培训执行情况报告.doc”。
错误堆栈:
在 System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
在 System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite, Boolean checkHost)
在 System.IO.File.Copy(String sourceFileName, String destFileName)
在 FineUIPro.Web.TestRun.PersonTrain.TrainRecords.PageManager1_CustomEvent(Object sender, CustomEventArgs e) 位置 E:\五环\SGGL_CWCEC\SGGL\FineUIPro.Web\TestRun\PersonTrain\TrainRecords.aspx.cs:行号 300
在 FineUIPro.PageManager.OnCustomEvent(CustomEventArgs e)
在 (PageManager , CustomEventArgs )
在 FineUIPro.PageManager.RaisePostBackEvent(String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
出错时间:02/06/2024 13:59:32
出错文件:http://localhost:8579/TestRun/PersonTrain/TrainRecords.aspx
IP地址:::1
操作人员:JT
出错时间:02/06/2024 13:59:32
错误信息开始=====>
错误类型:IOException
错误信息:文件“E:\五环\SGGL_CWCEC\SGGL\FineUIPro.Web\File\Word\TestRun\生产人员培训执行情况报告34869bac-dbd1-41b8-a43a-b6db3daf7aed.doc”已经存在。
错误堆栈:
在 System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
在 System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite, Boolean checkHost)
在 System.IO.File.Copy(String sourceFileName, String destFileName)
在 FineUIPro.Web.TestRun.PersonTrain.TrainRecords.PageManager1_CustomEvent(Object sender, CustomEventArgs e) 位置 E:\五环\SGGL_CWCEC\SGGL\FineUIPro.Web\TestRun\PersonTrain\TrainRecords.aspx.cs:行号 264
在 FineUIPro.PageManager.OnCustomEvent(CustomEventArgs e)
在 (PageManager , CustomEventArgs )
在 FineUIPro.PageManager.RaisePostBackEvent(String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
出错时间:02/06/2024 14:24:27
出错文件:http://localhost:8579/TestRun/PersonTrain/TrainRecords.aspx
IP地址:::1
操作人员:JT
出错时间:02/06/2024 14:24:27

View File

@ -0,0 +1,49 @@
| |中国五环 |华瀛天然气股份有限公司 |项目号 |20197/211|
| |工程有限公司 | | |26 |
| | | | | |
| | |潮州华瀛液化天然气接收站项目 |12345 |
| | |储罐工程和接收站工程EPC总承包项目| |
| | | | |
| | |生产人员培训执行情况报告 |第 1 页 |共 1 页 |
|培训时间 |2024-02-06 |学时数|4.0 |培训地 |会议室 |
| | | | |点 | |
|培训内容 |□理论知识 □操作维修技能 □安全知识 □设备仪表知识 □其他 |
|培训方式 |□办公室理论培训 □制造厂车间培训 □类似装置操作培训 |
| |□合同装置现场培训 □ 其他 |
|参加培训人数| |培训老师或 | |考核方 |□书面考试 |
| | |技术指导老 | |式 |□考核□答疑 |
| | |师 | | | |
|项目培训负责| |业主培训负责 | |
|人 | |人 | |
|学习和实践内容: |
|工序,设备名称: ,设备位号: |
| |
|设备的结构 |
|设备的控制及工作原理 |
|设备的操作要领及开机步骤 |
|设备操作运行注意事项 |
|设备运行的常见问题及维修维护 |
|问题答疑 |
|实施情况: |
|五环工程师组织设备厂家对业主生产人员进行了以上1~6项的学习和实践内容取得了|
|较好效果,按规定完成了该设备相关培训工作(包括理论培训和现场实操)。 |
| |
| |
| |
| |
| |
| |
| |
| |
|效果评价: |
|通过培训,业主生产人员基本掌握了该设备设备基本机构、工作原理、使用方法、以 |
|及试车注意事项、日常运行维护基本要求,能够对该设备进行正常启停、操作。 |
| |
| |
| |
| |
|附件: |
|见培训签到表。 |
|五环代表 | |业主代表 | |日 期| |

View File

@ -0,0 +1,41 @@
|[pic]|中国五环 |华瀛天然气股份有限公司 |20197/21126 |
| |工程有限公司 | | |
| | |潮州华瀛液化天然气接收站项目 |1234556 |
| | |储罐工程和接收站工程EPC总承包项 | |
| | |目 | |
| | |项目培训签到表 |1 |of |1 |1版 |
|培训内容|发打发打发 |学 时 |4.0 |
| | |数 | |
|培训时间|2024-02-06 |培训地 |会议室 |
| | |点 | |
|培训级别|□五环工程项目经理部 ☑厂家培训 |主 讲 |aaaa |
| | |人 | |
|培训人员签到及考核记录 |
|序号 |姓名 |单位/部门|岗位/职务 |签名 |备注 |
|1 | | | | | |
|2 | | | | | |
|3 | | | | | |
|4 | | | | | |
|5 | | | | | |
|6 | | | | | |
|7 | | | | | |
|8 | | | | | |
|9 | | | | | |
|10 | | | | | |
|11 | | | | | |
|12 | | | | | |
|13 | | | | | |
|14 | | | | | |
|15 | | | | | |
|16 | | | | | |
|17 | | | | | |
|18 | | | | | |
|19 | | | | | |
|20 | | | | | |
|21 | | | | | |
|22 | | | | | |
|23 | | | | | |
|24 | | | | | |
|25 | | | | | |

View File

@ -1,3 +0,0 @@
1、复制按钮复制的是选中的节点及详细信息例如选中土方工程右击复制则复制的是土方工程及土方工程的详细信息若不是在末级菜单复制则复制的是选中节点及以下子节点并且包含详细信息例如选中节点地基基础点击复制则复制的是地基基础及地基基础下的土方工程、地基处理等子节点并且包含每个复制节点的详细信息。
2、粘贴按钮是将复制的内容粘贴在选中节点的下方例如复制了地基基础选中土建右击粘贴则把复制地基基础及子节点粘贴在土建下方节点。

View File

@ -5,7 +5,7 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>人员培训记录</title>
<title>人员培训计划</title>
</head>
<body>
<form id="form1" runat="server">
@ -13,7 +13,7 @@
<f:Panel ID="Panel1" runat="server" Margin="5px" BodyPadding="5px" ShowBorder="false"
ShowHeader="false" Layout="VBox" BoxConfigAlign="Stretch">
<Items>
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="人员培训记录" EnableCollapse="true"
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="人员培训计划" EnableCollapse="true"
runat="server" BoxFlex="1" DataKeyNames="PersonTrainPlanId" AllowCellEditing="true" EnableColumnLines="true"
ClicksToEdit="2" DataIDField="PersonTrainPlanId" AllowSorting="true" SortField="TrainingDate"
SortDirection="DESC" OnSort="Grid1_Sort"
@ -40,22 +40,22 @@
<asp:Label ID="lblPageIndex" runat="server" Text='<%# Grid1.PageIndex * Grid1.PageSize + Container.DataItemIndex + 1 %>'></asp:Label>
</ItemTemplate>
</f:TemplateField>
<f:RenderField ColumnID="TrainType" DataField="TrainType" FieldType="String" HeaderText="培训类型" TextAlign="Center"
<%-- <f:RenderField ColumnID="TrainType" DataField="TrainType" FieldType="String" HeaderText="培训类型" TextAlign="Center"
HeaderTextAlign="Center" Width="150px">
</f:RenderField>
<f:RenderField ColumnID="Purpose" DataField="Purpose" FieldType="String" HeaderText="培训目的"
HeaderTextAlign="Center" Width="150px">
</f:RenderField>
</f:RenderField>--%>
<f:RenderField ColumnID="TrainingContent" DataField="TrainingContent" FieldType="String" HeaderText="培训内容"
HeaderTextAlign="Center" Width="120px" ExpandUnusedSpace="true">
</f:RenderField>
<f:RenderField ColumnID="TrainingAddress" DataField="TrainingAddress" FieldType="String" HeaderText="培训地点"
HeaderTextAlign="Center" Width="120px">
HeaderTextAlign="Center" Width="120px" ExpandUnusedSpace="true">
</f:RenderField>
<f:RenderField ColumnID="TrainingDate" DataField="TrainingDate" FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd" HeaderText="培训时间"
HeaderTextAlign="Center" Width="100px">
HeaderTextAlign="Center" Width="120px">
</f:RenderField>
<f:RenderField ColumnID="TrainingPersonNum" DataField="TrainingPersonNum" FieldType="String" HeaderText="参训人员及人数"
<%-- <f:RenderField ColumnID="TrainingPersonNum" DataField="TrainingPersonNum" FieldType="String" HeaderText="参训人员及人数"
HeaderTextAlign="Center" Width="120px">
</f:RenderField>
<f:RenderField ColumnID="TrainingHours" DataField="TrainingHours" FieldType="String" HeaderText="培训学时数"
@ -69,8 +69,8 @@
</f:RenderField>
<f:RenderField ColumnID="AssessmentMethod" DataField="AssessmentMethod" FieldType="String" HeaderText="考核方式"
HeaderTextAlign="Center" Width="100px">
</f:RenderField>
<f:LinkButtonField HeaderText="附件" ConfirmTarget="Top" Width="90" CommandName="AttachUrl" ColumnID="AttachUrl"
</f:RenderField>--%>
<f:LinkButtonField HeaderText="培训计划" ConfirmTarget="Top" Width="90" CommandName="AttachUrl" ColumnID="AttachUrl"
TextAlign="Center" ToolTip="附件查看" Icon="Find" />
</Columns>
<Listeners>
@ -92,9 +92,9 @@
</f:Grid>
</Items>
</f:Panel>
<f:Window ID="Window1" Title="人员培训记录" Hidden="true" EnableIFrame="true" EnableMaximize="true"
<f:Window ID="Window1" Title="人员培训计划" Hidden="true" EnableIFrame="true" EnableMaximize="true"
Target="Parent" EnableResize="false" runat="server" IsModal="true" OnClose="Window1_Close"
Width="900px" Height="620px">
Width="800px" Height="420px">
</f:Window>
<f:Window ID="WindowAtt" Title="弹出窗体" Hidden="true" EnableIFrame="true" EnableMaximize="true"
Target="Parent" EnableResize="false" runat="server" IsModal="true" Width="700px"

View File

@ -5,7 +5,7 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>编辑人员培训记录</title>
<title>编辑人员培训计划</title>
</head>
<body>
<form id="form1" runat="server">
@ -34,27 +34,31 @@
<f:Form ID="Form2" ShowBorder="false" ShowHeader="false" AutoScroll="true"
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
<Rows>
<f:FormRow>
<%-- <f:FormRow>
<Items>
<f:DropDownList ID="drpTrainType" runat="server" Label="培训类型" LabelAlign="Right" LabelWidth="120px" ShowRedStar="true" Required="true"></f:DropDownList>
<f:TextBox ID="txtPurpose" runat="server" Label="培训目的" LabelAlign="Right" LabelWidth="100px" MaxLength="50">
</f:TextBox>
</Items>
</f:FormRow>
</f:FormRow>--%>
<f:FormRow>
<Items>
<f:TextArea ID="txtTrainingContent" runat="server" Label="培训内容" LabelAlign="Right" LabelWidth="120px" MaxLength="200" Required="true" ShowRedStar="true">
</f:TextArea>
<f:TextBox ID="txtTrainingContent" runat="server" Label="培训内容" LabelAlign="Right" LabelWidth="120px" MaxLength="200" Required="true" ShowRedStar="true">
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtTrainingAddress" runat="server" Label="培训地址" LabelAlign="Right" LabelWidth="120px" MaxLength="50" Required="true" ShowRedStar="true">
</f:TextBox>
<f:DatePicker ID="txtTrainingDate" runat="server" Label="培训时间" LabelAlign="Right" LabelWidth="100px" Required="true" ShowRedStar="true"></f:DatePicker>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:DatePicker ID="txtTrainingDate" runat="server" Label="培训时间" LabelAlign="Right" LabelWidth="120px" Required="true" ShowRedStar="true"></f:DatePicker>
</Items>
</f:FormRow>
<%-- <f:FormRow>
<Items>
<f:TextBox ID="txtTrainingPersonNum" runat="server" Label="参训人员及人数" LabelAlign="Right" LabelWidth="120px" MaxLength="100">
</f:TextBox>
@ -75,13 +79,13 @@
</f:TextBox>
<f:Label ID="Label1" runat="server"></f:Label>
</Items>
</f:FormRow>
</f:FormRow>--%>
<f:FormRow runat="server">
<Items>
<f:Panel ID="Panel3" Width="300px" ShowHeader="false" ShowBorder="false" Layout="Column" CssClass="" runat="server">
<Items>
<f:Label ID="lblAttach" runat="server" Label="附件"
LabelWidth="100px">
<f:Label ID="lblAttach" runat="server" Label="培训计划"
LabelWidth="120px">
</f:Label>
<f:Button ID="btnAttach" Icon="TableCell" EnablePostBack="true" Text="附件" runat="server" OnClick="btnAttach_Click">
</f:Button>

View File

@ -16,10 +16,10 @@ namespace FineUIPro.Web.TestRun.PersonTrain
if (!IsPostBack)
{
///培训类型
this.drpTrainType.DataTextField = "Text";
this.drpTrainType.DataValueField = "Value";
this.drpTrainType.DataSource=BLL.DropListService.drpTrainTypeList();
this.drpTrainType.DataBind();
//this.drpTrainType.DataTextField = "Text";
//this.drpTrainType.DataValueField = "Value";
//this.drpTrainType.DataSource=BLL.DropListService.drpTrainTypeList();
//this.drpTrainType.DataBind();
string id = Request.Params["id"];
if (!string.IsNullOrEmpty(id))
@ -28,19 +28,19 @@ namespace FineUIPro.Web.TestRun.PersonTrain
if (data != null)
{
this.hdId.Text = id;
if (!string.IsNullOrEmpty(data.TrainType))
{
this.drpTrainType.SelectedValue = data.TrainType;
}
this.txtPurpose.Text = data.Purpose;
//if (!string.IsNullOrEmpty(data.TrainType))
//{
// this.drpTrainType.SelectedValue = data.TrainType;
//}
//this.txtPurpose.Text = data.Purpose;
this.txtTrainingContent.Text = data.TrainingContent;
this.txtTrainingAddress.Text = data.TrainingAddress;
this.txtTrainingDate.Text = data.TrainingDate.HasValue ? string.Format("{0:yyyy-MM-dd}", data.TrainingDate) : "";
this.txtTrainingPersonNum.Text = data.TrainingPersonNum;
this.txtTrainingHours.Text = data.TrainingHours.HasValue ? data.TrainingHours.ToString() : "";
this.txtTrainingManager.Text = data.TrainingManager;
this.txtTrainingTeacher.Text = data.TrainingTeacher;
this.txtAssessmentMethod.Text = data.AssessmentMethod;
//this.txtTrainingPersonNum.Text = data.TrainingPersonNum;
//this.txtTrainingHours.Text = data.TrainingHours.HasValue ? data.TrainingHours.ToString() : "";
//this.txtTrainingManager.Text = data.TrainingManager;
//this.txtTrainingTeacher.Text = data.TrainingTeacher;
//this.txtAssessmentMethod.Text = data.AssessmentMethod;
}
}
else
@ -75,23 +75,23 @@ namespace FineUIPro.Web.TestRun.PersonTrain
/// <param name="e"></param>
protected void btnSave_Click(object sender, EventArgs e)
{
if (string.IsNullOrEmpty(this.drpTrainType.SelectedValue)||this.drpTrainType.SelectedValue==BLL.Const._Null)
{
Alert.ShowInTop("请选择培训类型!", MessageBoxIcon.Warning);
return;
}
//if (string.IsNullOrEmpty(this.drpTrainType.SelectedValue)||this.drpTrainType.SelectedValue==BLL.Const._Null)
//{
// Alert.ShowInTop("请选择培训类型!", MessageBoxIcon.Warning);
// return;
//}
string id = Request.Params["id"];
Model.TestRun_PersonTrainPlan newData = new Model.TestRun_PersonTrainPlan();
newData.TrainType = this.drpTrainType.SelectedValue;
newData.Purpose = this.txtPurpose.Text.Trim();
//newData.TrainType = this.drpTrainType.SelectedValue;
//newData.Purpose = this.txtPurpose.Text.Trim();
newData.TrainingContent = this.txtTrainingContent.Text.Trim();
newData.TrainingAddress = this.txtTrainingAddress.Text.Trim();
newData.TrainingDate = Funs.GetNewDateTime(this.txtTrainingDate.Text.Trim());
newData.TrainingPersonNum = this.txtTrainingPersonNum.Text.Trim();
newData.TrainingHours = Funs.GetNewDecimal(this.txtTrainingHours.Text.Trim());
newData.TrainingManager = this.txtTrainingManager.Text.Trim();
newData.TrainingTeacher = this.txtTrainingTeacher.Text.Trim();
newData.AssessmentMethod = this.txtAssessmentMethod.Text.Trim();
//newData.TrainingPersonNum = this.txtTrainingPersonNum.Text.Trim();
//newData.TrainingHours = Funs.GetNewDecimal(this.txtTrainingHours.Text.Trim());
//newData.TrainingManager = this.txtTrainingManager.Text.Trim();
//newData.TrainingTeacher = this.txtTrainingTeacher.Text.Trim();
//newData.AssessmentMethod = this.txtAssessmentMethod.Text.Trim();
newData.ProjectId = this.CurrUser.LoginProjectId;
if (!string.IsNullOrEmpty(id))
{

View File

@ -102,24 +102,6 @@ namespace FineUIPro.Web.TestRun.PersonTrain {
/// </remarks>
protected global::FineUIPro.Form Form2;
/// <summary>
/// drpTrainType 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList drpTrainType;
/// <summary>
/// txtPurpose 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtPurpose;
/// <summary>
/// txtTrainingContent 控件。
/// </summary>
@ -127,7 +109,7 @@ namespace FineUIPro.Web.TestRun.PersonTrain {
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextArea txtTrainingContent;
protected global::FineUIPro.TextBox txtTrainingContent;
/// <summary>
/// txtTrainingAddress 控件。
@ -147,60 +129,6 @@ namespace FineUIPro.Web.TestRun.PersonTrain {
/// </remarks>
protected global::FineUIPro.DatePicker txtTrainingDate;
/// <summary>
/// txtTrainingPersonNum 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtTrainingPersonNum;
/// <summary>
/// txtTrainingHours 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.NumberBox txtTrainingHours;
/// <summary>
/// txtTrainingManager 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtTrainingManager;
/// <summary>
/// txtTrainingTeacher 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtTrainingTeacher;
/// <summary>
/// txtAssessmentMethod 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtAssessmentMethod;
/// <summary>
/// Label1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Label Label1;
/// <summary>
/// Panel3 控件。
/// </summary>

View File

@ -22,11 +22,11 @@
<Toolbars>
<f:Toolbar ID="Toolbar1" Position="Top" runat="server" ToolbarAlign="Left">
<Items>
<%-- <f:TextBox ID="txtTrainContent" runat="server" Label="培训内容" LabelAlign="Right">
<f:TextBox ID="txtTrainRecordsName" runat="server" Label="培训内容" LabelAlign="Right">
</f:TextBox>
<f:Button ID="btnSearch" Icon="SystemSearch"
EnablePostBack="true" runat="server" OnClick="btnSearch_Click" ToolTip="搜索">
</f:Button>--%>
</f:Button>
<f:ToolbarFill runat="server"></f:ToolbarFill>
<f:Button ID="btnDonwLoadTrainRecords" runat="server" Icon="DiskDownload" Text="下载培训报告" ToolTip="下载培训报告模板" EnableAjaxLoading="false" OnClick="btnDonwLoadTrainRecords_Click"></f:Button>
<f:Button ID="btnDownLoadSign" runat="server" Icon="DiskDownload" Text="下载签到表" ToolTip="下载签到表模板" EnableAjaxLoading="false" OnClick="btnDownLoadSign_Click"></f:Button>
@ -45,18 +45,30 @@
<f:RenderField ColumnID="TrainRecordsCode" DataField="TrainRecordsCode" FieldType="String" HeaderText="编号" TextAlign="Center"
HeaderTextAlign="Center" Width="200px">
</f:RenderField>
<f:RenderField ColumnID="TrainRecordsName" DataField="TrainRecordsName" FieldType="String" HeaderText="名称"
<f:RenderField ColumnID="TrainRecordsName" DataField="TrainRecordsName" FieldType="String" HeaderText="培训内容"
HeaderTextAlign="Center" Width="300px">
</f:RenderField>
<f:RenderField ColumnID="UploadDate" DataField="UploadDate" FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd" HeaderText="上传时间"
<f:RenderField ColumnID="ClassHours" DataField="ClassHours" FieldType="String" HeaderText="学时数"
HeaderTextAlign="Center" Width="100px">
</f:RenderField>
<f:RenderField ColumnID="TrainingTime" DataField="TrainingTime" FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd" HeaderText="培训时间"
HeaderTextAlign="Center" Width="100px">
</f:RenderField>
<f:RenderField ColumnID="TrainingAddress" DataField="TrainingAddress" FieldType="String" HeaderText="培训地点"
HeaderTextAlign="Center" Width="120px">
</f:RenderField>
<f:RenderField ColumnID="Remark" DataField="Remark" FieldType="String" HeaderText="备注"
HeaderTextAlign="Center" Width="150px" ExpandUnusedSpace="true">
<f:RenderField ColumnID="TrainingLevel" DataField="TrainingLevel" FieldType="String" HeaderText="培训级别"
HeaderTextAlign="Center" Width="150px">
</f:RenderField>
<f:LinkButtonField HeaderText="培训报告" ConfirmTarget="Top" Width="120" CommandName="AttachUrl" ColumnID="AttachUrl"
<f:RenderField ColumnID="Speaker" DataField="Speaker" FieldType="String" HeaderText="主讲人"
HeaderTextAlign="Center" Width="100px">
</f:RenderField>
<f:RenderField ColumnID="States" DataField="States" FieldType="String" HeaderText="状态"
HeaderTextAlign="Center" Width="100px">
</f:RenderField>
<f:LinkButtonField HeaderText="培训报告" ConfirmTarget="Top" Width="90" CommandName="AttachUrl" ColumnID="AttachUrl"
TextAlign="Center" ToolTip="附件查看" Icon="Find" />
<f:LinkButtonField HeaderText="签到表" ConfirmTarget="Top" Width="120" CommandName="AttachUrl2" ColumnID="AttachUrl2"
<f:LinkButtonField HeaderText="签到表" ConfirmTarget="Top" Width="90" CommandName="AttachUrl2" ColumnID="AttachUrl2"
TextAlign="Center" ToolTip="附件查看" Icon="Find" />
</Columns>
<Listeners>

View File

@ -1,4 +1,5 @@
using BLL;
using Aspose.Words;
using BLL;
using System;
using System.Collections.Generic;
using System.Data;
@ -33,14 +34,25 @@ namespace FineUIPro.Web.TestRun.PersonTrain
/// </summary>
private void BindGrid()
{
string strSql = @"SELECT * FROM TestRun_TrainRecords WHERE ProjectId=@projectId";
string strSql = @"select TrainRecordsId,
ProjectId,
TrainRecordsCode,
TrainRecordsName,
UploadDate,
ClassHours,
TrainingTime,
TrainingAddress,
TrainingLevel,
Speaker,
(case when States='1' then '' else '' end) as States "
+ @"FROM TestRun_TrainRecords WHERE ProjectId=@projectId";
List<SqlParameter> listStr = new List<SqlParameter>();
listStr.Add(new SqlParameter("@projectId", this.CurrUser.LoginProjectId));
//if (!string.IsNullOrEmpty(this.txtTrainContent.Text.Trim()))
//{
// strSql += " AND TrainContent LIKE @trainContent";
// listStr.Add(new SqlParameter("@trainContent", "%" + this.txtTrainContent.Text.Trim() + "%"));
//}
if (!string.IsNullOrEmpty(this.txtTrainRecordsName.Text.Trim()))
{
strSql += " AND TrainRecordsName LIKE @trainRecordsName";
listStr.Add(new SqlParameter("@trainRecordsName", "%" + this.txtTrainRecordsName.Text.Trim() + "%"));
}
SqlParameter[] parameter = listStr.ToArray();
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
Grid1.RecordCount = tb.Rows.Count;
@ -218,6 +230,20 @@ namespace FineUIPro.Web.TestRun.PersonTrain
/// <param name="e"></param>
protected void btnDonwLoadTrainRecords_Click(object sender, EventArgs e)
{
if (Grid1.SelectedRowIndexArray.Length == 0)
{
Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning);
return;
}
var trainRecords = BLL.TrainRecordsService.GetTrainRecordsById(Grid1.SelectedRowID);
if (trainRecords != null)
{
if (trainRecords.States == "1")
{
Alert.ShowInTop("该培训已完成无需下载!", MessageBoxIcon.Warning);
return;
}
}
PageContext.RegisterStartupScript(Confirm.GetShowReference("是否确认下载培训报告?", String.Empty, MessageBoxIcon.Question, PageManager1.GetCustomEventReference(false, "Confirm_OK"), PageManager1.GetCustomEventReference("Confirm_Cancel")));
}
@ -228,6 +254,20 @@ namespace FineUIPro.Web.TestRun.PersonTrain
/// <param name="e"></param>
protected void btnDownLoadSign_Click(object sender, EventArgs e)
{
if (Grid1.SelectedRowIndexArray.Length == 0)
{
Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning);
return;
}
var trainRecords = BLL.TrainRecordsService.GetTrainRecordsById(Grid1.SelectedRowID);
if (trainRecords != null)
{
if (trainRecords.States == "1")
{
Alert.ShowInTop("该培训已完成无需下载!", MessageBoxIcon.Warning);
return;
}
}
PageContext.RegisterStartupScript(Confirm.GetShowReference("是否确认下载签到表?", String.Empty, MessageBoxIcon.Question, PageManager1.GetCustomEventReference(false, "Confirm_OK2"), PageManager1.GetCustomEventReference("Confirm_Cancel2")));
}
@ -239,34 +279,138 @@ namespace FineUIPro.Web.TestRun.PersonTrain
if (e.EventArgument == "Confirm_OK")
{
string rootPath = Server.MapPath("~/");
string uploadfilepath = rootPath + Const.TestRun_TrainRecordsUrl;
string filePath = Const.TestRun_TrainRecordsUrl;
string fileName = Path.GetFileName(filePath);
string initTemplatePath = string.Empty;
string uploadfilepath = string.Empty;
string newUrl = string.Empty;
string filePath = string.Empty;
Model.TestRun_TrainRecords trainRecords = BLL.TrainRecordsService.GetTrainRecordsById(Grid1.SelectedRowID);
initTemplatePath = Const.TestRun_TrainRecordsUrl;
uploadfilepath = rootPath + initTemplatePath;
newUrl = uploadfilepath.Replace(".doc", trainRecords.TrainRecordsId.Replace("/", "-") + ".doc");
//filePath = initTemplatePath.Replace(".doc", trainRecords.TrainRecordsId.Replace("/", "-") + ".pdf");
File.Copy(uploadfilepath, newUrl);
Document doc = new Aspose.Words.Document(uploadfilepath);
Bookmark trainRecordsCode = doc.Range.Bookmarks["TrainRecordsCode"];
if (trainRecordsCode != null)
{
trainRecordsCode.Text = trainRecords.TrainRecordsCode;
}
Bookmark trainingTime = doc.Range.Bookmarks["TrainingTime"];
if (trainingTime != null)
{
trainingTime.Text = trainRecords.TrainingTime.HasValue ? string.Format("{0:yyyy-MM-dd}", trainRecords.TrainingTime) : "";
}
Bookmark classHours = doc.Range.Bookmarks["ClassHours"];
if (classHours != null)
{
classHours.Text = trainRecords.ClassHours.HasValue ? trainRecords.ClassHours.ToString() : "";
}
Bookmark trainingAddress = doc.Range.Bookmarks["TrainingAddress"];
if (trainingAddress != null)
{
trainingAddress.Text = trainRecords.TrainingAddress;
}
doc.Save(uploadfilepath);
//生成PDF文件
//string pdfUrl = uploadfilepath.Replace(".doc", ".pdf");
Document doc1 = new Aspose.Words.Document(uploadfilepath);
//验证参数
if (doc1 == null) { throw new Exception("Word文件无效"); }
doc1.Save(uploadfilepath, Aspose.Words.SaveFormat.Doc);//还可以改成其它格式
string fileName = Path.GetFileName(initTemplatePath);
FileInfo info = new FileInfo(uploadfilepath);
long fileSize = info.Length;
Response.ClearContent();
Response.Clear();
Response.ContentType = "application/x-zip-compressed";
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.AddHeader("Content-Length", fileSize.ToString());
Response.TransmitFile(uploadfilepath, 0, fileSize);
Response.End();
Response.Flush();
Response.Close();
File.Delete(newUrl);
}
else if (e.EventArgument == "Confirm_OK2")
{
string rootPath = Server.MapPath("~/");
string uploadfilepath = rootPath + Const.TestRun_SignUrl;
string filePath = Const.TestRun_SignUrl;
string fileName = Path.GetFileName(filePath);
string initTemplatePath = string.Empty;
string uploadfilepath = string.Empty;
string newUrl = string.Empty;
string filePath = string.Empty;
Model.TestRun_TrainRecords trainRecords = BLL.TrainRecordsService.GetTrainRecordsById(Grid1.SelectedRowID);
initTemplatePath = Const.TestRun_SignUrl;
uploadfilepath = rootPath + initTemplatePath;
newUrl = uploadfilepath.Replace(".doc", trainRecords.TrainRecordsId.Replace("/", "-") + ".doc");
//filePath = initTemplatePath.Replace(".doc", trainRecords.TrainRecordsId.Replace("/", "-") + ".pdf");
File.Copy(uploadfilepath, newUrl);
Document doc = new Aspose.Words.Document(uploadfilepath);
Bookmark trainRecordsCode = doc.Range.Bookmarks["TrainRecordsCode"];
if (trainRecordsCode != null)
{
trainRecordsCode.Text = trainRecords.TrainRecordsCode;
}
Bookmark trainRecordsName = doc.Range.Bookmarks["TrainRecordsName"];
if (trainRecordsName != null)
{
trainRecordsName.Text = trainRecords.TrainRecordsName;
}
Bookmark trainingTime = doc.Range.Bookmarks["TrainingTime"];
if (trainingTime != null)
{
trainingTime.Text = trainRecords.TrainingTime.HasValue ? string.Format("{0:yyyy-MM-dd}", trainRecords.TrainingTime) : "";
}
Bookmark classHours = doc.Range.Bookmarks["ClassHours"];
if (classHours != null)
{
classHours.Text = trainRecords.ClassHours.HasValue ? trainRecords.ClassHours.ToString() : "";
}
Bookmark trainingAddress = doc.Range.Bookmarks["TrainingAddress"];
if (trainingAddress != null)
{
trainingAddress.Text = trainRecords.TrainingAddress;
}
Bookmark trainingLevel = doc.Range.Bookmarks["TrainingLevel"];
if (trainingLevel != null)
{
if (trainRecords.TrainingLevel == "五环工程项目经理部")
{
trainingLevel.Text = "☑五环工程项目经理部 □厂家培训";
}
else if (trainRecords.TrainingLevel == "厂家培训")
{
trainingLevel.Text = "□五环工程项目经理部 ☑厂家培训";
}
else
{
trainingLevel.Text = "□五环工程项目经理部 □厂家培训";
}
}
Bookmark speaker = doc.Range.Bookmarks["Speaker"];
if (speaker != null)
{
speaker.Text = trainRecords.Speaker;
}
doc.Save(uploadfilepath);
//生成PDF文件
//string pdfUrl = uploadfilepath.Replace(".doc", ".pdf");
Document doc1 = new Aspose.Words.Document(uploadfilepath);
//验证参数
if (doc1 == null) { throw new Exception("Word文件无效"); }
doc1.Save(uploadfilepath, Aspose.Words.SaveFormat.Doc);//还可以改成其它格式
string fileName = Path.GetFileName(initTemplatePath);
FileInfo info = new FileInfo(uploadfilepath);
long fileSize = info.Length;
Response.ClearContent();
Response.Clear();
Response.ContentType = "application/x-zip-compressed";
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.AddHeader("Content-Length", fileSize.ToString());
Response.TransmitFile(uploadfilepath, 0, fileSize);
Response.End();
Response.Flush();
Response.Close();
File.Delete(newUrl);
}
}
#endregion

View File

@ -57,6 +57,24 @@ namespace FineUIPro.Web.TestRun.PersonTrain {
/// </remarks>
protected global::FineUIPro.Toolbar Toolbar1;
/// <summary>
/// txtTrainRecordsName 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtTrainRecordsName;
/// <summary>
/// btnSearch 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnSearch;
/// <summary>
/// btnDonwLoadTrainRecords 控件。
/// </summary>

View File

@ -4,7 +4,7 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>编辑培训记录及执行报告</title>
</head>
<body>
@ -12,7 +12,7 @@
<f:PageManager ID="PageManager1" AutoSizePanelID="SimpleForm1" runat="server" />
<f:Form ID="SimpleForm1" ShowBorder="false" ShowHeader="false" AutoScroll="true"
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
<Toolbars>
<toolbars>
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
<Items>
<f:ToolbarFill ID="ToolbarFill1" runat="server">
@ -24,8 +24,8 @@
<f:HiddenField ID="hdId" runat="server"></f:HiddenField>
</Items>
</f:Toolbar>
</Toolbars>
<Rows>
</toolbars>
<rows>
<f:FormRow>
<Items>
<f:ContentPanel ID="ContentPanel2" ShowBorder="true"
@ -37,19 +37,37 @@
<f:FormRow>
<Items>
<f:TextBox ID="txtCode" runat="server" Label="编号" LabelAlign="Right" LabelWidth="100px" MaxLength="50" Required="true" ShowRedStar="true">
</f:TextBox>
<f:TextBox ID="txtName" runat="server" Label="培训内容" LabelAlign="Right" LabelWidth="100px" Required="true" ShowRedStar="true" MaxLength="500">
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtName" runat="server" Label="名称" LabelAlign="Right" LabelWidth="100px" Required="true" ShowRedStar="true" MaxLength="500">
</f:TextBox>
<f:NumberBox ID="txtClassHours" runat="server" Label="学时数" LabelAlign="Right" LabelWidth="100px">
</f:NumberBox>
<f:DatePicker ID="txtTrainingTime" runat="server" Label="培训时间" LabelAlign="Right" LabelWidth="100px" ></f:DatePicker>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:DatePicker ID="txtUploadDate" runat="server" Label="上传时间" LabelAlign="Right" LabelWidth="100px" ></f:DatePicker>
<f:TextBox ID="txtTrainingAddress" runat="server" Label="培训地点" LabelAlign="Right" LabelWidth="100px" MaxLength="50" Required="true" ShowRedStar="true">
</f:TextBox>
<%--<f:TextBox ID="txtTrainingLevel" runat="server" Label="培训级别" LabelAlign="Right" LabelWidth="100px" Required="true" ShowRedStar="true" MaxLength="500">
</f:TextBox>--%>
<f:DropDownList ID="drpTrainingLevel" runat="server" Label="培训级别" LabelAlign="Right" LabelWidth="100px">
<f:ListItem Value="" Text="-请选择-" Selected="true" />
<f:ListItem Value="五环工程项目经理部" Text="五环工程项目经理部" />
<f:ListItem Value="厂家培训" Text="厂家培训" />
<f:ListItem />
</f:DropDownList>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtSpeaker" runat="server" Label="主讲人" LabelAlign="Right" LabelWidth="100px" MaxLength="50" >
</f:TextBox>
<f:Label ID="Label2" runat="server"></f:Label>
</Items>
</f:FormRow>
<f:FormRow>
@ -75,7 +93,7 @@
<Items>
<f:Panel ID="Panel1" Width="300px" ShowHeader="false" ShowBorder="false" Layout="Column" CssClass="" runat="server">
<Items>
<f:Label ID="Label1" runat="server" Label="签到表"
<f:Label ID="lblSign" runat="server" Label="签到表"
LabelWidth="100px">
</f:Label>
<f:Button ID="btnSign" Icon="TableCell" EnablePostBack="true" Text="附件" runat="server" OnClick="btnSign_Click">
@ -89,7 +107,7 @@
</f:ContentPanel>
</Items>
</f:FormRow>
</Rows>
</rows>
</f:Form>
<f:Window ID="WindowAtt" Title="弹出窗体" Hidden="true" EnableIFrame="true" EnableMaximize="true"
Target="Parent" EnableResize="false" runat="server" IsModal="true" Width="700px"

View File

@ -24,13 +24,32 @@ namespace FineUIPro.Web.TestRun.PersonTrain
this.hdId.Text = id;
this.txtCode.Text = data.TrainRecordsCode;
this.txtName.Text = data.TrainRecordsName;
this.txtUploadDate.Text = data.UploadDate.HasValue ? string.Format("{0:yyyy-MM-dd}", data.UploadDate) : "";
//this.txtUploadDate.Text = data.UploadDate.HasValue ? string.Format("{0:yyyy-MM-dd}", data.UploadDate) : "";
this.txtRemark.Text = data.Remark;
this.txtClassHours.Text = data.ClassHours.HasValue ? data.ClassHours.ToString() : "";
this.txtTrainingTime.Text = data.TrainingTime.HasValue ? string.Format("{0:yyyy-MM-dd}", data.TrainingTime) : "";
this.txtTrainingAddress.Text = data.TrainingAddress;
//this.txtTrainingLevel.Text = data.TrainingLevel;
if (!string.IsNullOrEmpty(data.TrainingLevel))
{
this.drpTrainingLevel.SelectedValue = data.TrainingLevel;
}
this.txtSpeaker.Text = data.Speaker;
this.btnAttach.Hidden = false;
this.btnSign.Hidden = false;
if (data.States == "1")
{
this.btnSave.Hidden = true;
}
}
}
else
{
this.txtUploadDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now);
this.txtTrainingTime.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now);
this.btnAttach.Hidden = true;
this.btnSign.Hidden = true;
this.lblAttach.Hidden = true;
this.lblSign.Hidden = true;
}
}
}
@ -78,7 +97,14 @@ namespace FineUIPro.Web.TestRun.PersonTrain
Model.TestRun_TrainRecords newData = new Model.TestRun_TrainRecords();
newData.TrainRecordsCode = this.txtCode.Text.Trim();
newData.TrainRecordsName = this.txtName.Text.Trim();
newData.UploadDate = Funs.GetNewDateTime(this.txtUploadDate.Text.Trim());
newData.TrainingTime = Funs.GetNewDateTime(this.txtTrainingTime.Text.Trim());
newData.ClassHours = Funs.GetNewDecimal(this.txtClassHours.Text.Trim());
newData.TrainingAddress = this.txtTrainingAddress.Text.Trim();
if (!string.IsNullOrEmpty(this.drpTrainingLevel.SelectedValue))
{
newData.TrainingLevel = this.drpTrainingLevel.SelectedValue;
}
newData.Speaker = this.txtSpeaker.Text.Trim();
newData.CompileMan = this.CurrUser.UserId;
newData.CompileDate = DateTime.Now;
newData.Remark = this.txtRemark.Text.Trim();
@ -96,11 +122,25 @@ namespace FineUIPro.Web.TestRun.PersonTrain
}
else
{
newData.States = "0";
newData.TrainRecordsId = SQLHelper.GetNewID(typeof(Model.TestRun_TrainRecords));
this.hdId.Text = newData.TrainRecordsId;
}
BLL.TrainRecordsService.AddTrainRecords(newData);
}
//签到表和记录表都上传更新状态
var att = BLL.AttachFileService.Getfiles(this.hdId.Text + "#1", BLL.Const.TrainRecordsMenuId);
var att2 = BLL.AttachFileService.Getfiles(this.hdId.Text + "#2", BLL.Const.TrainRecordsMenuId);
if (att != null && att2 != null)
{
var data = BLL.TrainRecordsService.GetTrainRecordsById(this.hdId.Text);
if (data != null)
{
data.States = "1";
Funs.DB.SubmitChanges();
}
}
ShowNotify("保存成功!", MessageBoxIcon.Success);
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
}

View File

@ -121,13 +121,58 @@ namespace FineUIPro.Web.TestRun.PersonTrain {
protected global::FineUIPro.TextBox txtName;
/// <summary>
/// txtUploadDate 控件。
/// txtClassHours 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DatePicker txtUploadDate;
protected global::FineUIPro.NumberBox txtClassHours;
/// <summary>
/// txtTrainingTime 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DatePicker txtTrainingTime;
/// <summary>
/// txtTrainingAddress 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtTrainingAddress;
/// <summary>
/// drpTrainingLevel 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList drpTrainingLevel;
/// <summary>
/// txtSpeaker 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtSpeaker;
/// <summary>
/// Label2 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Label Label2;
/// <summary>
/// txtRemark 控件。
@ -175,13 +220,13 @@ namespace FineUIPro.Web.TestRun.PersonTrain {
protected global::FineUIPro.Panel Panel1;
/// <summary>
/// Label1 控件。
/// lblSign 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Label Label1;
protected global::FineUIPro.Label lblSign;
/// <summary>
/// btnSign 控件。

View File

@ -12,7 +12,7 @@
<appSettings>
<!--连接字符串-->
<!--<add key="ConnectionString" value="Server=.;Database=SGGLDB_WH;Integrated Security=False;User ID=sa;Password=1111;MultipleActiveResultSets=true;Connect Timeout=1200"/>-->
<add key="ConnectionString" value="Server=.;Database=SGGLDB_WH;Integrated Security=False;User ID=sa;Password=1111;MultipleActiveResultSets=true;Connect Timeout=1200"/>
<add key="ConnectionString" value="Server=.\SQL2012;Database=SGGLDB_WH;Integrated Security=False;User ID=sa;Password=1111;MultipleActiveResultSets=true;Connect Timeout=1200"/>
<!--系统名称-->
<add key="SystemName" value="智慧施工管理信息系统V1.0"/>
<add key="ChartImageHandler" value="storage=file;timeout=20;url=~/Images/;"/>
@ -77,7 +77,7 @@
<add verb="GET" path="res.axd" type="FineUIPro.ResourceHandler, FineUIPro" validate="false"/>
<add path="ChartImg.axd" verb="GET,POST,HEAD" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
</httpHandlers>
<compilation debug="false" targetFramework="4.6.1"/>
<compilation debug="true" targetFramework="4.6.1"/>
<httpRuntime requestValidationMode="2.0" maxRequestLength="2147483647" executionTimeout="36000"/>
<authentication mode="Forms">
<forms loginUrl="Login.aspx" name="PUBLISHERCOOKIE" protection="All" timeout="1440" path="/"/>

View File

@ -9,7 +9,7 @@
<TreeNode id="2171DE2D-A3D7-4C2D-8708-7207D7FF3965" Text="开车责任分工表" NavigateUrl="TestRun/DriverPrepare/Duty.aspx"></TreeNode>
<TreeNode id="06D8BB82-F7D6-48B0-B7A5-A75AB2010237" Text="开车方案编制计划" NavigateUrl="TestRun/DriverPrepare/SchemePlan.aspx"></TreeNode>
</TreeNode>
<TreeNode id="4C973259-234C-4540-9F6A-161ED93BE79B" Text="生产人员培训" NavigateUrl=""><TreeNode id="C8AD8E40-0E96-4007-A02F-62DDB0B275D5" Text="人员培训记录" NavigateUrl="TestRun/PersonTrain/PersonTrainPlan.aspx"></TreeNode>
<TreeNode id="4C973259-234C-4540-9F6A-161ED93BE79B" Text="生产人员培训" NavigateUrl=""><TreeNode id="C8AD8E40-0E96-4007-A02F-62DDB0B275D5" Text="人员培训计划" NavigateUrl="TestRun/PersonTrain/PersonTrainPlan.aspx"></TreeNode>
<TreeNode id="586035BF-A2D4-4199-A503-0ACACBFA5A13" Text="培训合同" NavigateUrl="TestRun/PersonTrain/TrainContract.aspx"></TreeNode>
<TreeNode id="80FDE614-1A37-4C1F-B818-C179CA97D66C" Text="培训记录及执行报告" NavigateUrl="TestRun/PersonTrain/TrainRecords.aspx"></TreeNode>
</TreeNode>
@ -42,12 +42,12 @@
<TreeNode id="D9D90BA4-BF34-4045-977F-DCE9D507F40F" Text="生成工作包检查表" NavigateUrl="TestRun/BeforeTestRun/SubInspectTerm.aspx"></TreeNode>
<TreeNode id="150A6D3D-CAA2-4246-947C-6730A18BCC83" Text="检查表条件确认" NavigateUrl="TestRun/BeforeTestRun/SubWorkInspect.aspx"></TreeNode>
<TreeNode id="B6A6EA7D-EDAB-40C8-920D-A106731D0E08" Text="检查表尾项管理" NavigateUrl="TestRun/BeforeTestRun/InspectTailTermList.aspx"></TreeNode>
<TreeNode id="F7A324D0-2410-4B37-858C-10F0A3059C90" Text="尾项处理" NavigateUrl="TestRun/BeforeTestRun/TailTermHandleList.aspx"></TreeNode>
<TreeNode id="8542644D-BD9B-4188-9FDE-AE5D6D6D9A40" Text="尾项审核" NavigateUrl="TestRun/BeforeTestRun/TailTermApproveList.aspx"></TreeNode>
<TreeNode id="2254D22A-94EF-435F-9916-F07BD7082689" Text="检查表会签" NavigateUrl="TestRun/BeforeTestRun/InspectWanderAboutList.aspx"></TreeNode>
<TreeNode id="AF88737F-D665-4C81-99D5-A07A8910C1E0" Text="检查表流转全部通过" NavigateUrl="TestRun/BeforeTestRun/InspectWanderAboutAllPassList.aspx"></TreeNode>
<TreeNode id="F7A324D0-2410-4B37-858C-10F0A3059C90" Text="检查项确认" NavigateUrl="TestRun/BeforeTestRun/TailTermHandleList.aspx"></TreeNode>
<TreeNode id="2254D22A-94EF-435F-9916-F07BD7082689" Text="检查表流转" NavigateUrl="TestRun/BeforeTestRun/InspectWanderAboutList.aspx"></TreeNode>
<TreeNode id="8542644D-BD9B-4188-9FDE-AE5D6D6D9A40" Text="检查项审核" NavigateUrl="TestRun/BeforeTestRun/TailTermApproveList.aspx"></TreeNode>
<TreeNode id="F184E0FC-96E3-48A5-9515-21EAD37053B3" Text="现场实施" NavigateUrl="TestRun/BeforeTestRun/SiteImplementationList.aspx"></TreeNode>
<TreeNode id="19865B64-E0AA-4D32-9712-05C14FE6288F" Text="试车记录上传" NavigateUrl="TestRun/BeforeTestRun/TestRunRecordUploadList.aspx"></TreeNode>
<TreeNode id="AF88737F-D665-4C81-99D5-A07A8910C1E0" Text="检查表流转全部通过" NavigateUrl="TestRun/BeforeTestRun/InspectWanderAboutAllPassList.aspx"></TreeNode>
<TreeNode id="FCC050F0-0F13-4CE5-BE33-623377562965" Text="三查四定尾项清单" NavigateUrl="TestRun/BeforeTestRun/SubThreeChecksFourDecisionList.aspx"></TreeNode>
<TreeNode id="4822760B-395B-4979-B547-EA0D715C8A2C" Text="三查四定提出人处理" NavigateUrl="TestRun/BeforeTestRun/FourDecisionProposerHandle.aspx"></TreeNode>
<TreeNode id="E673FC27-74F1-479C-8DE1-950183566725" Text="三查四定责任人销项" NavigateUrl="TestRun/BeforeTestRun/FourDecisionResponsibilityConfirm.aspx"></TreeNode>
@ -65,11 +65,9 @@
<TreeNode id="0217CE50-3ABB-44F8-A38A-C9792C436639" Text="试车管理" NavigateUrl=""><TreeNode id="E3E38073-1DF4-4C02-AFC0-5C93EE7C23A8" Text="系统划分" NavigateUrl="TestRun/TestRunManage/DeviceRun.aspx"></TreeNode>
<TreeNode id="4B964B32-D5CC-48A2-8750-48BC4460C264" Text="工作包设置" NavigateUrl="TestRun/TestRunManage/SetWorkPackage.aspx"></TreeNode>
<TreeNode id="B6EE8E3B-77E2-416E-8985-3C78A2169B89" Text="工作包裁剪" NavigateUrl="TestRun/TestRunManage/SubSysWorkPackage.aspx"></TreeNode>
<TreeNode id="AF2B0CAD-DE15-4F15-A5EE-C8FB558D00C8" Text="检查项分组信息" NavigateUrl="TestRun/TestRunManage/TemplateItemGroup.aspx"></TreeNode>
<TreeNode id="545AACE6-34BE-4BAA-A495-B73198F1BDE2" Text="检查表模板" NavigateUrl="TestRun/TestRunManage/InspectTemplate.aspx"></TreeNode>
<TreeNode id="086DBD12-5649-4330-807A-44ABB257495F" Text="联动试车管理" NavigateUrl="TestRun/TestRunManage/SubInspectTerm.aspx"></TreeNode>
<TreeNode id="4041089F-5CC2-4070-9556-7DAB83CF6292" Text="检查表尾项管理" NavigateUrl="TestRun/TestRunManage/InspectTailTermList.aspx"></TreeNode>
<TreeNode id="A593B611-82C1-40D8-BB6A-DD025DB62F8C" Text="联动试车确认" NavigateUrl="TestRun/TestRunManage/SubWorkInspect.aspx"></TreeNode>
<TreeNode id="2232ED9A-EA3C-4CB5-A53C-D96D3F5E0527" Text="尾项处理" NavigateUrl="TestRun/TestRunManage/TailTermHandleList.aspx"></TreeNode>
<TreeNode id="9489BD6A-1A95-43BC-85C0-A65751C2C85E" Text="尾项审核" NavigateUrl="TestRun/TestRunManage/TailTermApproveList.aspx"></TreeNode>
<TreeNode id="26F8468D-4358-4E2A-895D-8720A6F1FA89" Text="检查表会签" NavigateUrl="TestRun/TestRunManage/InspectWanderAboutList.aspx"></TreeNode>

View File

@ -1,21 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<Tree>
<TreeNode id="48545C6A-9D10-47F4-810F-DAB0CFCD5BF9" Text="Project Set up" NavigateUrl="Transfer/ProjectSetup.aspx">
</TreeNode>
<TreeNode id="D94C1BA4-9DFD-4514-AE12-6F886C5D8C9B" Text="Piping" NavigateUrl="Transfer/Piping.aspx"></TreeNode>
<TreeNode id="982F746C-084C-445C-9AE8-8C37BDFE7994" Text="Static Equipment" NavigateUrl="Transfer/StaticEquipment.aspx"></TreeNode>
<TreeNode id="7E2FB5F9-FB99-4455-B68F-460F1F9A2676" Text="Rotating Equipment" NavigateUrl="Transfer/RotatingEquipment.aspx"></TreeNode>
<TreeNode id="88F51059-55B4-4CD5-A38C-36404E5029F6" Text="Instrumentation" NavigateUrl="Transfer/Instrumentation.aspx"></TreeNode>
<TreeNode id="296E75D2-192A-4D1F-8471-DD34263F8691" Text="Electrical" NavigateUrl="Transfer/Electrical.aspx"></TreeNode>
<TreeNode id="95C39F86-C060-452E-BA37-D891C466A39B" Text="Civil Structure" NavigateUrl="Transfer/CivilStructure.aspx"></TreeNode>
<TreeNode id="794E64E2-FDD2-4B7D-8408-F7FB06F9C92A" Text="Firefighting" NavigateUrl="Transfer/Firefighting.aspx"></TreeNode>
<TreeNode id="58FFBD80-ACB9-4830-A18A-E025D9600D94" Text="Telecom" NavigateUrl="Transfer/Telecom.aspx"></TreeNode>
<TreeNode id="95295BF7-FB51-480D-9902-6ADA4E8427FC" Text="Plumbing" NavigateUrl="Transfer/Plumbing.aspx"></TreeNode>
<TreeNode id="05442049-1310-45B1-9D3D-CAAE759D8F3E" Text="HVAC" NavigateUrl="Transfer/HVAC.aspx"></TreeNode>
<TreeNode id="016903B1-3B86-4CF5-AFF8-FF8BE389BEE5" Text="Punchlist from" NavigateUrl="Transfer/PunchlistFrom.aspx"></TreeNode>
<TreeNode id="3517DBE2-9728-4BA0-9EA5-AE2147DB883B" Text="移交图表" NavigateUrl=""><TreeNode id="E6F5125D-DD94-4978-B7EB-D9C26694D86D" Text="全厂移交统计表" NavigateUrl="Transfer/Chart/Instrumentation.aspx"></TreeNode>
<TreeNode id="F97BCF55-E450-4007-AD84-AB64B3496204" Text="全厂移交统计递增表" NavigateUrl="Transfer/Chart/TransferChart.aspx"></TreeNode>
<TreeNode id="C2DD3E9E-DB18-466F-8FA0-19AD6E21EEF0" Text="Punchlist from" NavigateUrl="Transfer/Chart/PunchlistFrom.aspx"></TreeNode>
<TreeNode id="BB5EC5E1-A23D-4A3F-8772-CD40757974EC" Text="Punchlist from统计递增表" NavigateUrl="Transfer/Chart/PunchlistFromChart.aspx"></TreeNode>
</TreeNode>
</Tree>

File diff suppressed because it is too large Load Diff