ChengDa_English/SGGL/FineUIPro.Web/CQMS/Check/SpotCheckView.aspx

222 lines
16 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="SpotCheckView.aspx.cs" Inherits="FineUIPro.Web.CQMS.Check.SpotCheckView" %>
<!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><asp:Literal runat="server" Text="<%$ Resources:Lan,SpotDataCheckView_Title%>"/></title>
<link href="../../res/css/common.css" rel="stylesheet" type="text/css" />
<style type="text/css">
.labcenter {
text-align: center;
}
.f-grid-row .f-grid-cell-inner {
white-space: normal;
word-break: break-all;
}
.f-grid-row.red {
background-color: #FF7575;
background-image: none;
}
.Yellow {
background-color: #FFFF93;
}
.fontred {
color: #FF7575;
background-image: none;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<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">
<Rows>
<f:FormRow>
<Items>
<f:ContentPanel ID="ContentPanel2" Title="<%$ Resources:Lan,SpotDataCheck_Title%>" ShowBorder="true"
BodyPadding="10px" EnableCollapse="true" ShowHeader="true" AutoScroll="true"
runat="server">
<f:Form ID="Form2" ShowBorder="false" ShowHeader="false" AutoScroll="true"
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
<Rows>
<f:FormRow>
<Items>
<f:TextBox ID="txtProjectName" runat="server" Readonly="true" LabelWidth="120px" Label="<%$ Resources:Lan,EditConstructSolution_txtProjectName_Label%>" LabelAlign="Right"
MaxLength="50">
</f:TextBox>
<f:TextBox ID="txtDocCode" runat="server" Required="true" LabelWidth="120px" ShowRedStar="true" Readonly="true" Label="<%$ Resources:Lan,EditConstructSolutionFinal_txtCode_Label%>" LabelAlign="Right"
MaxLength="50">
</f:TextBox>
<f:HiddenField ID="hdSpotCheckCode" runat="server"></f:HiddenField>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtUnit" ShowRedStar="true" runat="server" LabelWidth="120px" Readonly="true" Label="<%$ Resources:Lan,EditConstructSolutionFinal_drpUnit_Label%>" LabelAlign="Right"
>
</f:TextBox>
<f:TextBox ID="txtCNProfessional" ShowRedStar="true" LabelWidth="120px" runat="server" Readonly="true" Label="<%$ Resources:Lan,ITPListProjectEdit_drpCNProfessional_Label%>" LabelAlign="Right"
>
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtControlPointType" runat="server" LabelWidth="120px" Readonly="true" Required="true" ShowRedStar="true" Label="<%$ Resources:Lan,SpotDataCheckView_ControlPointLevel_HeaderText%>" LabelAlign="Right"
MaxLength="100">
</f:TextBox>
<f:Label runat="server" ID="lb1"></f:Label>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:Label runat="server" Label="<%$ Resources:Lan,SpotDataCheckView_ParticipatingInspectors_Label%>" LabelWidth="120px"></f:Label>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtJointCheckMans" runat="server" LabelWidth="120px" Readonly="true" Label="<%$ Resources:Lan,SpotDataCheckView_TotalContractor_Label%>" LabelAlign="Right"
>
</f:TextBox>
<f:TextBox ID="txtJointCheckMans2" runat="server" Readonly="true" Label="<%$ Resources:Lan,SpotDataCheckView_SupervisionUnit_Label%>" LabelAlign="Right"
>
</f:TextBox>
<f:TextBox ID="txtJointCheckMans3" runat="server" Readonly="true" Label="<%$ Resources:Lan,SpotDataCheckView_ConstructionUnit2_Label%>" LabelAlign="Right"
>
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtCheckDateType" runat="server" LabelWidth="120px" Readonly="true" Required="true" ShowRedStar="true" Label="<%$ Resources:Lan,SpotDataCheckView_InspectionTimeMethod_Label%>" LabelAlign="Right"
MaxLength="100">
</f:TextBox>
<f:Label runat="server" ></f:Label>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtSpotCheckDate" runat="server" LabelWidth="120px" Readonly="true" Required="true" ShowRedStar="true" Label="<%$ Resources:Lan,SpotDataCheckView_InspectionTime_Label%>" LabelAlign="Right"
MaxLength="100">
</f:TextBox>
<f:TextBox ID="txtSpotCheckDate2" Hidden="true" runat="server" LabelWidth="120px" Readonly="true" Required="true" ShowRedStar="true" Label="<%$ Resources:Lan,DesignChangeOrder_EndTime_Label%>" LabelAlign="Right"
MaxLength="100">
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtCheckArea" runat="server" LabelWidth="120px" Readonly="true" Required="true" ShowRedStar="true" Label="<%$ Resources:Lan,SpotDataCheckView_InspectionLocation_Label%>" LabelAlign="Right"
MaxLength="100">
</f:TextBox>
<%--<f:Button ID="imgBtnFile" Text="<%$ Resources:Lan,SpotDataCheckView_SelfInspectionRecord_Button%>" ToolTip="<%$ Resources:Lan,TechnicalContactView_Attachment_ToolTip%>" Icon="TableCell" runat="server"
OnClick="imgBtnFile_Click">
</f:Button>--%>
<f:Panel ID="Panel1" ShowHeader="false" ShowBorder="false" Layout="Column" runat="server">
<Items>
<f:Label runat="server" Text="自检记录:" CssStyle="padding-left:35px" Width="120px" CssClass="marginr" ShowLabel="false"></f:Label>
<f:Button ID="imgBtnFile" Text="<%$ Resources:Lan,SpotDataCheckView_SelfInspectionRecord_Button%>" ToolTip="<%$ Resources:Lan,TechnicalContactView_Attachment_ToolTip%>" Icon="TableCell" runat="server"
OnClick="imgBtnFile_Click">
</f:Button>
</Items>
</f:Panel>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</f:ContentPanel>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="true" Title="<%$ Resources:Lan,InspectionNoticeEdit_Grid1_Title%>" EnableCollapse="false" runat="server"
BoxFlex="1" DataKeyNames="SpotCheckDetailId,ControlItemAndCycleId" AllowCellEditing="true" EnableColumnLines="true"
ClicksToEdit="1" DataIDField="SpotCheckDetailId" AllowSorting="true" ForceFit="true" SortField="CreateDate"
EnableTextSelection="True" OnRowCommand="Grid1_RowCommand" >
<Columns>
<f:RowNumberField Width="40px" HeaderText="<%$ Resources:Lan,ShoBreakdownProject_Grid1_BreakdownCode_HeaderText%>" HeaderTextAlign="Center" TextAlign="Center" />
<f:TemplateField ColumnID="ControlItemAndCycleId" Width="400px" HeaderText="<%$ Resources:Lan,SpotDataCheckView_SpotCheckItemName_HeaderText%>" HeaderTextAlign="Center" TextAlign="Center"
>
<ItemTemplate>
<asp:Label ID="Label1" runat="server" Text='<%# ConvertDetailName(Eval("ControlItemAndCycleId")) %>'></asp:Label>
</ItemTemplate>
</f:TemplateField>
<f:TemplateField ColumnID="ControlPoint" Width="100px" HeaderText="<%$ Resources:Lan,SpotDataCheckView_ControlPointLevel_HeaderText%>" HeaderTextAlign="Center" TextAlign="Center">
<ItemTemplate>
<asp:Label ID="Label4" runat="server" Text='<%# ConvertControlPoint(Eval("ControlItemAndCycleId")) %>'></asp:Label>
</ItemTemplate>
</f:TemplateField>
<f:TemplateField ColumnID="IsOKStr" Width="100px" HeaderText="<%$ Resources:Lan,SpotCheckView_SpotCheckResult_HeaderText%>" HeaderTextAlign="Center" TextAlign="Center">
<ItemTemplate>
<asp:Label ID="Label2" runat="server" Text='<%# ConvertIsOK(Eval("IsOK")) %>'></asp:Label>
</ItemTemplate>
</f:TemplateField>
<f:RenderField HeaderText="<%$ Resources:Lan,SpotCheckView_QualityDescription_HeaderText%>" ColumnID="RectifyDescription" DataField="RectifyDescription"
SortField="RectifyDescription" FieldType="String" HeaderTextAlign="Center" TextAlign="Center"
>
</f:RenderField>
</Columns>
</f:Grid>
</Items>
</f:FormRow>
<f:FormRow ID="plApprove2">
<Items>
<f:ContentPanel Title="<%$ Resources:Lan,SpotCheckView_ApprovalList_Title%>" ShowBorder="true"
BodyPadding="10px" EnableCollapse="true" ShowHeader="true" AutoScroll="true"
runat="server">
<f:Grid ID="gvApprove" IsFluid="true" CssClass="blockpanel" ShowBorder="true" ShowHeader="false" runat="server" EnableCollapse="false"
DataKeyNames="CheckControlApproveId" EnableColumnLines="true" ForceFit="true">
<Columns>
<f:RowNumberField Width="40px" HeaderText="<%$ Resources:Lan,ShoBreakdownProject_Grid1_BreakdownCode_HeaderText%>" HeaderTextAlign="Center" TextAlign="Center" />
<f:TemplateField ColumnID="State" Width="250px" HeaderText="<%$ Resources:Lan,EditConstructSolution_gvApprove_ApproveType_HeaderText%>" HeaderTextAlign="Center" TextAlign="Center"
EnableLock="true" Locked="False">
<ItemTemplate>
<asp:Label ID="lbtype" runat="server" Text='<%# ConvertState(Eval("ApproveType")) %>'></asp:Label>
</ItemTemplate>
</f:TemplateField>
<f:BoundField Width="180px" DataField="ApproveMan" HeaderTextAlign="Center" HeaderText="<%$ Resources:Lan,EditConstructSolution_gvApprove_ApproveMan_HeaderText%>" TextAlign="Center" />
<f:BoundField Width="200px" DataField="ApproveDate" HeaderTextAlign="Center" TextAlign="Center" DataFormatString="{0:yyyy-MM-dd}" HeaderText="<%$ Resources:Lan,EditConstructSolution_gvApprove_ApproveDate_HeaderText%>" />
<f:BoundField Width="180px" DataField="ApproveIdea" HeaderTextAlign="Center" TextAlign="Center" HeaderText="<%$ Resources:Lan,EditConstructSolution_gvApprove_ApproveIdea_HeaderText%>" />
</Columns>
</f:Grid>
</f:ContentPanel>
</Items>
</f:FormRow>
</Rows>
</f:Form>
<f:Window ID="Window1" Title="<%$ Resources:Lan,SpotDataCheckView_WindowTitle_EditDetail%>" Hidden="true" EnableIFrame="true" EnableMaximize="true"
Target="Parent" EnableResize="false" runat="server" IsModal="true"
Width="1100px" Height="520px">
</f:Window>
<f:Window ID="WindowAtt" Title="<%$ Resources:Lan,ITPListProjectEdit_WindowAtt_Title%>" Hidden="true" EnableIFrame="true" EnableMaximize="true"
Target="Parent" EnableResize="false" OnClose="WindowAtt_Close" runat="server" IsModal="true" Width="700px"
Height="500px">
</f:Window>
<f:Menu ID="Menu1" runat="server">
<f:MenuButton ID="btnMenuDelete" EnablePostBack="true"
Icon="Delete" ConfirmText="<%$ Resources:Lan,ITPListProject_btnMenuDel_ConfirmText%>" ConfirmTarget="Parent" runat="server" Text="<%$ Resources:Lan,ITPListProject_btnMenuDel_Text%>">
</f:MenuButton>
</f:Menu>
</form>
<script>
var menuID = '<%= Menu1.ClientID %>';
// 返回false来阻止浏览器右键菜单
function onRowContextMenu(event, rowId) {
F(menuID).show(); //showAt(event.pageX, event.pageY);
return false;
}
</script>
</body>
</html>