提交代码

This commit is contained in:
2025-03-13 09:20:11 +08:00
parent 6d0c6e28de
commit 980946f316
3443 changed files with 188150 additions and 3 deletions
@@ -0,0 +1,68 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AudiFlowEdit.aspx.cs" Inherits="FineUIPro.Web.common.BaseInfo.AudiFlowEdit" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title></title>
<link href="../../res/css/common.css" rel="stylesheet" type="text/css" />
</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="20px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
<Rows>
<f:FormRow>
<Items>
<f:NumberBox ID="txtAudiFlowStep" runat="server" Label="步骤" Readonly="true"></f:NumberBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtAuditFlowName" runat="server" Label="步骤名称" Required="true" ShowRedStar="true" FocusOnPageLoad="true">
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:DropDownBox runat="server" ID="DropDownBox1" DataControlID="RadioButtonList1"
EnableMultiSelect="true" ShowLabel="true" Label="审批角色" >
<PopPanel>
<f:SimpleForm ID="SimpleForm2" BodyPadding="10px" runat="server" AutoScroll="true"
ShowBorder="True" ShowHeader="false" Hidden="true">
<Items>
<f:Label ID="Label1" runat="server" Text="请选择审批角色:">
</f:Label>
<f:CheckBoxList ID="RadioButtonList1" ColumnNumber="3" runat="server">
</f:CheckBoxList>
</Items>
</f:SimpleForm>
</PopPanel>
</f:DropDownBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:CheckBox ID="IsFlowEnd" MarginLeft="40px" runat="server" Text="流程是否结束"
OnCheckedChanged="IsFlowEnd_CheckedChanged" AutoPostBack="true" >
</f:CheckBox>
</Items>
</f:FormRow>
</Rows>
<Toolbars>
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
<Items>
<f:Button ID="btnSave" Icon="SystemSave" runat="server" Text="提交" ValidateForms="SimpleForm1"
OnClick="btnSave_Click">
</f:Button>
<f:Button ID="btnClose" EnablePostBack="false" Text="关闭" runat="server" Icon="SystemClose">
</f:Button>
</Items>
</f:Toolbar>
</Toolbars>
</f:Form>
</form>
</body>
</html>
@@ -0,0 +1,79 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AudiFlowSet.aspx.cs" Inherits="FineUIPro.Web.common.BaseInfo.AudiFlowSet" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>单位信息</title>
<link href="../../res/css/common.css" rel="stylesheet" type="text/css" />
<style>
.customlabel span {
color: red;
font-weight: bold;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
<f:Panel ID="Panel1" runat="server" ShowBorder="false" ShowHeader="false" Layout="Region">
<Items>
<f:Panel runat="server" ID="panelLeftRegion" RegionPosition="Left" RegionSplit="true"
EnableCollapse="true" Width="260" Title="审批流程自定义" ShowBorder="true"
ShowHeader="true" AutoScroll="true" BodyPadding="5px" IconFont="ArrowCircleLeft">
<Items>
<f:Tree ID="tvAudiFlow" Width="240px" Height="500px"
ShowHeader="false" Title="审批流程菜单" OnNodeCommand="tvAudiFlow_NodeCommand" runat="server" ShowBorder="false"
EnableSingleClickExpand ="true">
</f:Tree>
</Items>
</f:Panel>
<f:Panel runat="server" ID="panelCenterRegion" RegionPosition="Center" ShowBorder="true"
Layout="VBox" ShowHeader="false" BodyPadding="5px" IconFont="PlusCircle" Title="审批流程"
TitleToolTip="审批流程步骤信息" AutoScroll="true">
<Items>
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" EnableCollapse="true"
runat="server" BoxFlex="1" DataKeyNames="AudiFlowId" AllowCellEditing="true" ClicksToEdit="2"
DataIDField="AudiFlowId" AllowSorting="true" SortField="AudiFlowStep" SortDirection="ASC"
OnSort="Grid1_Sort" AllowPaging="true" EnableRowDoubleClickEvent="true" OnRowDoubleClick="Grid1_RowDoubleClick"
EnableTextSelection="True">
<Toolbars>
<f:Toolbar ID="Toolbar3" Position="Top" ToolbarAlign="Right" runat="server">
<Items>
<f:Label ID="Label1" runat="server" Text="双击编辑" CssClass="customlabel" ></f:Label>
<f:ToolbarFill ID="ToolbarFill1" runat="server"></f:ToolbarFill>
<f:Button ID="btnNew" Text="增加" Icon="Add" runat="server" OnClick="btnNew_Click" />
<f:Button ID="btnDelete" Text="删除" Icon="Delete" ConfirmText="确定删除当前数据?" OnClick="btnDelete_Click" runat="server">
</f:Button>
</Items>
</f:Toolbar>
</Toolbars>
<Columns>
<f:RenderField Width="80px" ColumnID="AudiFlowStep" DataField="AudiFlowStep"
FieldType="Int" HeaderText="审批步骤" HeaderTextAlign="Center"
TextAlign="Center">
</f:RenderField>
<f:RenderField Width="150px" ColumnID="AuditFlowName" DataField="AuditFlowName"
FieldType="String" HeaderText="步骤名称" HeaderTextAlign="Center"
TextAlign="Center">
</f:RenderField>
<f:TemplateField Width="300px" HeaderText="审批角色" HeaderTextAlign="Center" TextAlign="Center">
<ItemTemplate>
<asp:Label ID="Label8" runat="server" Text='<%# ConvertRole(Eval("RoleId")) %>' ></asp:Label>
</ItemTemplate>
</f:TemplateField>
<f:CheckBoxField Width="100px" RenderAsStaticField="true" TextAlign="Center" DataField="IsFlowEnd" HeaderText="流程是否结束" />
</Columns>
</f:Grid>
</Items>
</f:Panel>
</Items>
</f:Panel>
<f:Window ID="Window1" Title="流程步骤设置" Hidden="true" EnableIFrame="true" EnableMaximize="true"
Target="Parent" EnableResize="true" runat="server" OnClose="Window1_Close" IsModal="true"
Width="640px" Height="320px">
</f:Window>
</form>
</body>
</html>
@@ -0,0 +1,50 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DepartEdit.aspx.cs" Inherits="FineUIPro.Web.common.BaseInfo.DepartEdit" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>编辑部门</title>
<link href="../../res/css/common.css" rel="stylesheet" type="text/css" />
</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:TextBox ID="txtDepartCode" runat="server" Label="部门编号" Required="true" ShowRedStar="true" FocusOnPageLoad="true">
</f:TextBox>
</Items>
<Items>
<f:TextBox ID="txtDepartName" runat="server" Label="部门名称" Required="true" ShowRedStar="true">
</f:TextBox>
</Items>
<Items>
<f:TextBox ID="txtDepartHead" runat="server" Label="部门负责人" ></f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextArea ID="txtRemark" runat="server" Label="任务描述"></f:TextArea>
</Items>
</f:FormRow>
</Rows>
<Toolbars>
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
<Items>
<f:Button ID="btnSave" Icon="SystemSave" runat="server" Text="提交数据" ValidateForms="SimpleForm1"
OnClick="btnSave_Click">
</f:Button>
<f:Button ID="btnClose" EnablePostBack="false" Text="关闭" runat="server" Icon="SystemClose">
</f:Button>
</Items>
</f:Toolbar>
</Toolbars>
</f:Form>
</form>
</body>
</html>
@@ -0,0 +1,103 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DepartList.aspx.cs" Inherits="FineUIPro.Web.common.BaseInfo.DepartList" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>部门信息</title>
<link href="../../res/css/common.css" rel="stylesheet" type="text/css" />
</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" ShowHeader="false" EnableCollapse="true"
runat="server" BoxFlex="1" DataKeyNames="DepartId" AllowCellEditing="true" EnableColumnLines="true"
ClicksToEdit="2" DataIDField="DepartId" AllowSorting="true" SortField="DepartCode,DepartName"
SortDirection="ASC" OnSort="Grid1_Sort" OnRowCommand="Grid1_RowCommand"
AllowPaging="true" IsDatabasePaging="true" PageSize="15" OnPageIndexChange="Grid1_PageIndexChange"
EnableRowDoubleClickEvent="true" OnRowDoubleClick="Grid1_RowDoubleClick" AllowFilters="true"
OnFilterChange="Grid1_FilterChange">
<Toolbars>
<f:Toolbar ID="Toolbar2" Position="Top" runat="server">
<Items>
<f:Button ID="btnNew" Text="新增" Icon="Add" EnablePostBack="false" runat="server">
</f:Button>
<f:Button ID="btnEdit" Text="编辑" Icon="Pencil" runat="server" OnClick="btnEdit_Click">
</f:Button>
<f:Button ID="btnDelete" Text="删除" Icon="Delete" ConfirmText="确定删除当前数据?" OnClick="btnDelete_Click"
runat="server">
</f:Button>
</Items>
</f:Toolbar>
</Toolbars>
<Columns>
<f:TemplateField Width="50px" HeaderText="序号" HeaderTextAlign="Center" TextAlign="Center">
<ItemTemplate>
<asp:Label ID="Label1" runat="server" Text='<%# Container.DataItemIndex + 1 %>'></asp:Label>
</ItemTemplate>
</f:TemplateField>
<f:RenderField Width="120px" ColumnID="DepartCode" DataField="DepartCode" EnableFilter="true"
SortField="DepartCode" FieldType="String" HeaderText="部门编号" HeaderTextAlign="Center" TextAlign="Left">
<Filter EnableMultiFilter="true" ShowMatcher="true">
<Operator>
<f:DropDownList ID="DropDowsnList1" runat="server">
<f:ListItem Text="等于" Value="equal" />
<f:ListItem Text="包含" Value="contain" Selected="true" />
</f:DropDownList>
</Operator>
</Filter>
</f:RenderField>
<f:RenderField Width="150px" ColumnID="DepartName" DataField="DepartName" EnableFilter="true"
SortField="DepartName" FieldType="String" HeaderText="部门名称" HeaderTextAlign="Center" TextAlign="Left">
<Filter EnableMultiFilter="true" ShowMatcher="true">
<Operator>
<f:DropDownList ID="DropDownList2" runat="server">
<f:ListItem Text="等于" Value="equal" />
<f:ListItem Text="包含" Value="contain" Selected="true" />
</f:DropDownList>
</Operator>
</Filter>
</f:RenderField>
<f:RenderField Width="120px" ColumnID="DepartHead" DataField="DepartHead"
SortField="DepartHead" FieldType="String" HeaderText="部门负责人" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
<f:RenderField Width="300px" ColumnID="Remark" DataField="Remark"
SortField="Remark" FieldType="String" HeaderText="任务描述" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
<f:WindowField ColumnID="myWindowField" Width="50px" WindowID="Window1" HeaderText="编辑"
Icon="Pencil" ToolTip="编辑" DataTextFormatString="{0}" DataIFrameUrlFields="DepartId,DepartName"
DataIFrameUrlFormatString="DepartEdit.aspx?departId={0}" DataWindowTitleFormatString="编辑 - {1}"
HeaderTextAlign="Center" TextAlign="Center"/>
<f:LinkButtonField Width="50px" HeaderText="删除" ConfirmText="删除选中行?" ConfirmTarget="Top"
CommandName="Delete" Icon="Delete" HeaderTextAlign="Center" TextAlign="Center"/>
</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:ListItem Text="10" Value="15" />
<f:ListItem Text="15" Value="20" />
<f:ListItem Text="20" Value="25" />
<f:ListItem Text="25" Value="30" />
</f:DropDownList>
</PageItems>
</f:Grid>
</Items>
</f:Panel>
<f:Window ID="Window1" Title="编辑部门信息" Hidden="true" EnableIFrame="true" EnableMaximize="true"
Target="Self" EnableResize="true" runat="server" OnClose="Window1_Close" IsModal="true"
Width="800px" Height="280px">
</f:Window>
</form>
</body>
</html>
@@ -0,0 +1,355 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="OrganizationChart.aspx.cs" Inherits="FineUIPro.Web.common.BaseInfo.OrganizationChart" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<style type="text/css">
.textboxStyleNone
{
border:none;
HEIGHT: 16px;
font-weight:bold;
font-size:12px
}
</style>
</head>
<body style="font-size:12px">
<form id="form1" runat="server">
<table id="Table1" runat="server" width="100%" cellpadding="0" cellspacing="0">
<tr>
<td align="center">
<table cellpadding="0" cellspacing="0" style="margin-top:20px">
<tr style="height: 65px">
<td colspan="2" style="width: 205px;">
<div style="width: 205px; height: 65px; border: 2px solid blue">
<asp:Button ID="btnOrganization1" runat="server" Style="height: 65px; width: 205px; background-color: #FFFFFF; cursor:pointer"
Text="业主HSE管理机构" CssClass="textboxStyleNone" OnClick="btnOrganization1_Click" />
</div>
</td>
<td style="width: 45px;">
<hr style="width: 45px; border: 1px dashed blue" />
</td>
<td colspan="2" style="width: 205px;">
<div style="width: 205px; height: 65px; border: 2px solid blue">
<asp:Label ID="lblProject" runat="server" Height="65px" Width="205px"></asp:Label>
</div>
</td>
<td colspan="2" style="width: 60px;">
<hr style="width: 60px; border: 1px dashed blue" />
</td>
<td colspan="2" style="width: 205px;">
<div style="width: 205px; height: 65px; border: 2px solid blue">
<asp:Button ID="btnOrganization2" runat="server" Style="height: 65px; width: 205px; background-color: #FFFFFF; cursor:pointer"
Text="监理项目部HSE管理机构" CssClass="textboxStyleNone" OnClick="btnOrganization2_Click" />
</div>
</td>
</tr>
<tr style="height: 20px">
<td style="border-right: 2px solid blue; width:102px">
&nbsp;
</td>
<td style="width: 103px;">
</td>
<td style="width: 45px;">
</td>
<td style="border-right: 2px solid Blue; width: 102px;">
</td>
<td style="width: 103px;">
</td>
<td colspan="2" style="width: 60px;">
</td>
<td style="width: 103px;">
</td>
<td style="border-left: 2px solid blue; width:102px">
&nbsp;
</td>
</tr>
<tr style="height: 20px">
<td style="border-right: 2px solid blue; width:102px">
&nbsp;
</td>
<td colspan="2" style="border-bottom: 2px solid blue;">
&nbsp;
</td>
<td rowspan="2" colspan="2">
<div style="width: 205px; height: 40px; border: 2px solid blue">
<asp:Label ID="lblSecurePrincipal" runat="server" Height="40px" Width="205px"></asp:Label>
</div>
</td>
<td colspan="3" style="border-bottom: 2px solid blue;">
&nbsp;
</td>
<td style="border-left: 2px solid blue; width:102px">
&nbsp;
</td>
</tr>
<tr style="height: 20px">
<td colspan="3">
</td>
<td colspan="4">
</td>
</tr>
<tr style="height: 20px">
<td colspan="4" style="border-right: 2px solid blue;">
&nbsp;
</td>
<td colspan="5">
</td>
</tr>
<tr style="height: 20px">
<td style="border-right: 2px solid blue; width:102px">
&nbsp;
</td>
<td style="border-top: 2px solid blue; width: 103px;">
&nbsp;
</td>
<td style="border-top: 2px solid blue; width: 45px;">
&nbsp;
</td>
<td style="border-right: 2px solid blue; border-top: 2px solid blue; width: 102px;">
&nbsp;
</td>
<td style="border-top: 2px solid blue; width: 103px;">
&nbsp;
</td>
<td colspan="2" style="border-top: 2px solid blue; width: 60px;">
&nbsp;
</td>
<td style="border-top: 2px solid blue; width: 103px;">
&nbsp;
</td>
<td style="border-left: 2px solid blue; width:102px">
&nbsp;
</td>
</tr>
<tr style="height: 80px">
<td colspan="2" rowspan="9" style="width: 205px;">
<div style="width: 205px; height: 250px; border: 2px solid blue">
<asp:Label ID="lblPrincipal" runat="server" Height="250px" Width="205px"></asp:Label>
</div>
</td>
<td style="width: 45px;">
</td>
<td colspan="2" rowspan="3" style="width: 205px;">
<div style="width: 205px; height: 120px; border: 2px solid blue">
<asp:Label ID="lblCN" runat="server" Height="120px" Width="205px"></asp:Label>
</div>
</td>
<td colspan="2" style="width: 60px;">
</td>
<td style="width: 103px;">
</td>
<td style="border-left: 2px solid blue; width:102px">
&nbsp;
</td>
</tr>
<tr style="height: 20px">
<td style="width: 45px;">
</td>
<td colspan="2" style="border-bottom: 2px solid blue; width: 60px;">
&nbsp;
</td>
<td colspan="2" rowspan="2" style="width: 205px;">
<div style="width: 205px; height: 40px; border: 2px solid blue">
<asp:Button ID="btnOrganization3" runat="server" Style="height: 40px; width: 205px;
background-color: #FFFFFF; cursor: pointer" Text="施工承包商项目经理" CssClass="textboxStyleNone"
OnClick="btnOrganization3_Click" />
</div>
</td>
</tr>
<tr style="height: 20px">
<td style="width: 45px;">
</td>
<td colspan="2" style="width: 60px;">
</td>
</tr>
<tr style="height: 20px">
<td style="width: 45px;">
</td>
<td style="border-right: 2px solid blue; width: 102px;">
&nbsp;
</td>
<td style="width: 103px;">
</td>
<td colspan="2" style="width: 60px;">
</td>
<td style="width: 103px;">
</td>
<td style="border-left: 2px solid blue; width:102px">
&nbsp;
</td>
</tr>
<tr style="height: 20px">
<td style="width: 45px;">
</td>
<td colspan="2" rowspan="2" style="width: 205px;">
<div style="width: 205px; height: 40px; border: 2px solid blue">
<asp:Label ID="lblMaterialPrincipal" runat="server" Height="40px" Width="205px"></asp:Label>
</div>
</td>
<td colspan="2" style="border-bottom: 2px solid blue; width: 60px;">
</td>
<td colspan="2" rowspan="2" style="width: 205px;">
<div style="width: 205px; height: 40px; border: 2px solid blue">
<asp:Label ID="Label5" runat="server" Height="40px" Width="205px" Text="<br>施工承包商HSE经理"></asp:Label>
</div>
</td>
</tr>
<tr style="height: 20px">
<td style="width: 45px;">
</td>
<td colspan="2" style="width: 60px;">
</td>
</tr>
<tr style="height: 20px">
<td style="width: 45px;">
</td>
<td style="border-right: 2px solid blue; width: 102px;">
&nbsp;
</td>
<td style="width: 103px;">
</td>
<td colspan="2" style="width: 60px;">
</td>
<td style="width: 103px;">
</td>
<td style="border-left: 2px solid blue; width:102px">
&nbsp;
</td>
</tr>
<tr style="height: 20px">
<td style="width: 45px;">
</td>
<td colspan="2" rowspan="2" style="width: 205px;">
<div style="width: 205px; height: 40px; border: 2px solid blue">
<asp:Label ID="Label2" runat="server" Height="40px" Width="205px" Text="<br>现场HSE工程师"></asp:Label>
</div>
</td>
<td style="border-top: 2px solid blue; border-right: 2px solid blue; width: 30px;">
&nbsp;
</td>
<td style="border-top: 2px solid blue; width: 30px;">
&nbsp;
</td>
<td colspan="2" rowspan="2" style="width: 205px;">
<div style="width: 205px; height: 40px; border: 2px solid blue">
<asp:Label ID="Label6" runat="server" Height="40px" Width="205px" Text="<br>施工承包商HSE工程师"></asp:Label>
</div>
</td>
</tr>
<tr style="height: 20px">
<td style="width: 45px;">
</td>
<td rowspan="4" colspan="2" align="center" valign="top" style="width: 60px;">
<div style="width: 40px; height: 80px; border: 2px solid blue">
<asp:Label ID="Label4" runat="server" Height="80px" Width="40px" Text="<br><br>访客"></asp:Label>
</div>
</td>
</tr>
<tr style="height: 20px">
<td style="border-right: 2px solid blue; width:102px">
&nbsp;
</td>
<td style="width: 103px;">
</td>
<td style="width: 45px;">
</td>
<td style="border-right: 2px solid blue; width: 102px;">
&nbsp;
</td>
<td style="width: 103px;">
</td>
<td style="width: 103px;">
</td>
<td style="border-left: 2px solid blue; width:102px">
&nbsp;
</td>
</tr>
<tr style="height: 20px">
<td colspan="2" rowspan="2" style="width: 205px;">
<div style="width: 205px; height: 40px; border: 2px solid blue">
<asp:Label ID="Label3" runat="server" Height="40px" Width="205px" Text="<br>各部门专业人员"></asp:Label>
</div>
</td>
<td style="width: 45px;">
</td>
<td colspan="2" rowspan="2" style="width: 205px;">
<div style="width: 205px; height: 40px; border: 2px solid blue">
<asp:Label ID="Label1" runat="server" Height="40px" Width="205px" Text="<br>施工专业工程师"></asp:Label>
</div>
</td>
<td colspan="2" rowspan="2" style="width: 205px;">
<div style="width: 205px; height: 40px; border: 2px solid blue">
<asp:Label ID="Label7" runat="server" Height="40px" Width="205px" Text="<br>施工承包商各HSE监督员"></asp:Label>
</div>
</td>
</tr>
<tr style="height: 20px">
<td style="width: 45px;">
</td>
</tr>
<tr style="height: 20px">
<td style="width:102px">
</td>
<td style="width: 103px;">
</td>
<td style="width: 45px;">
</td>
<td style="border-right: 2px solid blue; width: 102px;">
&nbsp;
</td>
<td style="width: 103px;">
</td>
<td colspan="2" style="width: 60px;">
</td>
<td style="width: 103px;">
</td>
<td style="border-left: 2px solid blue; width:102px">
&nbsp;
</td>
</tr>
<tr style="height: 20px">
<td style="width: 102px">
</td>
<td style="width: 103px;">
</td>
<td style="width: 45px;">
</td>
<td style="border-right: 2px solid blue; width: 102px;">
&nbsp;
</td>
<td style="border-bottom: 2px solid blue; width: 103px;">
&nbsp;
</td>
<td colspan="2" style="border-bottom: 2px solid blue; width: 60px;">
&nbsp;
</td>
<td colspan="2" rowspan="2" style="width: 205px;">
<div style="width: 205px; height: 40px; border: 2px solid blue">
<asp:Label ID="Label8" runat="server" Height="40px" Width="205px" Text="<br>分包方所有现场人员"></asp:Label>
</div>
</td>
</tr>
<tr style="height: 20px">
<td style="width: 102px">
</td>
<td style="width: 103px;">
</td>
<td style="width: 45px;">
</td>
<td style="width: 102px;">
</td>
<td style="width: 103px;">
</td>
<td colspan="2" style="width: 60px;">
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</body>
</html>
@@ -0,0 +1,214 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Project.aspx.cs" Inherits="FineUIPro.Web.common.BaseInfo.Project" %>
<!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" />
<link href="../../res/extjs/res/css/blue.css" rel="stylesheet" type="text/css" />
<script src="../../res/extjs/ext.js" type="text/javascript"></script>
<script src="../../res/extjs/lang/zh_CN.js" type="text/javascript"></script>
</head>
<body>
<form id="form1" runat="server">
<f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" AjaxLoadingType="Mask"
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" ShowHeader="true" Title="项目信息" EnableCollapse="true"
runat="server" BoxFlex="1" AllowColumnLocking="true" DataKeyNames="ProjectId,ProjectSoft"
AllowCellEditing="true" ClicksToEdit="2" DataIDField="ProjectId" AllowSorting="true"
SortField="ProjectCode" SortDirection="DESC" OnSort="Grid1_Sort" OnRowCommand="Grid1_RowCommand"
OnPreRowDataBound="Grid1_PreRowDataBound" AllowPaging="true" IsDatabasePaging="true"
PageSize="15" OnPageIndexChange="Grid1_PageIndexChange" EnableRowDoubleClickEvent="true"
OnRowDoubleClick="Grid1_RowDoubleClick" AllowFilters="true" OnFilterChange="Grid1_FilterChange">
<Toolbars>
<f:Toolbar ID="Toolbar2" Position="Top" runat="server">
<Items>
<f:Button ID="btnNew" Text="新增" Icon="Add" runat="server" OnClick="btnNew_Click">
</f:Button>
<f:Button ID="btnEdit" Text="编辑" Icon="Pencil" runat="server" OnClick="btnEdit_Click">
</f:Button>
<f:Button ID="btnDelete" Text="删除" Hidden="true" Icon="Delete" ConfirmText="确定删除当前数据?"
OnClick="btnDelete_Click" runat="server">
</f:Button>
<%--<f:Button ID="btnProjectPlan" Text="项目计划" Icon="ApplicationFormAdd" runat="server" OnClick="btnProjectPlan_Click" Hidden="true">
</f:Button>--%>
<f:Label ID="txt112" runat="server" Width="150px"></f:Label>
<f:RadioButtonList ID="rblProjectSoft" runat="server" Width="200px" AutoPostBack="true"
OnSelectedIndexChanged="rbIsClosed_SelectedIndexChanged">
<f:RadioItem Text="管道安装" Value="1" Selected="true" />
<f:RadioItem Text="压力容器" Value="2" />
</f:RadioButtonList>
<f:RadioButtonList ID="rbIsClosed" runat="server" Width="150px" AutoPostBack="true"
OnSelectedIndexChanged="rbIsClosed_SelectedIndexChanged">
<f:RadioItem Text="在建" Value="0" Selected="true" />
<f:RadioItem Text="完工" Value="1" />
</f:RadioButtonList>
<f:DropDownList ID="drpCreateMan" Label="创建人" runat="server" ShowRedStar="true" Required="true"
EnableEdit="true" LabelWidth="60px" AutoPostBack="true" OnSelectedIndexChanged="TextBox_TextChanged">
</f:DropDownList>
</Items>
</f:Toolbar>
</Toolbars>
<Columns>
<f:TemplateField Width="50px" HeaderText="序号" Locked="False">
<ItemTemplate>
<asp:Label ID="Label1" runat="server" Text='<%# Container.DataItemIndex + 1 %>'></asp:Label>
</ItemTemplate>
</f:TemplateField>
<f:RenderField Width="100px" ColumnID="ProjectCode" DataField="ProjectCode" Locked="true"
SortField="ProjectCode" FieldType="String" HeaderText="施工号">
</f:RenderField>
<f:RenderField Width="280px" ColumnID="ProjectName" DataField="ProjectName" Locked="true"
SortField="ProjectName" FieldType="String" HeaderText="项目名称" EnableFilter="true">
<Filter EnableMultiFilter="true" ShowMatcher="true">
<Operator>
<f:DropDownList ID="DropDownList1" runat="server">
<f:ListItem Text="等于" Value="equal" />
<f:ListItem Text="包含" Value="contain" Selected="true" />
</f:DropDownList>
</Operator>
</Filter>
</f:RenderField>
<f:RenderField Width="120px" ColumnID="ShortName" DataField="ShortName" FieldType="String"
HeaderText="项目号">
</f:RenderField>
<f:GroupField HeaderText="检测工程编号" TextAlign="Center">
<Columns>
<f:RenderField Width="100px" ColumnID="TestEngineeringCode" DataField="TestEngineeringCode"
SortField="TestEngineeringCode" FieldType="String" HeaderText="检测工程编号" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
<f:WindowField ColumnID="myWindowFieldSelected" Width="120px" WindowID="Window2" HeaderText="由检测单位编辑"
Icon="Pencil" ToolTip="由检测单位编辑" DataTextFormatString="{0}" DataIFrameUrlFields="ProjectId"
DataIFrameUrlFormatString="TestEngineering.aspx?projectId={0}" DataWindowTitleFormatString="编辑 - {1}"
HeaderTextAlign="Center" TextAlign="Center" />
</Columns>
</f:GroupField>
<f:RenderField Width="120px" FieldType="String" ColumnID="EquipmentName" DataField="EquipmentName" HeaderText="设备名称"></f:RenderField>
<f:RenderField Width="120px" FieldType="String" ColumnID="TagNum" DataField="TagNum" HeaderText="位号"></f:RenderField>
<f:RenderField Width="120px" FieldType="String" ColumnID="ProductNum" DataField="ProductNum" HeaderText="产品编号"></f:RenderField>
<f:RenderField Width="120px" FieldType="String" ColumnID="ConstructionUnit" DataField="ConstructionUnit" HeaderText="施工单位"></f:RenderField>
<f:RenderField Width="120px" FieldType="String" ColumnID="BodyMaterial" DataField="BodyMaterial" HeaderText="主体材质"></f:RenderField>
<f:RenderField Width="120px" ColumnID="ProjectPrincipal" DataField="ProjectPrincipal"
FieldType="String" EnableLock="true" HeaderText="项目经理">
</f:RenderField>
<f:TemplateField Width="100px" HeaderText="创建人" HeaderTextAlign="Center" TextAlign="Center">
<ItemTemplate>
<asp:Label ID="Label8" runat="server" Text='<%# ConvertCreateMan(Eval("CreateManId")) %>'></asp:Label>
</ItemTemplate>
</f:TemplateField>
<f:RenderField Width="120px" ColumnID="ProjectManager" DataField="ProjectManager"
FieldType="String" HeaderText="技术负责人">
</f:RenderField>
<f:RenderField Width="120px" ColumnID="TechnicalPrincipal" DataField="TechnicalPrincipal"
FieldType="String" HeaderText="质量负责人">
</f:RenderField>
<f:RenderField Width="120px" ColumnID="SecurePrincipal" DataField="SecurePrincipal"
FieldType="String" HeaderText="HSE负责人">
</f:RenderField>
<f:RenderField Width="90px" ColumnID="StartDate" DataField="StartDate" SortField="StartDate"
FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd" HeaderText="开工日期"
EnableFilter="true">
<Filter EnableMultiFilter="true" ShowMatcher="true">
<Operator>
<f:DropDownList ID="DropDownList3" runat="server">
<f:ListItem Text="大于" Value="greater" Selected="true" />
<f:ListItem Text="小于" Value="less" />
<f:ListItem Text="等于" Value="equal" />
</f:DropDownList>
</Operator>
<Field>
<f:DatePicker runat="server" Required="true" ID="DatePicker1">
</f:DatePicker>
</Field>
</Filter>
</f:RenderField>
<f:RenderField Width="90px" ColumnID="EndDate" DataField="EndDate" SortField="EndDate"
FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd" HeaderText="竣工日期"
EnableFilter="true">
<Filter EnableMultiFilter="true" ShowMatcher="true">
<Operator>
<f:DropDownList ID="DropDownList2" runat="server">
<f:ListItem Text="大于" Value="greater" Selected="true" />
<f:ListItem Text="小于" Value="less" />
<f:ListItem Text="等于" Value="equal" />
</f:DropDownList>
</Operator>
<Field>
<f:DatePicker runat="server" Required="true" ID="DatePicker2">
</f:DatePicker>
</Field>
</Filter>
</f:RenderField>
<f:RenderField Width="80px" ColumnID="IsClosed" DataField="IsClosed" FieldType="String"
RendererFunction="renderIsClosed" HeaderText="是否完工">
</f:RenderField>
<%-- <f:RenderField Width="80px" ColumnID="PowerExtract" DataField="PowerExtract" FieldType="String"
HeaderText="权限">
</f:RenderField>--%>
<f:WindowField ColumnID="CharWindowField" Width="80px" WindowID="WindowChar" HeaderText="组织机构图"
Text="组织机构图" ToolTip="组织机构图" DataTextFormatString="{0}" DataIFrameUrlFields="ProjectId"
DataIFrameUrlFormatString="OrganizationChart.aspx?ProjectId={0}" />
<f:WindowField ColumnID="myWindowField" Width="80px" WindowID="Window1" HeaderText="编辑" ToolTip="编辑"
Icon="Pencil" DataTextFormatString="{0}" DataIFrameUrlFields="ProjectId,ProjectName"
DataIFrameUrlFormatString="ProjectSaveNew.aspx?ProjectId={0}&projectSoft={1}" DataWindowTitleFormatString="编辑 - {1}" />
<f:LinkButtonField Width="50px" AjaxLoadingType="Mask" ShowAjaxLoadingMaskText="true"
AjaxLoadingMaskText="正在删除项目" ConfirmText="删除选中行?" ConfirmTarget="Top" CommandName="Delete"
Icon="Delete" />
<f:WindowField ColumnID="myUploadFile" Width="160px" WindowID="Window4" HeaderText="焊缝布置图"
Text="焊缝布置图" ToolTip="焊缝布置图" DataTextFormatString="{0}" DataIFrameUrlFields="ProjectId"
DataIFrameUrlFormatString="../../AttachFile/webuploader.aspx?toKeyId={0}&path=common/BaseInfo/Project&menuId=3F3C20C4-2D32-4ABE-901F-262D8D1E1AF8&edit=1" DataWindowTitleFormatString="附件上传 - {0}" />
</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:ListItem Text="15" Value="15" />
<f:ListItem Text="20" Value="20" />
<f:ListItem Text="25" Value="25" />
</f:DropDownList>
</PageItems>
</f:Grid>
</Items>
</f:Panel>
<f:Window ID="WindowChar" Title="组织机构图" Hidden="true" EnableIFrame="true" EnableMaximize="true"
Target="Parent" EnableResize="true" runat="server" IsModal="true" Width="1024px"
Height="640px">
</f:Window>
<f:Window ID="Window1" Title="项目信息编辑窗体" Hidden="true" EnableIFrame="true" EnableMaximize="true"
Target="Parent" EnableResize="true" runat="server" OnClose="Window1_Close" IsModal="true"
Width="840px" Height="500px">
</f:Window>
<f:Window ID="Window2" Title="检测工程编号" Hidden="true" EnableIFrame="true" EnableMaximize="true"
Target="Parent" EnableResize="true" runat="server" OnClose="Window1_Close" IsModal="true"
Width="500px" Height="250px">
</f:Window>
<f:Window ID="Window3" Title="项目计划" Hidden="true" EnableIFrame="true" EnableMaximize="true"
Target="Parent" EnableResize="true" runat="server" IsModal="true"
Width="1400px" Height="760px">
</f:Window>
<f:Window ID="Window4" Title="附件上传" Hidden="true" EnableIFrame="true" EnableMaximize="true"
Target="Parent" EnableResize="true" runat="server" OnClose="Window1_Close" IsModal="true"
Width="840px" Height="500px">
</f:Window>
</form>
<script>
function renderIsClosed(value) {
return value == "True" ? '完工' : '在建';
}
</script>
</body>
</html>
@@ -0,0 +1,242 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ProjectPlan.aspx.cs" Inherits="FineUIPro.Web.common.BaseInfo.ProjectPlan" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<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 type="text/css">
.f-grid-row.color1,
.f-grid-row.color1 .f-icon,
.f-grid-row.color1 a {
background-color: red;
color: #fff;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" OnCustomEvent="PageManager1_CustomEvent" runat="server" />
<f:Panel ID="Panel1" runat="server" Margin="2px" BodyPadding="0px" Title="项目计划 "
ShowHeader="false" Layout="HBox">
<Items>
<f:Grid ID="Grid1" Title="项目计划" ShowHeader="false" EnableCollapse="true" PageSize="15"
ShowBorder="true" AllowPaging="true" IsDatabasePaging="true" runat="server" Width="900px"
EnableColumnLines="true" SortField="WeldCode" SortDirection="ASC" OnSort="Grid1_Sort"
DataKeyNames="ProjectPlanId" DataIDField="ProjectPlanId" OnPageIndexChange="Grid1_PageIndexChange"
AllowFilters="true" OnFilterChange="Grid1_FilterChange" AllowSorting="true" OnRowDataBound="Grid1_RowDataBound">
<Toolbars>
<f:Toolbar ID="Toolbar2" Position="Top" runat="server">
<Items>
<f:TextBox ID="txtName" runat="server" Label="焊材牌号" EmptyText="输入查询条件" AutoPostBack="true"
OnTextChanged="TextBox_TextChanged" Width="250px" LabelWidth="80px" LabelAlign="Right">
</f:TextBox>
<f:DropDownList ID="drpWeldType" runat="server" Label="焊材类型" LabelAlign="Right" AutoPostBack="true" EnableEdit="true"
OnSelectedIndexChanged="drpWeldType_SelectedIndexChanged" LabelWidth="75px">
</f:DropDownList>
<f:ToolbarFill ID="ToolbarFill2" runat="server">
</f:ToolbarFill>
</Items>
</f:Toolbar>
</Toolbars>
<Columns>
<f:RowNumberField EnablePagingNumber="true" HeaderText="序号" Width="50px" HeaderTextAlign="Center"
TextAlign="Center" />
<f:RenderField Width="80px" ColumnID="WeldCode" DataField="WeldCode" FieldType="String"
HeaderText="焊材编码" HeaderTextAlign="Center" TextAlign="Left" SortField="WeldCode">
</f:RenderField>
<f:RenderField Width="200px" ColumnID="WeldName" DataField="WeldName" FieldType="String"
HeaderText="焊材牌号" HeaderTextAlign="Center" TextAlign="Left" SortField="WeldName">
</f:RenderField>
<f:RenderField Width="80px" ColumnID="WeldSpec" DataField="WeldSpec" FieldType="String"
HeaderText="规格" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
<f:RenderField Width="90px" ColumnID="WeldTypeName" DataField="WeldTypeName" FieldType="String"
HeaderText="焊材类型" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
<f:RenderField Width="90px" ColumnID="PlanAmount" DataField="PlanAmount" FieldType="Float"
HeaderText="计划数量" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
<f:RenderField Width="120px" ColumnID="WeldRequire" DataField="WeldRequire" FieldType="String"
HeaderText="材质要求" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
<f:RenderField Width="120px" ColumnID="Remark" DataField="Remark" FieldType="String"
HeaderText="备注" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
<f:RenderField Width="10px" ColumnID="WeldId" DataField="WeldId" FieldType="String"
HeaderText="材料ID" HeaderTextAlign="Center" TextAlign="Left" Hidden="true">
</f:RenderField>
</Columns>
<Listeners>
<f:Listener Event="rowselect" Handler="onGridRowSelect" />
<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="15" Value="15" />
<f:ListItem Text="20" Value="20" />
<f:ListItem Text="25" Value="25" />
</f:DropDownList>
</PageItems>
</f:Grid>
<f:SimpleForm ID="SimpleForm1" runat="server" ShowBorder="true" ShowHeader="false"
LabelWidth="100px" BodyPadding="5px" Width="360px">
<Items>
<f:HiddenField ID="hdWeldId" runat="server">
</f:HiddenField>
<f:HiddenField ID="hfFormID" runat="server">
</f:HiddenField>
</Items>
<Items>
<f:Form ID="FormT" runat="server" ShowBorder="false" ShowHeader="false" BodyPadding="5px">
<Rows>
<f:FormRow ColumnWidths="88% 12%">
<Items>
<f:TextBox ID="txtWeldName" runat="server" Label="焊材牌号" LabelAlign="Right" Readonly="true"
Required="true" ShowRedStar="true" LabelWidth="100px">
</f:TextBox>
<f:Button runat="server" ID="btnSelectWeldId" Icon="Find" OnClick="btnSelectWeldId_Click"
ToolTip="查找焊材">
</f:Button>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtWeldCode" runat="server" Label="焊材编码" LabelAlign="Right" Readonly="true"
LabelWidth="100px">
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtWeldSpec" runat="server" Label="规格" LabelAlign="Right" Readonly="true"
LabelWidth="100px">
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:NumberBox ID="txtPlanAmount" runat="server" Label="计划数量" LabelAlign="Right" NoNegative="true"
NoDecimal="false" LabelWidth="100px" Required="true" ShowRedStar="true">
</f:NumberBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtWeldRequire" runat="server" Label="材质要求" LabelAlign="Right" LabelWidth="100px">
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextArea ID="txtRemark" runat="server" Label="备注" LabelAlign="Right" LabelWidth="100px">
</f:TextArea>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</Items>
<Items>
</Items>
<Toolbars>
<f:Toolbar ID="Toolbar1" Position="Top" runat="server">
<Items>
<f:Button ID="btnNew" Text="" Icon="Add" ToolTip="新增" EnablePostBack="false" runat="server">
<Listeners>
<f:Listener Event="click" Handler="onNewButtonClick" />
</Listeners>
</f:Button>
<f:Button ID="btnDelete" Text="" Enabled="false" ToolTip="删除" Icon="Delete" ConfirmText="确定删除当前数据?"
OnClick="btnDelete_Click" runat="server">
</f:Button>
<f:ToolbarFill ID="ToolbarFill1" runat="server">
</f:ToolbarFill>
<f:Button ID="btnSave" Icon="SystemSave" runat="server" Text="提交数据(新增)" ValidateForms="SimpleForm1"
OnClick="btnSave_Click">
</f:Button>
</Items>
</f:Toolbar>
</Toolbars>
</f:SimpleForm>
</Items>
</f:Panel>
<f:Menu ID="Menu1" runat="server">
<f:MenuButton ID="btnMenuEdit" OnClick="btnMenuEdit_Click" EnablePostBack="true"
runat="server" Text="编辑" Icon="TableEdit">
</f:MenuButton>
<f:MenuButton ID="btnMenuDelete" OnClick="btnMenuDelete_Click" EnablePostBack="true"
ConfirmText="删除选中行?" ConfirmTarget="Top" runat="server" Text="删除" Icon="Delete">
</f:MenuButton>
</f:Menu>
<f:Window ID="Window1" Title="查找焊材信息" Hidden="true" EnableIFrame="true" EnableMaximize="true"
Target="Parent" EnableResize="true" runat="server" OnClose="Window1_Close" IsModal="true"
Width="1200px" Height="800px">
</f:Window>
</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');
}
var gridClientID = '<%= Grid1.ClientID %>';
var btnDeleteClientID = '<%= btnDelete.ClientID %>';
var btnSaveClientID = '<%= btnSave.ClientID %>';
var formClientID = '<%= SimpleForm1.ClientID %>';
var hfFormIDClientID = '<%= hfFormID.ClientID %>';
var hdWeldIdClientID = '<%= hdWeldId.ClientID %>';
var txtWeldNameClientID = '<%= txtWeldName.ClientID %>';
var txtWeldCodeClientID = '<%= txtWeldCode.ClientID %>';
var txtWeldSpecClientID = '<%= txtWeldSpec.ClientID %>';
var txtPlanAmountClientID = '<%= txtPlanAmount.ClientID %>';
var txtWeldRequireClientID = '<%= txtWeldRequire.ClientID %>';
var txtRemarkClientID = '<%= txtRemark.ClientID %>';
function onGridRowSelect(event, rowId) {
var grid = F(gridClientID);
// 启用删除按钮
F(btnDeleteClientID).enable();
// 当前行数据
var rowValue = grid.getRowValue(rowId);
// 使用当前行数据填充表单字段
F(hfFormIDClientID).setValue(rowId);
F(hdWeldIdClientID).setValue(rowValue['WeldId']);
F(txtWeldCodeClientID).setValue(rowValue['WeldCode']);
F(txtWeldNameClientID).setValue(rowValue['WeldName']);
F(txtWeldSpecClientID).setValue(rowValue['WeldSpec']);
F(txtPlanAmountClientID).setValue(rowValue['PlanAmount']);
F(txtWeldRequireClientID).setValue(rowValue['WeldRequire']);
F(txtRemarkClientID).setValue(rowValue['Remark']);
// 更新提交按钮文本
F(btnSaveClientID).setText('提交数据(编辑)');
}
function onNewButtonClick() {
// 重置表单字段
F(formClientID).reset();
// 清空表格选中行
F(gridClientID).clearSelections();
// 禁用删除按钮
F(btnDeleteClientID).disable();
// 更新提交按钮文本
F(btnSaveClientID).setText('提交数据(新增)');
}
</script>
</body>
</html>
@@ -0,0 +1,118 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ProjectSave.aspx.cs" Inherits="FineUIPro.Web.common.BaseInfo.ProjectSave" %>
<!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" />
</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:TextBox ID="txtProjectCode" runat="server" Label="施工号" MaxLength="20" LabelWidth="120px"
Required="true" ShowRedStar="true" FocusOnPageLoad="true">
</f:TextBox>
<f:TextBox ID="txtProjectName" runat="server" Label="项目名称" MaxLength="100" LabelWidth="120px"
Required="true" ShowRedStar="true">
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtShortName" runat="server" Label="项目号" MaxLength="30" Required="true"
LabelWidth="120px">
</f:TextBox>
<f:TextBox ID="txtProjectPrincipal" runat="server" Label="项目经理" LabelWidth="120px"
Required="true" ShowRedStar="true">
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:DatePicker runat="server" Label="计划开工日期" ID="txtStartDate" Required="true" ShowRedStar="true"
LabelWidth="120px">
</f:DatePicker>
<f:DatePicker runat="server" Label="计划竣工日期" ID="txtEndDate" Required="true" ShowRedStar="true"
LabelWidth="120px">
</f:DatePicker>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtProjectManager" runat="server" Label="技术负责人" LabelWidth="120px">
</f:TextBox>
<f:TextBox ID="txtTechnicalPrincipal" runat="server" Label="质量负责人" LabelWidth="120px">
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtSecurePrincipal" runat="server" Label="HSE负责人" LabelWidth="120px">
</f:TextBox>
<f:CheckBox ID="ckbIsClosed" Label="是否完工" runat="server" LabelWidth="120px">
</f:CheckBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:DropDownList ID="drpCreateMan" Label="创建人" runat="server" ShowRedStar="true" Required="true"
EnableEdit="true" LabelWidth="120px">
</f:DropDownList>
<f:DropDownList ID="drpTestStandardId" Label="检测标准" runat="server"
EnableEdit="true" LabelWidth="120px">
</f:DropDownList>
<%--<f:RadioButtonList ID="rblProjectSoft" runat="server" Label="类型" LabelWidth="120px" Required="true" ShowRedStar="true">
<f:RadioItem Text="管道安装" Value="1" />
<f:RadioItem Text="压力容器" Value="2" />
</f:RadioButtonList>--%>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:DropDownList ID="drpCheckUnit" Label="检测单位" runat="server" ShowRedStar="true" Required="true"
EnableEdit="true" LabelWidth="120px">
</f:DropDownList>
<f:TextBox ID="txtWatchUnit" runat="server" Label="监理单位" LabelWidth="120px" ShowRedStar="true" Required="true">
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtRemark" runat="server" Label="备注" LabelWidth="120px">
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:LinkButton ID="UploadAttach" runat="server" Label="工艺评定" Text="上传和查看" OnClick="btnAttachUrl_Click"
LabelAlign="Right" Hidden="true">
</f:LinkButton>
</Items>
</f:FormRow>
</Rows>
<Toolbars>
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
<Items>
<f:Button ID="btnSave" Icon="SystemSave" runat="server" Text="提交数据" ValidateForms="SimpleForm1"
OnClick="btnSave_Click">
</f:Button>
<f:Button ID="btnClose" EnablePostBack="false" Text="关闭" runat="server" Icon="SystemClose">
</f:Button>
<f:HiddenField ID="hdCompileMan" runat="server">
</f:HiddenField>
</Items>
</f:Toolbar>
</Toolbars>
</f:Form>
<f:Window ID="Window1" Title="文件上传" Hidden="true" EnableIFrame="true" EnableMaximize="true"
Target="Parent" EnableResize="true" runat="server" IsModal="true" Width="680px"
Height="480px">
</f:Window>
</form>
</body>
</html>
@@ -0,0 +1,130 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ProjectWeldMat.aspx.cs" Inherits="FineUIPro.Web.common.BaseInfo.ProjectWeldMat" %>
<!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" 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" Title="焊材信息" ShowHeader="false" EnableCollapse="true" PageSize="15"
ShowBorder="true" AllowPaging="true" IsDatabasePaging="true" runat="server" Width="760px"
EnableColumnLines="true" SortField="WeldTypeName,WeldName" SortDirection="ASC" OnSort="Grid1_Sort"
DataKeyNames="WeldId" DataIDField="WeldId" OnPageIndexChange="Grid1_PageIndexChange"
AllowFilters="true" OnFilterChange="Grid1_FilterChange" AllowSorting="true"
EnableRowSelectEvent="true" OnRowSelect="Grid1_RowSelect"
EnableRowDoubleClickEvent="true" OnRowDoubleClick="Grid1_RowDoubleClick">
<Toolbars>
<f:Toolbar ID="Toolbar2" Position="Top" runat="server">
<Items>
<f:TextBox ID="txtName" runat="server" Label="焊材牌号" EmptyText="可用“*”分隔前后两段模糊查询" AutoPostBack="true"
OnTextChanged="TextBox_TextChanged" Width="250px" LabelWidth="80px" LabelAlign="Right">
</f:TextBox>
<f:DropDownList ID="drpWeldType" runat="server" Label="焊材类型" LabelAlign="Right" AutoPostBack="true" EnableEdit="true"
OnSelectedIndexChanged="drpWeldType_SelectedIndexChanged" LabelWidth="75px">
</f:DropDownList>
<f:ToolbarFill ID="ToolbarFill1" runat="server">
</f:ToolbarFill>
<f:Label ID="Label1" runat="server" Text="双击确定选择焊材">
</f:Label>
</Items>
</f:Toolbar>
</Toolbars>
<Columns>
<f:RowNumberField EnablePagingNumber="true" HeaderText="序号" Width="60px" HeaderTextAlign="Center"
TextAlign="Center" />
<f:RenderField Width="90px" ColumnID="WeldCode" DataField="WeldCode" FieldType="String"
HeaderText="焊材编码" HeaderTextAlign="Center" TextAlign="Left" SortField="WeldCode">
</f:RenderField>
<f:RenderField Width="200px" ColumnID="WeldName" DataField="WeldName" FieldType="String"
HeaderText="焊材牌号" HeaderTextAlign="Center" TextAlign="Left" SortField="WeldName">
</f:RenderField>
<f:RenderField Width="90px" ColumnID="WeldSpec" DataField="WeldSpec" FieldType="String"
HeaderText="规格" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
<f:RenderField Width="90px" ColumnID="WeldTypeName" DataField="WeldTypeName" FieldType="String"
HeaderText="焊材类型" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
<f:RenderField Width="90px" ColumnID="WeldUnit" DataField="WeldUnit" FieldType="String"
HeaderText="计量单位" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
<f:RenderField Width="90px" ColumnID="StockAmount" DataField="StockAmount" FieldType="Float"
HeaderText="库存数量" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
</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:ListItem Text="15" Value="15" />
<f:ListItem Text="20" Value="20" />
<f:ListItem Text="25" Value="25" />
</f:DropDownList>
</PageItems>
</f:Grid>
</Items>
<Items>
<f:Grid ID="Grid2" ShowBorder="true" ShowHeader="false" Title="焊材库存信息" EnableCollapse="true"
runat="server" BoxFlex="1" DataKeyNames="StockInId" AllowCellEditing="true" EnableColumnLines="true"
ClicksToEdit="2" DataIDField="StockInId" AllowSorting="true" SortField="WeldName"
SortDirection="ASC" OnSort="Grid2_Sort" AllowPaging="true" IsDatabasePaging="true" PageSize="15"
EnableTextSelection="true">
<Columns>
<f:RenderField Width="100px" ColumnID="WeldName" DataField="WeldName" FieldType="String"
HeaderText="焊材牌号" HeaderTextAlign="Center" TextAlign="Left" SortField="WeldName">
</f:RenderField>
<f:RenderField Width="100px" ColumnID="WeldSpec" DataField="WeldSpec" FieldType="String"
HeaderText="规格" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
<f:RenderField Width="90px" ColumnID="WeldTypeName" DataField="WeldTypeName" FieldType="String"
HeaderText="焊材类型" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
<f:RenderField Width="90px" ColumnID="WeldUnit" DataField="WeldUnit" FieldType="String"
HeaderText="计量单位" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
<f:RenderField Width="120px" ColumnID="SupplierName" DataField="SupplierName" FieldType="String"
HeaderText="供应商" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
<f:RenderField Width="90px" ColumnID="StockAmount" DataField="StockAmount" FieldType="Float"
HeaderText="数量" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
<f:RenderField Width="100px" ColumnID="Warrantybook" DataField="Warrantybook" FieldType="String"
HeaderText="质保书号" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
<f:TemplateField HeaderText="附件查看" Width="250px" HeaderTextAlign="Center" TextAlign="Left">
<ItemTemplate>
<asp:LinkButton ID="lbtnUrl" runat="server" CommandArgument='<%# Bind("AttachUrl") %>'
ToolTip="附件查看" EnableAjax="false" Height="20px"></asp:LinkButton>
</ItemTemplate>
</f:TemplateField>
</Columns>
<PageItems>
<f:ToolbarSeparator ID="ToolbarSeparator2" runat="server">
</f:ToolbarSeparator>
<f:ToolbarText ID="ToolbarText2" runat="server" Text="Number of records per page:">
</f:ToolbarText>
<f:DropDownList runat="server" ID="ddlPageSize2" Width="80px" AutoPostBack="true"
OnSelectedIndexChanged="ddlPageSize2_SelectedIndexChanged">
<f:ListItem Text="15" Value="15" />
<f:ListItem Text="20" Value="20" />
<f:ListItem Text="25" Value="25" />
</f:DropDownList>
</PageItems>
</f:Grid>
</Items>
</f:Panel>
</form>
</body>
</html>
@@ -0,0 +1,80 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ProjectYlrqSave.aspx.cs" Inherits="FineUIPro.Web.common.BaseInfo.ProjectYlrqSave" %>
<!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" />
</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:TextBox ID="txtProjectCode" runat="server" Label="施工号" MaxLength="20" LabelWidth="120px"
Required="true" ShowRedStar="true" FocusOnPageLoad="true">
</f:TextBox>
<f:TextBox ID="txtProjectName" runat="server" Label="项目名称" MaxLength="100" LabelWidth="120px"
Required="true" ShowRedStar="true">
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:DatePicker runat="server" Label="计划开工日期" ID="txtStartDate" Required="true" ShowRedStar="true"
LabelWidth="120px">
</f:DatePicker>
<f:DatePicker runat="server" Label="计划竣工日期" ID="txtEndDate" Required="true" ShowRedStar="true"
LabelWidth="120px">
</f:DatePicker>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtEquipmentName" runat="server" Label="设备名称" MaxLength="20" LabelWidth="120px"
Required="true" ShowRedStar="true" FocusOnPageLoad="true">
</f:TextBox>
<f:TextBox ID="txtTagNum" runat="server" Label="位号" MaxLength="100" LabelWidth="120px"
Required="true" ShowRedStar="true">
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:DropDownList ID="drpCreateMan" Label="创建人" runat="server" ShowRedStar="true" Required="true"
EnableEdit="true" LabelWidth="120px">
</f:DropDownList>
<f:DropDownList ID="ddlProjectPrincipal" Label="项目经理" runat="server" ShowRedStar="true" Required="true"
EnableEdit="true" LabelWidth="120px">
</f:DropDownList>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtProductNum" runat="server" Label="产品编号" MaxLength="20" LabelWidth="120px"
Required="true" ShowRedStar="true" FocusOnPageLoad="true">
</f:TextBox>
<f:TextBox ID="txtBodyMaterial" runat="server" Label="主体材质" MaxLength="20" LabelWidth="120px"
Required="true" ShowRedStar="true" FocusOnPageLoad="true">
</f:TextBox>
</Items>
</f:FormRow>
</Rows>
<Toolbars>
<f:Toolbar ID="Toolbar2" Position="Bottom" ToolbarAlign="Right" runat="server">
<Items>
<f:Button ID="btnSave" Icon="SystemSave" runat="server" Text="提交数据" ValidateForms="SimpleForm1" OnClick="btnSave_Click">
</f:Button>
<f:Button ID="btnClose" EnablePostBack="false" Text="关闭" runat="server" Icon="SystemClose">
</f:Button>
</Items>
</f:Toolbar>
</Toolbars>
</f:Form>
</form>
</body>
</html>
@@ -0,0 +1,34 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TestEngineering.aspx.cs"
Inherits="FineUIPro.Web.common.BaseInfo.TestEngineering" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>编辑检测工程编号</title>
</head>
<body>
<form id="form1" runat="server">
<f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
<f:Form ID="SimpleForm1" ShowBorder="false" ShowHeader="false" AutoScroll="true"
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
<Rows>
<f:FormRow Height="100px">
<Items>
<f:TextBox ID="txtTestEngineeringCode" Label="检测工程编号" runat="server" LabelAlign="Right" LabelWidth="140px" MaxLength="50">
</f:TextBox>
</Items>
</f:FormRow>
</Rows>
<Toolbars>
<f:Toolbar ID="Toolbar1" Position="Bottom" runat="server" ToolbarAlign="Right">
<Items>
<f:Button ID="btnSave" Icon="SystemSave" runat="server" Text="提交" ValidateForms="SimpleForm1"
OnClick="btnSave_Click">
</f:Button>
</Items>
</f:Toolbar>
</Toolbars>
</f:Form>
</form>
</body>
</html>
@@ -0,0 +1,154 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Unit.aspx.cs" Inherits="FineUIPro.Web.common.BaseInfo.Unit" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>单位信息</title>
<link href="../../res/css/common.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" runat="server">
<f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
<f:Panel ID="Panel1" runat="server" ShowBorder="false" ShowHeader="false" Layout="Region">
<Items>
<f:Panel runat="server" ID="panelLeftRegion" RegionPosition="Left" RegionSplit="true"
EnableCollapse="true" Width="180" Title="单位信息" ShowBorder="true"
ShowHeader="true" AutoScroll="true" BodyPadding="5px" IconFont="ArrowCircleLeft">
<Items>
<f:Tree ID="tvUnit" Width="160px" Height="500px"
ShowHeader="false" Title="单位性质" OnNodeCommand="tvUnit_NodeCommand" runat="server" ShowBorder="false"
EnableSingleClickExpand ="true">
</f:Tree>
</Items>
</f:Panel>
<f:Panel runat="server" ID="panelCenterRegion" RegionPosition="Center" ShowBorder="true"
Layout="VBox" ShowHeader="false" BodyPadding="5px" IconFont="PlusCircle" Title="单位信息"
TitleToolTip="单位信息" AutoScroll="true">
<Items>
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" EnableCollapse="true"
runat="server" BoxFlex="1" DataKeyNames="UnitId" AllowCellEditing="true" ClicksToEdit="2"
DataIDField="UnitId" AllowSorting="true" SortField="UnitCode" SortDirection="ASC" EnableColumnLines="true"
OnSort="Grid1_Sort" AllowPaging="true" IsDatabasePaging="true" PageSize="15" AllowColumnLocking="true"
OnPageIndexChange="Grid1_PageIndexChange" EnableRowDoubleClickEvent="true" OnRowDoubleClick="Grid1_RowDoubleClick"
AllowFilters="true" OnFilterChange="Grid1_FilterChange" EnableTextSelection="True">
<Toolbars>
<f:Toolbar ID="Toolbar3" Position="Top" ToolbarAlign="Right" runat="server">
<Items>
<f:Button ID="btnNew" Text="增加" Icon="Add" runat="server" OnClick="btnNew_Click">
</f:Button>
<f:Button ID="btnEdit" Text="编辑" Icon="Pencil" runat="server" OnClick="btnEdit_Click"></f:Button>
<f:Button ID="btnDelete" Text="删除" Icon="Delete" ConfirmText="确定删除当前数据?" OnClick="btnDelete_Click" runat="server"></f:Button>
</Items>
</f:Toolbar>
</Toolbars>
<Columns>
<f:TemplateField Width="50px" HeaderText="序号" HeaderTextAlign="Center" TextAlign="Center" Locked="true">
<ItemTemplate>
<asp:Label ID="Label1" runat="server" Text='<%# Grid1.PageIndex * Grid1.PageSize + Container.DataItemIndex + 1 %>'></asp:Label>
</ItemTemplate>
</f:TemplateField>
<f:RenderField Width="80px" ColumnID="UnitCode" DataField="UnitCode" SortField="UnitCode"
FieldType="String" HeaderText="单位代码" EnableFilter="true" HeaderTextAlign="Center"
TextAlign="Center" Locked="true">
<Filter EnableMultiFilter="true" ShowMatcher="true">
<Operator>
<f:DropDownList ID="DropDownList1" runat="server">
<f:ListItem Text="等于" Value="equal" />
<f:ListItem Text="包含" Value="contain" Selected="true" />
</f:DropDownList>
</Operator>
</Filter>
</f:RenderField>
<f:RenderField Width="240px" ColumnID="UnitName" DataField="UnitName" SortField="UnitName"
FieldType="String" HeaderText="单位名称" EnableFilter="true" HeaderTextAlign="Center"
TextAlign="left" Locked="true">
<Filter EnableMultiFilter="true" ShowMatcher="true">
<Operator>
<f:DropDownList ID="DropDownList2" runat="server">
<f:ListItem Text="等于" Value="equal" />
<f:ListItem Text="包含" Value="contain" Selected="true" />
</f:DropDownList>
</Operator>
</Filter>
</f:RenderField>
<f:RenderField Width="80px" ColumnID="Corporate" DataField="Corporate"
FieldType="String" HeaderText="法人代表" HeaderTextAlign="Center"
TextAlign="Center">
</f:RenderField>
<f:RenderField Width="120px" ColumnID="Address" DataField="Address"
FieldType="String" HeaderText="通讯地址" HeaderTextAlign="Center"
TextAlign="Center">
</f:RenderField>
<f:RenderField Width="80px" ColumnID="Telephone" DataField="Telephone"
FieldType="String" HeaderText="电话" HeaderTextAlign="Center"
TextAlign="Center">
</f:RenderField>
<f:RenderField Width="80px" ColumnID="Fax" DataField="Fax"
FieldType="String" HeaderText="传真" HeaderTextAlign="Center"
TextAlign="Center">
</f:RenderField>
<f:TemplateField Width="100px" HeaderText="工程范围" HeaderTextAlign="Center" TextAlign="left">
<ItemTemplate>
<asp:Label ID="Label8" runat="server" Text='<%# Bind("ProjectRange") %>' ToolTip='<%# Bind("ProjectRange") %>' ></asp:Label>
</ItemTemplate>
</f:TemplateField>
<f:CheckBoxField Width="80px" RenderAsStaticField="true" TextAlign="Center" DataField="IsMain" HeaderText="是否本单位" />
</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="15" Value="15" />
<f:ListItem Text="20" Value="20" />
<f:ListItem Text="25" Value="25" />
<f:ListItem Text="30" Value="30" />
</f:DropDownList>
</PageItems>
</f:Grid>
</Items>
</f:Panel>
</Items>
</f:Panel>
<f:Window ID="WindowSubUnit" Title="单位资质详细信息" Hidden="true" EnableIFrame="true" EnableMaximize="true"
Target="Parent" EnableResize="true" runat="server" IsModal="true"
Width="1200px" Height="600px">
</f:Window>
<f:Window ID="Window1" Title="编辑单位信息" Hidden="true" EnableIFrame="true" EnableMaximize="true"
Target="self" EnableResize="true" runat="server" OnClose="Window1_Close" IsModal="true"
Width="600px" Height="360px">
</f:Window>
<f:Menu ID="Menu1" runat="server">
<f:MenuButton ID="btnMenuEdit" OnClick="btnMenuEdit_Click" EnablePostBack="true"
Hidden="true" runat="server" Text="编辑">
</f:MenuButton>
<f:MenuButton ID="btnMenuDelete" OnClick="btnMenuDelete_Click" EnablePostBack="true"
Hidden="true" ConfirmText="删除选中行?" ConfirmTarget="Top" 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>
@@ -0,0 +1,72 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UnitEdit.aspx.cs" Inherits="FineUIPro.Web.common.BaseInfo.UnitEdit" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>编辑单位</title>
<link href="../../res/css/common.css" rel="stylesheet" type="text/css" />
</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:TextBox ID="txtUnitCode" runat="server" Label="单位代码" Required="true" ShowRedStar="true" FocusOnPageLoad="true">
</f:TextBox>
</Items>
<Items>
<f:TextBox ID="txtUnitName" runat="server" Label="单位名称" Required="true" ShowRedStar="true">
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtCorporate" runat="server" Label="法人代表" ></f:TextBox>
</Items>
<Items>
<f:TextBox ID="txtTelephone" runat="server" Label="电话" >
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtFax" runat="server" Label="传真" ></f:TextBox>
</Items>
<Items>
<f:CheckBox ID="cbkIsMain" MarginLeft="40px" runat="server" Text="是否本单位" AutoPostBack="true" OnCheckedChanged="cbkIsMain_CheckedChanged">
</f:CheckBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtAddress" runat="server" Label="通讯地址" ></f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextArea ID="txtProjectRange" Label="工程范围" runat="server"></f:TextArea>
</Items>
</f:FormRow>
</Rows>
<Toolbars>
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
<Items>
<f:Button ID="btnSave" Icon="SystemSave" runat="server" Text="提交" ValidateForms="SimpleForm1"
OnClick="btnSave_Click">
</f:Button>
<f:Button ID="btnClose" EnablePostBack="false" Text="关闭" runat="server" Icon="SystemClose">
</f:Button>
</Items>
</f:Toolbar>
</Toolbars>
</f:Form>
</form>
</body>
</html>
@@ -0,0 +1,408 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EditOffice.aspx.cs" Inherits="FineUIPro.Web.Common.FileManage.EditOffice" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="IE=7" http-equiv="X-UA-Compatible" />
<title>文档编辑</title>
<link href="../../Styles/Style.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="ntko.js"></script>
<script src="../../Scripts/jquery-1.4.1.js" type="text/javascript"></script>
<script language="javascript" type="text/javascript">
$("#mblx").ready(
function () {
var mb = document.getElementById("drpBigType")
for (i = 0; i < mb.options.length; i++) {
if (mb.options[i].value == "<%=drpBigType %>") {
mb.selectedindex = i;
break;
}
}
if (mb.selectedindex != undefined) {
mb.value = mb.options[mb.selectedindex].value;
}
bao("<%=drpBigType %>")
var sy = document.getElementById("drpSmallType");
for (j = 0; j < sy.options.length; j++) {
if (sy.options[j].value == "<%=drpSmallType %>") {
sy.selectedindex = j;
break;
}
}
if (sy.selectedindex != undefined) {
sy.value = sy.options[sy.selectedindex].value;
}
});
function bao(s) {
var drpSmallType = document.getElementById('drpSmallType');
drpSmallType.length = 0;
if (s == "HSSE_ActionPlanTemplate") {
var option1 = document.createElement("option");
option1.text = "系统内项目";
option1.value = "系统内项目";
var option2 = document.createElement("option");
option2.text = "系统外项目";
option2.value = "系统外项目";
var option3 = document.createElement("option");
option3.text = "海外项目";
option3.value = "海外项目";
drpSmallType.options.add(option1);
drpSmallType.options.add(option2);
drpSmallType.options.add(option3);
}
else if (s == "HSSE_MeetingTemplate") {
var option1 = document.createElement("option");
option1.text = "周例会";
option1.value = "周例会";
var option2 = document.createElement("option");
option2.text = "月例会";
option2.value = "月例会";
var option3 = document.createElement("option");
option3.text = "专题会议";
option3.value = "专题会议";
var option4 = document.createElement("option");
option4.text = "HSE委员会会议";
option4.value = "HSE委员会会议";
drpSmallType.options.add(option1);
drpSmallType.options.add(option2);
drpSmallType.options.add(option3);
drpSmallType.options.add(option4);
}
else if (s == "HSSE_EmergencyTemplate") {
var option1 = document.createElement("option");
option1.text = "火灾";
option1.value = "火灾";
var option2 = document.createElement("option");
option2.text = "地震";
option2.value = "地震";
var option3 = document.createElement("option");
option3.text = "台风";
option3.value = "台风";
var option4 = document.createElement("option");
option4.text = "高空坠落及重物打击";
option4.value = "高空坠落及重物打击";
var option5 = document.createElement("option");
option5.text = "坍塌";
option5.value = "坍塌";
var option6 = document.createElement("option");
option6.text = "交通事故";
option6.value = "交通事故";
var option7 = document.createElement("option");
option7.text = "传染病";
option7.value = "传染病";
var option8 = document.createElement("option");
option8.text = "突发疾病";
option8.value = "突发疾病";
var option9 = document.createElement("option");
option9.text = "放射源丢失或泄漏";
option9.value = "放射源丢失或泄漏";
var option10 = document.createElement("option");
option10.text = "有毒有害气体泄漏";
option10.value = "有毒有害气体泄漏";
var option11 = document.createElement("option");
option11.text = "限定空间作业";
option11.value = "限定空间作业";
drpSmallType.options.add(option1);
drpSmallType.options.add(option2);
drpSmallType.options.add(option3);
drpSmallType.options.add(option4);
drpSmallType.options.add(option5);
drpSmallType.options.add(option6);
drpSmallType.options.add(option7);
drpSmallType.options.add(option8);
drpSmallType.options.add(option9);
drpSmallType.options.add(option10);
drpSmallType.options.add(option11);
}
else if (s == "HSSE_LicenseManagerTemplate") {
var option1 = document.createElement("option");
option1.text = "送停电作业许可证";
option1.value = "送停电作业许可证";
var option2 = document.createElement("option");
option2.text = "专区作业许可证";
option2.value = "专区作业许可证";
var option3 = document.createElement("option");
option3.text = "压力试验作业许可证";
option3.value = "压力试验作业许可证";
var option4 = document.createElement("option");
option4.text = "盲板作业许可证";
option4.value = "盲板作业许可证";
var option5 = document.createElement("option");
option5.text = "夜间作业许可证";
option5.value = "夜间作业许可证";
var option6 = document.createElement("option");
option6.text = "格栅作业许可证";
option6.value = "格栅作业许可证";
var option7 = document.createElement("option");
option7.text = "吊篮作业许可证";
option7.value = "吊篮作业许可证";
var option8 = document.createElement("option");
option8.text = "起重作业安全许可证";
option8.value = "起重作业安全许可证";
var option9 = document.createElement("option");
option9.text = "受限空间作业安全许可证";
option9.value = "受限空间作业安全许可证";
var option10 = document.createElement("option");
option10.text = "用火作业安全许可证";
option10.value = "用火作业安全许可证";
var option11 = document.createElement("option");
option11.text = "破土作业安全许可证";
option11.value = "破土作业安全许可证";
var option12 = document.createElement("option");
option12.text = "临时用电安全许可证";
option12.value = "临时用电安全许可证";
var option13 = document.createElement("option");
option13.text = "现场脚手架安全许可证";
option13.value = "现场脚手架安全许可证";
var option14 = document.createElement("option");
option14.text = "射线作业安全许可证";
option14.value = "射线作业安全许可证";
var option15 = document.createElement("option");
option15.text = "高处作业安全许可证";
option15.value = "高处作业安全许可证";
var option16 = document.createElement("option");
option16.text = "安全作业许可证";
option16.value = "安全作业许可证";
drpSmallType.options.add(option1);
drpSmallType.options.add(option2);
drpSmallType.options.add(option3);
drpSmallType.options.add(option4);
drpSmallType.options.add(option5);
drpSmallType.options.add(option6);
drpSmallType.options.add(option7);
drpSmallType.options.add(option8);
drpSmallType.options.add(option9);
drpSmallType.options.add(option10);
drpSmallType.options.add(option11);
drpSmallType.options.add(option12);
drpSmallType.options.add(option13);
drpSmallType.options.add(option14);
drpSmallType.options.add(option15);
drpSmallType.options.add(option16);
}
if (s == "CQMS_MeetingTemplate") {
var option1 = document.createElement("option");
option1.text = "施工质量周例会";
option1.value = "施工质量周例会";
var option2 = document.createElement("option");
option2.text = "施工质量月例会";
option2.value = "施工质量月例会";
var option3 = document.createElement("option");
option3.text = "施工质量专题会议";
option3.value = "施工质量专题会议";
drpSmallType.options.add(option1);
drpSmallType.options.add(option2);
drpSmallType.options.add(option3);
}
if (s == "CQMS_ConstructSolutionTemplate") {
var option1 = document.createElement("option");
option1.text = "土建";
option1.value = "土建";
var option2 = document.createElement("option");
option2.text = "钢结构";
option2.value = "钢结构";
var option3 = document.createElement("option");
option3.text = "静设备";
option3.value = "静设备";
var option4 = document.createElement("option");
option4.text = "动设备";
option4.value = "动设备";
var option5 = document.createElement("option");
option5.text = "工业炉";
option5.value = "工业炉";
var option6 = document.createElement("option");
option6.text = "配管";
option6.value = "配管";
var option7 = document.createElement("option");
option7.text = "暖通";
option7.value = "暖通";
var option8 = document.createElement("option");
option8.text = "电气";
option8.value = "电气";
var option9 = document.createElement("option");
option9.text = "仪表";
option9.value = "仪表";
var option10 = document.createElement("option");
option10.text = "焊接及无损检测";
option10.value = "焊接及无损检测";
var option11 = document.createElement("option");
option11.text = "其它";
option11.value = "其它";
drpSmallType.options.add(option1);
drpSmallType.options.add(option2);
drpSmallType.options.add(option3);
drpSmallType.options.add(option4);
drpSmallType.options.add(option5);
drpSmallType.options.add(option6);
drpSmallType.options.add(option7);
drpSmallType.options.add(option8);
drpSmallType.options.add(option9);
drpSmallType.options.add(option10);
drpSmallType.options.add(option11);
}
else {
var option1 = document.createElement("option");
option1.text = "无";
option1.value = "";
drpSmallType.options.add(option1);
}
}
</script>
</head>
<body onload='javascript:TANGER_OCX_OpenDoc1("<% = readURL %>","<%=newofficetype %>");'>
<form id="form1" action="Save.aspx" enctype="multipart/form-data">
<div id="editmain">
<div id="editmain_middle" class="editmain_middle">
<div id="editmain_right" class="editmain_right">
<div id="formtop">
<table width="100%" cellpadding="1" cellspacing="1" class="table">
<tr>
<td align="left" colspan="8" style="height: 40px">
<%if (strOper != "read")
{%>
<input type="button" class="button" value="提交关闭" onclick="saveFileToUrl()" />
<input type="button" class="button" value="打开本地文件" onclick="WebOpenLocal()" />
<input type="button" class="button" value="存为本地文件" onclick="WebSaveLocal()" />
<%}%>
<input type="button" class="button" value="返回关闭" onclick="javascript:window.close();"
style="width: 80" />
<input type="button" class="button" value="页面设置" onclick="WebPageSetup()" />
<input type="button" class="button" value="打印文档" onclick="TANGER_OCX_PrintDoc(false)" />
</td>
</tr>
<tr align="left">
<td>
&nbsp;文件编号:<input id="txtFileId" style="width: 50px" name="txtFileId" type="hidden"
value="<%=txtFileId %>" />
</td>
<td>
<input id="txtFileCode" name="txtFileCode" style="width: 120px" type="text" value="<%=txtFileCode %>" />
</td>
<td>
文件名称:
</td>
<td>
<input id="txtFileName" name="txtFileName" style="width: 200px" type="text" value="<%=txtFileName %>"
style="width: 98%" />
</td>
<td>
文件类型:
</td>
<td>
<select id="drpBigType" name="drpBigType" style="width: 150px; height: 22px;"
onchange="bao(this.options[this.options.selectedIndex].value)">
<option value="HSSE_ManagerRuleTemplate">HSE管理规定</option>
<option value="HSSE_ActionPlanTemplate">HSE实施计划</option>
<option value="HSSE_MeetingTemplate">HSE会议</option>
<option value="HSSE_EmergencyTemplate">HSE应急预案</option>
<option value="HSSE_EmergencyDrillTemplate">HSE应急响应</option>
<option value="HSSE_NoticeTemplate">HSE通知通告</option>
<option value="HSSE_ManagerWeekTemplate">HSE管理周报</option>
<option value="HSSE_ManagerMonthTemplate">HSE管理月报</option>
<option value="HSSE_ManagerTotalTemplate">HSE工作总结</option>
<option value="HSSE_ManagerPerformanceTemplate">HSE顾客评价</option>
<option value="HSSE_LicenseManagerTemplate">HSE作业许可证</option>
<option value="HSSE_SecurityLicenseTemplate">HSE新开项目安全许可证</option>
<option value="HSSE_CheckMonthTemplate">HSE月检查表</option>
<option value="HSSE_CheckMonthTotalTemplate">HSE月总结</option>
<option value="HSSE_AccidentTemplate">HSE事故报告</option>
<option value="HSSE_Log">HSE管理日志</option>
<option value="CQMS_ManagerRuleTemplate">施工质量管理规定</option>
<option value="CQMS_ConstructSolutionTemplate">质量施工方案</option>
<option value="CQMS_DrawingAuditTemplate">施工质量设计交底会议纪要</option>
<option value="CQMS_NoFourLetoffTemplate">施工质量四不放过</option>
<option value="CQMS_NonconformityNoticeTemplate">施工质量不合格品通知单</option>
<option value="CQMS_NonconformityReviewTemplate">施工质量不合格品评审和处置</option>
<option value="CQMS_MeetingTemplate">施工质量会议</option>
<option value="CQMS_NoticeTemplate">施工质量管理通知</option>
<option value="CQMS_RectifyNoticeTemplate">施工质量问题整改通知单</option>
<option value="CQMS_RepriseApplyTemplate">施工质量工程复工报告</option>
<option value="CQMS_PauseNoticeTemplate">施工质量工程暂停令</option>
<option value="CQMS_Log">施工日志</option>
<option value="GJSX_Concert">沟通协调报告</option>
<option value="GJSX_RoleReplace">角色替代委托</option>
<option value="EmptyWordTemplate">空模板</option>
</select>
</td>
<td>
适用范围:
</td>
<td>
<select id="drpSmallType" name="drpSmallType" style="width: 260px">
</select>
</td>
</tr>
</table>
</div>
<div id="officecontrol">
<!--引用NTKO OFFICE文档控件-->
<script language="javascript" type="text/javascript" src="../../OfficeControl/ntkoofficecontrol.js" ></script>
<!--控件事件代码开始-->
<script type="text/javascript" language="JScript" for="TANGER_OCX" event="OnFileCommand(cmd,canceled);">
alert(cmd);
CancelLastCommand=true;
</script>
<script type="text/javascript" language="JScript" for="TANGER_OCX" event="OnDocumentClosed();">
setFileOpenedOrClosed(false);
</script>
<script type="text/javascript" language="JScript" for="TANGER_OCX" event="OnDocumentOpened(TANGER_OCX_str,TANGER_OCX_obj);">
//saved属性用来判断文档是否被修改过,文档打开的时候设置成ture,当文档被修改,自动被设置为false,该属性由office提供.
TANGER_OCX_OBJ.ActiveDocument.Saved = true;
if(2==TANGER_OCX_OBJ.DocType)
{
try{
TANGER_OCX_OBJ.ActiveDocument.Application.ActiveWorkbook.Saved=true;
}catch(e)
{
alert("错误:" + err.number + ":" + err.description);
}
}
setFileOpenedOrClosed(true);//设置文档状态值
controlStyle();//插入控件样式自定义菜单
SetReviewMode(true);//设置文档在痕迹模式下编辑
setShowRevisions(true); //设置是否显示痕迹
objside2();
</script>
<script type="text/javascript" language="JScript" for="TANGER_OCX" event="BeforeOriginalMenuCommand(TANGER_OCX_str,TANGER_OCX_obj);">
alert("BeforeOriginalMenuCommand事件被触发");
</script>
<script type="text/javascript" language="JScript" for="TANGER_OCX" event="OnFileCommand(TANGER_OCX_str,TANGER_OCX_obj);">
if (TANGER_OCX_str == 3)
{
alert("不能提交!");
CancelLastCommand = true;
}
</script>
<script language="JScript" for="TANGER_OCX" event="OnCustomMenuCmd2(menuPos,submenuPos,subsubmenuPos,menuCaption,menuID)">
//alert("第" + menuPos +","+ submenuPos +","+ subsubmenuPos +"个菜单项,menuID="+menuID+",菜单标题为\""+menuCaption+"\"的命令被执行.");
if("全网页查看"==menuCaption)objside();
if("恢复原大小"==menuCaption)objside2();
</script>
<script type="text/javascript" language="JScript" for="TANGER_OCX" event="AfterPublishAsPDFToURL(result,code);">
result=trim(result);
alert(result);
if(result=="succeed")
{window.close();}
</script>
<!--控件事件代码结束-->
</div>
</div>
</div>
</div>
</form>
</body>
</html>
@@ -0,0 +1,123 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FileManageList.aspx.cs" Inherits="FineUIPro.Web.common.FileManage.FileManageList" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>模板信息</title>
<link href="../../res/css/common.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="ntko.js"></script>
</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" ShowHeader="false" EnableCollapse="true"
runat="server" BoxFlex="1" DataKeyNames="FileId" AllowCellEditing="true" EnableColumnLines="true"
ClicksToEdit="2" DataIDField="FileId" AllowSorting="true" SortField="FileCode,BigType"
SortDirection="ASC" OnSort="Grid1_Sort" OnRowCommand="Grid1_RowCommand"
AllowPaging="true" IsDatabasePaging="true" PageSize="12" OnPageIndexChange="Grid1_PageIndexChange"
EnableRowDoubleClickEvent="true" OnRowDoubleClick="Grid1_RowDoubleClick" AllowFilters="true"
OnFilterChange="Grid1_FilterChange">
<Toolbars>
<f:Toolbar ID="Toolbar2" Position="Top" runat="server">
<Items>
<f:DropDownList runat="server" ID="DrpTemplateType">
<f:ListItem Selected="true" Text="-请选择-" Value="0" />
<f:ListItem Text="Word模板" Value="1" />
<f:ListItem Text="Excel模板" Value="2" />
<f:ListItem Text="PowerPoint模板" Value="3" />
</f:DropDownList>
<f:Button ID="btnNew" Text="新增" Icon="Add" runat="server"
OnClick="btnNew_Click" >
</f:Button>
<f:Button ID="btnEdit" Text="编辑" Icon="Pencil" runat="server" OnClick="btnEdit_Click">
</f:Button>
<f:Button ID="btnDelete" Text="删除" Icon="Delete" ConfirmText="确定删除当前数据?" OnClick="btnDelete_Click"
runat="server">
</f:Button>
</Items>
</f:Toolbar>
</Toolbars>
<Columns>
<f:TemplateField Width="50px" HeaderText="序号" HeaderTextAlign="Center" TextAlign="Center">
<ItemTemplate>
<asp:Label ID="Label1" runat="server" Text='<%# Container.DataItemIndex + 1 %>'></asp:Label>
</ItemTemplate>
</f:TemplateField>
<f:RenderField Width="120px" ColumnID="FileCode" DataField="FileCode"
SortField="FileCode" FieldType="String" HeaderText="文件编号" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
<f:RenderField Width="240px" ColumnID="FileName" DataField="FileName" EnableFilter="true"
SortField="FileName" FieldType="String" HeaderText="文件名称" HeaderTextAlign="Center" TextAlign="Left">
<Filter EnableMultiFilter="true" ShowMatcher="true">
<Operator>
<f:DropDownList ID="DropDownList2" runat="server">
<f:ListItem Text="等于" Value="equal" />
<f:ListItem Text="包含" Value="contain" Selected="true" />
</f:DropDownList>
</Operator>
</Filter>
</f:RenderField>
<f:RenderField Width="180px" ColumnID="FileType" DataField="FileType" EnableFilter="true"
SortField="FileType" FieldType="String" HeaderText="模板类型" HeaderTextAlign="Center" TextAlign="Left">
<Filter EnableMultiFilter="true" ShowMatcher="true">
<Operator>
<f:DropDownList ID="DropDowsnList1" runat="server">
<f:ListItem Text="等于" Value="equal" />
<f:ListItem Text="包含" Value="contain" Selected="true" />
</f:DropDownList>
</Operator>
</Filter>
</f:RenderField>
<f:RenderField Width="120px" ColumnID="SmallType" DataField="SmallType"
SortField="SmallType" FieldType="String" HeaderText="适用范围" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
<f:TemplateField Width="100px" HeaderText="文件大小" HeaderTextAlign="Center" TextAlign="Center">
<ItemTemplate>
<asp:Label ID="Label2" runat="server" Text='<%# ConvertSize(Eval("FileSize")) %>'></asp:Label>
</ItemTemplate>
</f:TemplateField>
<f:RenderField Width="100px" ColumnID="FileCreate" DataField="FileCreate"
SortField="FileCreate" FieldType="String" HeaderText="创建人" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
<f:WindowField ColumnID="myWindowField" Width="50px" WindowID="Window1" HeaderText="查看"
Icon="Pencil" ToolTip="查看" DataTextFormatString="{0}" DataIFrameUrlFields="FileId,FileName"
DataIFrameUrlFormatString="EditOffice.aspx?url={0}&oper=read&officetype=1" DataWindowTitleFormatString="查看 - {1}"
HeaderTextAlign="Center" TextAlign="Center"/>
<f:LinkButtonField Width="50px" HeaderText="删除" ConfirmText="删除选中行?" ConfirmTarget="Top"
CommandName="Delete" Icon="Delete" HeaderTextAlign="Center" TextAlign="Center"/>
</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:ListItem Text="10" Value="10" />
<f:ListItem Text="15" Value="15" />
<f:ListItem Text="20" Value="20" />
<f:ListItem Text="25" Value="25" />
</f:DropDownList>
</PageItems>
</f:Grid>
</Items>
</f:Panel>
<f:Window ID="Window1" Title="编辑模板" Hidden="true" EnableIFrame="true" EnableMaximize="true"
Target="Top" EnableResize="true" runat="server" OnClose="Window1_Close" IsModal="true"
Width="1024px" Height="768px">
</f:Window>
</form>
</body>
</html>
@@ -0,0 +1,170 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FileManageList1.aspx.cs" Inherits="FineUIPro.Web.Common.FileManage.FileManageList1" %>
<%@ Register Src="../../Controls/GridNavgator.ascx" TagName="GridNavgator" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title></title>
<link href="../../Styles/Style.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="ntko.js"></script>
<script type="text/javascript">
function CreateNew(newofficetype, url) {
var iWidth = 1280;
var iHeight = 720;
var iTop = (window.screen.availHeight - 30 - iHeight) / 2;
var iLeft = (window.screen.availWidth - 10 - iWidth) / 2;
window.open("EditOffice.aspx?ispop=1&newofficetype=" + newofficetype + "&url=" + url, "EditOffice", "width=" + iWidth + ",height=" + iHeight + ",top=" + iTop + ",left=" + iLeft + ",scrollbars=yes,resizable=yes");
}
function ShowOffice(url,oper) {
var iWidth = 1180;
var iHeight = 720;
var iTop = (window.screen.availHeight - 30 - iHeight) / 2;
var iLeft = (window.screen.availWidth - 10 - iWidth) / 2;
window.open("EditOffice.aspx?ispop=1&oper=" + oper + "&url=" + url, "EditOffice", "width=" + iWidth + ",height=" + iHeight + ",top=" + iTop + ",left=" + iLeft + ",scrollbars=yes,resizable=yes");
}
</script>
</head>
<body>
<form id="form1" runat="server">
<table id="Table1" runat="server" width="100%" cellpadding="0" cellspacing="0">
<tr>
<td style="width: 100%; background: url('../../Images/bg-1.gif')">
<table id="tabbtn" runat="server" width="100%" style="background: url('../../Images/bg-1.gif')"
cellpadding="0" cellspacing="0">
<tr>
<td align="left" valign="middle" style="width: 35%; font-size: 11pt; font-weight: bold">
<asp:Image ImageUrl="~/Images/lv-1.gif" ImageAlign="AbsMiddle" ID="image15" runat="server" />
&nbsp;模板信息
</td>
<td align="right" valign="middle" style="width: 65%; height: 30px;">
<asp:DropDownList runat="server" ID="DrpTemplateType" Height="24px" Width="120px">
<asp:ListItem Selected="True" Value="0">--请选择--</asp:ListItem>
<asp:ListItem Value="1">Word模板</asp:ListItem>
<asp:ListItem Value="2">Excel模板</asp:ListItem>
<asp:ListItem Value="3">PowerPoint模板</asp:ListItem>
</asp:DropDownList>&nbsp;
<asp:ImageButton ID="btnAdd" runat="server" ImageUrl="~/Images/addbutton.gif" onclick="btnAdd_Click"
/>
<asp:ImageButton ID="imgbtnSearch" runat="server" ImageUrl="~/Images/Search.gif"
OnClick="imgbtnSearch_Click" Style="height: 20px" />
&nbsp;
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<div runat="server" id="divSearch" visible="false">
<table style="width: 100%;">
<tr>
<td align="right" style="height: 32px; width:15%">
&nbsp;
<asp:Label ID="Label1" runat="server" Text="文件名称"></asp:Label>&nbsp;
</td>
<td align="left" style="height: 32px; width:20%" >
<asp:TextBox ID="txtFileName" runat="server" Width="90%"></asp:TextBox>
</td>
<td align="right" style="height: 32px; width:15%">
&nbsp;
<asp:Label ID="Label2" runat="server" Text="模板类型"></asp:Label>&nbsp;
</td>
<td align="left" style="height: 32px; width:20%">
<asp:DropDownList ID="drpFileSort" runat="server" Height="22px" Width="80%">
</asp:DropDownList>
</td>
<td align="left" style="height: 32px">
<asp:ImageButton ID="btnSearch" runat="server" ImageUrl="~/Images/confirm.gif" OnClick="btnSearch_Click" />
<asp:ImageButton ID="btnCancel" runat="server" ImageUrl="~/Images/cancel.gif" OnClick="imgbtnCancel_Click" />
</td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td>
<asp:GridView ID="gvFileT" runat="server" AllowPaging="True" AllowSorting="True"
AutoGenerateColumns="False" HorizontalAlign="Justify" PageSize="12" Width="100%"
OnDataBound="gvFileT_DataBound" OnRowCommand="gvFileT_RowCommand" DataSourceID="ObjectDataSource1">
<AlternatingRowStyle CssClass="GridBgColr" />
<Columns>
<asp:TemplateField HeaderText="序号" HeaderStyle-Width="5%" ItemStyle-HorizontalAlign="Center"
ItemStyle-Height="20px">
<ItemTemplate>
<%# gvFileT.PageIndex * gvFileT.PageSize + Container.DataItemIndex + 1%>
</ItemTemplate>
<HeaderStyle Width="5%"></HeaderStyle>
<ItemStyle HorizontalAlign="Center" Height="20px"></ItemStyle>
</asp:TemplateField>
<asp:BoundField DataField="FileCode" HeaderText="文件编号">
<HeaderStyle Width="10%" />
</asp:BoundField>
<asp:TemplateField HeaderText="文件名称" ItemStyle-HorizontalAlign="Left">
<ItemTemplate>
<asp:LinkButton ID="LinkButton1" runat="server" CommandName="click" CssClass="ItemLink"
Text='<%# Bind("FileName") %>' CommandArgument='<%# Bind("FileId") %>' ToolTip="编辑"></asp:LinkButton>
</ItemTemplate>
<HeaderStyle Width="28%" />
<ItemStyle HorizontalAlign="Left"></ItemStyle>
</asp:TemplateField>
<asp:BoundField DataField="BigType" HeaderText="模板类型">
<HeaderStyle Width="15%" />
</asp:BoundField>
<asp:BoundField DataField="SmallType" HeaderText="适用范围">
<HeaderStyle Width="10%" />
</asp:BoundField>
<asp:TemplateField HeaderText="文件大小">
<ItemTemplate>
<asp:Label ID="Label4" runat="server" Text='<%# ConvertSize(Eval("FileSize")) %>'></asp:Label>
</ItemTemplate>
<ItemStyle Width="10%" />
</asp:TemplateField>
<asp:BoundField DataField="FileCreate" HeaderText="创建人">
<HeaderStyle Width="10%" />
</asp:BoundField>
<asp:TemplateField HeaderText="查看" HeaderStyle-Width="5%" ItemStyle-HorizontalAlign="Center">
<ItemTemplate>
<asp:LinkButton ID="lbtnFind" runat="server" Text="查看" CssClass="ItemLink" CommandArgument='<%# Bind("FileId") %>'
CommandName="find" ToolTip="查看模板内容"></asp:LinkButton>
</ItemTemplate>
<HeaderStyle Width="5%"></HeaderStyle>
<ItemStyle HorizontalAlign="Center"></ItemStyle>
</asp:TemplateField>
<asp:TemplateField HeaderText="删除">
<ItemTemplate>
<asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/Images/DeleteBtn.gif"
CommandArgument='<%# Bind("FileId") %>' CommandName="Del" OnClientClick="return confirm(&quot;确定要删除此模板吗?&quot;)"
ToolTip="删除" />
</ItemTemplate>
<HeaderStyle Width="5%" />
</asp:TemplateField>
</Columns>
<HeaderStyle CssClass="GridBgColr" />
<PagerStyle HorizontalAlign="Left" />
<RowStyle CssClass="GridRow" />
<PagerTemplate>
<uc1:GridNavgator runat="server" ID="GridNavgator1" />
</PagerTemplate>
</asp:GridView>
<asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="GetListData"
TypeName="BLL.Common_FileManageService" EnablePaging="True" OnSelecting="ObjectDataSource1_Selecting"
SelectCountMethod="GetListCount">
<SelectParameters>
<asp:Parameter Name="bigType" />
<asp:Parameter Name="fileName" />
</SelectParameters>
</asp:ObjectDataSource>
</td>
</tr>
</table>
<asp:ValidationSummary ID="ValidationSummary1" Style="z-index: 101; left: 8px; position: absolute;
top: 8px" runat="server" HeaderText="请注意!" ShowMessageBox="True" ShowSummary="False"
ValidationGroup="Save" />
</form>
</body>
</html>
@@ -0,0 +1,2 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Read.aspx.cs" Inherits="FineUIPro.Web.Common.FileManager.Read" %>
@@ -0,0 +1,2 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Save.aspx.cs" Inherits="FineUIPro.Web.Common.FileManager.Save" %>
@@ -0,0 +1,767 @@
//以下是程序引用页面的定义
var editMScode = "EditOffice.aspx"; //编辑MS OFFICE文档页面程序
var editWPScode = "editwps.aspx"; //编辑WPS文档页面程序
var savecode = "Save.aspx"; //提交文档程序程序
var readcode = "Read.aspx"; //读取后台二进制数据程序
var delcode = "delete.aspx"; //执行数据删除后台程序
//以下变量为JS公共变量
var TANGER_OCX_bDocOpen = false;
var TANGER_OCX_filename; //文件名称
var filetype; //文件类型
var savetype; //文件提交类型
var TANGER_OCX_actionURL; //For auto generate form fiields
var TANGER_OCX_OBJ; //控件对象
var TANGER_OCX_Username = "匿名用户"; //User Name
var TANGER_OCX_key = ""; //设置加载印章的key
var IsFileOpened; //控件是否打开文档
var svisble = true; //印章显示状态
var url = ""; //初始化URL值
var newwin, newdoc;
//创建新的文档
function CreatNew(newofficetype) {
//根据传递文档类型参数新建文档
switch (newofficetype) {
case "1":
openoffice(url, newofficetype)
break
case "2":
openoffice(url, newofficetype)
break
case "3":
openoffice(url, newofficetype)
break
case "4":
openoffice(url, newofficetype)
break
case "5":
openoffice(url, newofficetype)
break
default:
openoffice(url, "1")
break;
}
}
function openoffice(url, newofficetype) {
window.open(editMScode + "?newofficetype=" + newofficetype + "&url=" + url, "editoffice", "top=0,left=0,scrollbars=yes,resizable=yes");
}
//当前表单不可编辑,当整个表单只读时调用
function FormDisabled(bool) {
var formid = document.forms.item(0)
var elelength = formid.length;
for (var i = 0; i < elelength; i++)
{ formid.elements[i].disabled = bool; }
//下面是控件标题栏,状态栏,工具栏,菜单栏不显示
TANGER_OCX_OBJ.TitleBar = !bool;
TANGER_OCX_OBJ.Statusbar = !bool;
TANGER_OCX_OBJ.ToolBars = !bool;
TANGER_OCX_OBJ.Menubar = !bool;
document.getElementById("editmain_left").style.display = "none";
document.getElementById("editmain_right").style.width = "95%";
}
//示例程序帮助文档
function NtkoHelp() {
window.open("help.htm", "help");
}
//编辑文档
function editoffice(url, newofficetype) {
TANGER_OCX_OBJ = document.getElementById("TANGER_OCX"); //;初始化控件对象
//根据文档URL和newofficetype编辑文档,如果有url是编辑已有文档,如果为空根据newofficetype新建文档
if ((typeof (url) != "undefined") && (url != "")) {
var filename = document.all("filename").value;
// alert(filename);
try { TANGER_OCX_OBJ.BeginOpenFromURL("uploadOfficeFile/" + filename); } catch (err) { };
}
else {
switch (newofficetype) {
//新建文档
case "1":
TANGER_OCX_OBJ.CreateNew("word.document"); //word文档
break
case "2":
TANGER_OCX_OBJ.CreateNew("excel.sheet"); //excel电子表格
break
case "3":
TANGER_OCX_OBJ.CreateNew("PowerPoint.Show"); //微软幻灯片
break
case "4":
TANGER_OCX_OBJ.CreateNew("WPS.Document"); //金山文档
break
case "5":
TANGER_OCX_OBJ.CreateNew("ET.WorkBook"); //金山电子表格
break
default:
alert("文档编辑出错!")
break
}
}
}
function intializePage() {
TANGER_OCX_OBJ = document.all("TANGER_OCX");
}
//文档编辑页面关闭事件
function onPageClose() {
if (IsFileOpened) {
if (!TANGER_OCX_OBJ.ActiveDocument.Saved) {
if (confirm("文档修改过,还没有提交,是否需要提交?")) {
saveFileToUrl();
}
}
}
}
function TANGER_OCX_OpenDoc(fileUrl) {
if (fileUrl != null || fileUrl != "") {
TANGER_OCX_OBJ.BeginOpenFromURL(fileUrl);
}
else {
alert("dd");
TANGER_OCX_OBJ.BegingOpenFromURL("templateFile/newWordTemplate.doc")
}
}
function TANGER_OCX_OpenDoc1(URL, newofficetype) {
TANGER_OCX_OBJ = document.getElementById("TANGER_OCX");
if ((typeof (URL) != "undefined") && (URL != "")) {
try { TANGER_OCX_OBJ.BeginOpenFromURL(URL); } catch (err) { };
}
else {
try {
switch (newofficetype) {
//新建文档
case "1":
TANGER_OCX_OBJ.CreateNew("word.document"); //word文档
break
case "2":
TANGER_OCX_OBJ.CreateNew("excel.sheet"); //excel电子表格
break
case "3":
TANGER_OCX_OBJ.CreateNew("PowerPoint.Show"); //微软幻灯片
break
case "4":
TANGER_OCX_OBJ.CreateNew("WPS.Document"); //金山文档
break
case "5":
TANGER_OCX_OBJ.CreateNew("ET.WorkBook"); //金山电子表格
break
default:
alert("文档编辑出错!")
break
}
} catch (err) { };
}
}
//设置文件是打开还是关闭
function setFileOpenedOrClosed(bool) {
IsFileOpened = bool;
fileType = TANGER_OCX_OBJ.DocType;
}
function trim(str) { //删除左右两端的空格
return str.replace(/(^\s*)|(\s*$)/g, "");
}
function erropen(retHTML) {
newwin = window.open("", "_blank", "left=200,top=200,width=400,height=300,status=0,toolbar=0,menubar=0,location=0,scrollbars=1,resizable=1", false);
newdoc = newwin.document;
newdoc.open();
newdoc.write("<html><head><title>返回的数据</title></head><body><center><hr>")
newdoc.write(retHTML + "kdkd<hr>");
newdoc.write("<input type=button VALUE='关闭窗口' onclick='window.close();'>");
newdoc.write('</center></body></html>');
newdoc.close();
}
//提交office文档
function saveFileToUrl() {
var fileName = trim(document.all("txtFileName").value);
if (fileName.length == 0) { alert("请输入文件名称!"); document.all("txtFileName").focus(); return false; } //判断文件标题输入域
var result, filedot;
if (IsFileOpened) {
switch (TANGER_OCX_OBJ.doctype) {
case 1:
fileType = "Word.Document";
filedot = ".doc";
break;
case 2:
fileType = "Excel.Sheet";
filedot = ".xls";
break;
case 3:
fileType = "PowerPoint.Show";
filedot = ".ppt";
break;
case 4:
fileType = "Visio.Drawing";
filedot = ".vso"
break;
case 5:
fileType = "MSProject.Project";
filedot = ".pro";
break;
case 6:
fileType = "WPS Doc";
filedot = ".wps";
break;
case 7:
fileType = "Kingsoft Sheet";
filedot = ".et";
break;
default:
fileType = "unkownfiletype";
filedot = ".doc";
}
retHTML = TANGER_OCX_OBJ.saveToURL(savecode, //提交到的url地址
"EDITFILE", //文件域的id,类似<input type=file id=upLoadFile 中的id
"savetype=1&fileType=" + fileType, //与控件一起提交的参数,savetype参数为要提交的文件格式office,html,pdf。filetype参数提交文件类型
fileName + filedot, //上传文件的名称,类似<input type=file 的value
0 //与控件一起提交的表单id,也可以是form的序列号,这里应该是0.
);
switch (TANGER_OCX_OBJ.StatusCode) {
case 0:
alert("文件提交成功");
TANGER_OCX_OBJ.ActiveDocument.Saved = true;
window.close();
parent.location.reload();
//window.opener.location.href = window.opener.location.href; //新框架这代码用不了(window.opener为空)
// var indexa = retHTML.indexOf("ID:");
// var indexb = retHTML.indexOf("</br>");
// var locationhref = retHTML.substring(indexa + 3, indexb);
// window.location.href = editMScode + "?&url=" + locationhref;
break;
case 1:
erropen(retHTML);
break;
case 2:
erropen(retHTML);
break;
case 3:
erropen(retHTML);
break;
case 4:
erropen(retHTML);
break;
case 5:
erropen(retHTML);
break;
case 6:
erropen(retHTML);
break;
case 100:
erropen(retHTML);
break;
}
}
else {
alert("不能执行提交,没有编辑文档!");
}
}
//提交office文档1
function saveFileToUrl1() {
var fileName = "test.doc";
if (fileName.length == 0) { alert("请输入文件标题!"); document.all("filetitle").focus(); return false; } //判断文件标题输入域
var result,
retHTML = TANGER_OCX_OBJ.saveToURL(savecode, //提交到的url地址
"EDITFILE", //文件域的id,类似<input type=file id=upLoadFile 中的id
"savetype=1&fileType=doc", //与控件一起提交的参数,savetype参数为要提交的文件格式office,html,pdf。filetype参数提交文件类型
fileName, //上传文件的名称,类似<input type=file 的value
0 //与控件一起提交的表单id,也可以是form的序列号,这里应该是0.
);
newwin = window.open("", "_blank", "left=200,top=200,width=400,height=300,status=0,toolbar=0,menubar=0,location=0,scrollbars=1,resizable=1", false);
newdoc = newwin.document;
newdoc.open();
newdoc.write("<center><hr>" + retHTML + "<hr><input type=button VALUE='关闭窗口' onclick='window.close();if(window.opener){window.opener.location.reload()};'></center>");
newdoc.close();
window.opener.focus();
}
//提交文档为html文件到服务器
function saveFileAsHtmlToUrl() {
var fileName = trim(document.all("filetitle").value);
if (fileName.length == 0) { alert("请输入文件标题!"); document.all("filetitle").focus(); return false; } //判断文件标题输入域
var result, filedot;
if (IsFileOpened) {
switch (TANGER_OCX_OBJ.doctype) {
case 1:
fileType = "Word.Document";
filedot = ".doc";
break;
case 2:
fileType = "Excel.Sheet";
filedot = ".xls";
break;
case 3:
fileType = "PowerPoint.Show";
filedot = ".ppt";
break;
case 4:
fileType = "Visio.Drawing";
filedot = ".vso"
break;
case 5:
fileType = "MSProject.Project";
filedot = ".pro";
break;
case 6:
fileType = "WPS Doc";
filedot = ".wps";
break;
case 7:
fileType = "Kingsoft Sheet";
filedot = ".et";
break;
default:
fileType = "unkownfiletype";
filedot = ".doc";
}
retHTML = TANGER_OCX_OBJ.PublishAsHTMLToURL(savecode, //提交到的url地址
"EDITFILE", //文件域的id,类似<input type=file id=upLoadFile 中的id
"savetype=2&fileType=" + fileType, //与控件一起提交的参数,savetype参数为要提交的文件格式office,html,pdf。filetype参数提交文件类型
fileName, //上传文件的名称,类似<input type=file 的value
0 //与控件一起提交的表单id,也可以是form的序列号,这里应该是0.
);
newwin = window.open("", "_blank", "left=200,top=200,width=400,height=300,status=0,toolbar=0,menubar=0,location=0,scrollbars=1,resizable=1", false);
newdoc = newwin.document;
newdoc.open();
newdoc.write("<center><hr>" + retHTML + "<hr><input type=button VALUE='关闭窗口' onclick='window.close();if(window.opener){window.opener.location.reload()};'></center>");
newdoc.close();
window.opener.focus();
}
else {
alert("不能执行提交,没有编辑文档!");
}
}
//保护文档为pdf格式
function saveFileAsPdfToUrl() {
var fileName = trim(document.all("filetitle").value);
if (fileName.length == 0) { alert("请输入文件标题!"); document.all("filetitle").focus(); return false; } //判断文件标题输入域
var result, filedot;
if (IsFileOpened && TANGER_OCX_OBJ.IsPDFCreatorInstalled()) {
switch (TANGER_OCX_OBJ.doctype) {
case 1:
fileType = "Word.Document";
filedot = ".doc";
break;
case 2:
fileType = "Excel.Sheet";
filedot = ".xls";
break;
case 3:
fileType = "PowerPoint.Show";
filedot = ".ppt";
break;
case 4:
fileType = "Visio.Drawing";
filedot = ".vso"
break;
case 5:
fileType = "MSProject.Project";
filedot = ".pro";
break;
case 6:
fileType = "WPS Doc";
filedot = ".wps";
break;
case 7:
fileType = "Kingsoft Sheet";
filedot = ".et";
break;
default:
fileType = "unkownfiletype";
filedot = ".doc";
}
TANGER_OCX_OBJ.PublishAsPDFToURL(savecode, //提交到的url地址
"EDITFILE", //文件域的id,类似<input type=file id=upLoadFile 中的id
"savetype=3&fileType=" + fileType, //与控件一起提交的参数,savetype参数为要提交的文件格式office,html,pdf。filetype参数提交文件类型
fileName + filedot, //上传文件的名称,类似<input type=file 的value
0, //与控件一起提交的表单id,也可以是form的序列号,这里应该是0.
null, //sheetname,提交excel的哪个表格
true, //IsShowUI,是否显示提交界面
false, // IsShowMsg,是否显示提交成功信息
false, // IsUseSecurity,是否使用安全特性
null, // OwnerPass,安全密码.可直接传值
false, //IsPermitPrint,是否允许打印
true //IsPermitCopy,是否允许拷贝
);
}
else {
alert("不能执行提交,没有编辑文档或者没有安装PDF虚拟打印机!");
}
}
function testFunction() {
alert(IsFileOpened);
}
function addServerSecSign() {
var signUrl = document.all("secSignFileUrl").options[document.all("secSignFileUrl").selectedIndex].value;
if (IsFileOpened) {
if (TANGER_OCX_OBJ.doctype == 1 || TANGER_OCX_OBJ.doctype == 2) {
try {
alert("正式版本用户请插入EKEY!\r\n\r\n此为电子印章系统演示功能,请购买正式版本!");
TANGER_OCX_OBJ.AddSecSignFromURL("ntko", signUrl);
}
catch (error) { }
}
else
{ alert("不能在该类型文档中使用安全签名印章."); }
}
}
function addLocalSecSign() {
if (IsFileOpened) {
if (TANGER_OCX_OBJ.doctype == 1 || TANGER_OCX_OBJ.doctype == 2) {
try
{ TANGER_OCX_OBJ.AddSecSignFromLocal("ntko", ""); }
catch (error) { }
}
else
{ alert("不能在该类型文档中使用安全签名印章."); }
}
}
function addEkeySecSign() {
if (IsFileOpened) {
if (TANGER_OCX_OBJ.doctype == 1 || TANGER_OCX_OBJ.doctype == 2) {
try
{ TANGER_OCX_OBJ.AddSecSignFromEkey("ntko"); }
catch (error) { }
}
else
{ alert("不能在该类型文档中使用安全签名印章."); }
}
}
function addHandSecSign() {
if (IsFileOpened) {
if (TANGER_OCX_OBJ.doctype == 1 || TANGER_OCX_OBJ.doctype == 2) {
try
{ TANGER_OCX_OBJ.AddSecHandSign("ntko"); }
catch (error) { }
}
else
{ alert("不能在该类型文档中使用安全签名印章."); }
}
}
function addServerSign(signUrl) {
if (IsFileOpened) {
try {
TANGER_OCX_OBJ.AddSignFromURL("ntko", //印章的用户名
signUrl, //印章所在服务器相对url
100, //左边距
100, //上边距 根据Relative的设定选择不同参照对象
"ntko", //调用DoCheckSign函数签名印章信息,用来验证印章的字符串
3, //Relative,取值1-4。设置左边距和上边距相对以下对象所在的位置 1:光标位置;2:页边距;3:页面距离 4:默认设置栏,段落
100, //缩放印章,默认100%
1); //0印章位于文字下方,1位于上方
}
catch (error) { }
}
}
function addLocalSign() {
if (IsFileOpened) {
try {
TANGER_OCX_OBJ.AddSignFromLocal("ntko", //印章的用户名
"", //缺省文件名
true, //是否提示选择
100, //左边距
100, //上边距 根据Relative的设定选择不同参照对象
"ntko", //调用DoCheckSign函数签名印章信息,用来验证印章的字符串
3, //Relative,取值1-4。设置左边距和上边距相对以下对象所在的位置 1:光标位置;2:页边距;3:页面距离 4:默认设置栏,段落
100, //缩放印章,默认100%
1); //0印章位于文字下方,1位于上方
}
catch (error) { }
}
}
function addPicFromUrl(picURL) {
if (IsFileOpened) {
if (TANGER_OCX_OBJ.doctype == 1 || TANGER_OCX_OBJ.doctype == 2) {
try {
TANGER_OCX_OBJ.AddPicFromURL(picURL, //图片的url地址可以时相对或者绝对地址
false, //是否浮动,此参数设置为false时,top和left无效
100, //left 左边距
100, //top 上边距 根据Relative的设定选择不同参照对象
1, //Relative,取值1-4。设置左边距和上边距相对以下对象所在的位置 1:光标位置;2:页边距;3:页面距离 4:默认设置栏,段落
100, //缩放印章,默认100%
1); //0印章位于文字下方,1位于上方
}
catch (error) { }
}
else
{ alert("不能在该类型文档中使用安全签名印章."); }
}
}
function addPicFromLocal() {
if (IsFileOpened) {
try {
TANGER_OCX_OBJ.AddPicFromLocal("", //印章的用户名
true, //缺省文件名
false, //是否提示选择
100, //左边距
100, //上边距 根据Relative的设定选择不同参照对象
1, //Relative,取值1-4。设置左边距和上边距相对以下对象所在的位置 1:光标位置;2:页边距;3:页面距离 4:默认设置栏,段落
100, //缩放印章,默认100%
1); //0印章位于文字下方,1位于上方
}
catch (error) { }
}
}
function TANGER_OCX_AddDocHeader(strHeader) {
if (!IsFileOpened)
{ return; }
var i, cNum = 30;
var lineStr = "";
try {
for (i = 0; i < cNum; i++) lineStr += "_"; //生成下划线
with (TANGER_OCX_OBJ.ActiveDocument.Application) {
Selection.HomeKey(6, 0); // go home
Selection.TypeText(strHeader);
Selection.TypeParagraph(); //换行
Selection.TypeText(lineStr); //插入下划线
// Selection.InsertSymbol(95,"",true); //插入下划线
Selection.TypeText("★");
Selection.TypeText(lineStr); //插入下划线
Selection.TypeParagraph();
//Selection.MoveUp(5, 2, 1); //上移两行,且按住Shift键,相当于选择两行
Selection.HomeKey(6, 1); //选择到文件头部所有文本
Selection.ParagraphFormat.Alignment = 1; //居中对齐
with (Selection.Font) {
NameFarEast = "宋体";
Name = "宋体";
Size = 12;
Bold = false;
Italic = false;
Underline = 0;
UnderlineColor = 0;
StrikeThrough = false;
DoubleStrikeThrough = false;
Outline = false;
Emboss = false;
Shadow = false;
Hidden = false;
SmallCaps = false;
AllCaps = false;
Color = 255;
Engrave = false;
Superscript = false;
Subscript = false;
Spacing = 0;
Scaling = 100;
Position = 0;
Kerning = 0;
Animation = 0;
DisableCharacterSpaceGrid = false;
EmphasisMark = 0;
}
Selection.MoveDown(5, 3, 0); //下移3行
}
}
catch (err) {
alert("错误:" + err.number + ":" + err.description);
}
finally {
}
}
function insertRedHeadFromUrl(headFileURL) {
if (TANGER_OCX_OBJ.doctype != 1)//TANGER_OCX_OBJ.doctype=1为word文档
{ return; }
TANGER_OCX_OBJ.ActiveDocument.Application.Selection.HomeKey(6, 0); //光标移动到文档开头
TANGER_OCX_OBJ.addtemplatefromurl(headFileURL); //在光标位置插入红头文档
}
function insertRedButtomFromUrl(headFileURL) {
if (TANGER_OCX_OBJ.doctype != 1)//TANGER_OCX_OBJ.doctype=1为word文档
{ return; }
TANGER_OCX_OBJ.ActiveDocument.Application.Selection.EndKey(6, 0);
TANGER_OCX_OBJ.ActiveDocument.Application.Selection.TypeParagraph();
TANGER_OCX_OBJ.addtemplatefromurl(headFileURL); //在光标位置插入红头文档
}
function openTemplateFileFromUrl(templateUrl) {
TANGER_OCX_OBJ.openFromUrl(templateUrl);
}
function doHandSign() {
/*if(TANGER_OCX_OBJ.doctype==1||TANGER_OCX_OBJ.doctype==2)//此处设置只允许在word和excel中盖章.doctype=1是"word"文档,doctype=2是"excel"文档
{*/
TANGER_OCX_OBJ.DoHandSign2(
"ntko", //手写签名用户名称
"ntko", //signkey,DoCheckSign(检查印章函数)需要的验证密钥。
0, //left
0, //top
1, //relative,设定签名位置的参照对象.0:表示按照屏幕位置插入,此时,Left,Top属性不起作用。1:光标位置;2:页边距;3:页面距离 4:默认设置栏,段落(为兼容以前版本默认方式)
100);
//}
}
// 存为本地文件
function WebSaveLocal() {
TANGER_OCX_OBJ.ShowDialog(3);
}
// 打开本地文件
function WebOpenLocal() {
TANGER_OCX_OBJ.ShowDialog(1);
}
// 打印预览
function PrintPreview() {
TANGER_OCX_OBJ.PrintPreview();
}
// 页面设置
function WebPageSetup() {
TANGER_OCX_OBJ.showDialog(5);
}
//isBackground参数可以控制是前台打印还是后台打印。对于比较大的文档,如果确认必须等待用户打印完毕,可以调用TANGER_OCX_PrintDoc(false);函数来进行前台打印。
function TANGER_OCX_PrintDoc(isBackground) {
var oldOption;
try {
var objOptions = TANGER_OCX_OBJ.ActiveDocument.Application.Options;
oldOption = objOptions.PrintBackground;
objOptions.PrintBackground = isBackground;
}
catch (err) { };
TANGER_OCX_OBJ.printout(true);
try {
var objOptions = TANGER_OCX_OBJ.ActiveDocument.Application.Options;
objOptions.PrintBackground = oldOption;
}
catch (err) { };
}
function SetReviewMode(boolvalue) {
if (TANGER_OCX_OBJ.doctype == 1) {
TANGER_OCX_OBJ.ActiveDocument.TrackRevisions = boolvalue; //设置是否保留痕迹
}
}
function setShowRevisions(boolevalue) {
if (TANGER_OCX_OBJ.doctype == 1) {
TANGER_OCX_OBJ.ActiveDocument.ShowRevisions = boolevalue; //设置是否显示痕迹
}
}
//接受或者取消所有修订
function TANGER_OCX_AllRevisions(bool) {
if (bool) {
TANGER_OCX_OBJ.ActiveDocument.AcceptAllRevisions(); //接受所有的痕迹修订
}
else {
TANGER_OCX_OBJ.ActiveDocument.Application.WordBasic.RejectAllChangesInDoc(); //拒绝所有的痕迹修订
}
}
function setFilePrint(boolvalue) {
TANGER_OCX_OBJ.fileprint = boolvalue; //是否允许打印
}
function setFileNew(boolvalue) {
TANGER_OCX_OBJ.FileNew = boolvalue; //是否允许新建
}
function setFileSaveAs(boolvalue) {
TANGER_OCX_OBJ.FileSaveAs = boolvalue; //是否允许另存为
}
function setIsNoCopy(boolvalue) {
TANGER_OCX_OBJ.IsNoCopy = boolvalue; //是否禁止粘贴
}
function DoCheckSign() {
if (IsFileOpened) {
var ret = TANGER_OCX_OBJ.DoCheckSign
(
false, /*可选参数 IsSilent 缺省为FAlSE,表示弹出验证对话框,否则,只是返回验证结果到返回值*/
"ntko"//使用盖章时的signkey,这里为"ntko"
); //返回值,验证结果字符串
//alert(ret);
}
}
function setToolBar() {
TANGER_OCX_OBJ.ToolBars = !TANGER_OCX_OBJ.ToolBars;
}
function setMenubar() {
TANGER_OCX_OBJ.Menubar = !TANGER_OCX_OBJ.Menubar;
}
function setInsertMemu() {
TANGER_OCX_OBJ.IsShowInsertMenu = !TANGER_OCX_OBJ.IsShowInsertMenu;
}
function setEditMenu() {
TANGER_OCX_OBJ.IsShowEditMenu = !TANGER_OCX_OBJ.IsShowEditMenu;
}
function setToolMenu() {
TANGER_OCX_OBJ.IsShowToolMenu = !TANGER_OCX_OBJ.IsShowToolMenu;
}
//增加自定义菜单
function initCustomMenus1() {
var myobj = TANGER_OCX_OBJ;
for (var menuPos = 0; menuPos < 1; menuPos++) {
myobj.AddCustomMenu2(menuPos, "常用功能" + "(&" + menuPos + ")");
for (var submenuPos = 0; submenuPos < 1; submenuPos++) {
myobj.AddCustomMenuItem2(menuPos, submenuPos, -1, true, "打印设置", false);
//增加子菜单项目
for (var subsubmenuPos = 0; subsubmenuPos < 3; subsubmenuPos++) {
if (0 == subsubmenuPos)//增加子菜单项目
{
myobj.AddCustomMenuItem2(menuPos, submenuPos, subsubmenuPos, false,
"设置打印区域", false, menuPos * 100 + submenuPos * 20 + subsubmenuPos);
}
if (1 == subsubmenuPos)//增加子菜单项目
{
myobj.AddCustomMenuItem2(menuPos, submenuPos, subsubmenuPos, false,
"取消打印区域", false, menuPos * 100 + submenuPos * 20 + subsubmenuPos);
}
if (2 == subsubmenuPos) {
myobj.AddCustomMenuItem2(menuPos, submenuPos, subsubmenuPos, false,
"手写批注", false, menuPos * 100 + submenuPos * 20 + subsubmenuPos);
}
}
}
}
}
//控件控制
function controlStyle() {
var myobj = TANGER_OCX_OBJ;
for (var menuPos = 0; menuPos < 1; menuPos++) {
myobj.AddCustomMenu2(menuPos, "控件样式" + "(&" + menuPos + ")");
for (var submenuPos = 0; submenuPos < 1; submenuPos++) {
myobj.AddCustomMenuItem2(menuPos, submenuPos, -1, true, "改变大小", false);
//增加子菜单项目
for (var subsubmenuPos = 0; subsubmenuPos < 2; subsubmenuPos++) {
if (0 == subsubmenuPos)//增加子菜单项目
{
myobj.AddCustomMenuItem2(menuPos, submenuPos, subsubmenuPos, false,
"全网页查看", false, menuPos * 100 + submenuPos * 20 + subsubmenuPos);
}
if (1 == subsubmenuPos)//增加子菜单项目
{
myobj.AddCustomMenuItem2(menuPos, submenuPos, subsubmenuPos, false,
"恢复原大小", false, menuPos * 100 + submenuPos * 20 + subsubmenuPos);
}
}
}
}
}
//改变控件大小为当前网页可见区域
function objside() {
document.all.officecontrol.style.position = "absolute";
document.all.officecontrol.style.left = "0px";
document.all.officecontrol.style.top = "0px";
document.all.officecontrol.style.width = document.body.clientWidth; //网页可见区域宽
document.all.officecontrol.style.height = document.body.clientHeight; //网页可见区域高
}
//恢复控件显示大小
function objside2() {
document.all.officecontrol.style.position = "relative";
document.all.officecontrol.style.left = "0px";
document.all.officecontrol.style.top = "0px";
document.all.officecontrol.style.width = "100%";
document.all.officecontrol.style.height = "980px";
}
//显示或隐藏文档控件对象
function ObjectDisplay(boolvalue) {
var obj = document.getElementById("objside");
if (!boolvalue) {
obj.style.display = "none";
}
else {
obj.style.display = "block";
}
}
@@ -0,0 +1,93 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MainGdazServer.aspx.cs" Inherits="FineUIPro.Web.common.MainGdazServer" %>
<!DOCTYPE html>
<html>
<head id="Head1" 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="Panel2" />
<f:Panel ID="Panel2" runat="server" ShowBorder="True" Layout="VBox" ShowHeader="false"
BodyPadding="5">
<Items>
<f:Panel ID="Panel1" BoxFlex="1" runat="server" ShowBorder="false" ShowHeader="false"
Layout="HBox" BoxConfigChildMargin="0 5 0 0" MarginBottom="5">
<Items>
<f:Panel ID="Panel3" BoxFlex="1" runat="server" ShowBorder="true" Title="项目访问"
ShowHeader="true" AutoScroll="true">
<Toolbars>
<f:Toolbar ID="Toolbar2" Position="Top" runat="server" ToolbarAlign="Right">
<Items>
<f:TextBox ID="txtProjectCode" runat="server" Label="项目号" EmptyText="输入项目号查询"
Width="250px" LabelWidth="70px">
</f:TextBox>
<f:Button runat="server" ID="btnSelect" Icon="Find" OnClick="btnSelect_Click" ToolTip="根据所选项目查询">
</f:Button>
<f:ToolbarFill ID="ToolbarFill1" runat="server">
</f:ToolbarFill>
</Items>
</f:Toolbar>
</Toolbars>
<Items>
<f:Grid ID="GridProject" ShowBorder="false" ShowHeader="false" EnableCollapse="true"
ShowGridHeader="false" runat="server" BoxFlex="0" DataKeyNames="ProjectId"
AllowSorting="true" SortField="ProjectCode" SortDirection="DESC"
AllowPaging="true" IsDatabasePaging="true" PageSize="15" OnPageIndexChange="GridProject_PageIndexChange"
EnableColumnLines="false" EnableRowLines="false" DataIDField="ProjectId" OnRowCommand="GridProject_RowCommand">
<Columns>
<f:LinkButtonField EnableAjax="false" Width="90px" CommandName="project" DataTextField="ProjectCode"
ColumnID="ProjectId" DataToolTipField="ProjectCode" HeaderTextAlign="left" TextAlign="left" ExpandUnusedSpace="true" />
<f:RenderField ColumnID="ProjectName" DataField="ProjectName" FieldType="String"
HeaderTextAlign="left" TextAlign="left" Width="360px">
</f:RenderField>
</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="60px" AutoPostBack="true"
OnSelectedIndexChanged="ddlPageSize_SelectedIndexChanged">
<f:ListItem Text="15" Value="15" />
<f:ListItem Text="100" Value="100" />
<f:ListItem Text="500" Value="500" />
<f:ListItem Text="1000" Value="1000" />
</f:DropDownList>
</PageItems>
</f:Grid>
</Items>
</f:Panel>
<f:Panel ID="Panel4" BoxFlex="1" runat="server" ShowBorder="true" ShowHeader="true" Title="通知通告">
<Items>
</Items>
</f:Panel>
</Items>
</f:Panel>
<f:Panel ID="Panel5" BoxFlex="1" runat="server" ShowBorder="false" ShowHeader="false"
Layout="HBox" BoxConfigChildMargin="0 5 0 0">
<Items>
<f:Panel ID="Panel7" BoxFlex="1" runat="server" ShowBorder="true" ShowHeader="true">
<Items>
<f:Label ID="Label4" runat="server" Text="">
</f:Label>
</Items>
</f:Panel>
<f:Panel ID="Panel8" BoxFlex="1" runat="server" ShowBorder="true" ShowHeader="true">
<Items>
<f:Label ID="Label5" runat="server" Text="">
</f:Label>
</Items>
</f:Panel>
</Items>
</f:Panel>
</Items>
</f:Panel>
</form>
</body>
</html>
@@ -0,0 +1,154 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MainWeldMat.aspx.cs" Inherits="FineUIPro.Web.common.MainWeldMat" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<f:PageManager ID="PageManager1" runat="server" AutoSizePanelID="Panel2" AjaxAspnetControls="divArea1,divArea2,divArea3,divArea4,divArea5" />
<f:Panel ID="Panel2" runat="server" ShowBorder="True" Layout="VBox" ShowHeader="false"
AutoScroll="true" BodyPadding="5">
<items>
<f:Panel ID="Panel1" BoxFlex="1" runat="server" ShowBorder="false" ShowHeader="false" Height="90px"
Layout="HBox" BoxConfigChildMargin="0 5 0 0" MarginBottom="5">
<Items>
<f:Panel ID="Panel3" BoxFlex="1" runat="server" ShowBorder="true" Title="库存预警"
ShowHeader="true" AutoScroll="true">
<Items>
<f:Grid ID="gvStock" ShowBorder="false" ShowHeader="false" EnableCollapse="true"
ShowGridHeader="true" runat="server" BoxFlex="0" DataKeyNames="WeldId" AutoScroll="true"
EnableColumnLines="false" EnableRowLines="false" DataIDField="WeldId"
OnRowCommand="gvStock_RowCommand" >
<Columns>
<f:LinkButtonField EnableAjax="false" Width="150px" CommandName="WeldId" DataTextField="WeldName"
ColumnID="WeldId" HeaderText="焊材牌号" HeaderTextAlign="left" TextAlign="left" />
<f:RenderField Width="100px" ColumnID="WeldSpec" DataField="WeldSpec" FieldType="String"
HeaderText="规格" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
<f:RenderField Width="100px" ColumnID="StockAmount" DataField="StockAmount" FieldType="Float"
HeaderText="库存数量" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
</Columns>
</f:Grid>
</Items>
</f:Panel>
<f:Panel ID="Panel4" BoxFlex="1" runat="server" ShowBorder="true" ShowHeader="true" AutoScroll="true" Title="需求计划预警">
<Items>
<f:Grid ID="gvStockPlan" ShowBorder="false" ShowHeader="false" EnableCollapse="true"
ShowGridHeader="true" runat="server" BoxFlex="0" DataKeyNames="WeldId" AutoScroll="true"
EnableColumnLines="false" EnableRowLines="false" DataIDField="WeldId"
OnRowCommand="gvStockPlan_RowCommand" >
<Columns>
<f:LinkButtonField EnableAjax="false" Width="150px" CommandName="WeldId" DataTextField="WeldName"
ColumnID="WeldId" HeaderText="焊材牌号" HeaderTextAlign="left" TextAlign="left" />
<f:RenderField Width="100px" ColumnID="WeldSpec" DataField="WeldSpec" FieldType="String"
HeaderText="规格" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
<f:RenderField Width="100px" ColumnID="PlanAmount" DataField="PlanAmount" FieldType="Float"
HeaderText="计划数量" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
<f:RenderField Width="100px" ColumnID="StockAmount" DataField="StockAmount" FieldType="Float"
HeaderText="库存数量" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
</Columns>
</f:Grid>
</Items>
</f:Panel>
</Items>
</f:Panel>
<f:Panel ID="Panel5" BoxFlex="1" runat="server" ShowBorder="false" ShowHeader="false" Height="90px"
Layout="HBox" BoxConfigChildMargin="0 5 0 0" MarginBottom="5">
<Items>
<f:Panel ID="Panel6" BoxFlex="1" runat="server" ShowBorder="true" Title="当天领料计划明细"
ShowHeader="true" AutoScroll="true">
<Items>
<f:Grid ID="gvSupPlanUse" ShowBorder="false" ShowHeader="false" EnableCollapse="true"
ShowGridHeader="true" runat="server" BoxFlex="0" DataKeyNames="UsingPlanId" AutoScroll="true"
EnableColumnLines="false" EnableRowLines="false" DataIDField="UsingPlanId" >
<Toolbars>
<f:Toolbar ID="Toolbar5" Position="Top" runat="server" ToolbarAlign="Left">
<Items>
<f:RadioButtonList runat="server" ID="rblIsUsing" Width="200px" AutoPostBack="true" OnSelectedIndexChanged="rblIsUsing_OnSelectedIndexChanged">
<f:RadioItem Value="0" Text="未领用" Selected="true" />
<f:RadioItem Value="1" Text="已领用" />
<f:RadioItem Value="2" Text="全部" />
</f:RadioButtonList>
</Items>
</f:Toolbar>
</Toolbars>
<Columns>
<f:RenderField Width="120px" ColumnID="ProjectCode" DataField="ProjectCode" FieldType="String"
HeaderText="施工号" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
<f:LinkButtonField EnableAjax="false" Width="130px" CommandName="WeldId" DataTextField="WeldName"
ColumnID="WeldId" HeaderText="焊材牌号" HeaderTextAlign="left" TextAlign="left" />
<f:RenderField Width="75px" ColumnID="WeldTypeName" DataField="WeldTypeName" FieldType="String"
HeaderText="焊材类型" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
<f:RenderField Width="60px" ColumnID="WeldSpec" DataField="WeldSpec" FieldType="String"
HeaderText="规格" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
<f:RenderField Width="110px" ColumnID="OrderTime" DataField="OrderTime" FieldType="String"
HeaderText="时间段" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
<f:RenderField Width="75px" ColumnID="Amount" DataField="Amount" FieldType="Float"
HeaderText="计划数量" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
<f:RenderField Width="80px" ColumnID="UsingMan" DataField="UsingMan" FieldType="String"
HeaderText="领用人" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
<f:RenderField Width="80px" ColumnID="WED_Code" DataField="WED_Code" FieldType="String"
HeaderText="焊工号" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
<f:RenderField Width="80px" ColumnID="InPutMan" DataField="InPutMan" FieldType="String"
HeaderText="录入人" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
</Columns>
</f:Grid>
</Items>
</f:Panel>
<f:Panel ID="Panel7" BoxFlex="1" runat="server" ShowBorder="true" ShowHeader="true" AutoScroll="true" Title="当天领料计划提示">
<Items>
<f:Grid ID="gvUsingPlan" ShowBorder="false" ShowHeader="false" EnableCollapse="true"
ShowGridHeader="true" runat="server" BoxFlex="0" DataKeyNames="WeldId" AutoScroll="true"
EnableColumnLines="false" EnableRowLines="false" DataIDField="WeldId"
OnRowCommand="gvUsingPlan_RowCommand">
<Columns>
<f:LinkButtonField EnableAjax="false" Width="150px" CommandName="WeldId" DataTextField="WeldName"
ColumnID="WeldId" HeaderText="焊材牌号" HeaderTextAlign="left" TextAlign="left" />
<f:RenderField Width="75px" ColumnID="WeldTypeName" DataField="WeldTypeName" FieldType="String"
HeaderText="焊材类型" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
<f:RenderField Width="60px" ColumnID="WeldSpec" DataField="WeldSpec" FieldType="String"
HeaderText="规格" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
<f:RenderField Width="50px" ColumnID="Unit" DataField="Unit" FieldType="String"
HeaderText="单位" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
<f:RenderField Width="120px" ColumnID="OrderTime" DataField="OrderTime" FieldType="String"
HeaderText="时间段" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
<f:RenderField Width="75px" ColumnID="PlanAmount" DataField="PlanAmount" FieldType="Float"
HeaderText="计划数量" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
</Columns>
</f:Grid>
</Items>
</f:Panel>
</Items>
</f:Panel>
</items>
</f:Panel>
<f:Window ID="Window1" Title="弹出窗体" Hidden="true" EnableIFrame="true" EnableMaximize="true"
Target="Parent" EnableResize="true" runat="server" IsModal="true" Width="1200px"
Height="680px" OnClose="Window1_Close"></f:Window>
</form>
</body>
</html>
@@ -0,0 +1,16 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MainWelder.aspx.cs" Inherits="FineUIPro.Web.common.MainWelder" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
</div>
</form>
</body>
</html>
@@ -0,0 +1,131 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="APPFile.aspx.cs" Inherits="FineUIPro.Web.common.Notice.APPFile" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>手机APP上传内容</title>
<link href="../../res/css/common.css" rel="stylesheet" type="text/css" />
<style type="text/css">
.f-grid-row .f-grid-cell-inner
{
white-space: normal;
word-break: break-all;
}
</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" ShowHeader="false" Title="手机APP上传内容" EnableCollapse="true"
runat="server" BoxFlex="1" DataKeyNames="attach_image_id" AllowCellEditing="true"
ClicksToEdit="2" DataIDField="attach_image_id" AllowSorting="true" SortField="created_date"
SortDirection="DESC" OnSort="Grid1_Sort" EnableColumnLines="true" AllowPaging="true"
IsDatabasePaging="true" PageSize="10" OnPageIndexChange="Grid1_PageIndexChange" OnRowCommand="Grid1_RowCommand"
AllowFilters="true"
OnFilterChange="Grid1_FilterChange" EnableTextSelection="True">
<Toolbars>
<f:Toolbar ID="Toolbar1" Position="Top" runat="server" ToolbarAlign="Left">
<Items>
<f:TextBox runat="server" Label="文件系列" ID="txtimage_series" EmptyText="输入查询条件" AutoPostBack="true"
OnTextChanged="TextBox_TextChanged" LabelAlign="right" Width="200px" LabelWidth="80px">
</f:TextBox>
<f:TextBox runat="server" Label="文件名称" ID="txtfile_name" EmptyText="输入查询条件"
AutoPostBack="true" OnTextChanged="TextBox_TextChanged" LabelAlign="right" Width="250px">
</f:TextBox>
<f:DatePicker ID="txtStartcreated_date" runat="server" Label="创建时间" LabelAlign="Right"
AutoPostBack="true" OnTextChanged="TextBox_TextChanged" Width="200px">
</f:DatePicker>
<f:Label ID="Label1" runat="server" Text="至">
</f:Label>
<f:DatePicker ID="txtEndcreated_date" runat="server" AutoPostBack="true" OnTextChanged="TextBox_TextChanged" Width="100px">
</f:DatePicker>
<f:TextBox ID="txtcreated_by" runat="server" Label="创建人" LabelAlign="Right" AutoPostBack="true"
OnTextChanged="TextBox_TextChanged" Width="200px" EmptyText="输入查询条件" LabelWidth="80px">
</f:TextBox>
<f:ToolbarFill ID="ToolbarFill1" runat="server">
</f:ToolbarFill>
<f:Button ID="btnOut" OnClick="btnOut_Click" runat="server" ToolTip="导出" Icon="FolderUp"
EnableAjax="false" DisableControlBeforePostBack="false">
</f:Button>
</Items>
</f:Toolbar>
</Toolbars>
<Columns>
<f:TemplateField ColumnID="tfPageIndex" Width="50px" HeaderText="序号" HeaderTextAlign="Center"
TextAlign="Center" EnableLock="true" Locked="False">
<ItemTemplate>
<asp:Label ID="lblPageIndex" runat="server" Text='<%# Grid1.PageIndex * Grid1.PageSize + Container.DataItemIndex + 1 %>'></asp:Label>
</ItemTemplate>
</f:TemplateField>
<f:RenderField Width="150px" ColumnID="image_series" DataField="image_series" SortField="image_series"
FieldType="String" HeaderText="文件系列" TextAlign="Left" HeaderTextAlign="Center">
</f:RenderField>
<f:RenderField Width="200px" ColumnID="file_name" DataField="file_name"
SortField="file_name" FieldType="String" HeaderText="文件名称" TextAlign="Left"
HeaderTextAlign="Center">
</f:RenderField>
<f:RenderField Width="100px" ColumnID="file_type" DataField="file_type"
SortField="file_type" FieldType="String" HeaderText="文件类型" TextAlign="Left"
HeaderTextAlign="Center">
</f:RenderField>
<f:RenderField Width="100px" ColumnID="created_date" DataField="created_date"
SortField="created_date" FieldType="Date" Renderer="Date" HeaderText="创建时间"
TextAlign="Center" HeaderTextAlign="Center">
</f:RenderField>
<f:RenderField Width="90px" ColumnID="created_byManName" DataField="created_byManName" SortField="created_byManName"
FieldType="String" HeaderText="创建人" TextAlign="Left" HeaderTextAlign="Center">
</f:RenderField>
<f:RenderField Width="200px" ColumnID="series_desc" DataField="series_desc" SortField="series_desc" ExpandUnusedSpace="true"
FieldType="String" HeaderText="文件系列描述" TextAlign="Left" HeaderTextAlign="Center">
</f:RenderField>
<f:TemplateField ColumnID="tfImageUrl" Width="150px" HeaderText="文件" HeaderTextAlign="Center"
TextAlign="Left">
<ItemTemplate>
<asp:LinkButton ID="lbtnImageUrl" runat="server" Text='<%# ConvertImageUrl(Eval("attach_image_id")) %>'></asp:LinkButton>
</ItemTemplate>
</f:TemplateField>
<f:LinkButtonField Width="80px" HeaderText="删除" ConfirmText="确定要删除此条信息吗?" ConfirmTarget="Top"
CommandName="del" TextAlign="Center" ToolTip="删除" Icon="Delete" />
</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:DropDownList>
</PageItems>
</f:Grid>
</Items>
</f:Panel>
<f:Menu ID="Menu1" runat="server">
<Items>
<f:MenuButton ID="btnMenuDelete" OnClick="btnMenuDelete_Click" EnablePostBack="true"
ConfirmText="删除选中行?" ConfirmTarget="Top" runat="server" Text="删除">
</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;
}
</script>
</body>
</html>
@@ -0,0 +1,112 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AddNotice.aspx.cs" Inherits="FineUIPro.Web.common.Notice.AddNotice" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<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" />
<style type="text/css">
.labcenter
{
text-align: center;
}
</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"
Layout="VBox" BodyPadding="10px" runat="server" RedStarPosition="BeforeText"
LabelAlign="Right">
<Rows>
<f:FormRow>
<Items>
<f:TextBox ID="txtNoticeCode" runat="server" Label="通知编号" Required="true" ShowRedStar="true"
FocusOnPageLoad="true" MaxLength="30">
</f:TextBox>
<f:TextBox ID="txtNoticeTitle" runat="server" Label="通知标题" Required="true" ShowRedStar="true"
MaxLength="50">
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:DropDownList ID="drpClearUpMan" Label="整理人" AutoPostBack="false" EnableSimulateTree="true"
runat="server">
</f:DropDownList>
<f:DropDownList ID="drpIsRelease" Label="是否发布" AutoPostBack="false" EnableSimulateTree="true"
runat="server">
<f:ListItem Value="False" Text="未发布"/>
</f:DropDownList>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:LinkButton ID="btnAttachUrl" runat="server" Label="附件" LabelWidth="100px" ValidateForms="SimpleForm1" Text="上传和查看" OnClick="btnAttachUrl_Click"></f:LinkButton>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextArea ID="txtMainContent" runat="server" MaxLength="500" Label="主要内容"></f:TextArea>
</Items>
</f:FormRow>
<f:FormRow runat="server" ID="trSystems">
<Items>
<f:DropDownList ID="drpSystems" runat="server" Label="接收系统" EnableEdit="true" LabelWidth="80px"
LabelAlign="right" Width="340px" EnableMultiSelect="true">
</f:DropDownList>
</Items>
</f:FormRow>
<f:FormRow runat="server" ID="trProjects">
<Items>
<f:DropDownList ID="drpProjects" runat="server" Label="接收项目" EnableEdit="true" LabelWidth="80px"
LabelAlign="right" Width="340px" EnableMultiSelect="true">
</f:DropDownList>
</Items>
</f:FormRow>
</Rows>
<Rows>
<f:FormRow ColumnWidths="15% 85%">
<Items>
<f:Label ID="Label25" runat="server" Text="下一步流程设置" CssClass="labcenter">
</f:Label>
<f:Label ID="lbHidden" runat="server" Hidden="true"></f:Label>
</Items>
</f:FormRow>
</Rows>
<Rows>
<f:FormRow>
<Items>
<f:DropDownList ID="drpSignStep" Label="办理步骤" AutoPostBack="false" EnableSimulateTree="true"
runat="server">
<f:ListItem Value="2" Text="校核" />
</f:DropDownList>
<f:DropDownList ID="drpSignMan" Label="办理人员" AutoPostBack="false" EnableSimulateTree="true"
runat="server">
</f:DropDownList>
</Items>
</f:FormRow>
</Rows>
<Toolbars>
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
<Items>
<f:Button ID="btnSave" Icon="SystemSave" runat="server" Text="提交数据" ValidateForms="SimpleForm1"
OnClick="btnSave_Click" >
</f:Button>
<f:Button ID="btnClose" EnablePostBack="false" Text="关闭" runat="server" Icon="SystemClose">
</f:Button>
<f:HiddenField ID="hdCompileMan" runat="server">
</f:HiddenField>
</Items>
</f:Toolbar>
</Toolbars>
</f:Form>
<f:Window ID="WindowAtt" Title="弹出窗体" Hidden="true" EnableIFrame="true" EnableMaximize="true"
Target="Parent" EnableResize="true" runat="server" IsModal="true" Width="700px"
Height="500px">
</f:Window>
</form>
</body>
</html>
@@ -0,0 +1,140 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Notice.aspx.cs" Inherits="FineUIPro.Web.common.Notice.Notice" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<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 type="text/css">
.f-grid-row .f-grid-cell-inner
{
white-space: normal;
word-break: break-all;
}
</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" Title="通知信息" Layout="HBox">
<Items>
<f:Grid ID="Grid1" Title="通知信息" ShowHeader="false" EnableCollapse="true" PageSize="10" EnableColumnLines="true"
ShowBorder="true" AllowPaging="true" IsDatabasePaging="true" runat="server" Width="1110px"
DataKeyNames="NoticeId" DataIDField="NoticeId" OnPageIndexChange="Grid1_PageIndexChange"
OnRowCommand="Grid1_RowCommand" AllowFilters="true" OnFilterChange="Grid1_FilterChange">
<Toolbars>
<f:Toolbar ID="Toolbar2" Position="Top" runat="server">
<Items>
<f:RadioButtonList ID="rblType" runat="server" AutoPostBack="true" OnSelectedIndexChanged="rblType_SelectedIndexChanged"
Width="150px">
<f:RadioItem Value="0" Selected="True" Text="发出" />
<f:RadioItem Value="1" Text="接收" />
</f:RadioButtonList>
<f:Button ID="btnNew" Text="新增" Icon="Add" EnablePostBack="true" runat="server" OnClick="btnNew_Click">
</f:Button>
<f:Button ID="btnFinalFile" Text="定稿文件" Icon="Add" runat="server">
</f:Button>
</Items>
</f:Toolbar>
<f:Toolbar runat="server" ID="Toolbar4">
<Items>
<f:TextBox runat="server" EmptyText="输入通知编号" AutoPostBack="True" Label="通知编号" LabelWidth="70px"
Width="250px" ID="txtNoticeCode" OnTextChanged="TextBox_TextChanged">
</f:TextBox>
<f:DatePicker runat="server" Label="开始时间" LabelWidth="70px" Width="250px" ID="txtSartTime"
OnTextChanged="TextBox_TextChanged">
</f:DatePicker>
<f:DatePicker runat="server" Label="结束时间" LabelWidth="70px" Width="250px" ID="txtEndTime"
OnTextChanged="TextBox_TextChanged">
</f:DatePicker>
</Items>
</f:Toolbar>
</Toolbars>
<Columns>
<f:TemplateField Width="50px" HeaderText="序号" HeaderTextAlign="Center" TextAlign="Center">
<ItemTemplate>
<asp:Label ID="Label1" runat="server" Text='<%# Grid1.PageIndex * Grid1.PageSize+Container.DataItemIndex + 1 %>'></asp:Label>
</ItemTemplate>
</f:TemplateField>
<f:RenderField Width="180px" ColumnID="SystemName" DataField="SystemName" FieldType="String"
HeaderText="发出系统" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
<f:LinkButtonField Width="100px" HeaderText="通知编号" ConfirmTarget="Top" CommandName="click"
TextAlign="Center" ToolTip="审核" DataTextField="NoticeCode" />
<f:RenderField Width="180px" ColumnID="NoticeTitle" DataField="NoticeTitle" FieldType="String"
HeaderText="通知标题" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
<f:RenderField Width="500px" ColumnID="MainContent" DataField="MainContent" FieldType="String"
HeaderText="主要内容" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
<f:RenderField Width="100px" ColumnID="ClearUpManName" DataField="ClearUpManName"
FieldType="String" HeaderText="整理人" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
<f:RenderField Width="100px" ColumnID="CompileDate" DataField="CompileDate" FieldType="Date"
Renderer="Date" RendererArgument="yyyy-MM-dd" HeaderText="编制时间" HeaderTextAlign="Center"
TextAlign="Center">
</f:RenderField>
<f:LinkButtonField Width="100px" HeaderText="是否发布" ConfirmTarget="Top" CommandName="upIsRelease"
TextAlign="Center" ToolTip="发布" DataTextField="IsReleaseStr" />
<f:RenderField Width="100px" ColumnID="SignManName" DataField="SignManName" FieldType="String"
HeaderText="办理人" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
<f:RenderField Width="100px" ColumnID="State" DataField="State" FieldType="String"
HeaderText="审批状态" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
<f:LinkButtonField Width="100px" HeaderText="详细" ConfirmTarget="Top" CommandName="particular"
TextAlign="Center" ToolTip="查看" Text="查看" />
<f:LinkButtonField Width="100px" HeaderText="删除" ConfirmText="确定要删除此条信息吗?" ConfirmTarget="Top"
CommandName="del" TextAlign="Center" ToolTip="删除" Icon="Delete" />
</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:DropDownList>
</PageItems>
</f:Grid>
</Items>
</f:Panel>
<f:Window ID="Window1" Title="通知" Hidden="true" EnableIFrame="true" EnableMaximize="true"
Target="Self" EnableResize="true" runat="server" OnClose="Window1_Close" IsModal="true"
Width="1200px" Height="500px">
</f:Window>
<f:Window ID="Window2" Title="管理通知定稿文件" Hidden="true" EnableIFrame="true" EnableMaximize="true"
Target="Parent" EnableResize="true" runat="server" OnClose="Window1_Close" IsModal="true"
Width="600px" Height="320px">
</f:Window>
<f:Menu ID="Menu1" runat="server">
<%--<f:MenuButton ID="btnMenuEdit" OnClick="btnMenuEdit_Click" EnablePostBack="true"
runat="server" Text="编辑">
</f:MenuButton>--%>
<f:MenuButton ID="btnMenuDelete" OnClick="btnMenuDelete_Click" EnablePostBack="true"
ConfirmText="删除选中行?" ConfirmTarget="Top" 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>
@@ -0,0 +1,64 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="NoticeFinalFile.aspx.cs" Inherits="FineUIPro.Web.common.Notice.NoticeFinalFile" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>管理通知定稿文件</title>
</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:TextBox ID="txtNoticeCode" runat="server" Label="通知编号" LabelAlign="Right" ShowRedStar="true" Required="true">
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtNoticeTitle" runat="server" Label="通知标题" LabelAlign="Right" ShowRedStar="true" Required="true">
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:DropDownList ID="drpClearUpMan" Label="整理人" AutoPostBack="false" EnableSimulateTree="true" EnableEdit="true"
runat="server">
</f:DropDownList>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextArea ID="txtMainContent" runat="server" MaxLength="500" Label="主要内容"></f:TextArea>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:LinkButton ID="UploadAttach" runat="server" Label="附件" Text="上传和查看" OnClick="btnAttachUrl_Click" >
</f:LinkButton>
</Items>
</f:FormRow>
</Rows>
<Toolbars>
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
<Items>
<f:Button ID="btnSave" Icon="SystemSave" runat="server" Text="提交数据" ValidateForms="SimpleForm1"
OnClick="btnSave_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="Window1" Title="文件上传" Hidden="true" EnableIFrame="true" EnableMaximize="true"
Target="Parent" EnableResize="true" runat="server" IsModal="true" Width="680px"
Height="480px">
</f:Window>
</form>
</body>
</html>
@@ -0,0 +1,152 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="NoticeSign.aspx.cs" Inherits="FineUIPro.Web.common.Notice.NoticeSign" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<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" />
<style type="text/css">
.labcenter
{
text-align: center;
}
</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"
Layout="VBox" BodyPadding="10px" runat="server" RedStarPosition="BeforeText"
LabelAlign="Right">
<Rows>
<f:FormRow>
<Items>
<f:TextBox ID="txtNoticeCode" runat="server" Label="通知编号" Readonly="true" FocusOnPageLoad="true"
MaxLength="30">
</f:TextBox>
<f:TextBox ID="txtNoticeTitle" runat="server" Label="通知标题" Readonly="true" MaxLength="50">
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtClearUpMan" runat="server" Label="整理人" Readonly="true" MaxLength="50">
</f:TextBox>
<f:TextBox ID="txtIsRelease" runat="server" Label="是否发布" Readonly="true" Text="未发布"
MaxLength="50">
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:LinkButton ID="btnAttachUrl" runat="server" Label="附件" LabelWidth="100px" ValidateForms="SimpleForm1" Text="上传和查看" OnClick="btnAttachUrl_Click"></f:LinkButton>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextArea ID="txtMainContent" runat="server" MaxLength="500" Label="主要内容" Readonly="true">
</f:TextArea>
</Items>
</f:FormRow>
<f:FormRow runat="server" ID="trSystems">
<Items>
<f:TextBox ID="txtSystems" runat="server" Label="接收系统" Readonly="true" MaxLength="50">
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow runat="server" ID="trProjects">
<Items>
<f:TextBox ID="txtProjects" runat="server" Label="接收项目" Readonly="true" MaxLength="50">
</f:TextBox>
</Items>
</f:FormRow>
</Rows>
<Rows>
<f:FormRow>
<Items>
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="true" Title="通知审批列表" EnableCollapse="true"
runat="server" BoxFlex="1" DataKeyNames="NoticeSignId" DataIDField="NoticeSignId"
AllowSorting="true" SortDirection="ASC" SortField="NoticeSignId" EnableColumnLines="true"
IsDatabasePaging="true" PageSize="100">
<Columns>
<f:TemplateField Width="50px" HeaderText="序号" HeaderTextAlign="Center" TextAlign="Center">
<ItemTemplate>
<asp:Label ID="Label2" runat="server" Text='<%# Container.DataItemIndex + 1 %>'></asp:Label>
</ItemTemplate>
</f:TemplateField>
<f:RenderField Width="150px" ColumnID="SignStepStr" DataField="SignStepStr" SortField="SignStepStr"
FieldType="String" HeaderText="办理类型" TextAlign="Center">
</f:RenderField>
<f:RenderField Width="150px" ColumnID="SignManName" DataField="SignManName" SortField="SignManName"
FieldType="String" HeaderText="办理人员" TextAlign="Center">
</f:RenderField>
<f:RenderField Width="150px" ColumnID="SinaDate" DataField="SinaDate" FieldType="Date"
Renderer="Date" RendererArgument="yyyy-MM-dd" HeaderText="办理日期" TextAlign="Center">
</f:RenderField>
<f:RenderField Width="400px" ColumnID="SignIdea" DataField="SignIdea" SortField="SignIdea"
FieldType="String" HeaderText="办理意见" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
<f:RenderField Width="100px" ColumnID="IsAgreeStr" DataField="IsAgreeStr" SortField="IsAgreeStr"
FieldType="String" HeaderText="是否同意" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
</Columns>
</f:Grid>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextArea ID="txtSignIdea" runat="server" MaxLength="500" Label="我的意见">
</f:TextArea>
</Items>
</f:FormRow>
</Rows>
<Rows>
<f:FormRow ColumnWidths="15% 30% 55%">
<Items>
<f:Label ID="Label25" runat="server" Text="下一步流程设置" CssClass="labcenter">
</f:Label>
<f:RadioButtonList ID="rblIsAgree" runat="server" AutoPostBack="true" OnSelectedIndexChanged="rblIsAgree_SelectedIndexChanged"
Width="150px">
<f:RadioItem Value="True" Selected="True" Text="同意" />
<f:RadioItem Value="False" Text="不同意" />
</f:RadioButtonList>
<f:Label ID="lbHidden" runat="server" Hidden="true">
</f:Label>
</Items>
</f:FormRow>
</Rows>
<Rows>
<f:FormRow>
<Items>
<f:DropDownList ID="drpSignStep" Label="办理步骤" AutoPostBack="false" EnableSimulateTree="true"
runat="server">
</f:DropDownList>
<f:DropDownList ID="drpSignMan" Label="办理人员" AutoPostBack="false" EnableSimulateTree="true"
runat="server">
</f:DropDownList>
</Items>
</f:FormRow>
</Rows>
<Toolbars>
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
<Items>
<f:Button ID="btnSave" Icon="SystemSave" runat="server" Text="提交数据" ValidateForms="SimpleForm1"
OnClick="btnSave_Click">
</f:Button>
<f:Button ID="btnClose" EnablePostBack="false" Text="关闭" runat="server" Icon="SystemClose">
</f:Button>
<f:HiddenField ID="hdCompileMan" runat="server">
</f:HiddenField>
</Items>
</f:Toolbar>
</Toolbars>
</f:Form>
<f:Window ID="WindowAtt" Title="弹出窗体" Hidden="true" EnableIFrame="true" EnableMaximize="true"
Target="Parent" EnableResize="true" runat="server" IsModal="true" Width="700px"
Height="500px">
</f:Window>
</form>
</body>
</html>
@@ -0,0 +1,106 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="NoticeSignParticular.aspx.cs" Inherits="FineUIPro.Web.common.Notice.NoticeSignParticular" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<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" />
<style type="text/css">
.labcenter
{
text-align: center;
}
</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"
Layout="VBox" BodyPadding="10px" runat="server" RedStarPosition="BeforeText"
LabelAlign="Right">
<Rows>
<f:FormRow>
<Items>
<f:TextBox ID="txtNoticeCode" runat="server" Label="通知编号" Readonly="true" FocusOnPageLoad="true"
MaxLength="30">
</f:TextBox>
<f:TextBox ID="txtNoticeTitle" runat="server" Label="通知标题" Readonly="true" MaxLength="50">
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtClearUpMan" runat="server" Label="整理人" Readonly="true" MaxLength="50">
</f:TextBox>
<f:TextBox ID="txtIsRelease" runat="server" Label="是否发布" Readonly="true" Text="未发布"
MaxLength="50">
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:LinkButton ID="btnAttachUrl" runat="server" Label="附件" LabelWidth="100px" ValidateForms="SimpleForm1" Text="上传和查看" OnClick="btnAttachUrl_Click"></f:LinkButton>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextArea ID="txtMainContent" runat="server" MaxLength="500" Label="主要内容" Readonly="true">
</f:TextArea>
</Items>
</f:FormRow>
<f:FormRow runat="server" ID="trSystems">
<Items>
<f:TextBox ID="txtSystems" runat="server" Label="接收系统" Readonly="true" MaxLength="50">
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow runat="server" ID="trProjects">
<Items>
<f:TextBox ID="txtProjects" runat="server" Label="接收项目" Readonly="true" MaxLength="50">
</f:TextBox>
</Items>
</f:FormRow>
</Rows>
<Rows>
<f:FormRow>
<Items>
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="true" Title="通知审批列表" EnableCollapse="true"
runat="server" BoxFlex="1" DataKeyNames="NoticeSignId" DataIDField="NoticeSignId"
AllowSorting="true" SortDirection="ASC" SortField="NoticeSignId" EnableColumnLines="true"
IsDatabasePaging="true" PageSize="100">
<Columns>
<f:TemplateField Width="50px" HeaderText="序号" HeaderTextAlign="Center" TextAlign="Center">
<ItemTemplate>
<asp:Label ID="Label2" runat="server" Text='<%# Container.DataItemIndex + 1 %>'></asp:Label>
</ItemTemplate>
</f:TemplateField>
<f:RenderField Width="150px" ColumnID="SignStepStr" DataField="SignStepStr" SortField="SignStepStr"
FieldType="String" HeaderText="办理类型" TextAlign="Center">
</f:RenderField>
<f:RenderField Width="150px" ColumnID="SignManName" DataField="SignManName" SortField="SignManName"
FieldType="String" HeaderText="办理人员" TextAlign="Center">
</f:RenderField>
<f:RenderField Width="150px" ColumnID="SinaDate" DataField="SinaDate" FieldType="Date"
Renderer="Date" RendererArgument="yyyy-MM-dd" HeaderText="办理日期" TextAlign="Center">
</f:RenderField>
<f:RenderField Width="400px" ColumnID="SignIdea" DataField="SignIdea" SortField="SignIdea"
FieldType="String" HeaderText="办理意见" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
<f:RenderField Width="100px" ColumnID="IsAgreeStr" DataField="IsAgreeStr" SortField="IsAgreeStr"
FieldType="String" HeaderText="是否同意" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
</Columns>
</f:Grid>
</Items>
</f:FormRow>
</Rows>
</f:Form>
<f:Window ID="WindowAtt" Title="弹出窗体" Hidden="true" EnableIFrame="true" EnableMaximize="true"
Target="Parent" EnableResize="true" runat="server" IsModal="true" Width="700px"
Height="500px">
</f:Window>
</form>
</body>
</html>
@@ -0,0 +1,90 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DefaultUserSetting.aspx.cs" Inherits="FineUIPro.Web.common.ProjectSet.DefaultUserSetting" %>
<!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" 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" ShowHeader="false" EnableCollapse="true"
runat="server" BoxFlex="1" DataKeyNames="Id" AllowCellEditing="true" EnableColumnLines="true"
ClicksToEdit="2" DataIDField="Id" AllowSorting="true"
OnRowCommand="Grid1_RowCommand"
AllowPaging="true" IsDatabasePaging="true" PageSize="15" OnPageIndexChange="Grid1_PageIndexChange"
EnableRowDoubleClickEvent="true" OnRowDoubleClick="Grid1_RowDoubleClick" AllowFilters="true"
>
<Toolbars>
<f:Toolbar ID="Toolbar2" Position="Top" runat="server">
<Items>
<f:Button ID="btnNew" Text="新增" Icon="Add" EnablePostBack="false" runat="server">
</f:Button>
<f:Button ID="btnEdit" Text="编辑" Icon="Pencil" runat="server" OnClick="btnEdit_Click">
</f:Button>
<f:Button ID="btnDelete" Text="删除" Icon="Delete" ConfirmText="确定删除当前数据?" OnClick="btnDelete_Click"
runat="server">
</f:Button>
</Items>
</f:Toolbar>
</Toolbars>
<Columns>
<f:TemplateField Width="50px" HeaderText="序号" HeaderTextAlign="Center" TextAlign="Center">
<ItemTemplate>
<asp:Label ID="Label1" runat="server" Text='<%# Container.DataItemIndex + 1 %>'></asp:Label>
</ItemTemplate>
</f:TemplateField>
<f:RenderField Width="120px" ColumnID="UserName" DataField="UserName"
SortField="UserName" FieldType="String" HeaderText="创建用户" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
<f:TemplateField ColumnID="Count1" minWidth="500px" HeaderText="包含用户" HeaderTextAlign="Center" TextAlign="Left">
<ItemTemplate>
<asp:Label ID="Label2" runat="server" Text='<%# getUser(Eval("Id")) %>'></asp:Label>
</ItemTemplate>
</f:TemplateField>
<f:TemplateField ColumnID="Count2" minWidth="500px" HeaderText="包含角色" HeaderTextAlign="Center" TextAlign="Left">
<ItemTemplate>
<asp:Label ID="Label3" runat="server" Text='<%# getRole(Eval("Id")) %>'></asp:Label>
</ItemTemplate>
</f:TemplateField>
<f:WindowField ColumnID="myWindowField" Width="50px" WindowID="Window1" HeaderText="编辑"
Icon="Pencil" ToolTip="编辑" DataTextFormatString="{0}" DataIFrameUrlFields="Id,DepartName"
DataIFrameUrlFormatString="DefaultUserSettingEdit.aspx?Id={0}" DataWindowTitleFormatString="编辑 - {1}"
HeaderTextAlign="Center" TextAlign="Center"/>
<f:LinkButtonField Width="50px" HeaderText="删除" ConfirmText="删除选中行?" ConfirmTarget="Top"
CommandName="Delete" Icon="Delete" HeaderTextAlign="Center" TextAlign="Center"/>
</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:ListItem Text="10" Value="15" />
<f:ListItem Text="15" Value="20" />
<f:ListItem Text="20" Value="25" />
<f:ListItem Text="25" Value="30" />
</f:DropDownList>
</PageItems>
</f:Grid>
</Items>
</f:Panel>
<f:Window ID="Window1" Title="默认参与用户设置" Hidden="true" EnableIFrame="true" EnableMaximize="true"
Target="Self" EnableResize="true" runat="server" OnClose="Window1_Close" IsModal="true"
Width="800px" Height="400px">
</f:Window>
</form>
</body>
</html>
@@ -0,0 +1,76 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DefaultUserSettingEdit.aspx.cs" Inherits="FineUIPro.Web.common.ProjectSet.DefaultUserSettingEdit" %>
<!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" 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:DropDownBox runat="server" ID="drpSendUserIds" MultiSelectSeparator="," AutoPostBack="true" Label="包含用户" EmptyText="请从下拉表格中选择" EnableMultiSelect="true" MatchFieldWidth="false">
<PopPanel>
<f:Grid ID="Grid3" Width="800px" Height="300px" Hidden="true"
DataIDField="UserId" DataTextField="UserName" EnableMultiSelect="true" KeepCurrentSelection="true"
PageSize="100" ShowBorder="true" ShowHeader="false"
AllowPaging="true" IsDatabasePaging="true" runat="server" EnableCheckBoxSelect="true"
DataKeyNames="UserId" OnPageIndexChange="Grid3_PageIndexChange"
AllowSorting="true" SortField="UserName" SortDirection="ASC"
OnSort="Grid3_Sort">
<Columns>
<f:RowNumberField />
<f:BoundField Width="300px" DataField="UnitName" SortField="UnitName" HeaderText="单位名称" />
<f:BoundField Width="200px" DataField="UserName" SortField="UserName" DataFormatString="{0}"
HeaderText="姓名" />
</Columns>
<Toolbars>
<f:Toolbar runat="server" Position="Top">
<Items>
<f:TwinTriggerBox Width="300px" runat="server" EmptyText="在姓名中查找" ShowLabel="false" ID="ttbSearch3"
ShowTrigger1="false" OnTrigger1Click="ttbSearch_Trigger1Click1" OnTrigger2Click="ttbSearch_Trigger2Click1"
Trigger1Icon="Clear" Trigger2Icon="Search">
</f:TwinTriggerBox>
</Items>
</f:Toolbar>
</Toolbars>
</f:Grid>
</PopPanel>
</f:DropDownBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:DropDownList ID="drpRole" runat="server" Label="包含角色" EnableEdit="true" ForceSelection="false"
EnableMultiSelect="true" MaxLength="500" EnableCheckBoxSelect="true" EmptyText="-请选择-" AutoSelectFirstItem="False">
</f:DropDownList>
</Items>
</f:FormRow>
</Rows>
<Toolbars>
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
<Items>
<f:Button ID="btnSave" Icon="SystemSave" runat="server" Text="提交数据" ValidateForms="SimpleForm1"
OnClick="btnSave_Click">
</f:Button>
<f:Button ID="btnClose" EnablePostBack="false" Text="关闭" runat="server" Icon="SystemClose">
</f:Button>
</Items>
</f:Toolbar>
</Toolbars>
</f:Form>
</form>
</body>
</html>
@@ -0,0 +1,149 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EditOrganization.aspx.cs" Inherits="FineUIPro.Web.common.ProjectSet.EditOrganization" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>组织机构</title>
<link href="../../res/css/common.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</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" AutoScroll="true">
<Toolbars>
<f:Toolbar ID="Toolbar3" Position="Top" runat="server">
<Items>
<f:Button ID="btnSave" Icon="SystemSave" runat="server" Text="提交" ValidateForms="SimpleForm1"
OnClick="btnSave_Click">
</f:Button>
</Items>
</f:Toolbar>
<f:Toolbar ID="Toolbar1" Position="Top" runat="server">
<Items>
<f:DatePicker ID="txtInTime" runat="server" Label="入场时间" LabelAlign="Right" Width="200px">
</f:DatePicker>
<f:DatePicker ID="txtOutTime" runat="server" Label="出场时间" LabelAlign="Right" Width="200px">
</f:DatePicker>
<f:TextBox ID="txtPhone" runat="server" Label="电话" MaxLength="15" LabelAlign="Right" Width="200px">
</f:TextBox>
<f:DropDownList ID="drpUnitType" runat="server" Label="单位类型" LabelAlign="Right" Width="200px"></f:DropDownList>
</Items>
</f:Toolbar>
<f:Toolbar ID="Toolbar2" Position="Top" runat="server" >
<Items>
<f:TextArea ID="txtProjectRange" Width="820px" Height="80px" runat="server" Label="项目工程范围" LabelAlign="Right">
</f:TextArea>
</Items>
</f:Toolbar>
</Toolbars>
<Items>
<f:Grid ID="Grid2" ShowBorder="true" ShowHeader="true" Title="班组信息(双击编辑)" EnableCollapse="false" runat="server"
BoxFlex="1" DataKeyNames="TeamGroupId" AllowCellEditing="true" EnableColumnLines="true"
ClicksToEdit="2" DataIDField="TeamGroupId" AllowSorting="true" SortField="TeamGroupCode" OnPreDataBound="Grid2_PreDataBound"
OnSort="Grid2_Sort" EnableTextSelection="True">
<Toolbars>
<f:Toolbar ID="Toolbar5" runat="server">
<Items>
<f:Button ID="btnNew2" Text="新增数据" Icon="Add" EnablePostBack="false" runat="server">
</f:Button>
<f:Button ID="btnDelete2" Text="删除选中行" Icon="Delete" EnablePostBack="false" runat="server">
</f:Button>
</Items>
</f:Toolbar>
</Toolbars>
<Columns>
<f:RenderField Width="120px" ColumnID="TeamGroupCode" DataField="TeamGroupCode" HeaderText="班组编号">
<Editor>
<f:TextBox ID="txtTeamGroupCode" Required="true" runat="server">
</f:TextBox>
</Editor>
</f:RenderField>
<f:RenderField Width="120px" ColumnID="TeamGroupName" DataField="TeamGroupName" HeaderText="班组名称">
<Editor>
<f:TextBox ID="txtTeamGroupName" Required="true" runat="server">
</f:TextBox>
</Editor>
</f:RenderField>
<f:RenderField Width="450px" ColumnID="Remark" DataField="Remark" HeaderText="备注">
<Editor>
<f:TextBox ID="txtRemark" Required="true" runat="server">
</f:TextBox>
</Editor>
</f:RenderField>
<f:LinkButtonField ColumnID="Delete" Width="80px" EnablePostBack="false"
Icon="Delete" />
</Columns>
</f:Grid>
</Items>
<Items>
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="true" Title="参与单位组织机构(双击编辑)" EnableCollapse="false" runat="server"
BoxFlex="1" DataKeyNames="OrganizationId" AllowCellEditing="true" EnableColumnLines="true"
ClicksToEdit="2" DataIDField="OrganizationId" AllowSorting="true" SortField="Post" OnPreDataBound="Grid1_PreDataBound"
OnSort="Grid1_Sort" EnableTextSelection="True" >
<Toolbars>
<f:Toolbar ID="Toolbar4" runat="server">
<Items>
<f:Button ID="btnNew" Text="新增数据" Icon="Add" EnablePostBack="false" runat="server">
</f:Button>
<f:Button ID="btnDelete" Text="删除选中行" Icon="Delete" EnablePostBack="false" runat="server">
</f:Button>
</Items>
</f:Toolbar>
</Toolbars>
<Columns>
<f:RenderField Width="150px" ColumnID="Post" DataField="Post" FieldType="String"
HeaderText="岗位">
<Editor>
<f:TextBox ID="txtPost" Required="true" runat="server">
</f:TextBox>
</Editor>
</f:RenderField>
<f:RenderField Width="100px" ColumnID="CardNo" DataField="CardNo" HeaderText="卡号">
<Editor>
<f:TextBox ID="txtCardNo" Required="true" runat="server">
</f:TextBox>
</Editor>
</f:RenderField>
<f:RenderField Width="100px" ColumnID="PersonName" DataField="PersonName" HeaderText="姓名">
<Editor>
<f:TextBox ID="txtPersonName" Required="true" runat="server">
</f:TextBox>
</Editor>
</f:RenderField>
<f:RenderField Width="100px" ColumnID="CellPhone" DataField="CellPhone" HeaderText="手机">
<Editor>
<f:TextBox ID="txtCellPhone" Required="true" runat="server">
</f:TextBox>
</Editor>
</f:RenderField>
<f:RenderField Width="100px" ColumnID="Telephone" DataField="Telephone" HeaderText="电话">
<Editor>
<f:TextBox ID="txtTelephone" Required="true" runat="server">
</f:TextBox>
</Editor>
</f:RenderField>
<f:RenderField Width="140px" ColumnID="Email" DataField="Email" HeaderText="E-mail">
<Editor>
<f:TextBox ID="txtEmail" Required="true" runat="server">
</f:TextBox>
</Editor>
</f:RenderField>
<f:LinkButtonField ColumnID="Delete" Width="80px" EnablePostBack="false"
Icon="Delete" />
</Columns>
</f:Grid>
</Items>
</f:Panel>
</form>
<script type="text/javascript">
function reloadGrid() {
__doPostBack(null, 'reloadGrid');
}
</script>
</body>
</html>
@@ -0,0 +1,99 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Installation.aspx.cs" Inherits="FineUIPro.Web.common.ProjectSet.Installation" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<link href="../../res/css/common.css" rel="stylesheet" type="text/css" />
<link href="../../res/extjs/res/css/blue.css" rel="stylesheet" type="text/css"/>
<script src="../../res/extjs/ext.js" type="text/javascript"></script>
<script src="../../res/extjs/lang/zh_CN.js" type="text/javascript"></script>
</head>
<body>
<form id="form1" runat="server">
<f:PageManager ID="PageManager1" AutoSizePanelID="RegionPanel1" runat="server" />
<f:RegionPanel ID="RegionPanel1" ShowBorder="false" runat="server" Margin="5px">
<Regions>
<f:Region ID="Region1" ShowBorder="false" ShowHeader="false" RegionPosition="Left"
Title="项目" BodyPadding="0 5 0 0" Width="300px" Layout="Fit" runat="server" EnableCollapse="true">
<Items>
<f:Panel runat="server" ID="panelLeftRegion" RegionPosition="Left" RegionSplit="true"
EnableCollapse="true" Width="240px" Title="项目" ShowBorder="true" Layout="VBox"
ShowHeader="true" AutoScroll="true" BodyPadding="5px" IconFont="ArrowCircleLeft">
<Toolbars>
<f:Toolbar ID="Toolbar1" Position="Top" runat="server" ToolbarAlign="Left">
<Items>
<f:DropDownList ID="drpProjectId" runat="server" Label="项目" LabelAlign="Right" AutoPostBack="true"
EnableEdit="true" OnSelectedIndexChanged="drpProjectId_SelectedIndexChanged"
LabelWidth="50px">
</f:DropDownList>
</Items>
</f:Toolbar>
</Toolbars>
<Items>
<f:Tree ID="trProjects" ShowHeader="false" OnNodeCommand="trWBS_NodeCommand"
runat="server" ShowBorder="false" EnableCollapse="true" EnableSingleClickExpand="true"
AutoLeafIdentification="true" EnableSingleExpand="true" EnableTextSelection="true">
</f:Tree>
</Items>
</f:Panel>
</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="false" ShowHeader="false" Title="装置设置" EnableCollapse="true"
runat="server" BoxFlex="1" DataKeyNames="InstallationId" EnableRowDoubleClickEvent="true" OnRowDoubleClick="Grid1_RowDoubleClick"
EnableColumnLines="true" DataIDField="InstallationId" AllowSorting="true" SortField="InstallationName"
ShowSelectedCell="true" ClicksToEdit="1">
<Toolbars>
<f:Toolbar ID="Toolbar2" Position="Top" runat="server">
<Items>
<f:Button ID="btnNew" Text="新增" Icon="Add" runat="server" OnClick="btnNew_Click">
</f:Button>
<f:Button ID="btnEdit" Text="编辑" Icon="Pencil" runat="server" OnClick="btnEdit_Click">
</f:Button>
<f:Button ID="btnDelete" Text="删除" Icon="Delete" ConfirmText="确定删除当前数据?" OnClick="btnDelete_Click"
runat="server" AjaxLoadingType="Mask" ShowAjaxLoadingMaskText="true" AjaxLoadingMaskText="正在删除数据,请稍候">
</f:Button>
</Items>
</f:Toolbar>
</Toolbars>
<Columns>
<f:RowNumberField />
<f:RenderField Width="120px" ColumnID="InstallationCode" DataField="InstallationCode"
FieldType="String" HeaderText="装置/单元编号" HeaderTextAlign="Center" TextAlign="Left">
<Editor>
<f:TextBox ID="txtInstallationCode" Required="true" runat="server">
</f:TextBox>
</Editor>
</f:RenderField>
<f:RenderField Width="200px" ColumnID="InstallationName" DataField="InstallationName"
FieldType="String" HeaderText="装置/单元名称" HeaderTextAlign="Center" TextAlign="Left">
<Editor>
<f:TextBox ID="txtInstallationName" Required="true" runat="server">
</f:TextBox>
</Editor>
</f:RenderField>
<f:RenderField Width="280px" ColumnID="Def" DataField="Def" FieldType="String" HeaderText="备注"
HeaderTextAlign="Center" TextAlign="Left">
<Editor>
<f:TextBox ID="txtDef" runat="server">
</f:TextBox>
</Editor>
</f:RenderField>
</Columns>
</f:Grid>
</Items>
</f:Region>
</Regions>
</f:RegionPanel>
<f:Window ID="Window3" Title="新增装置/单元编辑页面" Hidden="true" EnableIFrame="true" EnableMaximize="true"
Target="Parent" EnableResize="true" runat="server" OnClose="Window3_Close" IsModal="true"
CloseAction="HidePostBack" Width="800px" Height="250px">
</f:Window>
</form>
</body>
</html>
@@ -0,0 +1,43 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="InstallationSave.aspx.cs" Inherits="FineUIPro.Web.common.ProjectSet.InstallationSave" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<link href="../../res/extjs/res/css/blue.css" rel="stylesheet" type="text/css"/>
<script src="../../res/extjs/ext.js" type="text/javascript"></script>
<script src="../../res/extjs/lang/zh_CN.js" type="text/javascript"></script>
</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:TextBox ID="txtInstallationCode" runat="server" Label="装置编号" Required="true" ShowRedStar="true" FocusOnPageLoad="true"></f:TextBox>
<f:TextBox ID="txtInstallationName" runat="server" Label="装置名称" Required="true" ShowRedStar="true"></f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtRemark" runat="server" Label="备注" ></f:TextBox>
</Items>
</f:FormRow>
</Rows>
<Toolbars>
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
<Items>
<f:Button ID="btnSave" Icon="SystemSave" runat="server" Text="提交数据" ValidateForms="SimpleForm1"
OnClick="btnSave_Click" AjaxLoadingType="Mask" ShowAjaxLoadingMaskText="true" AjaxLoadingMaskText="正在拷贝单位、分部、分项工程数据,请稍候">
</f:Button>
<f:HiddenField ID="hdCompileMan" runat="server"></f:HiddenField>
</Items>
</f:Toolbar>
</Toolbars>
</f:Form>
</form>
</body>
</html>
@@ -0,0 +1,70 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ProjectRolePower.aspx.cs" Inherits="FineUIPro.Web.common.ProjectSet.ProjectRolePower" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" 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" />
<style>
.customlabel span {
color: red;
font-weight: bold;
}
</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="Region3" ShowBorder="false" ShowHeader="false" RegionPosition="Top"
BodyPadding="0 1 0 0" Layout="Fit" runat="server" >
<Toolbars>
<f:Toolbar ID="Toolbar1" Position="Top" ToolbarAlign="Right" runat="server">
<Items>
<f:Label ID="lbSystemName" runat="server" MarginLeft="20px" CssClass="customlabel"></f:Label>
<f:Label ID="lbRoleName" runat="server" MarginLeft="100px" CssClass="customlabel"></f:Label>
<f:ToolbarFill ID="ToolbarFill1" runat="server"></f:ToolbarFill>
<f:Button ID="btnSave" Icon="SystemSave" runat="server" Text="提交数据" ValidateForms="SimpleForm1"
OnClick="btnSave_Click">
</f:Button>
<f:Button ID="btnCancel" Icon="Cancel" runat="server" Text="取消" ValidateForms="SimpleForm1"
OnClick="btnCancel_Click">
</f:Button>
</Items>
</f:Toolbar>
</Toolbars>
</f:Region>
<f:Region ID="Region1" ShowBorder="false" ShowHeader="false" RegionPosition="Left"
BodyPadding="0 5 0 0" Width="380px" Layout="Fit" runat="server">
<Items>
<f:Tree ID="tvProjectSystem" Width="360px" ShowHeader="false" Title="项目系统" OnNodeCommand="tvProjectSystem_NodeCommand"
AutoLeafIdentification="true" runat="server" EnableIcons ="true" Expanded="true" AutoScroll="true" EnableSingleClickExpand ="true">
</f:Tree>
</Items>
</f:Region>
<f:Region ID="Region4" ShowBorder="false" ShowHeader="false" RegionPosition="Center"
BodyPadding="0 5 0 0" Width="240px" Layout="Fit" runat="server">
<Items>
<f:Tree ID="tvRole" Width="230px" ShowHeader="false" Title="角色" OnNodeCommand="tvRole_NodeCommand"
AutoLeafIdentification="true" runat="server" EnableIcons ="true" AutoScroll="true" Expanded="true" EnableSingleClickExpand ="true">
</f:Tree>
</Items>
</f:Region>
<f:Region ID="Region2" ShowBorder="false" ShowHeader="false" RegionPosition="Right"
BodyPadding="0 5 0 0" Width="420px" Layout="Fit" runat="server">
<Items>
<f:Tree ID="tvMenu" Width="380px" EnableCollapse="true" ShowHeader="false" Title="系统菜单"
AutoLeafIdentification="true" runat="server" EnableIcons ="true" AutoScroll="true"
EnableSingleClickExpand ="true" OnNodeCheck="tvMenu_NodeCheck" >
</f:Tree>
</Items>
</f:Region>
</Regions>
</f:RegionPanel>
</form>
</body>
</html>
@@ -0,0 +1,128 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ProjectSysSet.aspx.cs"
Inherits="FineUIPro.Web.common.ProjectSet.ProjectSysSet" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<f:PageManager ID="PageManager1" AutoSizePanelID="RegionPanel1" runat="server" />
<f:RegionPanel ID="RegionPanel1" ShowBorder="false" runat="server" Margin="5px">
<Regions>
<f:Region ID="Region1" ShowBorder="false" ShowHeader="false" RegionPosition="Left"
Title="项目环境设置" BodyPadding="0 5 0 0" Width="300px" Layout="Fit" runat="server"
EnableCollapse="true">
<Items>
<f:Panel runat="server" ID="panel2" RegionPosition="Left" RegionSplit="true" EnableCollapse="true"
Width="400" Title="项目环境设置" TitleToolTip="项目环境设置" ShowBorder="true" ShowHeader="true"
BodyPadding="5px" IconFont="ArrowCircleLeft">
<Toolbars>
<f:Toolbar ID="Toolbar2" Position="Top" runat="server" ToolbarAlign="Left" Layout="VBox">
<Items>
<f:DropDownList ID="drpProjectId" runat="server" Label="项目" LabelAlign="Right" AutoPostBack="true" EnableEdit="true"
OnSelectedIndexChanged="drpProjectId_SelectedIndexChanged" LabelWidth="50px">
</f:DropDownList>
</Items>
</f:Toolbar>
</Toolbars>
<Items>
<f:Tree ID="trWBS" Width="290" Height="500" EnableCollapse="true" ShowHeader="true"
OnNodeCommand="trWBS_NodeCommand" AutoLeafIdentification="true" runat="server">
</f:Tree>
</Items>
</f:Panel>
</Items>
</f:Region>
<f:Region ID="Region2" ShowBorder="false" ShowHeader="false" Position="Center" Layout="VBox"
BoxConfigAlign="Stretch" BoxConfigPosition="Left" runat="server">
<Items>
<f:GroupPanel ID="GroupPanel2" Layout="Anchor" Title="焊接环境设置" runat="server">
<Items>
<f:Form ID="Form2" ShowBorder="false" ShowHeader="false" AutoScroll="true" Layout="VBox"
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
<Rows>
<f:FormRow>
<Items>
<f:CheckBox ID="ckbPdms" runat="server" Label="引用PDMS模板" Text="是否引用PDMS导出模板" LabelWidth="200">
</f:CheckBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:CheckBox ID="ckbDayReport" runat="server" Label="焊接日报编号" Text="是否自动生成" LabelWidth="200">
</f:CheckBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:CheckBox ID="ckbPoint" runat="server" Label="点口编号" Text="是否自动生成" LabelWidth="200">
</f:CheckBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:RadioButtonList ID="robStandard" runat="server" Label="无损检测委托单" LabelWidth="200">
<f:RadioItem Value="1" Text="3543-G401(1)" />
<f:RadioItem Value="2" Text="3543-G401(2)" />
<f:RadioItem Value="3" Text="第三方委托单" />
<f:RadioItem Value="4" Text="第三方委托单(神化)" />
</f:RadioButtonList>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:Label ID="Label4" runat="server" Label="说明" LabelWidth="200" Text="(1)需监理和总包签字;(2)需总包、监理、施工、检测单位签字">
</f:Label>
</Items>
</f:FormRow>
<f:FormRow ColumnWidths="22% 13% 13% 13% 13% 13% 13%">
<Items>
<f:Label ID="Label1" runat="server" Label="组批条件设置" LabelWidth="200"></f:Label>
<f:CheckBox ID="cb1" runat="server" Text="装置" Checked="true" Enabled="false"></f:CheckBox>
<f:CheckBox ID="cb2" runat="server" Text="检测比例" Checked="true" Enabled="false"></f:CheckBox>
<f:CheckBox ID="cb3" runat="server" Text="焊缝类型" Checked="true" Enabled="false"></f:CheckBox>
<f:CheckBox ID="cb9" runat="server" Text="管线" Checked="true" ></f:CheckBox>
<f:CheckBox ID="cb4" runat="server" Text="管道等级" Checked="true"></f:CheckBox>
<f:CheckBox ID="cb5" runat="server" Text="材质" Checked="true"></f:CheckBox>
</Items>
</f:FormRow>
<f:FormRow ColumnWidths="22% 13% 13% 13% 13% 13% 13%">
<Items>
<f:Label ID="Label2" runat="server" LabelWidth="200"></f:Label>
<f:CheckBox ID="cb6" runat="server" Text="执行标准" Checked="true"></f:CheckBox>
<f:CheckBox ID="cb7" runat="server" Text="是否特殊" Checked="true"></f:CheckBox>
<f:CheckBox ID="cb8" runat="server" Text="焊工"></f:CheckBox>
<f:CheckBox ID="cb10" runat="server" Text="介质"></f:CheckBox>
<f:CheckBox ID="cb11" runat="server" Text="试压包"></f:CheckBox>
<f:Label ID="Label3" runat="server"></f:Label>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:DropDownList ID="drpEquipment" Label="硬度检测设备" runat="server" EnableEdit="true"
LabelWidth="200px" LabelAlign="Right">
</f:DropDownList>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</Items>
</f:GroupPanel>
</Items>
<Toolbars>
<f:Toolbar ID="Toolbar1" Position="Top" ToolbarAlign="Right" runat="server">
<Items>
<f:Button ID="btnSave" Icon="SystemSave" runat="server" Text="提交数据" ValidateForms="SimpleForm1"
Hidden="true" OnClick="btnSave_Click">
</f:Button>
</Items>
</f:Toolbar>
</Toolbars>
</f:Region>
</Regions>
</f:RegionPanel>
</form>
</body>
</html>
@@ -0,0 +1,139 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ProjectUnit.aspx.cs" Inherits="FineUIPro.Web.common.ProjectSet.ProjectUnit" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>单位信息</title>
<link href="../../res/css/common.css" rel="stylesheet" type="text/css" />
<style>
.customlabel span {
color: red;
font-weight: bold;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
<f:Panel ID="Panel1" runat="server" ShowBorder="false" ShowHeader="false" Layout="Region">
<Items>
<f:Panel runat="server" ID="panelLeftRegion" RegionPosition="Left" RegionSplit="true"
EnableCollapse="true" Width="240px" Title="项目" ShowBorder="true" Layout="VBox"
ShowHeader="true" AutoScroll="true" BodyPadding="5px" IconFont="ArrowCircleLeft">
<Toolbars>
<f:Toolbar ID="Toolbar1" Position="Top" runat="server" ToolbarAlign="Left">
<Items>
<f:DropDownList ID="drpProjectId" runat="server" Label="项目" LabelAlign="Right" AutoPostBack="true"
EnableEdit="true" OnSelectedIndexChanged="drpProjectId_SelectedIndexChanged"
LabelWidth="50px">
</f:DropDownList>
</Items>
</f:Toolbar>
</Toolbars>
<Items>
<f:Tree ID="tvProject" ShowHeader="false" OnNodeCommand="tvProject_NodeCommand" runat="server"
ShowBorder="false" EnableCollapse="true" EnableSingleClickExpand="true"
AutoLeafIdentification="true" EnableSingleExpand="true" EnableTextSelection="true">
</f:Tree>
</Items>
</f:Panel>
<f:Panel runat="server" ID="panelCenterRegion" RegionPosition="Center" ShowBorder="true"
Layout="VBox" ShowHeader="false" BodyPadding="5px" IconFont="PlusCircle" Title="单位信息"
TitleToolTip="单位信息" AutoScroll="true">
<Items>
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" EnableCollapse="true" EnableColumnLines="true"
runat="server" BoxFlex="1" DataKeyNames="ProjectUnitId" AllowCellEditing="true" ClicksToEdit="2"
DataIDField="ProjectUnitId" AllowSorting="true" SortField="UnitCode" SortDirection="ASC"
OnSort="Grid1_Sort" AllowPaging="true" IsDatabasePaging="true" PageSize="12" AllowColumnLocking="true"
OnPageIndexChange="Grid1_PageIndexChange" EnableRowDoubleClickEvent="true" OnRowDoubleClick="Grid1_RowDoubleClick"
AllowFilters="true" OnFilterChange="Grid1_FilterChange" EnableTextSelection="True">
<Toolbars>
<f:Toolbar ID="Toolbar3" Position="Top" ToolbarAlign="Right" runat="server">
<Items>
<f:Label runat="server" Text="双击设置项目单位的组织机构和班组信息" CssClass="customlabel" ></f:Label>
<f:ToolbarFill runat="server"></f:ToolbarFill>
<f:Button ID="btnSelectUnit" Text="选择单位" Icon="Pencil" runat="server" OnClick="btnSelectUnit_Click"></f:Button>
</Items>
</f:Toolbar>
</Toolbars>
<Columns>
<f:RowNumberField />
<f:TemplateField Width="100px" HeaderText="单位类型" HeaderTextAlign="Center" TextAlign="Left" SortField="UnitType">
<ItemTemplate>
<asp:Label ID="Label8" runat="server" Text='<%# BLL.Base_UnitService.ConvertUnitTypeStr(Eval("UnitType")) %>' ></asp:Label>
</ItemTemplate>
</f:TemplateField>
<f:RenderField Width="80px" ColumnID="UnitCode" DataField="UnitCode" SortField="UnitCode"
FieldType="String" HeaderText="代码" EnableFilter="true" HeaderTextAlign="Center"
TextAlign="Left" Locked="true">
<Filter EnableMultiFilter="true" ShowMatcher="true">
<Operator>
<f:DropDownList ID="DropDownList1" runat="server">
<f:ListItem Text="等于" Value="equal" />
<f:ListItem Text="包含" Value="contain" Selected="true" />
</f:DropDownList>
</Operator>
</Filter>
</f:RenderField>
<f:RenderField Width="180px" ColumnID="UnitName" DataField="UnitName" SortField="UnitName"
FieldType="String" HeaderText="单位名称" EnableFilter="true" HeaderTextAlign="Center"
TextAlign="Left" Locked="true">
<Filter EnableMultiFilter="true" ShowMatcher="true">
<Operator>
<f:DropDownList ID="DropDownList2" runat="server">
<f:ListItem Text="等于" Value="equal" />
<f:ListItem Text="包含" Value="contain" Selected="true" />
</f:DropDownList>
</Operator>
</Filter>
</f:RenderField>
<f:RenderField Width="100px" ColumnID="InTime" DataField="InTime"
FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd" HeaderText="入场时间" HeaderTextAlign="Center"
TextAlign="Center">
</f:RenderField>
<f:RenderField Width="100px" ColumnID="OutTime" DataField="OutTime"
FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd" HeaderText="出场时间" HeaderTextAlign="Center"
TextAlign="Center">
</f:RenderField>
<f:TemplateField Width="100px" HeaderText="电话" HeaderTextAlign="Center" TextAlign="left">
<ItemTemplate>
<asp:Label ID="Label1" runat="server" Text='<%# Bind("Phone") %>' ToolTip='<%# Bind("Phone") %>' ></asp:Label>
</ItemTemplate>
</f:TemplateField>
<f:TemplateField Width="100px" HeaderText="工程范围" HeaderTextAlign="Center" TextAlign="left">
<ItemTemplate>
<asp:Label ID="Label2" runat="server" Text='<%# Bind("ProjectRange") %>' ToolTip='<%# Bind("ProjectRange") %>' ></asp:Label>
</ItemTemplate>
</f:TemplateField>
</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:ListItem Text="15" Value="15" />
<f:ListItem Text="20" Value="20" />
<f:ListItem Text="25" Value="25" />
<f:ListItem Text="30" Value="30" />
</f:DropDownList>
</PageItems>
</f:Grid>
</Items>
</f:Panel>
</Items>
</f:Panel>
<f:Window ID="Window1" Title="选择项目参与单位" Hidden="true" EnableIFrame="true" EnableMaximize="true"
Target="Parent" EnableResize="true" runat="server" OnClose="Window1_Close" IsModal="true"
Width="1000px" Height="620px">
</f:Window>
<f:Window ID="Window2" Title="项目参与单位信息设置" Hidden="true" EnableIFrame="true" EnableMaximize="true"
Target="Parent" EnableResize="true" runat="server" IsModal="true"
Width="1000px" Height="680px">
</f:Window>
</form>
</body>
</html>
@@ -0,0 +1,131 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ProjectUser.aspx.cs" Inherits="FineUIPro.Web.common.ProjectSet.ProjectUser" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>单位信息</title>
<link href="../../res/css/common.css" rel="stylesheet" type="text/css" />
<style>
.customlabel span {
color: red;
font-weight: bold;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
<f:Panel ID="Panel1" runat="server" ShowBorder="false" ShowHeader="false" Layout="Region">
<Items>
<f:Panel runat="server" ID="panelLeftRegion" RegionPosition="Left" RegionSplit="true"
EnableCollapse="true" Width="240px" Title="项目" ShowBorder="true" Layout="VBox"
ShowHeader="true" AutoScroll="true" BodyPadding="5px" IconFont="ArrowCircleLeft">
<Toolbars>
<f:Toolbar ID="Toolbar1" Position="Top" runat="server" ToolbarAlign="Left">
<Items>
<f:DropDownList ID="drpProjectId" runat="server" Label="项目" LabelAlign="Right" AutoPostBack="true"
EnableEdit="true" OnSelectedIndexChanged="drpProjectId_SelectedIndexChanged"
LabelWidth="50px">
</f:DropDownList>
</Items>
</f:Toolbar>
</Toolbars>
<Items>
<f:Tree ID="tvProject" ShowHeader="false" OnNodeCommand="tvProject_NodeCommand"
runat="server" ShowBorder="false" EnableCollapse="true" EnableSingleClickExpand="true"
AutoLeafIdentification="true" EnableSingleExpand="true" EnableTextSelection="true">
</f:Tree>
</Items>
</f:Panel>
<f:Panel runat="server" ID="panelCenterRegion" RegionPosition="Center" ShowBorder="true"
Layout="VBox" ShowHeader="false" BodyPadding="5px" IconFont="PlusCircle" Title="用户信息"
TitleToolTip="用户信息" AutoScroll="true">
<Items>
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" EnableCollapse="true"
runat="server" BoxFlex="1" DataKeyNames="ProjectUserId" AllowCellEditing="true" ClicksToEdit="2"
DataIDField="ProjectUserId" AllowSorting="true" SortField="UnitName,UserCode" SortDirection="ASC"
OnSort="Grid1_Sort" AllowPaging="true" IsDatabasePaging="true" PageSize="12" AllowColumnLocking="true"
OnPageIndexChange="Grid1_PageIndexChange"
AllowFilters="true" OnFilterChange="Grid1_FilterChange" EnableTextSelection="True">
<Toolbars>
<f:Toolbar ID="Toolbar3" Position="Top" ToolbarAlign="Right" runat="server">
<Items>
<f:Button ID="btnSelectUser" Text="选择用户" Icon="Pencil" runat="server" OnClick="btnSelectUser_Click"></f:Button>
<f:Button ID="btnDelete" Text="删除" Icon="Delete" ConfirmText="确定删除当前数据?" OnClick="btnDelete_Click"
runat="server">
</f:Button>
</Items>
</f:Toolbar>
</Toolbars>
<Columns>
<f:RowNumberField />
<f:RenderField Width="80px" ColumnID="UserName" DataField="UserName" SortField="UserName"
FieldType="String" HeaderText="姓名" EnableFilter="true" HeaderTextAlign="Center"
TextAlign="left" Locked="true">
<Filter EnableMultiFilter="true" ShowMatcher="true">
<Operator>
<f:DropDownList ID="DropDownList1" runat="server">
<f:ListItem Text="等于" Value="equal" />
<f:ListItem Text="包含" Value="contain" Selected="true" />
</f:DropDownList>
</Operator>
</Filter>
</f:RenderField>
<f:RenderField Width="120px" ColumnID="Account" DataField="Account" SortField="Account"
FieldType="String" HeaderText="账号" HeaderTextAlign="Center"
TextAlign="left" Locked="true">
</f:RenderField>
<f:RenderField Width="80px" ColumnID="UserCode" DataField="UserCode" SortField="UserCode"
FieldType="String" HeaderText="编号" HeaderTextAlign="Center" TextAlign="left" Locked="true">
</f:RenderField>
<f:RenderField Width="240px" ColumnID="UnitName" DataField="UnitName" SortField="UnitName"
FieldType="String" HeaderText="所属单位" EnableFilter="true" HeaderTextAlign="Center"
TextAlign="left">
<Filter EnableMultiFilter="true" ShowMatcher="true">
<Operator>
<f:DropDownList ID="DropDownList2" runat="server">
<f:ListItem Text="等于" Value="equal" />
<f:ListItem Text="包含" Value="contain" Selected="true" />
</f:DropDownList>
</Operator>
</Filter>
</f:RenderField>
<f:TemplateField Width="100px" HeaderText="单位类型" HeaderTextAlign="Center" TextAlign="left">
<ItemTemplate>
<asp:Label ID="Label8" runat="server" Text='<%# BLL.Base_UnitService.ConvertUnitTypeStr(Eval("UnitType")) %>' ></asp:Label>
</ItemTemplate>
</f:TemplateField>
<f:RenderField Width="120px" ColumnID="RoleName" DataField="RoleName" SortField="RoleName"
FieldType="String" HeaderText="所属角色" HeaderTextAlign="Center" TextAlign="left" >
</f:RenderField>
</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:ListItem Text="15" Value="15" />
<f:ListItem Text="20" Value="20" />
<f:ListItem Text="25" Value="25" />
<f:ListItem Text="30" Value="30" />
</f:DropDownList>
</PageItems>
</f:Grid>
</Items>
</f:Panel>
</Items>
</f:Panel>
<f:Window ID="Window1" Title="选择项目参与用户" Hidden="true" EnableIFrame="true" EnableMaximize="true"
Target="Parent" EnableResize="true" runat="server" OnClose="Window1_Close" IsModal="true"
Width="1000px" Height="620px">
</f:Window>
</form>
</body>
</html>
@@ -0,0 +1,68 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ProjectUserPower.aspx.cs" Inherits="FineUIPro.Web.common.ProjectSet.ProjectUserPower" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" 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" />
<style>
.customlabel span {
color: red;
font-weight: bold;
}
</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="Region3" ShowBorder="false" ShowHeader="false" RegionPosition="Top"
BodyPadding="0 1 0 0" Layout="Fit" runat="server" >
<Toolbars>
<f:Toolbar ID="Toolbar1" Position="Top" ToolbarAlign="Right" runat="server">
<Items>
<f:Label ID="lbSystemName" runat="server" MarginLeft="20px" CssClass="customlabel"></f:Label>
<f:Label ID="lbUserName" runat="server" MarginLeft="100px" CssClass="customlabel"></f:Label>
<f:ToolbarFill ID="ToolbarFill1" runat="server"></f:ToolbarFill>
<f:Button ID="btnSave" Icon="SystemSave" runat="server" Text="提交数据" ValidateForms="SimpleForm1"
OnClick="btnSave_Click">
</f:Button>
<f:Button ID="btnCancel" Icon="Cancel" runat="server" Text="取消" ValidateForms="SimpleForm1"
OnClick="btnCancel_Click">
</f:Button>
</Items>
</f:Toolbar>
</Toolbars>
</f:Region>
<f:Region ID="Region1" ShowBorder="false" ShowHeader="false" RegionPosition="Left"
BodyPadding="0 5 0 0" Width="380px" Layout="Fit" runat="server">
<Items>
<f:Tree ID="tvProjectSystem" Width="360px" ShowHeader="false" Title="项目系统" OnNodeCommand="tvProjectSystem_NodeCommand"
AutoLeafIdentification="true" runat="server" EnableIcons ="true" Expanded="true" AutoScroll="true" EnableSingleClickExpand ="true">
</f:Tree>
</Items>
</f:Region>
<f:Region ID="Region4" ShowBorder="false" ShowHeader="false" RegionPosition="Center"
BodyPadding="0 5 0 0" Width="270px" Layout="Fit" runat="server">
<Items>
<f:Tree ID="tvUser" Width="260px" ShowHeader="false" Title="单位用户" OnNodeCommand="tvUser_NodeCommand"
AutoLeafIdentification="true" runat="server" EnableIcons ="true" AutoScroll="true" Expanded="true" EnableSingleClickExpand ="true">
</f:Tree>
</Items>
</f:Region>
<f:Region ID="Region2" ShowBorder="false" ShowHeader="false" RegionPosition="Right"
BodyPadding="0 5 0 0" Width="390px" Layout="Fit" runat="server">
<Items>
<f:Tree ID="tvMenu" Width="380px" EnableCollapse="true" ShowHeader="false" Title="系统菜单"
AutoLeafIdentification="true" runat="server" EnableIcons ="true" AutoScroll="true"
EnableSingleClickExpand ="true" OnNodeCheck="tvMenu_NodeCheck" >
</f:Tree>
</Items>
</f:Region>
</Regions>
</f:RegionPanel>
</form>
</body>
</html>
@@ -0,0 +1,153 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ProjectWelder.aspx.cs"
Inherits="FineUIPro.Web.common.ProjectSet.ProjectWelder" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>项目焊工</title>
<link href="../../res/css/common.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" runat="server">
<f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
<f:Panel ID="Panel1" runat="server" ShowBorder="false" ShowHeader="false" Layout="Region">
<Items>
<f:Panel runat="server" ID="panelLeftRegion" RegionPosition="Left" RegionSplit="true"
EnableCollapse="true" Width="240px" Title="项目" ShowBorder="true" Layout="VBox"
ShowHeader="true" AutoScroll="true" BodyPadding="5px" IconFont="ArrowCircleLeft">
<Toolbars>
<f:Toolbar ID="Toolbar1" Position="Top" runat="server" ToolbarAlign="Left">
<Items>
<f:DropDownList ID="drpProjectId" runat="server" Label="项目" LabelAlign="Right" AutoPostBack="true"
EnableEdit="true" OnSelectedIndexChanged="drpProjectId_SelectedIndexChanged"
LabelWidth="50px">
</f:DropDownList>
</Items>
</f:Toolbar>
</Toolbars>
<Items>
<f:Tree ID="tvProject" ShowHeader="false" OnNodeCommand="tvProject_NodeCommand"
runat="server" ShowBorder="false" EnableCollapse="true" EnableSingleClickExpand="true"
AutoLeafIdentification="true" EnableSingleExpand="true" EnableTextSelection="true">
</f:Tree>
</Items>
</f:Panel>
<f:Panel runat="server" ID="panelCenterRegion" RegionPosition="Center" ShowBorder="true"
Layout="VBox" ShowHeader="false" BodyPadding="5px" IconFont="PlusCircle" Title="项目焊工"
TitleToolTip="项目焊工" AutoScroll="true">
<Items>
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" EnableCollapse="true" runat="server"
BoxFlex="1" DataKeyNames="ProjectWelderId" AllowCellEditing="true" ClicksToEdit="2"
DataIDField="ProjectWelderId" AllowSorting="true" SortField="WED_Code" SortDirection="ASC"
OnSort="Grid1_Sort" AllowPaging="true" IsDatabasePaging="true" PageSize="12"
AllowColumnLocking="true" OnPageIndexChange="Grid1_PageIndexChange" AllowFilters="true"
OnFilterChange="Grid1_FilterChange" EnableTextSelection="True">
<Toolbars>
<f:Toolbar ID="Toolbar3" Position="Top" ToolbarAlign="Right" runat="server">
<Items>
<f:Button ID="btnSelectWelder" Text="选择项目焊工" Icon="Pencil" runat="server" OnClick="btnSelectWelder_Click">
</f:Button>
<f:Button ID="btnPrint" Text="合格项目打印" Icon="Printer" runat="server" OnClick="btnPrint_Click">
</f:Button>
<f:Button ID="btnDelete" Text="删除" Icon="Delete" ConfirmText="确定删除当前数据?" OnClick="btnDelete_Click"
runat="server">
</f:Button>
</Items>
</f:Toolbar>
</Toolbars>
<Columns>
<f:TemplateField Width="50px" HeaderText="序号" HeaderTextAlign="Center" TextAlign="Center">
<ItemTemplate>
<asp:Label ID="Label1" runat="server" Text='<%# Container.DataItemIndex + 1 %>'></asp:Label>
</ItemTemplate>
</f:TemplateField>
<f:RenderField Width="90px" ColumnID="WED_Code" DataField="WED_Code" EnableFilter="true"
SortField="WED_Code" FieldType="String" HeaderText="焊工号" HeaderTextAlign="Center"
TextAlign="Center">
</f:RenderField>
<f:RenderField Width="90px" ColumnID="WED_Name" DataField="WED_Name" EnableFilter="true"
SortField="WED_Name" FieldType="String" HeaderText="焊工姓名" HeaderTextAlign="Center"
TextAlign="Center">
</f:RenderField>
<f:CheckBoxField Width="90px" RenderAsStaticField="true" TextAlign="Center" DataField="IsSelected"
HeaderText="是否选用" />
<f:GroupField HeaderText="选用人" TextAlign="Center">
<Columns>
<f:RenderField Width="90px" ColumnID="SelectedMan" DataField="SelectedMan" FieldType="String"
HeaderText="选用人" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
<f:WindowField ColumnID="myWindowFieldSelected" Width="50px" WindowID="Window1" HeaderText="编辑"
Icon="Pencil" ToolTip="编辑" DataTextFormatString="{0}" DataIFrameUrlFields="ProjectWelderId"
DataIFrameUrlFormatString="ProjectWelderEdit.aspx?projectWelderId={0}&type=selectedMan" DataWindowTitleFormatString="编辑 - {1}"
HeaderTextAlign="Center" TextAlign="Center" />
</Columns>
</f:GroupField>
<f:CheckBoxField Width="90px" RenderAsStaticField="true" TextAlign="Center" DataField="IsApprove"
HeaderText="是否审批" />
<f:GroupField HeaderText="审核人" TextAlign="Center">
<Columns>
<f:RenderField Width="90px" ColumnID="ApproveMan" DataField="ApproveMan" FieldType="String"
HeaderText="审核人" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
<f:WindowField ColumnID="myWindowFieldApprove" Width="50px" WindowID="Window1" HeaderText="编辑"
Icon="Pencil" ToolTip="编辑" DataTextFormatString="{0}" DataIFrameUrlFields="ProjectWelderId"
DataIFrameUrlFormatString="ProjectWelderEdit.aspx?projectWelderId={0}&type=approveMan" DataWindowTitleFormatString="编辑 - {1}"
HeaderTextAlign="Center" TextAlign="Center" />
</Columns>
</f:GroupField>
</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="15" Value="15" />
<f:ListItem Text="20" Value="20" />
<f:ListItem Text="25" Value="25" />
<f:ListItem Text="30" Value="30" />
</f:DropDownList>
</PageItems>
</f:Grid>
</Items>
</f:Panel>
</Items>
</f:Panel>
<f:Window ID="Window1" Title="编辑项目焊工" Hidden="true" EnableIFrame="true" EnableMaximize="true"
Target="Self" EnableResize="true" runat="server" OnClose="Window1_Close" IsModal="true"
Width="600px" Height="350px">
</f:Window>
<f:Window ID="Window2" Title="选择焊工" Hidden="true" EnableIFrame="true" EnableMaximize="true"
Target="Self" EnableResize="true" runat="server" OnClose="Window1_Close" IsModal="true"
Width="900px" Height="600px">
</f:Window>
<f:Window ID="Window3" Title="打印合格项目" Hidden="true" EnableIFrame="true" EnableMaximize="true"
Target="Self" EnableResize="true" runat="server" IsModal="true"
Width="1024px" Height="600px">
</f:Window>
<f:Menu ID="Menu1" runat="server">
<%--<f:MenuButton ID="btnMenuEdit" OnClick="btnMenuEdit_Click" EnablePostBack="true"
runat="server" Text="编辑" Icon="TableEdit">
</f:MenuButton>--%>
<f:MenuButton ID="btnMenuDelete" OnClick="btnMenuDelete_Click" EnablePostBack="true"
runat="server" Text="删除" Icon="TableDelete">
</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>
@@ -0,0 +1,58 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ProjectWelderEdit.aspx.cs"
Inherits="FineUIPro.Web.common.ProjectSet.ProjectWelderEdit" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>编辑项目焊工</title>
<link href="../../res/css/common.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" runat="server">
<f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" 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:TextBox ID="txtWED_Name" Label="焊工姓名" runat="server"
Readonly="true" LabelAlign="Right">
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items><f:CheckBox ID="ckbIsSelected" Label="是否选用" runat="server" />
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtSelectedMan" Label="选用人" runat="server" LabelAlign="Right">
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:CheckBox ID="ckbIsApprove" runat="server" Label="是否审批" >
</f:CheckBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtApproveMan" Label="审核人" runat="server" LabelAlign="Right">
</f:TextBox>
</Items>
</f:FormRow>
</Rows>
<Toolbars>
<f:Toolbar ID="Toolbar1" Position="Top" runat="server" ToolbarAlign="Right">
<Items>
<f:Button ID="btnSave" Icon="SystemSave" runat="server" Text="提交" ValidateForms="SimpleForm1"
OnClick="btnSave_Click" >
</f:Button>
</Items>
</f:Toolbar>
</Toolbars>
</f:Form>
</form>
</body>
</html>
@@ -0,0 +1,67 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SelectUnit.aspx.cs" Inherits="FineUIPro.Web.common.ProjectSet.SelectUnit" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>单位信息</title>
<link href="../../res/css/common.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" runat="server">
<f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
<f:Panel ID="Panel1" runat="server" ShowBorder="false" ShowHeader="false" Layout="Region">
<Items>
<f:Panel runat="server" ID="panelLeftRegion" RegionPosition="Left" RegionSplit="true"
EnableCollapse="true" Width="200" Title="单位信息" ShowBorder="true"
ShowHeader="true" AutoScroll="true" BodyPadding="5px" IconFont="ArrowCircleLeft">
<Items>
<f:Tree ID="tvUnit" Width="180px" Height="500px"
ShowHeader="false" Title="单位性质" OnNodeCommand="tvUnit_NodeCommand" runat="server" ShowBorder="false"
EnableSingleClickExpand ="true">
</f:Tree>
</Items>
</f:Panel>
<f:Panel runat="server" ID="panelCenterRegion" RegionPosition="Center" ShowBorder="true"
Layout="VBox" ShowHeader="false" BodyPadding="5px" IconFont="PlusCircle" Title="单位信息"
TitleToolTip="单位信息" AutoScroll="true">
<Items>
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" EnableCollapse="true"
EnableCheckBoxSelect="true" KeepCurrentSelection="true" CheckBoxSelectOnly="true"
AllowPaging="false" runat="server" BoxFlex="1" DataKeyNames="UnitId"
DataIDField="UnitId" AllowSorting="true" SortField="UnitCode" SortDirection="ASC"
OnSort="Grid1_Sort" OnRowDataBound="Grid1_RowDataBound"
EnableTextSelection="True">
<Toolbars>
<f:Toolbar ID="Toolbar3" Position="Top" ToolbarAlign="Right" runat="server">
<Items>
<f:Button ID="btnEdit" Text="确定" Icon="Add" runat="server" OnClick="btnEdit_Click"></f:Button>
</Items>
</f:Toolbar>
</Toolbars>
<Columns>
<f:RowNumberField />
<f:RenderField Width="120px" ColumnID="UnitCode" DataField="UnitCode" SortField="UnitCode"
FieldType="String" HeaderText="单位代码" EnableFilter="true" HeaderTextAlign="Center"
TextAlign="Center" Locked="true">
</f:RenderField>
<f:RenderField Width="300px" ColumnID="UnitName" DataField="UnitName" SortField="UnitName"
FieldType="String" HeaderText="单位名称" EnableFilter="true" HeaderTextAlign="Center"
TextAlign="left" Locked="true">
</f:RenderField>
<f:TemplateField Width="280px" HeaderText="单位类型" HeaderTextAlign="Center" TextAlign="Center">
<ItemTemplate>
<asp:CheckBoxList runat="server" RepeatLayout="Flow" RepeatDirection="Horizontal"
ID="cblUnitType">
</asp:CheckBoxList>
</ItemTemplate>
</f:TemplateField>
</Columns>
</f:Grid>
</Items>
</f:Panel>
</Items>
</f:Panel>
</form>
</body>
</html>
@@ -0,0 +1,71 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SelectUser.aspx.cs" Inherits="FineUIPro.Web.common.ProjectSet.SelectUser" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>用户信息</title>
<link href="../../res/css/common.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" runat="server">
<f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
<f:Panel ID="Panel1" runat="server" ShowBorder="false" ShowHeader="false" Layout="Region">
<Items>
<f:Panel runat="server" ID="panelLeftRegion" RegionPosition="Left" RegionSplit="true"
EnableCollapse="true" Width="300" Title="用户单位" ShowBorder="true" ShowHeader="true"
AutoScroll="true" BodyPadding="5px" IconFont="ArrowCircleLeft">
<Items>
<f:Tree ID="tvUnit" Width="290px" Height="500px" ShowHeader="false" OnNodeCommand="tvUnit_NodeCommand"
runat="server" ShowBorder="false" EnableSingleClickExpand="true">
</f:Tree>
</Items>
</f:Panel>
<f:Panel runat="server" ID="panelCenterRegion" RegionPosition="Center" ShowBorder="true"
Layout="VBox" ShowHeader="false" BodyPadding="5px" IconFont="PlusCircle" Title="用户信息"
TitleToolTip="用户信息" AutoScroll="true">
<Items>
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" EnableCollapse="true" EnableCheckBoxSelect="true"
KeepCurrentSelection="true" CheckBoxSelectOnly="true" runat="server" BoxFlex="1" DataKeyNames="UserId"
DataIDField="UserId" AllowSorting="true" SortField="UserName" SortDirection="ASC"
OnSort="Grid1_Sort" OnRowDataBound="Grid1_RowDataBound" EnableTextSelection="True">
<Toolbars>
<f:Toolbar ID="Toolbar3" Position="Top" ToolbarAlign="Right" runat="server">
<Items>
<f:DropDownList ID="drpDepartId" runat="server" Label="部门" LabelAlign="Right" AutoPostBack="true"
OnSelectedIndexChanged="drpDepartId_SelectedIndexChanged">
</f:DropDownList>
<f:ToolbarFill ID="ToolbarFill1" runat="server">
</f:ToolbarFill>
<f:Button ID="btnEdit" Text="确定" Icon="Add" runat="server" OnClick="btnEdit_Click">
</f:Button>
</Items>
</f:Toolbar>
</Toolbars>
<Columns>
<f:RowNumberField />
<f:RenderField Width="120px" ColumnID="UserName" DataField="UserName" SortField="UserName"
FieldType="String" HeaderText="姓名" EnableFilter="true" HeaderTextAlign="Center"
TextAlign="Center">
</f:RenderField>
<f:RenderField Width="200px" ColumnID="Account" DataField="Account" SortField="Account"
FieldType="String" HeaderText="账号" EnableFilter="true" HeaderTextAlign="Center"
TextAlign="left">
</f:RenderField>
<f:RenderField Width="110px" ColumnID="UserCode" DataField="UserCode" SortField="UserCode"
FieldType="String" HeaderText="编号" HeaderTextAlign="Center" TextAlign="left">
</f:RenderField>
<f:TemplateField Width="150px" HeaderText="所属角色">
<ItemTemplate>
<asp:DropDownList runat="server" ID="ddlRole">
</asp:DropDownList>
</ItemTemplate>
</f:TemplateField>
</Columns>
</f:Grid>
</Items>
</f:Panel>
</Items>
</f:Panel>
</form>
</body>
</html>
@@ -0,0 +1,63 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SelectWelder.aspx.cs" Inherits="FineUIPro.Web.common.ProjectSet.SelectWelder" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>选择焊工</title>
<link href="../../res/css/common.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" runat="server">
<f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
<f:Panel ID="Panel1" runat="server" ShowBorder="false" ShowHeader="false" Layout="Region">
<Items>
<%-- <f:Panel runat="server" ID="panelLeftRegion" RegionPosition="Left" RegionSplit="true"
EnableCollapse="true" Width="300" Title="焊工单位" ShowBorder="true" ShowHeader="true"
AutoScroll="true" BodyPadding="5px" IconFont="ArrowCircleLeft">
<Items>
<f:Tree ID="tvUnit" Width="290px" Height="500px" ShowHeader="false" OnNodeCommand="tvUnit_NodeCommand"
runat="server" ShowBorder="false" EnableSingleClickExpand="true">
</f:Tree>
</Items>
</f:Panel>--%>
<f:Panel runat="server" ID="panelCenterRegion" RegionPosition="Center" ShowBorder="true"
Layout="VBox" ShowHeader="false" BodyPadding="5px" IconFont="PlusCircle" Title="焊工信息"
TitleToolTip="焊工信息" AutoScroll="true">
<Items>
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" EnableCollapse="true" EnableCheckBoxSelect="true"
KeepCurrentSelection="true" runat="server" BoxFlex="1" DataKeyNames="WED_ID"
DataIDField="WED_ID" AllowSorting="true" SortField="WED_Code" SortDirection="ASC"
OnSort="Grid1_Sort" EnableTextSelection="True">
<Toolbars>
<f:Toolbar ID="Toolbar3" Position="Top" ToolbarAlign="Right" runat="server">
<Items>
<f:TextBox ID="txtWeldCode" runat="server" Label="焊工号" EmptyText="请输入焊工号"
AutoPostBack="true" OnTextChanged="TextBox_TextChanged"></f:TextBox>
<f:TextBox ID="txtWeldName" runat="server" Label="姓名" EmptyText="请输入焊工姓名"
AutoPostBack="true" OnTextChanged="TextBox_TextChanged"></f:TextBox>
<f:ToolbarFill ID="ToolbarFill1" runat="server">
</f:ToolbarFill>
<f:Button ID="btnEdit" Text="确定" Icon="Add" runat="server" OnClick="btnEdit_Click">
</f:Button>
</Items>
</f:Toolbar>
</Toolbars>
<Columns>
<f:RowNumberField HeaderText="序号" Width="60px" TextAlign="Center" HeaderTextAlign="Center" />
<f:RenderField Width="150px" ColumnID="WED_Code" DataField="WED_Code" SortField="WED_Code"
FieldType="String" HeaderText="焊工代号" EnableFilter="true" HeaderTextAlign="Center"
TextAlign="left">
</f:RenderField>
<f:RenderField Width="150px" ColumnID="WED_Name" DataField="WED_Name" SortField="WED_Name"
FieldType="String" HeaderText="焊工姓名" EnableFilter="true" HeaderTextAlign="Center"
TextAlign="Center">
</f:RenderField>
</Columns>
</f:Grid>
</Items>
</f:Panel>
</Items>
</f:Panel>
</form>
</body>
</html>
@@ -0,0 +1,122 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WorkArea.aspx.cs" Inherits="FineUIPro.Web.common.ProjectSet.WorkArea" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>施工区域</title>
<link href="../../res/css/common.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" runat="server">
<f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
<f:Panel ID="Panel1" runat="server" ShowBorder="false" ShowHeader="false" Layout="Region">
<Items>
<f:Panel runat="server" ID="panelLeftRegion" RegionPosition="Left" RegionSplit="true"
EnableCollapse="true" Width="260" Title="施工区域" ShowBorder="true"
ShowHeader="true" AutoScroll="true" BodyPadding="5px" IconFont="ArrowCircleLeft">
<Items>
<f:Tree ID="tvProject" Width="240px" Height="500px"
ShowHeader="false" Title="项目信息" OnNodeCommand="tvProject_NodeCommand" runat="server" ShowBorder="false"
EnableSingleClickExpand ="true">
</f:Tree>
</Items>
</f:Panel>
<f:Panel runat="server" ID="panelCenterRegion" RegionPosition="Center" ShowBorder="true"
Layout="VBox" ShowHeader="false" BodyPadding="5px" IconFont="PlusCircle" Title="施工区域"
TitleToolTip="施工区域" AutoScroll="true">
<Toolbars>
<f:Toolbar ID="Toolbar2" Position="Top" runat="server" ToolbarAlign="Right">
<Items>
<f:TextBox ID="txtWorkAreaCode" runat="server" Label="区域编号" EmptyText="输入查询条件" AutoPostBack="true" OnTextChanged="TextBox_TextChanged"
Width="250px" LabelWidth="70px">
</f:TextBox>
<f:TextBox ID="txtWorkAreaName" runat="server" Label="区域名称" EmptyText="输入查询条件" AutoPostBack="true" OnTextChanged="TextBox_TextChanged"
Width="250px" LabelWidth="70px">
</f:TextBox>
<f:ToolbarFill ID="ToolbarFill1" runat="server"> </f:ToolbarFill>
<f:Button ID="btnNew" Text="增加" Icon="Add" runat="server" OnClick="btnNew_Click">
</f:Button>
</Items>
</f:Toolbar>
</Toolbars>
<Items>
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="施工区域" EnableCollapse="true"
runat="server" BoxFlex="1" DataKeyNames="WorkAreaId" AllowCellEditing="true" AllowColumnLocking="true"
EnableColumnLines="true" ClicksToEdit="2" DataIDField="WorkAreaId" AllowSorting="true"
SortField="WorkAreaCode" SortDirection="ASC" OnSort="Grid1_Sort" AllowPaging="true" IsDatabasePaging="true" PageSize="10"
OnPageIndexChange="Grid1_PageIndexChange" EnableTextSelection="True" AutoScroll="true"
EnableRowDoubleClickEvent="true" OnRowDoubleClick="Grid1_RowDoubleClick" >
<Columns>
<f:RowNumberField EnablePagingNumber="true" HeaderText="序号" Width="60px" HeaderTextAlign="Center" TextAlign="Center"/>
<f:WindowField HeaderTextAlign="Center" TextAlign="Left" Width="120px" WindowID="Window1" HeaderText="区域编号"
DataTextField="WorkAreaCode" DataIFrameUrlFields="WorkAreaId" DataIFrameUrlFormatString="WorkAreaEdit.aspx?workAreaId={0}"
Title="区域编号" DataToolTipField="WorkAreaCode" SortField="WorkAreaCode" Locked="true">
</f:WindowField>
<f:RenderField Width="180px" ColumnID="WorkAreaName" DataField="WorkAreaName"
SortField="WorkAreaName" FieldType="String" HeaderText="区域名称" HeaderTextAlign="Center"
TextAlign="Left" Locked="true">
</f:RenderField>
<f:RenderField Width="200px" ColumnID="UnitName" DataField="UnitName"
SortField="UnitName" FieldType="String" HeaderText="单位名称" HeaderTextAlign="Center"
TextAlign="Left">
</f:RenderField>
<f:RenderField Width="120px" ColumnID="InstallationName" DataField="InstallationName"
SortField="InstallationName" FieldType="String" HeaderText="装置" HeaderTextAlign="Center"
TextAlign="Left">
</f:RenderField>
<f:RenderField Width="200px" ColumnID="SupervisorUnitName" DataField="SupervisorUnitName"
SortField="SupervisorUnitName" FieldType="String" HeaderText="监理单位" HeaderTextAlign="Center"
TextAlign="Left">
</f:RenderField>
<f:RenderField Width="250px" ColumnID="Def" DataField="Def"
SortField="Def" FieldType="String" HeaderText="区域描述" HeaderTextAlign="Center"
TextAlign="Left">
</f:RenderField>
</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:DropDownList>
</PageItems>
</f:Grid>
</Items>
</f:Panel>
</Items>
</f:Panel>
<f:Window ID="Window1" Title="施工区域维护" Hidden="true" EnableIFrame="true" EnableMaximize="true"
Target="Self" EnableResize="true" runat="server" OnClose="Window1_Close" IsModal="true"
Width="800px" Height="300px">
</f:Window>
<f:Menu ID="Menu1" runat="server">
<f:MenuButton ID="btnMenuEdit" OnClick="btnMenuEdit_Click" EnablePostBack="true"
runat="server" Text="编辑" Icon="TableEdit">
</f:MenuButton>
<f:MenuButton ID="btnMenuDelete" OnClick="btnMenuDelete_Click" EnablePostBack="true"
ConfirmText="删除选中行?" ConfirmTarget="Top" runat="server" Text="删除" Icon="Delete">
</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>
@@ -0,0 +1,59 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WorkAreaEdit.aspx.cs" Inherits="FineUIPro.Web.common.ProjectSet.WorkAreaEdit" %>
<!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" />
</head>
<body>
<form id="form1" runat="server">
<f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" 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:TextBox ID="txtWorkAreaCode" Label="工区编号" ShowRedStar="true" Required="true"
runat="server" FocusOnPageLoad="true">
</f:TextBox>
<f:TextBox ID="txtWorkAreaName" Label="区域名称" ShowRedStar="true" Required="true"
runat="server" >
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:DropDownList ID="drpUnit" Label="单位名称" runat="server"
ShowRedStar="true" Required="true" EnableEdit="true">
</f:DropDownList>
<f:DropDownList ID="drpInstallation" Label="装置" runat="server"
ShowRedStar="true" Required="true" EnableEdit="true">
</f:DropDownList>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:DropDownList ID="drpSupervisorUnit" Label="监理单位" runat="server" EnableEdit="true">
</f:DropDownList>
<f:TextBox ID="txtDef" Label="区域描述" runat="server" >
</f:TextBox>
</Items>
</f:FormRow>
</Rows>
<Toolbars>
<f:Toolbar ID="Toolbar1" Position="Top" runat="server" ToolbarAlign="Right">
<Items>
<f:Button ID="btnSave" Icon="SystemSave" runat="server" Text="提交" ValidateForms="SimpleForm1"
OnClick="btnSave_Click" ConfirmText="确定要执行提交操作吗?" ConfirmTarget="Top">
</f:Button>
</Items>
</f:Toolbar>
</Toolbars>
</f:Form>
</form>
<script type="text/javascript">
</script>
</body>
</html>
@@ -0,0 +1 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CalculateChinaEx.aspx.cs" Inherits="FineUIPro.Web.Common.ReportPrint.CalculateChinaEx" CodePage="936" %>
@@ -0,0 +1,313 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ExPrintSet.aspx.cs" Inherits="FineUIPro.Web.Common.ReportPrint.ExPrintSet" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title></title>
<link rel="stylesheet" type="text/css" href="css/chinaexcel.css"/>
<script charset="gb2312" language="javascript" type="text/javascript" src="js/Common.js" ></script>
<script src="js/functions.vbs" language="vbscript" type="text/vbscript"></script>
<script language="javascript" type="text/javascript">
function InitFontname() {
strFontnames = ChinaExcel.GetDisplayFontNames();
var arrFontname = strFontnames.split('|');
arrFontname.sort();
var i;
var sysFont;
sysFont = "宋体";
for (i = 0; i < arrFontname.length; i++) {
if (arrFontname[i] != "") {
var oOption = document.createElement("OPTION");
FontNameSelect.options.add(oOption);
oOption.innerText = arrFontname[i];
oOption.value = arrFontname[i];
if (arrFontname[i] == sysFont) oOption.selected = true;
}
}
}
function window_onresize() {
var lWidth = document.body.offsetWidth;
if (lWidth <= 0) lWidth = 1;
ChinaExcel.style.width = lWidth;
var lHeight = document.body.offsetHeight - parseInt(ChinaExcel.style.top);
if (lHeight <= 0) lHeight = 1;
ChinaExcel.style.height = lHeight;
}
function window_onload() {
var aw = screen.availWidth;
var ah = screen.availHeight;
ChinaExcel.border = 0;
ChinaExcel.style.left = 0;
ChinaExcel.style.top = idTBFormat.offsetTop + idTBFormat.offsetHeight;
var lWidth = document.body.offsetWidth;
if (lWidth <= 0) lWidth = 1;
ChinaExcel.style.width = lWidth;
var lHeight = document.body.offsetHeight - parseInt(ChinaExcel.style.top);
if (lHeight <= 0) lHeight = 1;
ChinaExcel.style.height = lHeight;
ChinaExcel.style.display = "";
ChinaExcel.SetMaxRows(18);
ChinaExcel.SetMaxCols(8);
ChinaExcel.DesignMode = true;
//默认状态不显示报表设计界面(如果默认打开报表,有时候readyState返回3,打开会失败) tcf
ChinaExcel.SetOnlyShowTipMessage(true);
InitFontname();
init();
}
function OnSetOnePrintPageDetailZoneRows() {
nPageRows = ChinaExcel.GetOnePrintPageDetailZoneRows()
varvalue = window.prompt("说明:打印时每页显示的行数,不包括表头和表尾页脚、页前脚的行数。请输入每页打印的行数:", "设置每页打印的行数");
nRow=parseInt(varvalue);
if (!isNaN(nRow)) {
ChinaExcel.SetOnePrintPageDetailZoneRows(nRow);
}
}
// 自动折行设置
function Wordwrap() {
if (ChinaExcel.AutoWrap == false) {
ChinaExcel.AutoWrap = true;
alert("该单元格已设为自动折行,请保存!");
}
else {
ChinaExcel.AutoWrap = false;
alert("该单元格已取消自动折行,请保存!");
}
}
</script>
<script for="cbButton" event="onclick()" language="JavaScript" >
return onCbClickEvent(this);
</script>
</head>
<%--<script type="text/javascript">
window.onload = function () {
setInit('ReadExReportFile.aspx?reportId='+<%=reportId %>);
}
</script>--%>
<body id="mainbody" class="mainBody" language="javascript" onresize="return window_onresize()"
onload="return window_onload()">
<form id ="form1" runat="server">
<table class="cbToolbar" style="width: 100%;" border="0" cellpadding="1" cellspacing="1">
<tr>
<td >
&nbsp;
<%--<a href="#" class="tbButton" onclick="retDesgin()" title="设计" ><img alt="" style="vertical-align:middle" src="images/desgin.gif" width="16" height="16"/></a> --%>
<a href="#" class="tbButton" onclick="onFileOpen()" title="打开本地文件" ><img alt="" style="vertical-align:middle" src="images/open.gif" width="16" height="16"/></a>
</td>
<td >
<a href="#" class="tbButton" onclick="onReportSave('<%=reportId %>','<%=reportName %>','<%=ProjectId %>')" title="保存文件"><img alt="" style="vertical-align:middle;" src="images/save.gif" width="16" height="16"/></a>
</td>
<td>
<a href="#" class="tbButton" onclick="FileSave()" title="报表导出"><img alt="" style="vertical-align:middle" src="images/export.gif" width="16" height="16"/></a>
</td>
<td>
<a href="#" class="tbButton" onclick="PrintSetup()" title="打印设置"><img alt="" style="vertical-align:middle" src="images/printsetup.gif" width="16" height="16"/></a>
</td>
<td >
<a href="#" class="tbButton" onclick="PrintpaperSet()" title="页面设置"><img alt="" style="vertical-align:middle" src="images/printpaperset.gif" width="16" height="16"/></a>
</td>
<td class="tbDivider">
<a class="tbButton" onclick="OnSetOnePrintPageDetailZoneRows()" title="设置每页打印的行数" href="#"><img align="middle" alt="" src="images/desgin.gif" width="16" height="16" /></a>
<%-- <a href="#" class="tbButton" onclick="OnSetOnePrintPageDetailZoneRows()" title="设置每页打印的行数"><img alt="" style="vertical-align:middle" src="images/bold.gif" width="16" height="16"/></a>--%>
</td>
<td>
<a href="#" class="tbButton" onclick="onCut()" title="剪切"><img alt="" style="vertical-align:middle" src="images/cut.gif" width="16" height="16"/></a>
</td>
<td>
<a href="#" class="tbButton" onclick="onCopy()" title="复制"><img alt="" style="vertical-align:middle" src="images/copy.gif" width="16" height="16"/></a>
</td>
<td class="tbDivider">
<a href="#" class="tbButton" onclick="onPaste()" title="粘贴"><img alt="" style="vertical-align:middle" src="images/paste.gif" width="16" height="16"/></a>
</td>
<td>
<a href="#" class="tbButton" id="cmdCurrency" name="cbButton" title="货币符号" ><img alt="" style="vertical-align:middle" src="images/currency.gif" width="16" height="16"/></a>
</td>
<td>
<a href="#" class="tbButton" id="cmdPercent" name="cbButton" title="百分号"><img alt="" style="vertical-align:middle" src="images/percent.gif" width="16" height="16"/></a>
</td>
<td class="tbDivider">
<a href="#" class="tbButton" id="cmdThousand" name="cbButton" title="千分位"><img alt="" style="vertical-align:middle" src="images/thousand.gif" width="16" height="16"/></a>
</td>
<td>
<a href="#" class="tbButton" onclick="OnSetCellShowStyle()" title="设置单元样式"><img alt="" style="vertical-align:middle" src="images/cellstyle.gif" width="16" height="16"/></a>
</td>
<td><a class="tbButton" id="cmdChartWzd" title="图表向导" href="#" name="cbButton"><img alt="" style="vertical-align:middle" src="images/chartw.gif" width="16" height="16" /></a></td>
<td>
<a href="#" class="tbButton" onclick="SlashSet()" title="单元斜线设置"><img alt="" style="vertical-align:middle" src="images/slashset.gif" width="16" height="16"/></a>
</td>
<td>
<a href="#" class="tbButton" onclick="Wordwrap()" title="自动折行"><img alt="" style="vertical-align:middle" src="images/wordwrap.gif" width="16" height="16"/></a>
</td>
<td >
<asp:ImageButton ID="undo" runat="server" class="tbButton" OnClientClick="return confirm(&quot;确定要恢复初始设置吗?&quot;);"
ImageUrl="images/undo.gif" ToolTip="恢复初始设置"
style="vertical-align:middle" width="16" height="16" onclick="undo_Click" />
</td>
<td>
<asp:ImageButton ID="imgReturn" runat="server" class="tbButton"
ImageUrl="images/return.gif" ToolTip="返回"
style="vertical-align:middle" width="16px" height="16px"
onclick="imgReturn_Click"/>
</td>
<td style="width:100%">
<%--<a href="#" class="tbButton" onclick="DefineField('<%=reportName %>')" title="定义字段" ><img alt="" style="vertical-align:middle" src="images/export.gif" width="16" height="16"/></a>--%>
</td>
</tr>
</table>
</form>
<table class="cbToolbar" id="idTBFormat" cellpadding='0' cellspacing='0' width="100%">
<tr>
<td id="cmdFontName" title="字体">
<select name="FontNameSelect" style="width: 225px; height: 23px" onchange="changeFontName(FontNameSelect.value)"
accesskey="v" size="1">
</select>
</td>
<td class="tbDivider" id="cmdFontSize" title="字号">
<select name="FontSizeSelect" style="width: 67px; height: 23px" onchange="changeFontSize(FontSizeSelect.value)"
accesskey="v" size="1">
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option selected="selected" value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="14">14</option>
<option value="16">16</option>
<option value="18">18</option>
<option value="20">20</option>
<option value="22">22</option>
<option value="24">24</option>
<option value="26">26</option>
<option value="28">28</option>
<option value="30">30</option>
<option value="36">36</option>
<option value="42">42</option>
<option value="48">48</option>
<option value="72">72</option>
<option value="100">100</option>
<option value="150">150</option>
<option value="300">300</option>
<option value="500">500</option>
<option value="800">800</option>
<option value="1200">1200</option>
<option value="2000">2000</option>
</select>
</td>
<td>
<a class="tbButton" id="cmdBold" title="粗体" href="#" name="cbButton">
<img align="middle" alt="" src="images/bold.gif" width="16" height="16" /></a>
</td>
<td>
<a class="tbButton" id="cmdItalic" title="斜体" href="#" name="cbButton">
<img align="middle" alt="" src="images/italic.gif" width="16" height="16" /></a>
</td>
<td>
<a class="tbButton" id="cmdUnderline" title="下划线" href="#" name="cbButton">
<img align="middle" alt="" src="images/underline.gif" width="16" height="16" /></a>
</td>
<td>
<a class="tbButton" id="cmdBackColor" title="背景色" href="#" name="cbButton">
<img align="middle" alt="" src="images/backcolor.gif" width="16" height="16" /></a>
</td>
<td class="tbDivider">
<a class="tbButton" id="cmdForeColor" title="前景色" href="#" name="cbButton">
<img align="middle" alt="" src="images/forecolor.gif" width="16" height="16" /></a>
</td>
<td>
<a class="tbButton" id="cmdAlignLeft" title="居左对齐" href="#" name="cbButton">
<img align="middle" alt="" src="images/alignleft.gif" width="16" height="16" /></a>
</td>
<td>
<a class="tbButton" id="cmdAlignCenter" title="居中对齐" href="#" name="cbButton">
<img align="middle" alt="" src="images/aligncenter.gif" width="16" height="16" /></a>
</td>
<td>
<a class="tbButton" id="cmdAlignRight" title="居右对齐" href="#" name="cbButton">
<img align="middle" alt="" src="images/alignright.gif" width="16" height="16" /></a>
</td>
<td>
<a class="tbButton" id="cmdAlignTop" title="居上对齐" href="#" name="cbButton">
<img align="middle" alt="" src="images/aligntop.gif" width="16" height="16" /></a>
</td>
<td>
<a class="tbButton" id="cmdAlignMiddle" title="垂直居中" href="#" name="cbButton" sticky="true">
<img align="middle" alt="" src="images/alignmiddle.gif" width="16" height="16" /></a>
</td>
<td class="tbDivider">
<a class="tbButton" id="cmdAlignBottom" title="居下对齐" href="#" name="cbButton">
<img align="middle" alt="" src="images/alignbottom.gif" width="16" height="16" /></a>
</td>
<td id="cmdBoderType" title="边框类型">
<select name="BorderTypeSelect" style="width: 109px; height: 23px" accesskey="v"
size="1">
<option value="0" selected="selected">细线</option>
<option value="1">中线</option>
<option value="2">粗线</option>
<option value="3">点线</option>
<option value="4">虚线</option>
<option value="5">点划线</option>
<option value="6">点点划线</option>
</select>
</td>
<td>
<a class="tbButton" id="cmdDrawBorder" title="画边框线" href="#" name="cbButton">
<img align="middle" alt="" src="images/border.gif" width="16" height="16" /></a>
</td>
<td>
<a class="tbButton" id="cmdEraseBorder" title="抹边框线" href="#" name="cbButton">
<img align="middle" alt="" src="images/erase.gif" width="16" height="16" /></a>
</td>
<td class="tbDivider" width="100%">
</td>
</tr>
</table>
<table style="width: 100%;" border="0" cellpadding="1" cellspacing="1">
<tr>
<td style="width: 100%;">
<object id="ChinaExcel" name="ChinaExcel" style="left: 0px; top: 0px; width: 100%; height:520px; text-align:center;"
classid="CLSID:15261F9B-22CC-4692-9089-0C40ACBDFDD8" codebase="../../Downloads/chinaexcelweb.cab#version=4,0,4,0">
<param name="_Version" value="131072" />
<param name="_ExtentX" value="28205" />
<param name="_ExtentY" value="13229" />
<param name="_StockProps" value="0" />
</object>
</td>
</tr>
</table>
<script type="text/javascript" language="javascript">
function init() {
setInit('ReadExReportFile.aspx?reportId='+<%=reportId %>+'&projectId='+"<%=ProjectId %>");
ChinaExcel.SetOnlyShowTipMessage(false);
}
</script>
<script language="vbscript">
Sub ChinaExcel_ShowCellChanged(Row, Col)
FontSizeSelect.Value = ChinaExcel.CellFontSize
FontNameSelect.value = ChinaExcel.CellFontName
End Sub
</script>
</body>
</html>
@@ -0,0 +1,53 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ExReportPrint.aspx.cs" Inherits="FineUIPro.Web.Common.ReportPrint.ExReportPrint" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>报表打印</title>
<style type="text/css">
A:link {text-decoration:none; color:"black"; font-size:10pt}
A:visited {text-decoration:none; color:"black"; font-size:10pt}
A:active {text-decoration:none; color:"black"; font-size:10pt}
A:hover {text-decoration:none; color:"#FF0000"; font-size:10pt}
</style>
<script src="js/Common.js" type="text/jscript"></script>
</head>
<script type="text/javascript">
window.onload = function () {
setInit('ReadExReportFile.aspx?reportId='+<%=reportId %>+'&projectId='+"<%=projectId %>");
ReplaceParameter('<%=replaceParameter %>');
CalculateTab('<%=reportId %>');
// SetCellValue();
SetCellValUseVarName('<%=varValue %>')
}
</script>
<body>
<form id ="form1" runat="server">
<table style="width: 100%;" border="0">
<tr>
<td>
<p>
<img alt="" style="vertical-align:middle" src="images/printsetup.gif" width="16" height="16"/><a href="#" onclick="PrintSetup()" >打印设置</a> |
<img alt="" style="vertical-align:middle" src="images/print.gif" width="16" height="16"/><a href="#" onclick="FilePrint()" >打印</a> |
<img alt="" style="vertical-align:middle" src="images/printpreview.gif" width="16" height="16"/><a href="#" onclick="Preview()" >打印预览</a> |
<img alt="" style="vertical-align:middle" src="images/export.gif" width="16" height="16"/><a href="#" onclick="onFileSave()" >输出</a> |
</p>
</td>
</tr>
<tr>
<td style="width: 100%;">
<object id="ChinaExcel" style="left: 0px; top: 0px; width: 100%; height:680px;text-align:center;" classid="CLSID:15261F9B-22CC-4692-9089-0C40ACBDFDD8"
name="ChinaExcel" CODEBASE="../../downloads/chinaexcelweb.cab#version=4,0,4,0">
</object>
</td>
</tr>
</table>
&nbsp;
</form>
</body>
</html>
@@ -0,0 +1,19 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Fastreport.aspx.cs" Inherits="FineUIPro.Web.common.ReportPrint.Fastreport" %>
<%@ Register assembly="FastReport.Web" namespace="FastReport.Web" tagprefix="cc2" %>
<!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>
<cc2:WebReport ID="WebReport1" runat="server" Width="1000" Height="600" ReportResourceString="77u/PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjxSZXBvcnQgU2NyaXB0TGFuZ3VhZ2U9IkNTaGFycCIgUmVwb3J0SW5mby5DcmVhdGVkPSIxMS8wOS8yMDE1IDEyOjU1OjEyIiBSZXBvcnRJbmZvLk1vZGlmaWVkPSIxMS8wOS8yMDE1IDE1OjAzOjI1IiBSZXBvcnRJbmZvLkNyZWF0b3JWZXJzaW9uPSIyMDE1LjQuNC4wIj4NCiAgPERpY3Rpb25hcnkvPg0KICA8UmVwb3J0UGFnZSBOYW1lPSJQYWdlMSI+DQogICAgPFJlcG9ydFRpdGxlQmFuZCBOYW1lPSJSZXBvcnRUaXRsZTEiIFdpZHRoPSI3MTguMiIgSGVpZ2h0PSIzNy44Ij4NCiAgICAgIDxUZXh0T2JqZWN0IE5hbWU9IlRleHQxIiBMZWZ0PSIxNzkuNTUiIFRvcD0iOS40NSIgV2lkdGg9IjE4OSIgSGVpZ2h0PSIxOC45IiBUZXh0PSJbRGF0ZV0iLz4NCiAgICA8L1JlcG9ydFRpdGxlQmFuZD4NCiAgICA8UGFnZUhlYWRlckJhbmQgTmFtZT0iUGFnZUhlYWRlcjEiIFRvcD0iNDEuOCIgV2lkdGg9IjcxOC4yIiBIZWlnaHQ9IjI4LjM1Ii8+DQogICAgPERhdGFCYW5kIE5hbWU9IkRhdGExIiBUb3A9Ijc0LjE1IiBXaWR0aD0iNzE4LjIiIEhlaWdodD0iNzUuNiIvPg0KICAgIDxQYWdlRm9vdGVyQmFuZCBOYW1lPSJQYWdlRm9vdGVyMSIgVG9wPSIxNTMuNzUiIFdpZHRoPSI3MTguMiIgSGVpZ2h0PSIxOC45Ii8+DQogIDwvUmVwb3J0UGFnZT4NCjwvUmVwb3J0Pg0K" />
</form>
</body>
</html>
@@ -0,0 +1,60 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PrintDesigner.aspx.cs" Inherits="FineUIPro.Web.common.ReportPrint.PrintDesigner" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>报表设计</title>
<link href="../../../res/css/common.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" runat="server">
<f:PageManager ID="PageManager1" AutoSizePanelID="RegionPanel1" runat="server" />
<f:RegionPanel ID="RegionPanel1" ShowBorder="false" runat="server" Margin="5px">
<Regions>
<%-- <f:Region ID="Region1" ShowBorder="false" ShowHeader="false" RegionPosition="Left"
BodyPadding="0 5 0 0" Width="300px" Layout="Fit" runat="server"
EnableCollapse="true">
<Items>
<f:Panel runat="server" ID="panel2" RegionPosition="Left" RegionSplit="true" EnableCollapse="true"
Width="400" Title="项目" TitleToolTip="项目报表设置" ShowBorder="true" ShowHeader="true"
BodyPadding="5px" IconFont="ArrowCircleLeft">
<Items>
<f:Tree ID="tvProject" Width="350" Height="500" EnableCollapse="true" ShowHeader="false"
OnNodeCommand="tvProject_NodeCommand" AutoLeafIdentification="true" runat="server">
</f:Tree>
</Items>
</f:Panel>
</Items>
</f:Region>--%>
<f:Region ID="Region2" ShowBorder="true" ShowHeader="false" Position="Center" Layout="VBox"
BoxConfigAlign="Stretch" BoxConfigPosition="Left" runat="server">
<Items>
<f:Form ID="SimpleForm1" ShowBorder="false" ShowHeader="false" AutoScroll="true"
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
<Rows>
<f:FormRow>
<Items>
<f:DropDownList ID="drpPrintReport" runat="server" Label="选择设计报表" LabelWidth="150px"
MarginRight="100px" EnableSimulateTree="true" CompareType="String" CompareValue="null"
CompareOperator="NotEqual">
</f:DropDownList>
</Items>
</f:FormRow>
</Rows>
<Toolbars>
<f:Toolbar ID="Toolbar1" Position="Top" ToolbarAlign="Right" runat="server">
<Items>
<f:Button ID="btnReportDesigner" Icon="SystemSave" runat="server" Text="报表设计" ValidateForms="SimpleForm1"
OnClick="btnReportDesigner_Click">
</f:Button>
</Items>
</f:Toolbar>
</Toolbars>
</f:Form>
</Items>
</f:Region>
</Regions>
</f:RegionPanel>
</form>
</body>
</html>
@@ -0,0 +1,16 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ReadExReportFile.aspx.cs" Inherits="FineUIPro.Web.Common.ReportPrint.ReadExReportFile" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
</div>
</form>
</body>
</html>

Some files were not shown because too many files have changed in this diff Show More