SGGL_SHJ/SGGL/FineUIPro.Web/ZHGL/Plan/MainContractEdit.aspx

199 lines
12 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="MainContractEdit.aspx.cs" Inherits="FineUIPro.Web.ZHGL.Plan.MainContractEdit" %>
<!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>
<link href="../../res/css/common.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" runat="server">
<f:PageManager ID="PageManager1" runat="server" AutoSizePanelID="SimpleForm1" />
<f:Form ID="SimpleForm1" ShowBorder="false" ShowHeader="false" AutoScroll="true" Title="总包合同"
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
<Rows>
<f:FormRow>
<Items>
<f:TextBox ID="txtMainContractCode" runat="server" Label="编号" ShowRedStar="true" Required="true"
LabelAlign="Right" LabelWidth="140px">
</f:TextBox>
<f:TextBox ID="txtMainContractName" runat="server" Label="名称" Required="true"
ShowRedStar="true" LabelAlign="Right" LabelWidth="120px">
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtProjectId" runat="server" Label="项目名称" Required="true"
ShowRedStar="true" LabelAlign="Right" LabelWidth="140px">
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtVersionNo" runat="server" Label="版本号" LabelAlign="Right" LabelWidth="140px">
</f:TextBox>
<f:DropDownList ID="drpProjectType" runat="server" Label="项目类型" LabelAlign="Right"
LabelWidth="120px">
<f:ListItem Value="1" Text="EPC" Selected="true" />
<f:ListItem Value="2" Text="EPCM" />
<f:ListItem Value="3" Text="C" />
<f:ListItem Value="4" Text="其他" />
</f:DropDownList>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtCompileMan" runat="server" Label="编制人" Required="true"
ShowRedStar="true" LabelAlign="Right" LabelWidth="140px">
</f:TextBox>
<f:DatePicker ID="txtCompileDate" runat="server" Label="编制日期" LabelAlign="Right"
EnableEdit="true" LabelWidth="120px">
</f:DatePicker>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:DropDownList ID="drpPerson" runat="server" LabelWidth="140px" Label="评审人员" LabelAlign="Right" EnableCheckBoxSelect="true" EnableMultiSelect="true" EnableEdit="true">
</f:DropDownList>
</Items>
</f:FormRow>
<f:FormRow runat="server" ID="trAtt">
<Items>
<f:ContentPanel ID="ContentPanel2" runat="server" ShowHeader="false" EnableCollapse="true"
BodyPadding="0px" Height="100px">
<div runat="server" id="divC"></div>
</f:ContentPanel>
</Items>
</f:FormRow>
<f:FormRow runat="server" ID="Opinion">
<Items>
<f:ContentPanel Title="评审意见" ShowBorder="true"
BodyPadding="10px" EnableCollapse="true" ShowHeader="true" AutoScroll="true"
runat="server">
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="评审意见" EnableCollapse="true"
runat="server" BoxFlex="1" EnableColumnLines="true" DataKeyNames="MainContractOpinionId"
DataIDField="MainContractOpinionId" AllowPaging="false" IsDatabasePaging="true" PageSize="1000"
EnableRowDoubleClickEvent="true" OnRowDoubleClick="Grid1_RowDoubleClick" EnableTextSelection="True"
Height="220px">
<Toolbars>
<f:Toolbar ID="Toolbar2" Position="Top" runat="server" ToolbarAlign="Left">
<Items>
<f:ToolbarFill ID="ToolbarFill2" runat="server">
</f:ToolbarFill>
<f:Button ID="btnNew" Icon="Add" runat="server" Text="新增" ToolTip="新增意见" ValidateForms="SimpleForm1"
OnClick="btnNew_Click">
</f:Button>
</Items>
</f:Toolbar>
</Toolbars>
<Columns>
<f:TemplateField ColumnID="tfNumber" Width="50px" HeaderText="序号" HeaderTextAlign="Center"
TextAlign="Center">
<ItemTemplate>
<asp:Label ID="lblNumber" runat="server" Text='<%# Grid1.PageIndex * Grid1.PageSize + Container.DataItemIndex + 1 %>'></asp:Label>
</ItemTemplate>
</f:TemplateField>
<f:RenderField Width="140px" ColumnID="OriginalNum" DataField="OriginalNum" SortField="OriginalNum"
FieldType="String" HeaderText="原文章节号" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
<f:RenderField Width="500px" ColumnID="OriginalContent" DataField="OriginalContent" SortField="OriginalContent"
FieldType="String" HeaderText="原文内容" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
<f:RenderField Width="500px" ColumnID="Opinion" DataField="Opinion" ExpandUnusedSpace="true"
SortField="Opinion" FieldType="String" HeaderText="修改建议" HeaderTextAlign="Center"
TextAlign="Left">
</f:RenderField>
</Columns>
<Listeners>
<f:Listener Event="beforerowcontextmenu" Handler="onRowContextMenu" />
</Listeners>
</f:Grid>
</f:ContentPanel>
</Items>
</f:FormRow>
<f:FormRow ID="plApprove2">
<Items>
<f:ContentPanel 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="MainContractOpinionId" EnableColumnLines="true" OnRowCommand="gvApprove_RowCommand" >
<Columns>
<f:RowNumberField Width="40px" HeaderText="序号" HeaderTextAlign="Center" TextAlign="Center" />
<f:BoundField Width="140px" DataField="OriginalNum" HeaderTextAlign="Center" TextAlign="Left" HeaderText="原文章节号" />
<f:BoundField Width="500px" DataField="OriginalContent" HeaderTextAlign="Center" TextAlign="Left" HeaderText="原文内容" />
<f:BoundField Width="500px" DataField="Opinion" HeaderTextAlign="Center" TextAlign="Left" HeaderText="修改建议" ExpandUnusedSpace="true" />
<f:TemplateField ColumnID="ApproveMan" Width="100px" HeaderText="建议提出人" HeaderTextAlign="Center" TextAlign="Center"
EnableLock="true" Locked="False">
<ItemTemplate>
<asp:Label ID="Label3" runat="server" Text='<%# man(Eval("OpinionMan")) %>'></asp:Label>
</ItemTemplate>
</f:TemplateField>
</Columns>
</f:Grid>
</f:ContentPanel>
</Items>
</f:FormRow>
</Rows>
<Toolbars>
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
<Items>
<f:Label runat="server" ID="lbTemp">
</f:Label>
<f:Button ID="btnAttachUrl" Text="附件" ToolTip="附件上传及查看" Icon="TableCell" runat="server"
OnClick="btnAttachUrl_Click" ValidateForms="SimpleForm1">
</f:Button>
<f:ToolbarFill ID="ToolbarFill1" runat="server">
</f:ToolbarFill>
<f:HiddenField ID="txtEdition" runat="server"></f:HiddenField>
<f:HiddenField ID="HFMainContractId" runat="server"></f:HiddenField>
<f:Button ID="btnSave" Icon="SystemSave" runat="server" Text="保存" ValidateForms="SimpleForm1"
OnClick="btnSave_Click">
</f:Button>
<f:Button ID="btnSubmit" Icon="SystemSaveNew" runat="server" Text="提交" ValidateForms="SimpleForm1"
OnClick="btnSubmit_Click">
</f:Button>
<f:Button ID="btnClose" EnablePostBack="false" Text="关闭" runat="server" Icon="SystemClose">
</f:Button>
</Items>
</f:Toolbar>
</Toolbars>
</f:Form>
<f:Window ID="WindowAtt" Title="弹出窗体" Hidden="true" EnableIFrame="true" EnableMaximize="true"
Target="Parent" EnableResize="false" runat="server" IsModal="true" OnClose="WindowAtt_Close"
Width="700px" Height="500px">
</f:Window>
<f:Window ID="Window1" Title="评审意见" Hidden="true" EnableIFrame="true" EnableMaximize="true"
Target="Parent" EnableResize="false" runat="server" OnClose="Window1_Close" IsModal="true"
Width="800px" Height="500px">
</f:Window>
<f:Menu ID="Menu1" runat="server">
<f:MenuButton ID="btnMenuEdit" OnClick="btnMenuEdit_Click" Icon="Pencil" EnablePostBack="true"
runat="server" Text="编辑">
</f:MenuButton>
<f:MenuButton ID="btnMenuDelete" OnClick="btnMenuDelete_Click" EnablePostBack="true"
Icon="Delete" ConfirmText="删除选中行?" ConfirmTarget="Parent" runat="server" Text="删除">
</f:MenuButton>
</f:Menu>
</form>
<script type="text/javascript">
var menuID = '<%= Menu1.ClientID %>';
// 返回false来阻止浏览器右键菜单
function onRowContextMenu(event, rowId) {
F(menuID).show(); //showAt(event.pageX, event.pageY);
return false;
}
function reloadGrid() {
__doPostBack(null, 'reloadGrid');
}
</script>
</body>
</html>