BBSWeb/Scripts/Users/SelMultiUser.js
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
CreateWin('winSelUsers', '选择人员', 'SelUser', 600, 500, function open() {
$.get("/Services/Users/CopList.asmx/GetStoreByTitle", { pid: $COPID }, function (data) {
$("<option value='0'>-请选择部门-</option>").appendTo($("#ddlDep"));
$(data).find("Table").each(function () {
_temp = $(this);
var tempid = _temp.find("Id").text();
var tempstr = _temp.find("Title").text();
$("<option value='" + tempid + "'>" + tempstr + "</option>").appendTo($("#_SelDepart_List"));
});
});
$("#_SelDepart_List").click(function () {
$.get("/Services/UserList.asmx/GetUsersByStores", { depart: $("#_SelDepart_List").find("option:selected").text() }, function (d) {
$("#_SelUser_List").empty();
$(d).find("Table").each(function () {
//if ($(this).attr("userName") != $(d).find("UserName").text()) {
$("#_SelUser_List").append($("<option value='" + $(d).find("UserId").text() + "'>" + $(d).find("UserName").text() + "</option>"));
//$(this).find("userName").text(),'u'+ $(this).find("id").text(),"d"+$(this).find("DepartId").text());
//}
});
});
});
$("#_SelUser_List").dblclick(function () { $("#_SelUsersAdd").click(); });
$("#_SelUsersAdd").click(function () {
if ($("#_SelUser_List").val() == null) {
alert("您还没有选择用户!");
}
else {
var _SelUserAdd_TempUName = $("#_SelUser_List").getSelectedText();
var _SelUserAdd_TempUId = $("#_SelUser_List").val();
if (_SelUserAdd_TempUId != "" && _SelUserAdd_TempUId != null && _SelUserAdd_TempUId != undefined) {
//是否已存在
var SelUser_isExists = false;
$("#_SelctedUser_User").find("option").each(function () {
if ($(this).val() == _SelUserAdd_TempUId)
SelUser_isExists = true;
});
if (!SelUser_isExists) {
$("<option value='" + _SelUserAdd_TempUId + "'>" + _SelUserAdd_TempUName + "</option>").appendTo($("#_SelctedUser_User"));
}
}
}
});
$("#_SelctedUser_User").dblclick(function () {
$("#_SelUsersDel").click();
});
$("#_SelUsersDel").click(function () {
$("#_SelctedUser_User").removeSelected();
});
// });
}, function yes() {
if ($("#_SelctedUser_User").size() == 0) {
alert("您还没有选择用户!");
}
else {
var _SelUserNames = "";
var _SelUserIds = "";
$("#_SelctedUser_User").find("option").each(function () {
_SelUserNames += $(this).text() + ",";
后面还有 12 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。