📄 chooseworkflowproperty.aspx
字号:
<%@ Page Language="C#" MasterPageFile="~/Admin/Dialog.master" AutoEventWireup="true"
CodeBehind="ChooseWorkflowProperty.aspx.cs" Inherits="Agile.OA.Web.Admin.ChooseWorkflowProperty"
StylesheetTheme="Dialog" Title="选择工作流属性" %>
<asp:Content ID="Content" ContentPlaceHolderID="Content" runat="server">
<script type="text/javascript">
$(
function()
{
$("#Controls").tableHover(
{
rowClass: "Hover"
});
$("#Confirm").click(
function()
{
var permissions = new String();
$(":checkbox:checked").each(
function()
{
permissions += $(this).next().attr("title") + "|";
});
if (permissions.length > 0)
{
permissions = permissions.slice(0, permissions.length - 1);
}
var controls = new String();
$(":input[@id$='ControlAttribute']").each(
function()
{
if ($(this).val() != "")
{
controls += $(this).attr("title") + "," + $(this).val() + "|";
}
});
if (controls.length > 0)
{
controls = controls.slice(0, controls.length - 1);
}
window.parent.returnValue = "Name=" + $("#<%= this.Name.ClientID %>").val() + "&Description=" + $("#<%= this.Description.ClientID %>").val() + "&Permissions=" + permissions + "&Controls=" + controls;
window.close();
});
});
</script>
<table class="Container">
<tr>
<td class="Name">
名 称:
</td>
<td class="Value">
<asp:TextBox ID="Name" runat="server" CssClass="{required: true}" MaxLength="20"
ToolTip="请输入名称"></asp:TextBox>
</td>
</tr>
<tr>
<td class="Name">
描 述:
</td>
<td class="Value">
<asp:TextBox ID="Description" runat="server" SkinID="Description" MaxLength="100"
TextMode="MultiLine"></asp:TextBox>
</td>
</tr>
<tr>
<td class="Left" valign="top">
<asp:TreeView ID="Permissions" runat="server">
</asp:TreeView>
</td>
<td>
<asp:ListView ID="Controls" runat="server" ItemPlaceholderID="ItemContainer" OnItemDataBound="Controls_ItemDataBound">
<LayoutTemplate>
<table id="Controls" class="List">
<thead>
<tr>
<th>
名 称
</th>
<th>
描 述
</th>
<th>
类 型
</th>
<th>
属 性
</th>
</tr>
</thead>
<tbody id="ItemContainer" runat="server">
</tbody>
</table>
</LayoutTemplate>
<ItemTemplate>
<tr>
<td>
<asp:Label ID="ControlName" runat="server" Text='<%# Eval("Name") %>'></asp:Label>
</td>
<td>
<%# Eval("Description") %>
</td>
<td>
<%# Eval("Type") %>
</td>
<td>
<asp:DropDownList ID="ControlAttribute" runat="server" ToolTip='<%# string.Format("{0},{1}", Eval("Name"), Eval("Type")) %>'>
<asp:ListItem></asp:ListItem>
<asp:ListItem Value="Read">只读</asp:ListItem>
<asp:ListItem Value="Write">读写</asp:ListItem>
<asp:ListItem Value="Hide">隐藏</asp:ListItem>
</asp:DropDownList>
</td>
</tr>
</ItemTemplate>
<EmptyDataTemplate>
<table id="Controls" class="List">
<thead>
<tr>
<th>
名 称
</th>
<th>
描 述
</th>
<th>
类 型
</th>
<th>
属 性
</th>
</tr>
</thead>
</table>
</EmptyDataTemplate>
</asp:ListView>
</td>
</tr>
<tr>
<td class="Bottom" colspan="2">
<input id="Confirm" type="button" class="Button" value="确 定" />
</td>
</tr>
</table>
</asp:Content>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -