实现效果

代码:

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
<script type="text/javascript">
$(document).ready(function () {
//保存附件(新增/修改)
$("#btnSave").click(function () {
$("#BackReason").attr("value", $('#SecBackReason').combogrid("getValue"));
$("#DetailReason").attr("value", $('#SecDetailReason').combogrid("getValue"));
$("#form1").attr("action", "ClientInterCourseAdd");
$("#form1").submit(); // 如果是协同则还要发送邮件
if ($('#interType').combogrid("getValue") == "11") { var to = $("#interTypeMail").val();
var body = $('#SecBackReason').combogrid("getText");
$.ajax({
type: "POST",
url: "/Mail/MailAdd?level=1&spType=1&drpMailTo=" + to,
data: "To=" + to + "&Subject="+body+"&Body=" + body,
success: function (msg) {
alert("Data Saved: " + msg);
}
});
} }); // 显示二级菜单
$('#interType').combobox({
onChange: function (newValue, oldValue) { // 专家咨询
if (newValue == "3") {
var id = $('#ID').val();
var url = "/Client/AddExpertConsult?interCourseID=" + id;
ws.base.showDialog({ url: url, width: "700px", height: "450px" });
}
else {
$('#SecBackReason').combobox({
url: '/Client/GetCodeListByType1?type=Package&id=' + newValue,
valueField: 'DetailCode',
textField: 'DetailName'
});
} }
});
// 显示三级菜单
$('#SecBackReason').combobox({
onChange: function (newValue, oldValue) {
$('#SecDetailReason').combobox({
url: '/Client/GetCodeListByType2?type=Commissioner&id=' + newValue,
valueField: 'DetailCode',
textField: 'DetailName'
});
}
}); }); </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<form id="form1" runat="server">
<input type="hidden" id="hfDisease" name="DiseaseArr" />
<input type="hidden" id="hfProduct" name="ProductArr" />
<input type="hidden" id="hfMg" name="MGArr" />
<input type="hidden" id="hfGnc" name="GncArr" />
<input type="hidden" id="ckbox" />
<div class="body-wrap">
<div class="title clearfix">
<div class="popup">
<div class="title clearfix" id="tbTop">
<div class="f-left">
<span class="icon-arrow iblk"></span><span class="iblk text">客户交流记录新增</span></div>
</div>
<div class="table" style="width: 100%">
<table style="width: 100%">
<colgroup>
<col width="80" />
<col width="170" />
<col width="80" />
<col width="170" />
<col width="80" />
<col width="170" />
</colgroup>
<tbody>
<tr>
<td class="title" align="right">
交流方法:
</td>
<td align="left">
<input id="ID2" name="ID2" type="hidden" value="00000000-0000-0000-0000-000000000000" />
<%:Html.HiddenFor(model=>model.ClientID) %>
<%:Html.HiddenFor(model=>model.ID) %>
<%:Html.Hidden("interTypeMail", WS.Base.App.Business.CodeBusiness.GetCode("interTypeMail",
"1").DetailName)%>
<%:Html.DropDownList("InterMethod", WS.Base.App.Business.CodeBusiness.GetCode("interMethod",
"", true), new { @class = "easyui-combobox", style = "width:150px;", panelHeight = "auto" })%>
</td>
<td class="title" align="right">
交流时间:
</td>
<td align="left">
<%:Html.TextBoxFor(model=>model.InterTime)%>
</td>
<td class="title" align="right">
交流时长:
</td>
<td align="left">
<%:Html.TextBoxFor(model => model.InterTimeLen)%>
</td>
</tr>
<tr>
<td class="title" align="right">
交流类型:
</td>
<td align="left" colspan="6">
<%:Html.DropDownList("interType", WS.Base.App.Business.CodeBusiness.GetCode("interType",
"", true), new { @class = "easyui-combobox", style = "width:150px;", panelHeight = "auto" })%>
<input id="SecBackReason" name="language" style="display: none;" />
<%: Html.HiddenFor(model=>model.BackReason) %>
<input id="SecDetailReason" name="language" style="display: none;" />
<%: Html.HiddenFor(model=>model.DetailReason) %>
</td>
</tr>
<tr>
<td class="title" align="right">
备注:
</td>
<td>
<textarea rows="2" cols="5" id="remark" style="width: 600px;" class="text-box"></textarea>
</td>
</tr>
</tbody>
</table>
<br />
<br />
</div>
</div>
<div style="text-align: center; padding-top: 6px">
<a href="#" class="btn"><span class="in">
<input type="button" value="保存" id="btnSave" name="btnSave" /></span></a> <a href="#"
class="btn"><span class="in">
<input type="button" id="btnClose" style="width: 60px" onclick="window.close();"
value="取消" /></span></a>
</div>
<div style="height: 22px;">
</div>
</div>
</div>
</form>
</asp:Content>

juqery easy ui 实现二级菜单联动的更多相关文章

  1. 省市联动_简单的Demo,适用于各种二级菜单联动

    最近搞了一个功能,是查询页面需要用到二级菜单联动,获取到选中的属性value传入到后台. 平常都是用AJAX或者JQuery ,通过XML或者JSON的方式,这样的话需要调用数据库,像典型得到省市联动 ...

  2. JavaScript(jquery)实现二级菜单联动

    为什么写这篇随笔? 二级菜单的联动一直是我心中一块石头,犹记得大一的时候只会用一点的Dreamweaver,当时做二级菜单难受啊,啥都不会,网上找了些资料,也看不懂别人的代码更别说用起来了 前些日子. ...

  3. Ajax和JSON完成二级菜单联动的功能

    首先需要找好JSON的包哦: 链接:http://pan.baidu.com/s/1jH6gN46 密码:lbh1 1:首先创建一个前台页面,比如secondMenu.jsp,源码如下所示: < ...

  4. Excel实现二级菜单联动

    项目中需要导入一个Excel模板需要实现二级联动,现记录如下: 首先看一下原始数据,原始信息在一张工作表,第一行是省市名称,下面的若干行为对应省市下面的地名和区名.需要在另外一张工作表中A列和B列建立 ...

  5. Struts2二级菜单联动

    http://www.cnblogs.com/wujixing/p/5194461.html ps: Java面试 http://blog.csdn.net/zhang070809/article/d ...

  6. jQuery Easy UI 开发笔记

    1.jQuery Easy UI主要的运行原理是通过核心的代码调用插件来实现UI效果的 2.jQuery Easy UI插件与插件之间的关系是: 一.独立式插件: 独立式插件是指:不与其他的插件具有相 ...

  7. JQuery Easy Ui dataGrid 数据表格 ---制作查询下拉菜单

    JQuery Easy Ui dataGrid 数据表格 数据表格 - DataGrid 继承$.fn.panel.defaults,使用$.fn.datagrid.defaults重载默认值.. 数 ...

  8. Struts2 easy UI插件

    一.easy UI是类似于jQuery UI的插件库,它提供了丰富的各种常用插件:tree.datagrid... tree插件: 语法:$(selector).tree([settings]); 常 ...

  9. Easy UI常用插件使用

    一.easy UI是类似于jQuery UI的插件库,它提供了丰富的各种常用插件:tree.datagrid... tree插件: 语法:$(selector).tree([settings]); 常 ...

随机推荐

  1. qmake和moc的功能(★firecat推荐★)

    原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 .作者信息和本声明.否则将追究法律责任.http://devbean.blog.51cto.com/448512/355100 前面我们 ...

  2. 单元测试之C/C++

    如今TDD很火,我公司小,一般写代码不写测试用例的,一般就是随便测试下函数的输入输出,没用工具或框架来测试,非常简单,一点也不正规化. 在一种传统的结构化编程语言中,比如C,要进行测试的单元一般是函数 ...

  3. Android项目使用support v7时遇到的各种问题

    Android项目使用support v7时遇到的各种问题 点击你的工程右键-->Properties-->Android 1.查看你引用的appcompat_v7包是否引用正确 2.用较 ...

  4. Hibernate的几种查询方式-HQL,QBC,QBE,离线查询,复合查询,分页查询

    HQL查询方式 这一种我最常用,也是最喜欢用的,因为它写起来灵活直观,而且与所熟悉的SQL的语法差不太多.条件查询.分页查询.连接查询.嵌套查询,写起来与SQL语法基本一致,唯一不同的就是把表名换成了 ...

  5. iOS UILabel UITextView UIButton 等等显示文本行间距

    iOS UILabel  UITextView UIButton 等等显示文本行间距都用如下方法 NSMutableParagraphStyle *paragraphStyle = [[NSMutab ...

  6. c语言编程之sglib库的简单使用

    说实话自从大学毕业后已经很久没有用c语言写过程序了,一般都是使用c++,c++的stl和boost等,这些代码库大大简化了我们的编程复杂度.由于最近某种原因在次开始用c写程序.我是个比较懒的人,比较喜 ...

  7. 未能载入文件或程序集“DAL”或它的某一个依赖项。系统找不到指定的文件。

    这个一般出如今三层给B层与D层之间加抽象工厂-接口-映射.时候出的错.出错的地方是抽象工厂. --如图 watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvdTA ...

  8. Linux编程环境介绍(1) -- linux的历史

    1. linux是什么? "Hello everybody out there using minix——I'm doing a (free) operating system"  ...

  9. [Cycle.js] Main function and effects functions

    We need to give structure to our application with logic and effects. This lessons shows how we can o ...

  10. UVA 1558 - Number Game(博弈dp)

    UVA 1558 - Number Game 题目链接 题意:20之内的数字,每次能够选一个数字,然后它的倍数,还有其它已选数的倍数组合的数都不能再选,谁先不能选数谁就输了,问赢的方法 思路:利用dp ...