xinjiang/SGGL/FineUIPro.Web/HJGL/WeldingReport/OneWeekDeviceReport.aspx

312 lines
27 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="OneWeekDeviceReport.aspx.cs"
Inherits="FineUIPro.Web.HJGL.WeldingReport.OneWeekDeviceReport" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>单位工区质量分析</title>
<link href="../../res/css/common.css" rel="stylesheet" type="text/css" />
<style>
.f-grid-row-summary .f-grid-cell-inner {
font-weight: bold;
color: red;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<f:PageManager ID="PageManager1" runat="server" AutoSizePanelID="RegionPanel1" />
<f:RegionPanel ID="RegionPanel1" ShowBorder="false" runat="server" Margin="5px">
<Regions>
<f:Region ID="Region1" ShowBorder="false" ShowHeader="false" RegionPosition="Top"
BodyPadding="0 5 0 0" Layout="VBox" runat="server" EnableCollapse="true">
<Items>
<f:Form ID="Form2" ShowHeader="false" ShowBorder="false" runat="server" LabelAlign="Right">
<Toolbars>
<f:Toolbar ID="Toolbar1" Position="Bottom" runat="server" ToolbarAlign="Right">
<Items>
<f:Button ID="BtnAnalyse" Text="统计" Icon="ChartPie" runat="server" OnClick="BtnAnalyse_Click"></f:Button>
<f:Button ID="btnOut" OnClick="btnOut_Click" runat="server" Text="导出" Icon="TableGo"
EnableAjax="false" DisableControlBeforePostBack="false">
</f:Button>
</Items>
</f:Toolbar>
</Toolbars>
<Rows>
<f:FormRow>
<Items >
<f:DropDownList ID="drpUnit" Width="200px" runat="server" LabelWidth="80px" Label="单位名称" EnableEdit="true" AutoPostBack="true" OnSelectedIndexChanged="drpUnit_SelectedIndexChanged">
</f:DropDownList>
<f:DatePicker ID="txtStartDate" runat="server" Label="开始日期" LabelAlign="Right" AutoPostBack="true" OnTextChanged="txtStartDate_TextChanged"></f:DatePicker>
<f:DatePicker ID="txtEndDate" runat="server" Label="结束日期" LabelAlign="Right" AutoPostBack="true" OnTextChanged="txtEndDate_TextChanged"></f:DatePicker>
<f:CheckBoxList ID="cb_IsStandard" Label="是否非标" runat="server" >
<f:CheckItem Text="否" Value="0" Selected="true"/>
<f:CheckItem Text="是" Value="1" />
</f:CheckBoxList>
<f:Label runat="server" Hidden="true"></f:Label>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</Items>
</f:Region>
<f:Region ID="Region2" ShowBorder="false" ShowHeader="false" Position="Center" Layout="VBox"
BoxConfigAlign="Stretch" BoxConfigPosition="Left" runat="server">
<Items>
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="单位工区质量分析" EnableCollapse="true"
runat="server" BoxFlex="1" DataKeyNames="ISO_ID" AllowCellEditing="true" EnableColumnLines="true"
ClicksToEdit="2" DataIDField="ISO_ID" AllowSorting="true"
SortDirection="ASC" OnSort="Grid1_Sort" IsDatabasePaging="true" PageSize="10"
OnPageIndexChange="Grid1_PageIndexChange" EnableSummary="true" SummaryPosition="Flow">
<Columns>
<f:TemplateField ColumnID="tfNumber" HeaderText="序号" Width="60px" HeaderTextAlign="Center" TextAlign="Center">
<ItemTemplate>
<asp:Label ID="labNumber1" runat="server" Text=' <%# Grid1.PageIndex * Grid1.PageSize + Container.DataItemIndex + 1%>'></asp:Label>
</ItemTemplate>
</f:TemplateField>
<f:BoundField Width="160px" TextAlign="Center" ColumnID="UnitName" DataField="UnitName" HeaderText="施工单位" />
<f:GroupField ID="ColumnUnitName" ColumnID="install" HeaderText="装置区" TextAlign="Center">
<Columns>
<f:BoundField Width="100px" TextAlign="Center" ColumnID="WorkAreaCode" DataField="WorkAreaCode" HeaderText="区号" />
<f:BoundField Width="100px" TextAlign="Center" ColumnID="ISO_IsoNo" DataField="ISO_IsoNo" HeaderText="设备号" />
</Columns>
</f:GroupField>
<f:GroupField Width="100px" TextAlign="Center" HeaderText="本周委托" >
<Columns>
<f:GroupField TextAlign="Center" HeaderText="PA(相控阵超声检测)按延长米计算" >
<Columns>
<f:BoundField Width="120px" TextAlign="Center" ColumnID="tfmjotNnum" DataField="tfmjotNnum" HeaderText="焊口数" />
<f:BoundField Width="120px" TextAlign="Center" ColumnID="tfmpassdonedin" DataField="tfmpassdonedin" HeaderText="检测数(MM)" />
<f:BoundField Width="120px" TextAlign="Center" ColumnID="tfmnopassdonedin" DataField="tfmnopassdonedin" HeaderText="返修数(MM)" />
<f:BoundField Width="100px" TextAlign="Center" ColumnID="tfmpassrate" DataField="tfmpassrate" HeaderText="合格率%" />
</Columns>
</f:GroupField>
<f:GroupField TextAlign="Center" HeaderText="TOFD(超声波衍射时差法)按延长米计算" >
<Columns>
<f:BoundField Width="120px" TextAlign="Center" ColumnID="tofdjotNnum" DataField="tofdjotNnum" HeaderText="焊口数" />
<f:BoundField Width="120px" TextAlign="Center" ColumnID="tofdpassdonedin" DataField="tofdpassdonedin" HeaderText="检测数(MM)" />
<f:BoundField Width="120px" TextAlign="Center" ColumnID="tofdnopassdonedin" DataField="tofdnopassdonedin" HeaderText="返修数(MM)" />
<f:BoundField Width="100px" TextAlign="Center" ColumnID="tofdpassrate" DataField="tofdpassrate" HeaderText="合格率%" />
</Columns>
</f:GroupField>
<f:GroupField TextAlign="Center" HeaderText="UT(超声波)按延长米计算" >
<Columns>
<f:BoundField Width="120px" TextAlign="Center" ColumnID="utjotNnum" DataField="utjotNnum" HeaderText="焊口数" />
<f:BoundField Width="120px" TextAlign="Center" ColumnID="utpassdonedin" DataField="utpassdonedin" HeaderText="检测数(MM)" />
<f:BoundField Width="120px" TextAlign="Center" ColumnID="utnopassdonedin" DataField="utnopassdonedin" HeaderText="返修数(MM)" />
<f:BoundField Width="100px" TextAlign="Center" ColumnID="utpassrate" DataField="utpassrate" HeaderText="合格率%" />
</Columns>
</f:GroupField>
<f:GroupField TextAlign="Center" HeaderText="PT着色" >
<Columns>
<f:BoundField Width="120px" TextAlign="Center" ColumnID="ptjotNnum" DataField="ptjotNnum" HeaderText="焊口数" />
<f:BoundField Width="120px" TextAlign="Center" ColumnID="ptpassdonedin" DataField="ptpassdonedin" HeaderText="检测数(MM)" />
<f:BoundField Width="120px" TextAlign="Center" ColumnID="ptnopassdonedin" DataField="ptnopassdonedin" HeaderText="返修数(MM)" />
<f:BoundField Width="100px" TextAlign="Center" ColumnID="ptpassrate" DataField="ptpassrate" HeaderText="合格率%" />
</Columns>
</f:GroupField>
<f:GroupField TextAlign="Center" HeaderText="MT磁粉" >
<Columns>
<f:BoundField Width="120px" TextAlign="Center" ColumnID="mtjotNnum" DataField="mtjotNnum" HeaderText="焊口数" />
<f:BoundField Width="120px" TextAlign="Center" ColumnID="mtpassdonedin" DataField="mtpassdonedin" HeaderText="检测数(MM)" />
<f:BoundField Width="120px" TextAlign="Center" ColumnID="mtnopassdonedin" DataField="mtnopassdonedin" HeaderText="返修数(MM)" />
<f:BoundField Width="100px" TextAlign="Center" ColumnID="mtpassrate" DataField="mtpassrate" HeaderText="合格率%" />
</Columns>
</f:GroupField>
</Columns>
</f:GroupField>
<f:GroupField Width="100px" TextAlign="Center" HeaderText="本周复检及返修" >
<Columns>
<f:GroupField TextAlign="Center" HeaderText="3D-TFM(相控阵超声检测)按延长米计算" >
<Columns>
<f:BoundField Width="120px" TextAlign="Center" ColumnID="tfmbackjotNnum" DataField="tfmbackjotNnum" HeaderText="焊口数" />
<f:BoundField Width="120px" TextAlign="Center" ColumnID="tfmbackpassdonedin" DataField="tfmbackpassdonedin" HeaderText="不合格返修数(MM)" />
<f:BoundField Width="120px" TextAlign="Center" ColumnID="tfmbacknopassdonedin" DataField="tfmbacknopassdonedin" HeaderText="返修不合格数(MM)" />
<f:BoundField Width="100px" TextAlign="Center" ColumnID="tfmbackpassrate" DataField="tfmbackpassrate" HeaderText="合格率%" />
</Columns>
</f:GroupField>
<f:GroupField TextAlign="Center" HeaderText="TOFD(超声波衍射时差法)按延长米计算" >
<Columns>
<f:BoundField Width="120px" TextAlign="Center" ColumnID="tofdbackjotNnum" DataField="tofdbackjotNnum" HeaderText="焊口数" />
<f:BoundField Width="120px" TextAlign="Center" ColumnID="tofdbackpassdonedin" DataField="tofdbackpassdonedin" HeaderText="不合格返修数(MM)" />
<f:BoundField Width="120px" TextAlign="Center" ColumnID="tofdbacknopassdonedin" DataField="tofdbacknopassdonedin" HeaderText="返修不合格数(MM)" />
<f:BoundField Width="100px" TextAlign="Center" ColumnID="tofdbackpassrate" DataField="tofdbackpassrate" HeaderText="合格率%" />
</Columns>
</f:GroupField>
<f:GroupField TextAlign="Center" HeaderText="UT(超声波)按延长米计算" >
<Columns>
<f:BoundField Width="120px" TextAlign="Center" ColumnID="utbackjotNnum" DataField="utbackjotNnum" HeaderText="焊口数" />
<f:BoundField Width="120px" TextAlign="Center" ColumnID="utbackpassdonedin" DataField="utbackpassdonedin" HeaderText="不合格返修数(MM)" />
<f:BoundField Width="120px" TextAlign="Center" ColumnID="utbacknopassdonedin" DataField="utbacknopassdonedin" HeaderText="返修不合格数(MM)" />
<f:BoundField Width="100px" TextAlign="Center" ColumnID="utbackpassrate" DataField="utbackpassrate" HeaderText="合格率%" />
</Columns>
</f:GroupField>
<f:GroupField TextAlign="Center" HeaderText="PT着色" >
<Columns>
<f:BoundField Width="120px" TextAlign="Center" ColumnID="ptbackjotNnum" DataField="ptbackjotNnum" HeaderText="焊口数" />
<f:BoundField Width="120px" TextAlign="Center" ColumnID="ptbackpassdonedin" DataField="ptbackpassdonedin" HeaderText="不合格返修数(MM)" />
<f:BoundField Width="120px" TextAlign="Center" ColumnID="ptbacknopassdonedin" DataField="ptbacknopassdonedin" HeaderText="返修不合格数(MM)" />
<f:BoundField Width="100px" TextAlign="Center" ColumnID="ptbackpassrate" DataField="ptbackpassrate" HeaderText="合格率%" />
</Columns>
</f:GroupField>
<f:GroupField TextAlign="Center" HeaderText="MT磁粉" >
<Columns>
<f:BoundField Width="120px" TextAlign="Center" ColumnID="mtbackjotNnum" DataField="mtbackjotNnum" HeaderText="焊口数" />
<f:BoundField Width="120px" TextAlign="Center" ColumnID="mtbackpassdonedin" DataField="mtbackpassdonedin" HeaderText="不合格返修数(MM)" />
<f:BoundField Width="120px" TextAlign="Center" ColumnID="mtbacknopassdonedin" DataField="mtbacknopassdonedin" HeaderText="返修不合格数(MM)" />
<f:BoundField Width="100px" TextAlign="Center" ColumnID="mtbackpassrate" DataField="mtbackpassrate" HeaderText="合格率%" />
</Columns>
</f:GroupField>
</Columns>
</f:GroupField>
<f:GroupField Width="100px" TextAlign="Center" HeaderText="总累计" >
<Columns>
<f:GroupField TextAlign="Center" HeaderText="3D-TFM(相控阵超声检测)按延长米计算" >
<Columns>
<f:BoundField Width="120px" TextAlign="Center" ColumnID="tfmtotaljotNnum" DataField="tfmtotaljotNnum" HeaderText="焊口数" />
<f:BoundField Width="120px" TextAlign="Center" ColumnID="tfmtotalpassdonedin" DataField="tfmtotalpassdonedin" HeaderText="总检测数(MM)" />
<f:BoundField Width="120px" TextAlign="Center" ColumnID="tfmtotalnopassdonedin" DataField="tfmtotalnopassdonedin" HeaderText="总返修数(MM)" />
<f:BoundField Width="100px" TextAlign="Center" ColumnID="tfmtotalpassrate" DataField="tfmtotalpassrate" HeaderText="合格率%" />
</Columns>
</f:GroupField>
<f:GroupField TextAlign="Center" HeaderText="TOFD(超声波衍射时差法)按延长米计算" >
<Columns>
<f:BoundField Width="120px" TextAlign="Center" ColumnID="tofdtotaljotNnum" DataField="tofdtotaljotNnum" HeaderText="焊口数" />
<f:BoundField Width="120px" TextAlign="Center" ColumnID="tofdtotalpassdonedin" DataField="tofdtotalpassdonedin" HeaderText="总检测数(MM)" />
<f:BoundField Width="120px" TextAlign="Center" ColumnID="tofdtotalnopassdonedin" DataField="tofdtotalnopassdonedin" HeaderText="总返修数(MM)" />
<f:BoundField Width="100px" TextAlign="Center" ColumnID="tofdtotalpassrate" DataField="tofdtotalpassrate" HeaderText="合格率%" />
</Columns>
</f:GroupField>
<f:GroupField TextAlign="Center" HeaderText="UT(超声波)按延长米计算" >
<Columns>
<f:BoundField Width="120px" TextAlign="Center" ColumnID="uttotaljotNnum" DataField="uttotaljotNnum" HeaderText="焊口数" />
<f:BoundField Width="120px" TextAlign="Center" ColumnID="uttotalpassdonedin" DataField="uttotalpassdonedin" HeaderText="总检测数(MM)" />
<f:BoundField Width="120px" TextAlign="Center" ColumnID="uttotalnopassdonedin" DataField="uttotalnopassdonedin" HeaderText="总返修数(MM)" />
<f:BoundField Width="100px" TextAlign="Center" ColumnID="uttotalpassrate" DataField="uttotalpassrate" HeaderText="合格率%" />
</Columns>
</f:GroupField>
<f:GroupField TextAlign="Center" HeaderText="PT着色" >
<Columns>
<f:BoundField Width="120px" TextAlign="Center" ColumnID="pttotaljotNnum" DataField="pttotaljotNnum" HeaderText="焊口数" />
<f:BoundField Width="120px" TextAlign="Center" ColumnID="pttotalpassdonedin" DataField="pttotalpassdonedin" HeaderText="总检测数(MM)" />
<f:BoundField Width="120px" TextAlign="Center" ColumnID="pttotalnopassdonedin" DataField="pttotalnopassdonedin" HeaderText="总返修数(MM)" />
<f:BoundField Width="100px" TextAlign="Center" ColumnID="pttotalpassrate" DataField="pttotalpassrate" HeaderText="合格率%" />
</Columns>
</f:GroupField>
<f:GroupField TextAlign="Center" HeaderText="MT磁粉" >
<Columns>
<f:BoundField Width="120px" TextAlign="Center" ColumnID="mttotaljotNnum" DataField="mttotaljotNnum" HeaderText="焊口数" />
<f:BoundField Width="120px" TextAlign="Center" ColumnID="mttotalpassdonedin" DataField="mttotalpassdonedin" HeaderText="总检测数(MM)" />
<f:BoundField Width="120px" TextAlign="Center" ColumnID="mttotalnopassdonedin" DataField="mttotalnopassdonedin" HeaderText="总返修数(MM)" />
<f:BoundField Width="100px" TextAlign="Center" ColumnID="mttotalpassrate" DataField="mttotalpassrate" HeaderText="合格率%" />
</Columns>
</f:GroupField>
</Columns>
</f:GroupField>
</Columns>
<PageItems>
<f:ToolbarSeparator ID="ToolbarSeparator1" runat="server">
</f:ToolbarSeparator>
<f:ToolbarText ID="ToolbarText1" runat="server" Text="每页记录数:">
</f:ToolbarText>
<f:DropDownList runat="server" ID="ddlPageSize" Width="80px" AutoPostBack="true"
OnSelectedIndexChanged="ddlPageSize_SelectedIndexChanged">
</f:DropDownList>
</PageItems>
<Listeners>
<f:Listener Event="dataload" Handler="onGridDataLoad" />
</Listeners>
</f:Grid>
</Items>
</f:Region>
</Regions>
</f:RegionPanel>
</form>
<script type="text/javascript">
var areaNum = 100;
function onGridDataLoad(event) {
console.log(event)
var list = [];
for (var i = 0; i < areaNum; i++) {
list.push({
rowId: '' + i * 2,
columnId: 'WorkAreaCode',
rowspan: 2
});
list.push({
rowId: '' + i * 2,
columnId: 'WorkAreaName',
rowspan: 2
});
list.push({
rowId: '' + i * 2,
columnId: 'total_din',
rowspan: 2
});
list.push({
rowId: '' + i * 2,
columnId: 'has_din',
rowspan: 2
});
list.push({
rowId: '' + i * 2,
columnId: 'res_din',
rowspan: 2
});
list.push({
rowId: '' + i * 2,
columnId: 'has_per',
rowspan: 2
});
}
list.push({
rowId: '10000000',
columnId: 'WorkAreaCode',
rowspan: 2,
columnspan: 2
});
list.push({
rowId: '10000000',
columnId: 'WorkAreaName',
rowspan: 2
});
list.push({
rowId: '10000000',
columnId: 'total_din',
rowspan: 2
});
list.push({
rowId: '10000000',
columnId: 'has_din',
rowspan: 2
});
list.push({
rowId: '10000000',
columnId: 'res_din',
rowspan: 2
});
list.push({
rowId: '10000000',
columnId: 'has_per',
rowspan: 2
});
this.mergeCells(list);
}
</script>
</body>
</html>