You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

73 lines
2.9 KiB

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="user_select_Factory.aspx.cs" Inherits="SCP.Admin.user_select_Factory" %>
<!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" ShowBorder="false" ShowHeader="false" AutoScroll="true" runat="server">
<Toolbars>
<f:Toolbar ID="Toolbar1" runat="server">
<Items>
<f:Button ID="btnClose" Icon="SystemClose" EnablePostBack="false" runat="server"
Text="关闭">
</f:Button>
<f:ToolbarSeparator ID="ToolbarSeparator1" runat="server">
</f:ToolbarSeparator>
<f:Button ID="btnSaveClose" ValidateForms="SimpleForm1" Icon="SystemSaveClose" EnablePostBack="false"
runat="server" Text="选择后关闭">
<Listeners>
<f:Listener Event="click" Handler="onSaveCloseClick" />
</Listeners>
</f:Button>
</Items>
</f:Toolbar>
</Toolbars>
<Items>
<f:Form ID="SimpleForm1" ShowBorder="false" ShowHeader="false" runat="server" BodyPadding="10px"
Title="SimpleForm">
<Rows>
<f:FormRow runat="server">
<Items>
<f:CheckBoxList ID="CBL_ADDRESS" ColumnNumber="4" Label="所属地点" ShowLabel="false" runat="server">
</f:CheckBoxList>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</Items>
</f:Panel>
</form>
<script>
var cblAddressClientID = '<%= CBL_ADDRESS.ClientID %>';
function onSaveCloseClick() {
// 数据源 - 复选框列表
var cblAddress = F(cblAddressClientID);
var addressNames = [], addressIds = [];
cblAddress.items.each(function (item) {
// 是否选中
if (item.getValue()) {
addressNames.push(item.boxLabel);
addressIds.push(item.inputValue);
}
});
// 返回当前活动Window对象(浏览器窗口对象通过F.getActiveWindow().window获取)
var activeWindow = F.getActiveWindow();
activeWindow.window.updateSelectedAddress(addressNames, addressIds);
activeWindow.f_hide();
}
</script>
</body>
</html>