60 lines
1.8 KiB
Plaintext
60 lines
1.8 KiB
Plaintext
@using WX.CRM.WebHelper;
|
|
@{
|
|
ViewBag.Title = "UserComBox";
|
|
Layout = "~/Views/Shared/_Index_Layout2.cshtml";
|
|
}
|
|
|
|
@Html.Action("UserComBox", "Control", new { isShowDismiss = false, isSelf = false })
|
|
|
|
<br />
|
|
<br />
|
|
@*<input type="button" onclick="GetSales()" value="销售部" />
|
|
<input type="button" onclick="GetGroups()" value="销售组" />
|
|
<input type="button" onclick="GetUserId()" value="用户" />
|
|
<input type="button" onclick="Reload()" value="重新加载2" />
|
|
<script type="text/javascript">
|
|
function Reload() {
|
|
onLoadBeforeData = function () {
|
|
return "&balanceCode=201502";
|
|
};
|
|
nb1_ComBoxLoad();
|
|
}
|
|
function onLoadSucced() {
|
|
alert("加载完毕!");
|
|
}
|
|
function onLoadBeforeData() {
|
|
return "&balanceCode=201501";
|
|
}
|
|
function GetSales() {
|
|
alert($("#nb1_uc_org_depts").val());
|
|
}
|
|
function GetGroups() {
|
|
alert($("#nb1_uc_org_groups").val());
|
|
}
|
|
function GetUserId() {
|
|
alert($("#nb1_uc_org_ids").val());
|
|
}
|
|
</script>*@
|
|
<input type="button" onclick="GetData()" value="获取数据" />
|
|
<script type="text/javascript">
|
|
function Reload() {
|
|
onLoadBeforeData = function () {
|
|
return "&balanceCode=201502";
|
|
};
|
|
nb1_ComBoxLoad();
|
|
}
|
|
function onLoadSucced() {
|
|
console.log("加载完毕!");
|
|
GetData();
|
|
}
|
|
function onLoadBeforeData() {
|
|
return "&balanceCode=201501";
|
|
}
|
|
function GetData() {
|
|
var companyId = $("#txt_companyId").val();
|
|
var deptId = $("#txt_deptId").val();
|
|
var groupId = $("#txt_groupIds").val();
|
|
var userId = $("#txt_userId").val();
|
|
console.log("companyId:" + companyId + ",deptId:" + deptId + ",groupId:" + groupId + ",userId:" + userId);
|
|
}
|
|
</script> |