修改移交
This commit is contained in:
parent
aa8fe6b2b7
commit
eb8003142c
|
@ -1,3 +1,6 @@
|
||||||
|
alter table Transfer_LHCSystemList
|
||||||
|
add SystemNo nvarchar(50) NULL;
|
||||||
|
|
||||||
|
|
||||||
insert into Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
insert into Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
|
||||||
values('E305689E-5D84-4C1A-BF67-85FA2D828115','ÒÆ½»Í³¼Æ±í','Transfer/Chart/Systemstatus.aspx',50,'3517DBE2-9728-4BA0-9EA5-AE2147DB883B'
|
values('E305689E-5D84-4C1A-BF67-85FA2D828115','ÒÆ½»Í³¼Æ±í','Transfer/Chart/Systemstatus.aspx',50,'3517DBE2-9728-4BA0-9EA5-AE2147DB883B'
|
||||||
|
|
|
@ -750,3 +750,82 @@ IP地址:::1
|
||||||
出错时间:07/25/2024 13:36:33
|
出错时间:07/25/2024 13:36:33
|
||||||
出错时间:07/25/2024 13:36:33
|
出错时间:07/25/2024 13:36:33
|
||||||
|
|
||||||
|
|
||||||
|
错误信息开始=====>
|
||||||
|
错误类型:SqlException
|
||||||
|
错误信息:参数化查询 '(@ProjectId nvarchar(4000),@Type nvarchar(1))select * from Trans' 需要参数 '@ProjectId',但未提供该参数。
|
||||||
|
错误堆栈:
|
||||||
|
在 System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
|
||||||
|
在 System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
|
||||||
|
在 System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
|
||||||
|
在 System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
|
||||||
|
在 System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()
|
||||||
|
在 System.Data.SqlClient.SqlDataReader.get_MetaData()
|
||||||
|
在 System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted)
|
||||||
|
在 System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest)
|
||||||
|
在 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry)
|
||||||
|
在 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
|
||||||
|
在 System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
|
||||||
|
在 System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
|
||||||
|
在 System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior)
|
||||||
|
在 System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
|
||||||
|
在 System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior)
|
||||||
|
在 System.Data.Common.DbDataAdapter.Fill(DataTable dataTable)
|
||||||
|
在 BLL.SQLHelper.GetDataTableRunText(String strSql, SqlParameter[] parameters) 位置 G:\公司项目\五环\CNCEC_SUBQHSE_WUHUAN\SGGL\BLL\SQLHelper.cs:行号 311
|
||||||
|
在 FineUIPro.Web.Transfer.LHCSystemList.BindGrid() 位置 G:\公司项目\五环\CNCEC_SUBQHSE_WUHUAN\SGGL\FineUIPro.Web\Transfer\LHCSystemList.aspx.cs:行号 78
|
||||||
|
在 FineUIPro.Web.Transfer.LHCSystemList.Page_Load(Object sender, EventArgs e) 位置 G:\公司项目\五环\CNCEC_SUBQHSE_WUHUAN\SGGL\FineUIPro.Web\Transfer\LHCSystemList.aspx.cs:行号 42
|
||||||
|
在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
|
||||||
|
在 System.EventHandler.Invoke(Object sender, EventArgs e)
|
||||||
|
在 System.Web.UI.Control.OnLoad(EventArgs e)
|
||||||
|
在 System.Web.UI.Control.LoadRecursive()
|
||||||
|
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
|
||||||
|
出错时间:07/29/2024 16:03:19
|
||||||
|
出错文件:http://localhost:8579/Transfer/LHCSystemList.aspx?Type=0
|
||||||
|
IP地址:::1
|
||||||
|
操作人员:JT
|
||||||
|
|
||||||
|
出错时间:07/29/2024 16:03:19
|
||||||
|
|
||||||
|
|
||||||
|
错误信息开始=====>
|
||||||
|
错误类型:HttpParseException
|
||||||
|
错误信息:FineUIPro.ControlBaseCollection 必须具有类型为“FineUIPro.ControlBase”的项。“div”的类型为“System.Web.UI.HtmlControls.HtmlGenericControl”。
|
||||||
|
错误堆栈:
|
||||||
|
在 System.Web.UI.TemplateParser.ProcessException(Exception ex)
|
||||||
|
在 System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding)
|
||||||
|
在 System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding)
|
||||||
|
----错误类型:HttpException
|
||||||
|
----错误信息:
|
||||||
|
----FineUIPro.ControlBaseCollection 必须具有类型为“FineUIPro.ControlBase”的项。“div”的类型为“System.Web.UI.HtmlControls.HtmlGenericControl”。
|
||||||
|
----错误堆栈:
|
||||||
|
在 System.Web.UI.CollectionBuilder.GetChildControlType(String tagName, IDictionary attribs)
|
||||||
|
在 System.Web.UI.ControlBuilder.CreateChildBuilder(String filter, String tagName, IDictionary attribs, TemplateParser parser, ControlBuilder parentBuilder, String id, Int32 line, VirtualPath virtualPath, Type& childType, Boolean defaultProperty)
|
||||||
|
在 System.Web.UI.TemplateParser.ProcessBeginTag(Match match, String inputText)
|
||||||
|
在 System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding)
|
||||||
|
出错时间:07/29/2024 16:40:04
|
||||||
|
出错文件:http://localhost:8579/Transfer/Chart/SystemstatusChart.aspx
|
||||||
|
IP地址:::1
|
||||||
|
|
||||||
|
出错时间:07/29/2024 16:40:04
|
||||||
|
|
||||||
|
|
||||||
|
错误信息开始=====>
|
||||||
|
错误类型:HttpCompileException
|
||||||
|
错误信息:g:\公司项目\五环\CNCEC_SUBQHSE_WUHUAN\SGGL\FineUIPro.Web\Transfer\Chart\SystemstatusChart.aspx(166): error CS0103: 当前上下文中不存在名称“Two”
|
||||||
|
错误堆栈:
|
||||||
|
在 System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath)
|
||||||
|
在 System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
|
||||||
|
在 System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
|
||||||
|
在 System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound)
|
||||||
|
在 System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp)
|
||||||
|
在 System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
|
||||||
|
在 System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path)
|
||||||
|
在 System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
|
||||||
|
在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
|
||||||
|
在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
|
||||||
|
出错时间:07/29/2024 16:47:59
|
||||||
|
出错文件:http://localhost:8579/Transfer/Chart/SystemstatusChart.aspx
|
||||||
|
IP地址:::1
|
||||||
|
|
||||||
|
出错时间:07/29/2024 16:47:59
|
||||||
|
|
||||||
|
|
Binary file not shown.
Binary file not shown.
|
@ -2024,6 +2024,9 @@
|
||||||
<Content Include="Transfer\Chart\PunchlistFromChartNew.aspx" />
|
<Content Include="Transfer\Chart\PunchlistFromChartNew.aspx" />
|
||||||
<Content Include="Transfer\Chart\PunchlistFromProgress.aspx" />
|
<Content Include="Transfer\Chart\PunchlistFromProgress.aspx" />
|
||||||
<Content Include="Transfer\Chart\PunchlistFromSort.aspx" />
|
<Content Include="Transfer\Chart\PunchlistFromSort.aspx" />
|
||||||
|
<Content Include="Transfer\Chart\Systemstatus.aspx" />
|
||||||
|
<Content Include="Transfer\Chart\SystemstatusChart.aspx" />
|
||||||
|
<Content Include="Transfer\Chart\SystemStatusSummary.aspx" />
|
||||||
<Content Include="Transfer\Chart\TransferChart.aspx" />
|
<Content Include="Transfer\Chart\TransferChart.aspx" />
|
||||||
<Content Include="Transfer\CivilStructure.aspx" />
|
<Content Include="Transfer\CivilStructure.aspx" />
|
||||||
<Content Include="Transfer\CivilStructureDataIn.aspx" />
|
<Content Include="Transfer\CivilStructureDataIn.aspx" />
|
||||||
|
@ -17611,6 +17614,27 @@
|
||||||
<Compile Include="Transfer\Chart\PunchlistFromSort.aspx.designer.cs">
|
<Compile Include="Transfer\Chart\PunchlistFromSort.aspx.designer.cs">
|
||||||
<DependentUpon>PunchlistFromSort.aspx</DependentUpon>
|
<DependentUpon>PunchlistFromSort.aspx</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
<Compile Include="Transfer\Chart\Systemstatus.aspx.cs">
|
||||||
|
<DependentUpon>Systemstatus.aspx</DependentUpon>
|
||||||
|
<SubType>ASPXCodeBehind</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="Transfer\Chart\Systemstatus.aspx.designer.cs">
|
||||||
|
<DependentUpon>Systemstatus.aspx</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="Transfer\Chart\SystemstatusChart.aspx.cs">
|
||||||
|
<DependentUpon>SystemstatusChart.aspx</DependentUpon>
|
||||||
|
<SubType>ASPXCodeBehind</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="Transfer\Chart\SystemstatusChart.aspx.designer.cs">
|
||||||
|
<DependentUpon>SystemstatusChart.aspx</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="Transfer\Chart\SystemStatusSummary.aspx.cs">
|
||||||
|
<DependentUpon>SystemStatusSummary.aspx</DependentUpon>
|
||||||
|
<SubType>ASPXCodeBehind</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="Transfer\Chart\SystemStatusSummary.aspx.designer.cs">
|
||||||
|
<DependentUpon>SystemStatusSummary.aspx</DependentUpon>
|
||||||
|
</Compile>
|
||||||
<Compile Include="Transfer\Chart\TransferChart.aspx.cs">
|
<Compile Include="Transfer\Chart\TransferChart.aspx.cs">
|
||||||
<DependentUpon>TransferChart.aspx</DependentUpon>
|
<DependentUpon>TransferChart.aspx</DependentUpon>
|
||||||
<SubType>ASPXCodeBehind</SubType>
|
<SubType>ASPXCodeBehind</SubType>
|
||||||
|
|
|
@ -0,0 +1,16 @@
|
||||||
|
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SystemStatusSummary.aspx.cs" Inherits="FineUIPro.Web.Transfer.Chart.SystemStatusSummary" %>
|
||||||
|
|
||||||
|
<!DOCTYPE html>
|
||||||
|
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||||
|
<head runat="server">
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||||
|
<title>移交状态汇总表</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<form id="form1" runat="server">
|
||||||
|
<div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1,17 @@
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Web;
|
||||||
|
using System.Web.UI;
|
||||||
|
using System.Web.UI.WebControls;
|
||||||
|
|
||||||
|
namespace FineUIPro.Web.Transfer.Chart
|
||||||
|
{
|
||||||
|
public partial class SystemStatusSummary : System.Web.UI.Page
|
||||||
|
{
|
||||||
|
protected void Page_Load(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,26 @@
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <自动生成>
|
||||||
|
// 此代码由工具生成。
|
||||||
|
//
|
||||||
|
// 对此文件的更改可能导致不正确的行为,如果
|
||||||
|
// 重新生成代码,则所做更改将丢失。
|
||||||
|
// </自动生成>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
namespace FineUIPro.Web.Transfer.Chart
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
public partial class SystemStatusSummary
|
||||||
|
{
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// form1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,16 @@
|
||||||
|
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Systemstatus.aspx.cs" Inherits="FineUIPro.Web.Transfer.Chart.Systemstatus" %>
|
||||||
|
|
||||||
|
<!DOCTYPE html>
|
||||||
|
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||||
|
<head runat="server">
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||||
|
<title>移交统计表</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<form id="form1" runat="server">
|
||||||
|
<div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1,17 @@
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Web;
|
||||||
|
using System.Web.UI;
|
||||||
|
using System.Web.UI.WebControls;
|
||||||
|
|
||||||
|
namespace FineUIPro.Web.Transfer.Chart
|
||||||
|
{
|
||||||
|
public partial class Systemstatus : System.Web.UI.Page
|
||||||
|
{
|
||||||
|
protected void Page_Load(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,26 @@
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <自动生成>
|
||||||
|
// 此代码由工具生成。
|
||||||
|
//
|
||||||
|
// 对此文件的更改可能导致不正确的行为,如果
|
||||||
|
// 重新生成代码,则所做更改将丢失。
|
||||||
|
// </自动生成>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
namespace FineUIPro.Web.Transfer.Chart
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
public partial class Systemstatus
|
||||||
|
{
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// form1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,246 @@
|
||||||
|
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SystemstatusChart.aspx.cs" Inherits="FineUIPro.Web.Transfer.Chart.SystemstatusChart" %>
|
||||||
|
|
||||||
|
<%@ Register Src="~/Controls/ChartControl.ascx" TagName="ChartControl" TagPrefix="uc1" %>
|
||||||
|
<!DOCTYPE html>
|
||||||
|
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||||
|
<head runat="server">
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||||
|
<title>移交统计图表</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<form id="form1" runat="server">
|
||||||
|
<f:PageManager ID="PageManager1" runat="server" AutoSizePanelID="RegionPanel1" AjaxAspnetControls="divAccidentUnit,divAccidentTime" />
|
||||||
|
<f:Panel ID="Panel3" CssClass="blockpanel" runat="server" EnableCollapse="false"
|
||||||
|
BodyPadding="10px" ShowBorder="true" ShowHeader="false" Hidden="true">
|
||||||
|
<Items>
|
||||||
|
<f:Form ID="Form2" ShowHeader="false" ShowBorder="false" runat="server" >
|
||||||
|
<Rows>
|
||||||
|
<f:FormRow ColumnWidths="25% 30% 35% 10%">
|
||||||
|
<Items>
|
||||||
|
<f:DropDownList ID="ddlSystemNo" runat="server" Label="System No" AutoPostBack="true" EnableEdit="true"
|
||||||
|
OnSelectedIndexChanged="ddlSystemNo_SelectedIndexChanged" Width="300px" LabelWidth="100px">
|
||||||
|
</f:DropDownList>
|
||||||
|
|
||||||
|
<%-- <f:Button ID="BtnAnalyse" Text="统计" Icon="ChartPie" runat="server" OnClick="BtnAnalyse_Click">
|
||||||
|
</f:Button>--%>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
</Rows>
|
||||||
|
</f:Form>
|
||||||
|
</Items>
|
||||||
|
</f:Panel>
|
||||||
|
<div id='two' style="width: 100%; height: 500px;"></div>
|
||||||
|
<%-- <f:Panel ID="Panel4" CssClass="blockpanel" runat="server" EnableCollapse="false"
|
||||||
|
BodyPadding="10px" ShowBorder="true" ShowHeader="false" Hidden="true">
|
||||||
|
|
||||||
|
<Items>
|
||||||
|
<f:TabStrip ID="TabStrip1" CssClass="f-tabstrip-theme-simple" Height="600px" ShowBorder="true"
|
||||||
|
TabPosition="Top" MarginBottom="5px" EnableTabCloseMenu="false" runat="server">
|
||||||
|
<Tabs>
|
||||||
|
<f:Tab ID="Tab2" Title="图形" BodyPadding="5px" Layout="Fit" IconFont="Bookmark" runat="server"
|
||||||
|
TitleToolTip="图形">
|
||||||
|
<Items>
|
||||||
|
<f:ContentPanel ShowHeader="false" runat="server" ID="cpAccidentTime" Margin="0 0 0 0" Hidden="true">
|
||||||
|
<div id="divAccidentTime">
|
||||||
|
<uc1:ChartControl ID="ChartAccidentTime" runat="server" />
|
||||||
|
</div>
|
||||||
|
</f:ContentPanel>
|
||||||
|
|
||||||
|
</Items>
|
||||||
|
</f:Tab>
|
||||||
|
</Tabs>
|
||||||
|
</f:TabStrip>
|
||||||
|
</Items>
|
||||||
|
</f:Panel>--%>
|
||||||
|
</form>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
||||||
|
<script type="text/javascript" src="../../res/index/js/swiper-3.4.2.jquery.min.js"></script>
|
||||||
|
<script type="text/javascript" src="../../res/index/js/echarts.min.js"></script>
|
||||||
|
<script type="text/javascript">
|
||||||
|
function category_Two(id, xArr, data, num) {
|
||||||
|
// 基于准备好的dom,初始化echarts实例
|
||||||
|
var myChart = echarts.init(document.getElementById(id))
|
||||||
|
// 指定图表的配置项和数据
|
||||||
|
var option = {
|
||||||
|
title: {
|
||||||
|
// left:'center',
|
||||||
|
text: '移交统计图表',
|
||||||
|
textStyle: {
|
||||||
|
color: '#000',
|
||||||
|
fontWeight: 'normal',
|
||||||
|
fontSize: 12
|
||||||
|
},
|
||||||
|
show: true
|
||||||
|
},
|
||||||
|
tooltip: {},
|
||||||
|
legend: {
|
||||||
|
left: '15%',
|
||||||
|
show: true,
|
||||||
|
textStyle: {//图例文字的样式
|
||||||
|
color: '#000',
|
||||||
|
fontSize: 10,
|
||||||
|
}
|
||||||
|
},
|
||||||
|
xAxis: {
|
||||||
|
axisTick: {
|
||||||
|
show: false
|
||||||
|
},
|
||||||
|
axisLine: {
|
||||||
|
lineStyle: {
|
||||||
|
color: '#000',
|
||||||
|
}
|
||||||
|
},
|
||||||
|
axisLabel: {
|
||||||
|
margin: 20,
|
||||||
|
show: true,
|
||||||
|
textStyle: {
|
||||||
|
color: '#000'
|
||||||
|
},
|
||||||
|
interval: 0,
|
||||||
|
formatter: function (value) {
|
||||||
|
var ret = "";//拼接加\n返回的类目项
|
||||||
|
var maxLength = num;//每项显示文字个数
|
||||||
|
var valLength = value.length;//X轴类目项的文字个数
|
||||||
|
var rowN = Math.ceil(valLength / maxLength); //类目项需要换行的行数
|
||||||
|
if (rowN > 1)//如果类目项的文字大于maxLength,
|
||||||
|
{
|
||||||
|
for (var i = 0; i < rowN; i++) {
|
||||||
|
var temp = "";//每次截取的字符串
|
||||||
|
var start = i * maxLength;//开始截取的位置
|
||||||
|
var end = start + maxLength;//结束截取的位置
|
||||||
|
//这里也可以加一个是否是最后一行的判断,但是不加也没有影响,那就不加吧
|
||||||
|
//temp = value.substring(start, end) + "\n";
|
||||||
|
temp = value.substring(start, end) + (i == rowN - 1 ? "" : "\n");
|
||||||
|
ret += temp; //凭借最终的字符串
|
||||||
|
}
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
type: 'category',
|
||||||
|
data: xArr,
|
||||||
|
boundaryGap: [0, 0.01],
|
||||||
|
|
||||||
|
},
|
||||||
|
yAxis: {
|
||||||
|
axisTick: {
|
||||||
|
show: false
|
||||||
|
},
|
||||||
|
axisLine: {
|
||||||
|
show: false,
|
||||||
|
lineStyle: {
|
||||||
|
color: '#000'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
axisLabel: {
|
||||||
|
show: true,
|
||||||
|
textStyle: {
|
||||||
|
color: '#000'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
},
|
||||||
|
series: data,
|
||||||
|
grid: {
|
||||||
|
top: '20%',
|
||||||
|
left: '0%',
|
||||||
|
right: '0%',
|
||||||
|
bottom: '0%',
|
||||||
|
containLabel: true,
|
||||||
|
backgroundColor: 'rgba(0,162,233, 0.01)',
|
||||||
|
// borderColor: 'rgba(0,162,233, 1)'
|
||||||
|
},
|
||||||
|
backgroundColor: 'rgba(0,162,233, 0.01)',
|
||||||
|
textStyle: {
|
||||||
|
color: 'rgba(255, 255, 255, 0.3)'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
option.dataZoom = [//给x轴设置滚动条
|
||||||
|
{
|
||||||
|
|
||||||
|
start: 0,//默认为0
|
||||||
|
type: 'slider',
|
||||||
|
show: true,
|
||||||
|
startValue: 0,
|
||||||
|
endValue: 9,
|
||||||
|
height: 6,
|
||||||
|
bottom: '6%',
|
||||||
|
zoomLock: true,
|
||||||
|
moveOnMouseWheel: true,
|
||||||
|
brushSelect: true,
|
||||||
|
showDetail: false,
|
||||||
|
borderColor: "rgba(43,48,67,0.8)",
|
||||||
|
fillerColor: '#269cdb',//滑动块的颜色
|
||||||
|
backgroundColor: '#33384b',//两边未选中的滑动条区域的颜色
|
||||||
|
|
||||||
|
}]
|
||||||
|
// 使用刚指定的配置项和数据显示图表。
|
||||||
|
myChart.setOption(option)
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
var xArr = [<%=AllSystemNo%>]
|
||||||
|
//var xArr = two2.categories
|
||||||
|
var data = [
|
||||||
|
{
|
||||||
|
name: '完成数量',
|
||||||
|
type: 'bar',
|
||||||
|
stack: '总量',
|
||||||
|
barWidth: 40,
|
||||||
|
data: [<%=completed%>],
|
||||||
|
//data: two2.series[0].data,
|
||||||
|
label: { //柱体上显示数值
|
||||||
|
show: true,//开启显示
|
||||||
|
position: ['40%', '50%'],//在上方显示
|
||||||
|
textStyle: {//数值样式
|
||||||
|
fontSize: '20px',
|
||||||
|
color: '#000'
|
||||||
|
},
|
||||||
|
formatter: '{c}',
|
||||||
|
},
|
||||||
|
itemStyle: { normal: { color: '#84CF75' } }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: '进行中数量',
|
||||||
|
type: 'bar',
|
||||||
|
stack: '总量',
|
||||||
|
barWidth: 40,
|
||||||
|
data: [<%=Inprogress%>],
|
||||||
|
//data: two2.series[1].data,
|
||||||
|
label: { //柱体上显示数值
|
||||||
|
show: true,//开启显示
|
||||||
|
position: ['40%', '50%'],//在上方显示
|
||||||
|
textStyle: {//数值样式
|
||||||
|
fontSize: '20px',
|
||||||
|
color: '#000'
|
||||||
|
},
|
||||||
|
formatter: '{c}',
|
||||||
|
},
|
||||||
|
itemStyle: { normal: { color: '#3282F6' } }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: '未完成数量',
|
||||||
|
type: 'bar',
|
||||||
|
stack: '总量',
|
||||||
|
barWidth: 40,
|
||||||
|
data: [<%=NotStart%>],
|
||||||
|
//data: two2.series[1].data,
|
||||||
|
label: { //柱体上显示数值
|
||||||
|
show: true,//开启显示
|
||||||
|
position: ['40%', '50%'],//在上方显示
|
||||||
|
textStyle: {//数值样式
|
||||||
|
fontSize: '20px',
|
||||||
|
color: '#000'
|
||||||
|
},
|
||||||
|
formatter: '{c}',
|
||||||
|
},
|
||||||
|
itemStyle: { normal: { color: '#EB3324' } }
|
||||||
|
}
|
||||||
|
]
|
||||||
|
category_Two('two', xArr, data, 20)
|
||||||
|
</script>
|
|
@ -0,0 +1,124 @@
|
||||||
|
using System;
|
||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Data;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Web.Services.Description;
|
||||||
|
using BLL;
|
||||||
|
using NPOI.SS.Formula.Functions;
|
||||||
|
|
||||||
|
namespace FineUIPro.Web.Transfer.Chart
|
||||||
|
{
|
||||||
|
public partial class SystemstatusChart : PageBase
|
||||||
|
{
|
||||||
|
protected void Page_Load(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (!IsPostBack) {
|
||||||
|
var systemCode = Funs.DB.Transfer_LHCSystemList
|
||||||
|
.Where(x => x.ProjectId == CurrUser.LoginProjectId)
|
||||||
|
.GroupBy(p => new { p.SystemNo })
|
||||||
|
.Select(p => new { SystemNo = p.Key.SystemNo }).ToList();
|
||||||
|
int indexRow = 1;
|
||||||
|
ddlSystemNo.Items.Insert(0, new FineUIPro.ListItem("ALL", ""));
|
||||||
|
foreach (var t in systemCode)
|
||||||
|
{
|
||||||
|
ddlSystemNo.Items.Insert(indexRow, new FineUIPro.ListItem(t.SystemNo, t.SystemNo));
|
||||||
|
indexRow++;
|
||||||
|
}
|
||||||
|
|
||||||
|
AnalyseData();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public string AllSystemNo;
|
||||||
|
|
||||||
|
public string completed;
|
||||||
|
public string Inprogress;
|
||||||
|
public string NotStart;
|
||||||
|
|
||||||
|
public void AnalyseData() {
|
||||||
|
var pid = CurrUser.LoginProjectId;
|
||||||
|
#region 统计所有
|
||||||
|
var systemCode = Funs.DB.Transfer_LHCSystemList
|
||||||
|
.Where(x => x.ProjectId == CurrUser.LoginProjectId)
|
||||||
|
.GroupBy(p => new { p.SystemNo })
|
||||||
|
.Select(p => new { SystemNo = p.Key.SystemNo }).ToList();
|
||||||
|
|
||||||
|
if (!string.IsNullOrEmpty(ddlSystemNo.SelectedValue))
|
||||||
|
{
|
||||||
|
systemCode= Funs.DB.Transfer_LHCSystemList
|
||||||
|
.Where(x => x.ProjectId == CurrUser.LoginProjectId && x.SystemNo == ddlSystemNo.SelectedValue)
|
||||||
|
.GroupBy(p => new { p.SystemNo })
|
||||||
|
.Select(p => new { SystemNo = p.Key.SystemNo }).ToList();
|
||||||
|
}
|
||||||
|
#region 九个表的数据
|
||||||
|
var list1 = Funs.DB.Transfer_Piping.Where(x => x.ProjectId == pid).ToList();
|
||||||
|
var list2= Funs.DB.Transfer_StaticEquipment.Where(x => x.ProjectId == pid).ToList();
|
||||||
|
var list3= Funs.DB.Transfer_RotatingEquipment.Where(x => x.ProjectId == pid).ToList();
|
||||||
|
var list4 = Funs.DB.Transfer_Instrumentation.Where(x => x.ProjectId == pid).ToList();
|
||||||
|
var list5 = Funs.DB.Transfer_Electrical.Where(x => x.ProjectId == pid).ToList();
|
||||||
|
var list6 = Funs.DB.Transfer_Civil_Structure.Where(x => x.ProjectId == pid).ToList();
|
||||||
|
var list7 = Funs.DB.Transfer_Firefighting.Where(x => x.ProjectId == pid).ToList();
|
||||||
|
var list8 = Funs.DB.Transfer_Telecom.Where(x => x.ProjectId == pid).ToList();
|
||||||
|
var list9 = Funs.DB.Transfer_PunchlistFrom.Where(x => x.ProjectId == pid).ToList();
|
||||||
|
#endregion
|
||||||
|
DataTable dt = new DataTable();
|
||||||
|
dt.Columns.Add("系统编号", typeof(string));
|
||||||
|
dt.Columns.Add("完成数量", typeof(string));
|
||||||
|
dt.Columns.Add("进行中数量", typeof(string));
|
||||||
|
dt.Columns.Add("未完成数量", typeof(string));
|
||||||
|
foreach (var t in systemCode) {
|
||||||
|
var scode = t.SystemNo;
|
||||||
|
AllSystemNo += "'" + scode + "',";
|
||||||
|
DataRow dr = dt.NewRow();
|
||||||
|
dr["系统编号"] = scode;
|
||||||
|
#region 根据系统编号获取完成的数量
|
||||||
|
var completedCount = list1.Where(x => x.SYSTEM == scode && x.FINALStatus == "Completed").ToList().Count()
|
||||||
|
+ list2.Where(x => x.SYSTEM == scode && x.MechanicalFINALStatus == "Completed").ToList().Count()
|
||||||
|
+ list3.Where(x => x.SYSTEM == scode && x.MechanicalFINALStatus == "Completed").ToList().Count()
|
||||||
|
+ list4.Where(x => x.SystemName == scode && x.FINAL_Status == "Completed").ToList().Count()
|
||||||
|
+ list5.Where(x => x.SystemName == scode && x.FINAL_Status == "Completed").ToList().Count()
|
||||||
|
+ list6.Where(x => x.SystemName == scode && x.FINAL_Status == "Completed").ToList().Count()
|
||||||
|
+ list7.Where(x => x.SystemName == scode && x.FINAL_Status == "Completed").ToList().Count()
|
||||||
|
+ list8.Where(x => x.SystemName == scode && x.FINAL_Status == "Completed").ToList().Count()
|
||||||
|
+ list9.Where(x => x.SystemName == scode && x.Status == "Completed").ToList().Count();
|
||||||
|
#endregion
|
||||||
|
dr["完成数量"] = completedCount;
|
||||||
|
completed+= "'" + completedCount.ToString() + "',";
|
||||||
|
#region 根据系统编号获取进行中数量
|
||||||
|
var InprogressCount = list1.Where(x => x.SYSTEM == scode && x.FINALStatus == "In progress").ToList().Count()
|
||||||
|
+ list2.Where(x => x.SYSTEM == scode && x.MechanicalFINALStatus == "In progress").ToList().Count()
|
||||||
|
+ list3.Where(x => x.SYSTEM == scode && x.MechanicalFINALStatus == "In progress").ToList().Count()
|
||||||
|
+ list4.Where(x => x.SystemName == scode && x.FINAL_Status == "In progress").ToList().Count()
|
||||||
|
+ list5.Where(x => x.SystemName == scode && x.FINAL_Status == "In progress").ToList().Count()
|
||||||
|
+ list6.Where(x => x.SystemName == scode && x.FINAL_Status == "In progress").ToList().Count()
|
||||||
|
+ list7.Where(x => x.SystemName == scode && x.FINAL_Status == "In progress").ToList().Count()
|
||||||
|
+ list8.Where(x => x.SystemName == scode && x.FINAL_Status == "In progress").ToList().Count()
|
||||||
|
+ list9.Where(x => x.SystemName == scode && x.Status == "In progress").ToList().Count();
|
||||||
|
#endregion
|
||||||
|
dr["进行中数量"] = InprogressCount;
|
||||||
|
Inprogress += "'" + InprogressCount.ToString() + "',";
|
||||||
|
#region 根据系统编号获取未完成数量
|
||||||
|
var NotStartCount = list1.Where(x => x.SYSTEM == scode && x.FINALStatus == "Not Start").ToList().Count()
|
||||||
|
+ list2.Where(x => x.SYSTEM == scode && x.MechanicalFINALStatus == "Not Start").ToList().Count()
|
||||||
|
+ list3.Where(x => x.SYSTEM == scode && x.MechanicalFINALStatus == "Not Start").ToList().Count()
|
||||||
|
+ list4.Where(x => x.SystemName == scode && x.FINAL_Status == "Not Start").ToList().Count()
|
||||||
|
+ list5.Where(x => x.SystemName == scode && x.FINAL_Status == "Not Start").ToList().Count()
|
||||||
|
+ list6.Where(x => x.SystemName == scode && x.FINAL_Status == "Not Start").ToList().Count()
|
||||||
|
+ list7.Where(x => x.SystemName == scode && x.FINAL_Status == "Not Start").ToList().Count()
|
||||||
|
+ list8.Where(x => x.SystemName == scode && x.FINAL_Status == "Not Start").ToList().Count()
|
||||||
|
+ list9.Where(x => x.SystemName == scode && x.Status == "Not Start").ToList().Count();
|
||||||
|
#endregion
|
||||||
|
dr["未完成数量"] = NotStartCount;
|
||||||
|
NotStart += "'" + NotStartCount.ToString() + "',";
|
||||||
|
dt.Rows.Add(dr);
|
||||||
|
}
|
||||||
|
//this.ChartAccidentTime.CreateChart(BLL.ChartControlService.GetDataSourceChart(dt, "移交状态统计", "Column", 1300, 550, false));
|
||||||
|
#endregion
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void ddlSystemNo_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
this.AnalyseData();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,62 @@
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <自动生成>
|
||||||
|
// 此代码由工具生成。
|
||||||
|
//
|
||||||
|
// 对此文件的更改可能导致不正确的行为,如果
|
||||||
|
// 重新生成代码,则所做更改将丢失。
|
||||||
|
// </自动生成>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
namespace FineUIPro.Web.Transfer.Chart
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
public partial class SystemstatusChart
|
||||||
|
{
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// form1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// PageManager1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.PageManager PageManager1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Panel3 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Panel Panel3;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Form2 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Form Form2;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// ddlSystemNo 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.DropDownList ddlSystemNo;
|
||||||
|
}
|
||||||
|
}
|
|
@ -62,7 +62,7 @@
|
||||||
|
|
||||||
<f:GroupField HeaderText="SYSTEM AND TEST PACKAGE SELECTION" TextAlign="Center" MinWidth="450">
|
<f:GroupField HeaderText="SYSTEM AND TEST PACKAGE SELECTION" TextAlign="Center" MinWidth="450">
|
||||||
<Columns>
|
<Columns>
|
||||||
<f:BoundField minWidth="120px" ColumnID="SystemName" DataField="SystemName" HeaderText="SYSTEM" TextAlign="Center"/>
|
<f:BoundField minWidth="120px" ColumnID="SystemName" DataField="SystemName" HeaderText="System No" TextAlign="Center"/>
|
||||||
<f:BoundField minWidth="120px" ColumnID="Subsystem" DataField="Subsystem" HeaderText="Subsystem" TextAlign="Center"/>
|
<f:BoundField minWidth="120px" ColumnID="Subsystem" DataField="Subsystem" HeaderText="Subsystem" TextAlign="Center"/>
|
||||||
<f:BoundField minWidth="140px" ColumnID="Test_Package" DataField="Test_Package" HeaderText="Test Package" TextAlign="Center"/>
|
<f:BoundField minWidth="140px" ColumnID="Test_Package" DataField="Test_Package" HeaderText="Test Package" TextAlign="Center"/>
|
||||||
</Columns>
|
</Columns>
|
||||||
|
|
|
@ -63,7 +63,7 @@
|
||||||
|
|
||||||
<f:GroupField HeaderText="SYSTEM AND TEST PACKAGE SELECTION" TextAlign="Center" MinWidth="450">
|
<f:GroupField HeaderText="SYSTEM AND TEST PACKAGE SELECTION" TextAlign="Center" MinWidth="450">
|
||||||
<Columns>
|
<Columns>
|
||||||
<f:BoundField minWidth="120px" ColumnID="SystemName" DataField="SystemName" HeaderText="System" TextAlign="Center"/>
|
<f:BoundField minWidth="120px" ColumnID="SystemName" DataField="SystemName" HeaderText="System No" TextAlign="Center"/>
|
||||||
<f:BoundField minWidth="120px" ColumnID="Subsystem" DataField="Subsystem" HeaderText="Sub-System" TextAlign="Center"/>
|
<f:BoundField minWidth="120px" ColumnID="Subsystem" DataField="Subsystem" HeaderText="Sub-System" TextAlign="Center"/>
|
||||||
<f:BoundField minWidth="140px" ColumnID="Test_Package" DataField="Test_Package" HeaderText="Turn over Package" TextAlign="Center"/>
|
<f:BoundField minWidth="140px" ColumnID="Test_Package" DataField="Test_Package" HeaderText="Turn over Package" TextAlign="Center"/>
|
||||||
</Columns>
|
</Columns>
|
||||||
|
|
|
@ -63,7 +63,7 @@
|
||||||
|
|
||||||
<f:GroupField HeaderText="SYSTEM AND TEST PACKAGE SELECTION" TextAlign="Center" MinWidth="450">
|
<f:GroupField HeaderText="SYSTEM AND TEST PACKAGE SELECTION" TextAlign="Center" MinWidth="450">
|
||||||
<Columns>
|
<Columns>
|
||||||
<f:BoundField minWidth="150px" ColumnID="SystemName" DataField="SystemName" HeaderText="SYSTEM" TextAlign="Center"/>
|
<f:BoundField minWidth="150px" ColumnID="SystemName" DataField="SystemName" HeaderText="System No" TextAlign="Center"/>
|
||||||
<f:BoundField minWidth="150px" ColumnID="Subsystem" DataField="Subsystem" HeaderText="Subsystem" TextAlign="Center"/>
|
<f:BoundField minWidth="150px" ColumnID="Subsystem" DataField="Subsystem" HeaderText="Subsystem" TextAlign="Center"/>
|
||||||
<f:BoundField minWidth="150px" ColumnID="Test_Package" DataField="Test_Package" HeaderText="Test Package" TextAlign="Center"/>
|
<f:BoundField minWidth="150px" ColumnID="Test_Package" DataField="Test_Package" HeaderText="Test Package" TextAlign="Center"/>
|
||||||
</Columns>
|
</Columns>
|
||||||
|
|
|
@ -63,7 +63,7 @@
|
||||||
|
|
||||||
<f:GroupField HeaderText="SYSTEM AND TEST PACKAGE SELECTION" TextAlign="Center" MinWidth="450">
|
<f:GroupField HeaderText="SYSTEM AND TEST PACKAGE SELECTION" TextAlign="Center" MinWidth="450">
|
||||||
<Columns>
|
<Columns>
|
||||||
<f:BoundField minWidth="120px" ColumnID="SystemName" DataField="SystemName" HeaderText="System" TextAlign="Center"/>
|
<f:BoundField minWidth="120px" ColumnID="SystemName" DataField="SystemName" HeaderText="System No" TextAlign="Center"/>
|
||||||
<f:BoundField minWidth="120px" ColumnID="Subsystem" DataField="Subsystem" HeaderText="Sub-System" TextAlign="Center"/>
|
<f:BoundField minWidth="120px" ColumnID="Subsystem" DataField="Subsystem" HeaderText="Sub-System" TextAlign="Center"/>
|
||||||
<f:BoundField minWidth="140px" ColumnID="Test_Package" DataField="Test_Package" HeaderText="Turn over Package" TextAlign="Center"/>
|
<f:BoundField minWidth="140px" ColumnID="Test_Package" DataField="Test_Package" HeaderText="Turn over Package" TextAlign="Center"/>
|
||||||
</Columns>
|
</Columns>
|
||||||
|
|
|
@ -49,11 +49,17 @@
|
||||||
HeaderTextAlign="Center" MinWidth="50px">
|
HeaderTextAlign="Center" MinWidth="50px">
|
||||||
</f:RenderField>
|
</f:RenderField>
|
||||||
|
|
||||||
|
<f:RenderField ColumnID="SystemNo" DataField="SystemNo"
|
||||||
|
FieldType="String" HeaderText="SystemNo" TextAlign="Center"
|
||||||
|
HeaderTextAlign="Center" MinWidth="120px">
|
||||||
|
</f:RenderField>
|
||||||
|
|
||||||
<f:RenderField ColumnID="Commissioningsystemcode" DataField="Commissioningsystemcode"
|
<f:RenderField ColumnID="Commissioningsystemcode" DataField="Commissioningsystemcode"
|
||||||
FieldType="String" HeaderText="Commissioning<br/> system code" TextAlign="Center"
|
FieldType="String" HeaderText="Commissioning<br/> system code" TextAlign="Center"
|
||||||
HeaderTextAlign="Center" MinWidth="180px">
|
HeaderTextAlign="Center" MinWidth="180px">
|
||||||
</f:RenderField>
|
</f:RenderField>
|
||||||
|
|
||||||
|
|
||||||
<f:RenderField ColumnID="CommissioningCodeDescription" DataField="CommissioningCodeDescription"
|
<f:RenderField ColumnID="CommissioningCodeDescription" DataField="CommissioningCodeDescription"
|
||||||
FieldType="String" HeaderText="Commissioning Code<br/> Description" TextAlign="Center"
|
FieldType="String" HeaderText="Commissioning Code<br/> Description" TextAlign="Center"
|
||||||
HeaderTextAlign="Center" MinWidth="180px">
|
HeaderTextAlign="Center" MinWidth="180px">
|
||||||
|
@ -65,15 +71,10 @@
|
||||||
</f:RenderField>
|
</f:RenderField>
|
||||||
|
|
||||||
<f:RenderField ColumnID="SubCommissioningsystem" DataField="SubCommissioningsystem"
|
<f:RenderField ColumnID="SubCommissioningsystem" DataField="SubCommissioningsystem"
|
||||||
FieldType="String" HeaderText="Sub-Commissioning<br/> system" TextAlign="Center"
|
FieldType="String" HeaderText="Sub-system No" TextAlign="Center"
|
||||||
HeaderTextAlign="Center" MinWidth="180px">
|
HeaderTextAlign="Center" MinWidth="180px">
|
||||||
</f:RenderField>
|
</f:RenderField>
|
||||||
|
|
||||||
<f:RenderField ColumnID="Turnover_Code" DataField="Turnover_Code"
|
|
||||||
FieldType="String" HeaderText="Turnover Code" TextAlign="Center"
|
|
||||||
HeaderTextAlign="Center" MinWidth="150px">
|
|
||||||
</f:RenderField>
|
|
||||||
|
|
||||||
<f:RenderField ColumnID="PlanStartofTestingDate" DataField="PlanStartofTestingDate" FieldType="Date" Renderer="Date"
|
<f:RenderField ColumnID="PlanStartofTestingDate" DataField="PlanStartofTestingDate" FieldType="Date" Renderer="Date"
|
||||||
RendererArgument="yyyy-MM-dd"
|
RendererArgument="yyyy-MM-dd"
|
||||||
HeaderText="Plan Start of Testing Date" TextAlign="Center" HeaderTextAlign="Center" MinWidth="180px">
|
HeaderText="Plan Start of Testing Date" TextAlign="Center" HeaderTextAlign="Center" MinWidth="180px">
|
||||||
|
@ -97,6 +98,7 @@
|
||||||
</Columns>
|
</Columns>
|
||||||
<Listeners>
|
<Listeners>
|
||||||
<f:Listener Event="beforerowcontextmenu" Handler="onRowContextMenu" />
|
<f:Listener Event="beforerowcontextmenu" Handler="onRowContextMenu" />
|
||||||
|
<f:Listener Event="dataload" Handler="onGridDataLoad" />
|
||||||
</Listeners>
|
</Listeners>
|
||||||
<PageItems>
|
<PageItems>
|
||||||
<f:ToolbarText ID="ToolbarText1" runat="server" Text="每页记录数:">
|
<f:ToolbarText ID="ToolbarText1" runat="server" Text="每页记录数:">
|
||||||
|
@ -140,6 +142,10 @@
|
||||||
F(menuID).show(); //showAt(event.pageX, event.pageY);
|
F(menuID).show(); //showAt(event.pageX, event.pageY);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
function onGridDataLoad(event) {
|
||||||
|
this.mergeColumns(['SystemNo', 'Commissioningsystemcode', 'CommissioningCodeDescription']);
|
||||||
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
|
@ -420,11 +420,11 @@ namespace FineUIPro.Web.Transfer
|
||||||
oleDBConn.Dispose();
|
oleDBConn.Dispose();
|
||||||
if (Type == "0")
|
if (Type == "0")
|
||||||
{
|
{
|
||||||
AddDatasetToSQL2(ds.Tables[0], 8);
|
AddDatasetToSQL2(ds.Tables[0], 9);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
AddDatasetToSQL2(ds.Tables[0], 9);
|
AddDatasetToSQL2(ds.Tables[0], 10);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -472,7 +472,7 @@ namespace FineUIPro.Web.Transfer
|
||||||
//根据项目id查询sn
|
//根据项目id查询sn
|
||||||
var snModel = Funs.DB.Transfer_LHCSystemList.Where(x => x.ProjectId == CurrUser.LoginProjectId
|
var snModel = Funs.DB.Transfer_LHCSystemList.Where(x => x.ProjectId == CurrUser.LoginProjectId
|
||||||
&& x.Type == Type).OrderByDescending(x => x.SN).FirstOrDefault();
|
&& x.Type == Type).OrderByDescending(x => x.SN).FirstOrDefault();
|
||||||
if (snModel == null && Sn!=1001)
|
if (snModel == null && Sn==0)
|
||||||
{
|
{
|
||||||
Sn = 1001;
|
Sn = 1001;
|
||||||
model.SN = Sn;
|
model.SN = Sn;
|
||||||
|
@ -490,13 +490,15 @@ namespace FineUIPro.Web.Transfer
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
model.SystemNo = pds.Rows[i][0].ToString().Trim();
|
||||||
|
|
||||||
model.Commissioningsystemcode= pds.Rows[i][0].ToString().Trim();
|
model.Commissioningsystemcode= pds.Rows[i][1].ToString().Trim();
|
||||||
model.CommissioningCodeDescription = pds.Rows[i][1].ToString().Trim();
|
|
||||||
|
model.CommissioningCodeDescription = pds.Rows[i][2].ToString().Trim();
|
||||||
if (Type == "0")
|
if (Type == "0")
|
||||||
{
|
{
|
||||||
model.SubCommissioningsystem = pds.Rows[i][2].ToString().Trim();
|
model.SubCommissioningsystem = pds.Rows[i][3].ToString().Trim();
|
||||||
model.Turnover_Code= pds.Rows[i][3].ToString().Trim();
|
//model.Turnover_Code= pds.Rows[i][4].ToString().Trim();
|
||||||
DateTime t1, t2,t3;
|
DateTime t1, t2,t3;
|
||||||
if (DateTime.TryParse(pds.Rows[i][4].ToString(), out t1) && !string.IsNullOrEmpty(pds.Rows[i][4].ToString()))
|
if (DateTime.TryParse(pds.Rows[i][4].ToString(), out t1) && !string.IsNullOrEmpty(pds.Rows[i][4].ToString()))
|
||||||
model.PlanStartofTestingDate = t1;
|
model.PlanStartofTestingDate = t1;
|
||||||
|
@ -508,9 +510,9 @@ namespace FineUIPro.Web.Transfer
|
||||||
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
model.Describe = pds.Rows[i][2].ToString().Trim();
|
model.Describe = pds.Rows[i][3].ToString().Trim();
|
||||||
model.SubCommissioningsystem = pds.Rows[i][3].ToString().Trim();
|
model.SubCommissioningsystem = pds.Rows[i][4].ToString().Trim();
|
||||||
model.Turnover_Code = pds.Rows[i][4].ToString().Trim();
|
//model.Turnover_Code = pds.Rows[i][5].ToString().Trim();
|
||||||
DateTime t1, t2, t3;
|
DateTime t1, t2, t3;
|
||||||
if (DateTime.TryParse(pds.Rows[i][5].ToString(), out t1) && !string.IsNullOrEmpty(pds.Rows[i][4].ToString()))
|
if (DateTime.TryParse(pds.Rows[i][5].ToString(), out t1) && !string.IsNullOrEmpty(pds.Rows[i][4].ToString()))
|
||||||
model.PlanStartofTestingDate = t1;
|
model.PlanStartofTestingDate = t1;
|
||||||
|
|
|
@ -52,7 +52,7 @@
|
||||||
</f:GroupField>
|
</f:GroupField>
|
||||||
<f:GroupField ID="g2" HeaderText="SYSTEM AND TEST PACKAGE SELECTION" HeaderTextAlign="Center">
|
<f:GroupField ID="g2" HeaderText="SYSTEM AND TEST PACKAGE SELECTION" HeaderTextAlign="Center">
|
||||||
<Columns>
|
<Columns>
|
||||||
<f:RenderField ColumnID="SYSTEM" DataField="SYSTEM" FieldType="String" HeaderText="SYSTEM No" TextAlign="Center"
|
<f:RenderField ColumnID="SYSTEM" DataField="SYSTEM" FieldType="String" HeaderText="System No" TextAlign="Center"
|
||||||
HeaderTextAlign="Center" Width="120px">
|
HeaderTextAlign="Center" Width="120px">
|
||||||
</f:RenderField>
|
</f:RenderField>
|
||||||
<f:RenderField ColumnID="Subsystem" DataField="Subsystem" FieldType="String" HeaderText="Sub-System" TextAlign="Center"
|
<f:RenderField ColumnID="Subsystem" DataField="Subsystem" FieldType="String" HeaderText="Sub-System" TextAlign="Center"
|
||||||
|
|
|
@ -55,7 +55,7 @@
|
||||||
|
|
||||||
<f:GroupField HeaderText="SYSTEM AND TEST PACKAGE SELECTION" TextAlign="Center" MinWidth="450">
|
<f:GroupField HeaderText="SYSTEM AND TEST PACKAGE SELECTION" TextAlign="Center" MinWidth="450">
|
||||||
<Columns>
|
<Columns>
|
||||||
<f:BoundField minWidth="120px" ColumnID="SystemName" DataField="SystemName" HeaderText="SYSTEM" TextAlign="Center"/>
|
<f:BoundField minWidth="120px" ColumnID="SystemName" DataField="SystemName" HeaderText="System No" TextAlign="Center"/>
|
||||||
<f:BoundField minWidth="120px" ColumnID="Subsystem" DataField="Subsystem" HeaderText="Subsystem" TextAlign="Center"/>
|
<f:BoundField minWidth="120px" ColumnID="Subsystem" DataField="Subsystem" HeaderText="Subsystem" TextAlign="Center"/>
|
||||||
<f:BoundField minWidth="140px" ColumnID="Test_Package" DataField="Test_Package" HeaderText="Test Package" TextAlign="Center"/>
|
<f:BoundField minWidth="140px" ColumnID="Test_Package" DataField="Test_Package" HeaderText="Test Package" TextAlign="Center"/>
|
||||||
</Columns>
|
</Columns>
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
<Items>
|
<Items>
|
||||||
<f:TextBox runat="server" ID="txtRotatingEquipment" Label="Tag. No" LabelWidth="120px" LabelAlign="Right"></f:TextBox>
|
<f:TextBox runat="server" ID="txtRotatingEquipment" Label="Tag. No" LabelWidth="120px" LabelAlign="Right"></f:TextBox>
|
||||||
|
|
||||||
<f:TextBox runat="server" ID="txtSystem" Label="System" LabelWidth="100px" LabelAlign="Right"></f:TextBox>
|
<f:TextBox runat="server" ID="txtSystem" Label="System No" LabelWidth="100px" LabelAlign="Right"></f:TextBox>
|
||||||
|
|
||||||
<f:DropDownList runat="server" ID="ddStatus" Label="Status">
|
<f:DropDownList runat="server" ID="ddStatus" Label="Status">
|
||||||
<f:ListItem Value="" Text="All" Selected="true"/>
|
<f:ListItem Value="" Text="All" Selected="true"/>
|
||||||
|
@ -60,7 +60,7 @@
|
||||||
HeaderTextAlign="Center" minWidth="140px">
|
HeaderTextAlign="Center" minWidth="140px">
|
||||||
</f:RenderField>
|
</f:RenderField>
|
||||||
|
|
||||||
<f:RenderField ColumnID="SYSTEM" DataField="SYSTEM" FieldType="String" HeaderText="System" TextAlign="Center"
|
<f:RenderField ColumnID="SYSTEM" DataField="SYSTEM" FieldType="String" HeaderText="System No" TextAlign="Center"
|
||||||
HeaderTextAlign="Center" minWidth="140px">
|
HeaderTextAlign="Center" minWidth="140px">
|
||||||
</f:RenderField>
|
</f:RenderField>
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
<Items>
|
<Items>
|
||||||
<f:TextBox runat="server" ID="txtStaticEquipment" Label="Tag No" LabelWidth="100px" LabelAlign="Right"></f:TextBox>
|
<f:TextBox runat="server" ID="txtStaticEquipment" Label="Tag No" LabelWidth="100px" LabelAlign="Right"></f:TextBox>
|
||||||
|
|
||||||
<f:TextBox runat="server" ID="txtSystem" Label="SYSTEM" LabelWidth="100px" LabelAlign="Right"></f:TextBox>
|
<f:TextBox runat="server" ID="txtSystem" Label="System No" LabelWidth="100px" LabelAlign="Right"></f:TextBox>
|
||||||
|
|
||||||
<%-- <f:DatePicker runat="server" Label="Test_Package_START" ID="txtStarTime" LabelAlign="Right" LabelWidth="150px"
|
<%-- <f:DatePicker runat="server" Label="Test_Package_START" ID="txtStarTime" LabelAlign="Right" LabelWidth="150px"
|
||||||
Width="280px">
|
Width="280px">
|
||||||
|
@ -65,7 +65,7 @@
|
||||||
</f:GroupField>
|
</f:GroupField>
|
||||||
<f:GroupField ID="g2" HeaderText="SYSTEM AND TEST PACKAGE SELECTION" HeaderTextAlign="Center">
|
<f:GroupField ID="g2" HeaderText="SYSTEM AND TEST PACKAGE SELECTION" HeaderTextAlign="Center">
|
||||||
<Columns>
|
<Columns>
|
||||||
<f:RenderField ColumnID="SYSTEM" DataField="SYSTEM" FieldType="String" HeaderText="SYSTEM" TextAlign="Center"
|
<f:RenderField ColumnID="SYSTEM" DataField="SYSTEM" FieldType="String" HeaderText="System No" TextAlign="Center"
|
||||||
HeaderTextAlign="Center" Width="140px">
|
HeaderTextAlign="Center" Width="140px">
|
||||||
</f:RenderField>
|
</f:RenderField>
|
||||||
<f:RenderField ColumnID="Subsystem" DataField="Subsystem" FieldType="String" HeaderText="Subsystem" TextAlign="Center"
|
<f:RenderField ColumnID="Subsystem" DataField="Subsystem" FieldType="String" HeaderText="Subsystem" TextAlign="Center"
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
|
|
||||||
<f:TextBox runat="server" ID="txtTelecom" Label="Telecom" LabelWidth="120px" LabelAlign="Right"></f:TextBox>
|
<f:TextBox runat="server" ID="txtTelecom" Label="Telecom" LabelWidth="120px" LabelAlign="Right"></f:TextBox>
|
||||||
|
|
||||||
<f:TextBox runat="server" ID="txtSystem" Label="SYSTEM" LabelWidth="100px" LabelAlign="Right"></f:TextBox>
|
<f:TextBox runat="server" ID="txtSystem" Label="System No" LabelWidth="100px" LabelAlign="Right"></f:TextBox>
|
||||||
|
|
||||||
<f:DropDownList runat="server" ID="ddStatus" Label="Status">
|
<f:DropDownList runat="server" ID="ddStatus" Label="Status">
|
||||||
<f:ListItem Value="" Text="All" Selected="true"/>
|
<f:ListItem Value="" Text="All" Selected="true"/>
|
||||||
|
@ -62,7 +62,7 @@
|
||||||
|
|
||||||
<f:GroupField HeaderText="SYSTEM AND TEST PACKAGE SELECTION" TextAlign="Center" MinWidth="450">
|
<f:GroupField HeaderText="SYSTEM AND TEST PACKAGE SELECTION" TextAlign="Center" MinWidth="450">
|
||||||
<Columns>
|
<Columns>
|
||||||
<f:BoundField minWidth="120px" ColumnID="SystemName" DataField="SystemName" HeaderText="SYSTEM" TextAlign="Center"/>
|
<f:BoundField minWidth="120px" ColumnID="SystemName" DataField="SystemName" HeaderText="System No" TextAlign="Center"/>
|
||||||
<f:BoundField minWidth="120px" ColumnID="Subsystem" DataField="Subsystem" HeaderText="Subsystem" TextAlign="Center"/>
|
<f:BoundField minWidth="120px" ColumnID="Subsystem" DataField="Subsystem" HeaderText="Subsystem" TextAlign="Center"/>
|
||||||
<f:BoundField minWidth="140px" ColumnID="Test_Package" DataField="Test_Package" HeaderText="Test Package" TextAlign="Center"/>
|
<f:BoundField minWidth="140px" ColumnID="Test_Package" DataField="Test_Package" HeaderText="Test Package" TextAlign="Center"/>
|
||||||
</Columns>
|
</Columns>
|
||||||
|
|
|
@ -392613,6 +392613,8 @@ namespace Model
|
||||||
|
|
||||||
private string _Describe;
|
private string _Describe;
|
||||||
|
|
||||||
|
private string _SystemNo;
|
||||||
|
|
||||||
#region 可扩展性方法定义
|
#region 可扩展性方法定义
|
||||||
partial void OnLoaded();
|
partial void OnLoaded();
|
||||||
partial void OnValidate(System.Data.Linq.ChangeAction action);
|
partial void OnValidate(System.Data.Linq.ChangeAction action);
|
||||||
|
@ -392643,6 +392645,8 @@ namespace Model
|
||||||
partial void OnActualFinishedDateChanged();
|
partial void OnActualFinishedDateChanged();
|
||||||
partial void OnDescribeChanging(string value);
|
partial void OnDescribeChanging(string value);
|
||||||
partial void OnDescribeChanged();
|
partial void OnDescribeChanged();
|
||||||
|
partial void OnSystemNoChanging(string value);
|
||||||
|
partial void OnSystemNoChanged();
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
public Transfer_LHCSystemList()
|
public Transfer_LHCSystemList()
|
||||||
|
@ -392910,6 +392914,26 @@ namespace Model
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SystemNo", DbType="NVarChar(50)")]
|
||||||
|
public string SystemNo
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return this._SystemNo;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if ((this._SystemNo != value))
|
||||||
|
{
|
||||||
|
this.OnSystemNoChanging(value);
|
||||||
|
this.SendPropertyChanging();
|
||||||
|
this._SystemNo = value;
|
||||||
|
this.SendPropertyChanged("SystemNo");
|
||||||
|
this.OnSystemNoChanged();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public event PropertyChangingEventHandler PropertyChanging;
|
public event PropertyChangingEventHandler PropertyChanging;
|
||||||
|
|
||||||
public event PropertyChangedEventHandler PropertyChanged;
|
public event PropertyChangedEventHandler PropertyChanged;
|
||||||
|
|
Loading…
Reference in New Issue