168 lines
		
	
	
		
			7.9 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
		
		
			
		
	
	
			168 lines
		
	
	
		
			7.9 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
| 
								 | 
							
								<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ContactList.aspx.cs" Inherits="FineUIPro.Web.CQMS.Comprehensive.ContactList" %>
							 | 
						|||
| 
								 | 
							
								
							 | 
						|||
| 
								 | 
							
								<!DOCTYPE html>
							 | 
						|||
| 
								 | 
							
								
							 | 
						|||
| 
								 | 
							
								<html xmlns="http://www.w3.org/1999/xhtml">
							 | 
						|||
| 
								 | 
							
								<head runat="server">
							 | 
						|||
| 
								 | 
							
								<link href="../../res/css/common.css" rel="stylesheet" type="text/css" />
							 | 
						|||
| 
								 | 
							
								    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
							 | 
						|||
| 
								 | 
							
								    <title>工程联络单管理</title>
							 | 
						|||
| 
								 | 
							
								    <style type="text/css">
							 | 
						|||
| 
								 | 
							
								        .labcenter {
							 | 
						|||
| 
								 | 
							
								            text-align: center;
							 | 
						|||
| 
								 | 
							
								        }
							 | 
						|||
| 
								 | 
							
								
							 | 
						|||
| 
								 | 
							
								        .f-grid-row .f-grid-cell-inner {
							 | 
						|||
| 
								 | 
							
								            white-space: normal;
							 | 
						|||
| 
								 | 
							
								            word-break: break-all;
							 | 
						|||
| 
								 | 
							
								        }
							 | 
						|||
| 
								 | 
							
								
							 | 
						|||
| 
								 | 
							
								        .LabelColor {
							 | 
						|||
| 
								 | 
							
								            color: Red;
							 | 
						|||
| 
								 | 
							
								            font-size: small;
							 | 
						|||
| 
								 | 
							
								        }
							 | 
						|||
| 
								 | 
							
								        .red {
							 | 
						|||
| 
								 | 
							
								            background-color: red;
							 | 
						|||
| 
								 | 
							
								        }
							 | 
						|||
| 
								 | 
							
								        /*.f-grid-row.LightRedRow {
							 | 
						|||
| 
								 | 
							
								            background-color: #FF60AF;
							 | 
						|||
| 
								 | 
							
								        }
							 | 
						|||
| 
								 | 
							
								
							 | 
						|||
| 
								 | 
							
								        .f-grid-row.LightYellowRow {
							 | 
						|||
| 
								 | 
							
								            background-color: #FFFF93;
							 | 
						|||
| 
								 | 
							
								        }
							 | 
						|||
| 
								 | 
							
								
							 | 
						|||
| 
								 | 
							
								        .f-grid-row.LightGreenRow {
							 | 
						|||
| 
								 | 
							
								            background-color: #79FF79;
							 | 
						|||
| 
								 | 
							
								        }*/
							 | 
						|||
| 
								 | 
							
								
							 | 
						|||
| 
								 | 
							
								        .Green {
							 | 
						|||
| 
								 | 
							
								            background-color: Green;
							 | 
						|||
| 
								 | 
							
								        }
							 | 
						|||
| 
								 | 
							
								
							 | 
						|||
| 
								 | 
							
								        .Yellow {
							 | 
						|||
| 
								 | 
							
								            background-color: #FFFF93;
							 | 
						|||
| 
								 | 
							
								        }
							 | 
						|||
| 
								 | 
							
								
							 | 
						|||
| 
								 | 
							
								        .HotPink {
							 | 
						|||
| 
								 | 
							
								            background-color: HotPink;
							 | 
						|||
| 
								 | 
							
								        }
							 | 
						|||
| 
								 | 
							
								
							 | 
						|||
| 
								 | 
							
								        .LightGreen {
							 | 
						|||
| 
								 | 
							
								            background-color: LightGreen
							 | 
						|||
| 
								 | 
							
								        }
							 | 
						|||
| 
								 | 
							
								    </style>
							 | 
						|||
| 
								 | 
							
								</head>
							 | 
						|||
| 
								 | 
							
								<body>
							 | 
						|||
| 
								 | 
							
								    <form id="form1" runat="server">
							 | 
						|||
| 
								 | 
							
								        <f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
							 | 
						|||
| 
								 | 
							
								        <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" EnableAjax="false" ShowHeader="false"   EnableCollapse="true"
							 | 
						|||
| 
								 | 
							
								                    runat="server" BoxFlex="1" DataKeyNames="ContactListId" AllowCellEditing="true"
							 | 
						|||
| 
								 | 
							
								                    OnRowDataBound="Grid1_RowDataBound"
							 | 
						|||
| 
								 | 
							
								                    ClicksToEdit="2" DataIDField="ContactListId" AllowSorting="true" SortField="CreateDate"
							 | 
						|||
| 
								 | 
							
								                    SortDirection="DESC" EnableColumnLines="true"  OnPageIndexChange="Grid1_PageIndexChange"
							 | 
						|||
| 
								 | 
							
								                    AllowPaging="true" IsDatabasePaging="true" PageSize="10"  ForceFit="true" OnRowCommand="Grid1_RowCommand"
							 | 
						|||
| 
								 | 
							
								                    EnableRowDoubleClickEvent="true" AllowFilters="true" OnRowDoubleClick="Grid1_RowDoubleClick"
							 | 
						|||
| 
								 | 
							
								                    EnableTextSelection="True">
							 | 
						|||
| 
								 | 
							
								                    <Toolbars>
							 | 
						|||
| 
								 | 
							
								                        <f:Toolbar ID="Toolbar1" Position="Top" runat="server" ToolbarAlign="Left">
							 | 
						|||
| 
								 | 
							
								                            <Items>
							 | 
						|||
| 
								 | 
							
								                                 <f:DropDownList ID="drpProposeUnit" runat="server"  Label="单位名称" LabelAlign="Right" EnableEdit="true">
							 | 
						|||
| 
								 | 
							
								                                </f:DropDownList> 
							 | 
						|||
| 
								 | 
							
								                                  
							 | 
						|||
| 
								 | 
							
								                                <f:Button ID="btnQuery" ToolTip="查询" OnClick="btnQuery_Click" Icon="SystemSearch" EnablePostBack="true" runat="server">
							 | 
						|||
| 
								 | 
							
								                                </f:Button>
							 | 
						|||
| 
								 | 
							
								                                <f:ToolbarFill runat="server"></f:ToolbarFill>        
							 | 
						|||
| 
								 | 
							
								                                 <f:Button ID="btnNew" ToolTip="编制" Icon="Add" EnablePostBack="false" runat="server">
							 | 
						|||
| 
								 | 
							
								                                </f:Button>
							 | 
						|||
| 
								 | 
							
								                            </Items>
							 | 
						|||
| 
								 | 
							
								                        </f:Toolbar>
							 | 
						|||
| 
								 | 
							
								
							 | 
						|||
| 
								 | 
							
								                    </Toolbars>
							 | 
						|||
| 
								 | 
							
								                    <Columns>
							 | 
						|||
| 
								 | 
							
								                         
							 | 
						|||
| 
								 | 
							
								                         <f:RenderField ColumnID="ContactListCode" DataField="ContactListCode" Width="160px" 
							 | 
						|||
| 
								 | 
							
								                            SortField="ContactListCode" FieldType="String" HeaderText="编号" TextAlign="Center"
							 | 
						|||
| 
								 | 
							
								                            HeaderTextAlign="Center">
							 | 
						|||
| 
								 | 
							
								                        </f:RenderField>    
							 | 
						|||
| 
								 | 
							
								                        <f:RenderField ColumnID="UnitName" DataField="UnitName" Width="160px" 
							 | 
						|||
| 
								 | 
							
								                            SortField="UnitName" FieldType="String" HeaderText="施工单位" TextAlign="Center"
							 | 
						|||
| 
								 | 
							
								                            HeaderTextAlign="Center">
							 | 
						|||
| 
								 | 
							
								                        </f:RenderField>                         
							 | 
						|||
| 
								 | 
							
								                         <f:RenderField ColumnID="ProfessionalName" DataField="ProfessionalName" Width="160px" 
							 | 
						|||
| 
								 | 
							
								                            SortField="ProfessionalName" FieldType="String" HeaderText="专业" TextAlign="Center"
							 | 
						|||
| 
								 | 
							
								                            HeaderTextAlign="Center">
							 | 
						|||
| 
								 | 
							
								                        </f:RenderField> 
							 | 
						|||
| 
								 | 
							
								                         <f:RenderField ColumnID="UserName" DataField="UserName" Width="160px" 
							 | 
						|||
| 
								 | 
							
								                            SortField="UserName" FieldType="String" HeaderText="编制人" TextAlign="Center"
							 | 
						|||
| 
								 | 
							
								                            HeaderTextAlign="Center">
							 | 
						|||
| 
								 | 
							
								                        </f:RenderField> 
							 | 
						|||
| 
								 | 
							
								                        <f:RenderField Width="95px" ColumnID="CreateDate" DataField="CreateDate" SortField="CreateDate"
							 | 
						|||
| 
								 | 
							
								                            FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd" HeaderText="编制日期" TextAlign="Center" HeaderTextAlign="Center">
							 | 
						|||
| 
								 | 
							
								                        </f:RenderField>
							 | 
						|||
| 
								 | 
							
								                          
							 | 
						|||
| 
								 | 
							
								                        <f:LinkButtonField HeaderText="附件" ConfirmTarget="Top" Width="60px" CommandName="attchUrl" ColumnID="AttchUrl"
							 | 
						|||
| 
								 | 
							
								                            TextAlign="Center" ToolTip="附件" Text="附件" />
							 | 
						|||
| 
								 | 
							
								                        </Columns>
							 | 
						|||
| 
								 | 
							
								                    <Listeners>
							 | 
						|||
| 
								 | 
							
								                        <f:Listener Event="beforerowcontextmenu" Handler="onRowContextMenu" />
							 | 
						|||
| 
								 | 
							
								                    </Listeners>
							 | 
						|||
| 
								 | 
							
								                    <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:ListItem Text="10" Value="10" />
							 | 
						|||
| 
								 | 
							
								                            <f:ListItem Text="15" Value="15" />
							 | 
						|||
| 
								 | 
							
								                            <f:ListItem Text="20" Value="20" />
							 | 
						|||
| 
								 | 
							
								                            <f:ListItem Text="25" Value="25" />
							 | 
						|||
| 
								 | 
							
								                            <f:ListItem Text="所有行" Value="100000" />
							 | 
						|||
| 
								 | 
							
								                        </f:DropDownList>
							 | 
						|||
| 
								 | 
							
								                        <f:ToolbarFill runat="server">
							 | 
						|||
| 
								 | 
							
								                        </f:ToolbarFill>
							 | 
						|||
| 
								 | 
							
								
							 | 
						|||
| 
								 | 
							
								                    </PageItems>
							 | 
						|||
| 
								 | 
							
								                </f:Grid>
							 | 
						|||
| 
								 | 
							
								            </Items>
							 | 
						|||
| 
								 | 
							
								        </f:Panel>
							 | 
						|||
| 
								 | 
							
								        <f:Window ID="WindowAtt" Title="弹出窗体" Hidden="true" EnableIFrame="true" EnableMaximize="true"
							 | 
						|||
| 
								 | 
							
								        Target="Parent" EnableResize="false" runat="server" IsModal="true" Width="700px"
							 | 
						|||
| 
								 | 
							
								        Height="500px"></f:Window>
							 | 
						|||
| 
								 | 
							
								        <f:Window ID="Window1" Title="工程联络单管理" Hidden="true" EnableIFrame="true" EnableMaximize="true"
							 | 
						|||
| 
								 | 
							
								            Target="Parent" EnableResize="false" runat="server" IsModal="true" OnClose="Window1_Close"
							 | 
						|||
| 
								 | 
							
								            Width="750px" Height="300px">
							 | 
						|||
| 
								 | 
							
								        </f:Window>
							 | 
						|||
| 
								 | 
							
								        
							 | 
						|||
| 
								 | 
							
								        <f:Menu ID="Menu1" runat="server">
							 | 
						|||
| 
								 | 
							
								            <Items> 
							 | 
						|||
| 
								 | 
							
								                <f:MenuButton ID="btnMenuView" EnablePostBack="true" runat="server" Text="查看" Icon="ApplicationViewIcons"
							 | 
						|||
| 
								 | 
							
								                    OnClick="btnMenuView_Click">
							 | 
						|||
| 
								 | 
							
								                </f:MenuButton>
							 | 
						|||
| 
								 | 
							
								                <f:MenuButton ID="btnMenuDel" EnablePostBack="true" runat="server" Hidden="true" Icon="Delete" Text="删除" ConfirmText="确定删除当前数据?"
							 | 
						|||
| 
								 | 
							
								                    OnClick="btnMenuDel_Click">
							 | 
						|||
| 
								 | 
							
								                </f:MenuButton>
							 | 
						|||
| 
								 | 
							
								            </Items>
							 | 
						|||
| 
								 | 
							
								        </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 ButtonClick(event) {
							 | 
						|||
| 
								 | 
							
								            // 第一个参数 false 用来指定当前不是AJAX请求
							 | 
						|||
| 
								 | 
							
								            __doPostBack(false, '', 'ButtonClick');
							 | 
						|||
| 
								 | 
							
								        }
							 | 
						|||
| 
								 | 
							
								    </script>
							 | 
						|||
| 
								 | 
							
								</body>
							 | 
						|||
| 
								 | 
							
								</html>
							 |