Commit a4e077b5 by mayunfei

联络员新增类型

parent b7eb77e8
......@@ -998,6 +998,33 @@ public class ZczlController {
if(xxzjbh!=null&&!"".equals(xxzjbh)){
sflly = "1";
}
if("1".equals(sflly)){
String ywlx = lly.getYwlx();
if(ywlx!=null) {
String ywlxStr = "";
String[] ywlxArr = ywlx.split(",");
//通过代码值拿到字典值
for (int t = 0; t < ywlxArr.length; t++) {
HashMap<String, String> codeMap = new HashMap<String, String>();
codeMap.put("groupid", "CODE_YWLXDM");
codeMap.put("code", ywlxArr[t]);
String name = zczlService.getNameByCode(codeMap);
if (t == 0) {
ywlxStr = name;
} else {
ywlxStr += "," + name;
}
objectMap.put("ywlx", ywlxStr);
}
}else{
objectMap.put("ywlx","请设置联络员类型");
}
}else{
objectMap.put("ywlx","请先设置为联络员");
}
objectMap.put("sflly",sflly);//是否联络员
objectMap.put("xxzjbh",xxzjbh);//是否联络员
jeMapList.add(objectMap);
......@@ -1113,6 +1140,27 @@ public class ZczlController {
objectMap.put("xxdjryxm", lly.getXxdjryxm());//设置人姓名
objectMap.put("xxdjdwgajgjgdm", lly.getXxdjdwgajgjgdm());//设置人单位
objectMap.put("djsj", lly.getDjsj());//设置时间
String ywlx = lly.getYwlx();
if(ywlx!=null){
String ywlxStr = "";
String[] ywlxArr = ywlx.split(",");
//通过代码值拿到字典值
for(int t=0;t<ywlxArr.length;t++){
HashMap<String,String> codeMap = new HashMap<String,String>();
codeMap.put("groupid", "CODE_YWLXDM");
codeMap.put("code", ywlxArr[t]);
String name = zczlService.getNameByCode(codeMap);
if(t==0){
ywlxStr = name;
}else{
ywlxStr +=","+name;
}
objectMap.put("ywlx",ywlxStr);
}
}else{
objectMap.put("ywlx","暂无类型");
}
objectMap.put("policemanid", lly.getPolicemanid());//联络员警号
jeMapList.add(objectMap);
}
......
......@@ -5,6 +5,7 @@ import org.springframework.web.multipart.MultipartFile;
import javax.servlet.http.HttpServletRequest;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
......@@ -46,6 +47,8 @@ public interface IZczlService {
List<TbYwZczlLly> toQueryAllUser(TbYwZczlLly tbYwZczlLly,User user);
String getNameByCode(HashMap<String, String> codeMap);
Integer toQueryAllUserForTotal(TbYwZczlLly tbYwZczlLly);
boolean setLly(TbYwZczlLly lly);
......
......@@ -580,9 +580,9 @@ public class ZczlService implements IZczlService {
}
}else{
if(i == list.size() -1 && i % 500 == 0){
inString = inString + "or UNITCODE in ('"+list.get(i)+"'";
inString = inString + "or s.UNITCODE in ('"+list.get(i)+"'";
}else if(i % 500 == 0){
inString = inString + "or UNITCODE in ('"+list.get(i)+"'";
inString = inString + "or s.UNITCODE in ('"+list.get(i)+"'";
}else if((i+1) % 500 != 0 && i!=list.size()-1){
inString = inString+",'"+list.get(i)+"'";
}else{
......@@ -600,6 +600,11 @@ public class ZczlService implements IZczlService {
}
@Override
public String getNameByCode(HashMap<String, String> codeMap) {
return dictitemDao.getNameByCode(codeMap);
}
@Override
public Integer toQueryAllUserForTotal(TbYwZczlLly tbYwZczlLly){
return zczlDao.toQueryAllUserForTotal(tbYwZczlLly);
}
......
spring.datasource.url=jdbc:oracle:thin:@192.168.0.103:1521:XZXT
spring.datasource.url=jdbc:oracle:thin:@192.168.0.102:1521:XZXT
spring.datasource.username=XZXT
spring.datasource.password=XZXT
spring.datasource.driver-class-name=oracle.jdbc.driver.OracleDriver
......
......@@ -747,27 +747,29 @@
select * from (
select t.*,rownum rn from (
select
ID userId,
TRUE_NAME truename,
POLICEMANID policemanid,
USERNAME username,
UNITCODE unitcode,
(select name from sys_dictitem where groupid='CODE_XZUNIT' and code=UNITCODE) as unitname,
TELEPHONE telephone
from SYS_USER where scbz='0'
<if test="unitcode!=null and unitcode!=''"> and (UNITCODE in ${unitcode} )</if>
<if test="truename!=null and truename!=''"> and TRUE_NAME like '%'||#{truename, jdbcType=VARCHAR}||'%'</if>
<if test="policemanid!=null and policemanid!=''"> and POLICEMANID = #{policemanid, jdbcType=VARCHAR}</if>
s.ID userId,
s.TRUE_NAME truename,
s.POLICEMANID policemanid,
s.USERNAME username,
s.UNITCODE unitcode,
l.ywlx ywlx,
(select name from sys_dictitem where groupid='CODE_XZUNIT' and code=s.UNITCODE) as unitname,
s.TELEPHONE telephone
from SYS_USER s ,(select * from TB_YW_ZCZL_LLY where xxscpdbz = '0') l where s.scbz='0'
and s.identitycard = l.sfzh(+)
<if test="unitcode!=null and unitcode!=''"> and (s.UNITCODE in ${unitcode} )</if>
<if test="truename!=null and truename!=''"> and s.TRUE_NAME like '%'||#{truename, jdbcType=VARCHAR}||'%'</if>
<if test="policemanid!=null and policemanid!=''"> and s.POLICEMANID = #{policemanid, jdbcType=VARCHAR}</if>
) t
WHERE ROWNUM <![CDATA[<=]]> #{end}
) WHERE RN > #{begin}
</select>
<select id="toQueryAllUserForTotal" parameterType="com.founder.model.TbYwZczlLly" resultType="java.lang.Integer">
select count(*) from SYS_USER where scbz='0'
<if test="unitcode!=null and unitcode!=''"> and UNITCODE in ${unitcode}</if>
<if test="truename!=null and truename!=''"> and TRUE_NAME like '%'||#{truename, jdbcType=VARCHAR}||'%'</if>
<if test="policemanid!=null and policemanid!=''"> and POLICEMANID = #{policemanid, jdbcType=VARCHAR}</if>
select count(*) from SYS_USER s where s.scbz='0'
<if test="unitcode!=null and unitcode!=''"> and s.UNITCODE in ${unitcode}</if>
<if test="truename!=null and truename!=''"> and s.TRUE_NAME like '%'||#{truename, jdbcType=VARCHAR}||'%'</if>
<if test="policemanid!=null and policemanid!=''"> and s.POLICEMANID = #{policemanid, jdbcType=VARCHAR}</if>
</select>
<!-- 根据userid拿到用户信息 -->
......@@ -853,6 +855,7 @@
TRUENAME truename,
TELEPHONE telephone,
XXDJRYXM xxdjryxm,
ywlx ywlx,
(select name from sys_dictitem where groupid='CODE_UNIT' and code=XXDJDWGAJGJGDM) as xxdjdwgajgjgdm,
to_char(DJSJ,'yyyy-MM-dd hh24:mi:ss') as djsj
from TB_YW_ZCZL_LLY where 1=1 and XXSCPDBZ = '0' and UNITCODE = #{unitcode, jdbcType=VARCHAR}
......
(function($){
$.parser.plugins.push("openCombotree");//注册扩展组件
function init(jq) {
var openCombotreeObj = $.data(jq, "openCombotree");
var opts = openCombotreeObj.options;
var tree = openCombotreeObj.tree;
var ID=$(jq).attr("id");
var $box = $('#' + ID);
var btnID = ID + '_select';
var dictPanelID = 'dictPanel_' + ID;
var dictTreeID = 'dictTree_' + ID;
var dictSearchID = 'dictSearch_' + ID;
var clearbtnId=ID+"_clearBtn";
var allowClick=opts.allowClick;
var minonly=opts.minonly;
var searchbox=opts.searchbox;//是否允许搜索框
$(jq).addClass("combotree-f");
$(jq).combo(opts);
//设置组件不可点
$box.combo({
readonly: true
});
var panel = $(jq).combo("panel");
var panelDivHtml = '<div style="display:none;position:relative;" id="' + dictPanelID + '">' +
'<div style="padding:8px 20px;margin-bottom:5px;border-bottom:1px #ccc dashed;"></div>' +
'<div class="dict-search" style="padding:5px 20px;margin-bottom:5px;border-bottom:1px #ccc dashed;">' +
'<input id="' + dictSearchID + '">' +
'<a id="'+clearbtnId+'" class="easyui-linkbutton c6 l-btn2 l-btn-small" style="width:50px;height:22px;line-height:22px;margin-left:20px;">清空</a>' +
'</div>'+
'<div class="dict-tree combo-panel" style="width:100%;height:350px;overflow:auto;"><ul class="tree tree-lines" id="' + dictTreeID + '"></ul></div>' +
'</div>';
if(!panel){
panel=panelDivHtml.appendTo("body");
}
if (!$('#' + dictPanelID).length) {
$('body').append(panelDivHtml);
}
$("#"+clearbtnId).on("click",clearSearchbox);
//$box.next().find("span").html('<span><a style="cursor:pointer;" id="' + btnID + '"><img src="/static/easyui-window/images/code.gif" style="margin-top:1px;"/></a></span>');
$box.next().find("span").html('<span><a style="padding:0 5px;cursor:pointer;color:#0F6596" id="' + btnID + '"><span>点击选择</span></a></span>');
if (!tree) {
tree = $("#"+dictTreeID).appendTo($('#' + dictPanelID+" .dict-tree"));
$.data(jq, "openCombotree").tree = tree;
}
//初始化树
tree.tree($.extend({}, opts, {
checkbox: opts.multiple,
lines:true,
onLoadSuccess: function (node, data) {
var values = $(jq).openCombotree("getValues");
if (opts.multiple) {
var checkedNode = tree.tree("getChecked");
for (var i = 0; i < checkedNode.length; i++) {
var id = checkedNode[i].id;
(function () {
for (var i = 0; i < values.length; i++) {
if (id == values[i]) {
return;
}
}
values.push(id);
})();
}
$(jq).openCombotree("setValues", values);
}else{
$(jq).openCombotree("setValue", values);
}
if(node){
$(this).tree("expand",node.target);
}
opts.onLoadSuccess.call(this, node, data);
},
onClick: function (node) {
if (opts.multiple) {
$(this).tree(node.checked ? "uncheck" : "check", node.target);
} else {
$(jq).combo("hidePanel");
}
$(this).tree( node.state!="open"? "expand" : "collapse", node.target);
//initNode(jq);
opts.onClick.call(this, node);
},
onCheck: function (node, param) {
//console.log("onCheck");
initNode(jq);
opts.onCheck.call(this, node, param);
},
formatter: function (node) {
return node.id + ' | ' + node.text;
}
}));
if(allowClick){
$('#' + btnID).off('click').on('click', function () {
//打开弹框
openDivForm({
id: dictPanelID,
title: '字典选择',
width: 600,
onClose: function () {
}
}, [
{
text: '确定',
handler: function () {
var tree=$box.openCombotree("tree");
var opts = $box.openCombotree("options");
var vv = [], ss = [];
var flag=true;
if (opts.multiple) {
var checkedNode = tree.tree("getChecked");
for (var i = 0; i < checkedNode.length; i++) {
vv.push(checkedNode[i].id);
ss.push(checkedNode[i].text);
}
} else {
var node = tree.tree("getSelected");
if (node) {
if(minonly){
flag=checkMinNode(tree,node);
}
vv.push(node.id);
ss.push(node.text);
}
}
if(flag){
$box.openCombotree("setValues",vv);
$('#' + dictPanelID).dialog('close');
}
}
}, {
text: '取消',
handler: function () {
$('#' + dictPanelID).dialog('close');
}
}, {
text: '清空选择项',
handler: function () {
var tree=$box.openCombotree("tree");
tree.find("div.tree-node-selected").removeClass("tree-node-selected");
var cc = tree.tree("getChecked");
for (var i = 0; i < cc.length; i++) {
tree.tree("uncheck", cc[i].target);
}
$box.openCombotree('clear');
$box.openCombotree('setValue', '');
}
}
]);
});
//初始化搜索框
$('#' + dictSearchID).searchbox({
prompt: '输入关键字查询,输入空查询全部',
width: 300,
height: 25,
disabled: searchbox,
searcher: function (value, name) {
var searchKeyValue = value.replace(/(^\s*)|(\s*$)/g, "");
var options = $box.openCombotree('options');
var dictUrl = options.url;
if(dictUrl.lastIndexOf(".")>0){//是js格式的字典
var roots = $('#' + dictTreeID).tree('getRoots');
$('#' + dictTreeID).tree('uncheck', roots[0].target);
$('#' + dictTreeID).tree('doFilter', searchKeyValue);
if (searchKeyValue != "") {
var treeObject = $('#' + dictTreeID);
var node = treeObject.tree('searchTreeNode', {searchKey: searchKeyValue.toUpperCase()});
if (node != null) {
var locateNode = treeObject.tree('find', node['id']);
treeObject.tree('expandTo', locateNode.target);
treeObject.tree('scrollTo', locateNode.target);
treeObject.tree('select', locateNode.target);
}
else {
$.messager.show({
title: '搜索结果',
msg: '无匹配的数据项!'
});
}
}
}else{
var index = dictUrl.indexOf("?");
if(index>0){
dictUrl=dictUrl+"&name="+searchKeyValue;
}else{
dictUrl=dictUrl+"?name="+searchKeyValue;
}
var tree=$box.openCombotree("tree");
$.ajax({
url:dictUrl,
type:"get",
dataType:"json",
success:function(data){
tree.tree("loadData",data);
},
error:function(e){
console.log(JSON.stringify(e));
}
});
}
}
});
}
function clearSearchbox(){
$("#"+dictSearchID).searchbox("clear");
tree.tree("reload");
}
};
function checkMinNode(tree,node){
var childrenNode=tree.tree("getChildren",node.target);
if(childrenNode&&childrenNode.length>0){
flag=false;
$.messager.alert({
title: "提示",
msg: '请选择最小节点!'
});
return false;
}
return true;
}
function initNode(jq) {
var openCombotree = $.data(jq, "openCombotree");
var opts = openCombotree.options;
var tree = openCombotree.tree;
var vv = [], ss = [];
if (opts.multiple) {
var checkedNode = tree.tree("getChecked");
for (var i = 0; i < checkedNode.length; i++) {
vv.push(checkedNode[i].id);
ss.push(checkedNode[i].text);
}
} else {
var node = tree.tree("getSelected");
if (node) {
vv.push(node.id);
ss.push(node.text);
}
}
$(jq).combo("setText", ss.join(opts.separator)).combo("setValues", opts.multiple ? vv : (vv.length ? vv : [""]));
};
function setTreeValue(jq, params) {
var openCombotree = $.data(jq, "openCombotree");
var opts = openCombotree.options;
var tree = openCombotree.tree;
var options = tree.tree("options");
var onCheck_ = options.onCheck;
var onSelect_ = options.onSelect;
options.onCheck = options.onSelect = function () {
};
tree.find("span.tree-checkbox").addClass("tree-checkbox0").removeClass("tree-checkbox1 tree-checkbox2");
if (!$.isArray(params)) {
params = params.split(opts.separator);
}
var vv = $.map(params, function (_9fd) {
return String(_9fd);
});
var ss = [];
$.map(vv, function (v) {
var node = tree.tree("find", v);
if (node) {
tree.tree("check", node.target).tree("select", node.target);
ss.push(node.text);
} else {
ss.push(v);
}
});
if (opts.multiple) {
var checkedNode = tree.tree("getChecked");
$.map(checkedNode, function (node) {
var id = String(node.id);
if ($.inArray(id, vv) == -1) {
vv.push(id);
ss.push(node.text);
}
});
}
options.onCheck = onCheck_;
options.onSelect = onSelect_;
$(jq).combo("setText", ss.join(opts.separator)).combo("setValues", opts.multiple ? vv : (vv.length ? vv : [""]));
};
$.fn.openCombotree = function (options, param) {
if (typeof options == "string") {
var method = $.fn.openCombotree.methods[options];
if (method) {
return method(this, param);
} else {
return this.combo(options, param);
}
}
options = options || {};
return this.each(function () {
var openCombotreeObj = $.data(this, "openCombotree");
if (openCombotreeObj) {
$.extend(openCombotreeObj.options, options);
} else {
$.data(this, "openCombotree", {options: $.extend({}, $.fn.openCombotree.defaults, $.fn.openCombotree.parseOptions(this), options)});
}
init(this);
});
};
$.fn.openCombotree.methods = {
options: function (jq) {
var opts = jq.combo("options");
return $.extend($.data(jq[0], "openCombotree").options, {
width: opts.width,
height: opts.height,
originalValue: opts.originalValue,
disabled: opts.disabled,
readonly: opts.readonly
});
}, clone: function (jq, param) {
var t = jq.combo("clone", param);
t.data("openCombotree", {options: $.extend(true, {}, jq.openCombotree("options")), tree: jq.openCombotree("tree")});
return t;
}, tree: function (jq) {
return $.data(jq[0], "openCombotree").tree;
}, loadData: function (jq, data) {
return jq.each(function () {
var opts = $.data(this, "openCombotree").options;
opts.data = data;
var tree = $.data(this, "openCombotree").tree;
tree.tree("loadData", data);
});
}, reload: function (jq, url) {
return jq.each(function () {
var opts = $.data(this, "openCombotree").options;
var tree = $.data(this, "openCombotree").tree;
if (url) {
opts.url = url;
}
tree.tree({url: opts.url});
});
}, setValues: function (jq, param) {
return jq.each(function () {
setTreeValue(this, param);
});
}, setValue: function (jq, param) {
return jq.each(function () {
setTreeValue(this, param);
});
}, clear: function (jq) {
return jq.each(function () {
var tree = $.data(this, "openCombotree").tree;
tree.find("div.tree-node-selected").removeClass("tree-node-selected");
var cc = tree.tree("getChecked");
for (var i = 0; i < cc.length; i++) {
tree.tree("uncheck", cc[i].target);
}
$(this).combo("clear");
});
}, reset: function (jq) {
return jq.each(function () {
var opts = $(this).openCombotree("options");
if (opts.multiple) {
$(this).openCombotree("setValues", opts.originalValue);
} else {
$(this).openCombotree("setValue", opts.originalValue);
}
});
}, cancelClick:function(jq){
jq.openCombotree({allowClick:false});
}, recoveryClick:function(jq){
jq.openCombotree({allowClick:true});
}
};
$.fn.openCombotree.parseOptions = function (_a07) {
return $.extend({}, $.fn.combo.parseOptions(_a07), $.fn.tree.parseOptions(_a07));
};
$.fn.openCombotree.defaults = $.extend({}, $.fn.combo.defaults, $.fn.tree.defaults, {editable: false,minonly:false,allowClick:true,searchbox:false});
})(jQuery);
\ No newline at end of file
......@@ -9,12 +9,13 @@ function doClear(){
var table_title = [
{title:"联络员单位",field:"unitname",align:'center',width:'15%'},
{title:"联络员",field:"truename",align:'center',width:'15%'},
{title:"联络员",field:"truename",align:'center',width:'10%'},
{title:"联络类型",field:"ywlx",align:'center',width:'25%'},
{title:"联络员警号",field:"policemanid",align:'center',width:'10%'},
{title:"联系电话",field:"telephone",align:'center',width:'15%'},
{title:"设置人姓名",field:"xxdjryxm",align:'center',width:'15%'},
{title:"设置人单位",field:"xxdjdwgajgjgdm",align:'center',width:'15%'},
{title:"设置时间",field:"djsj",align:'center',width:'15%'}
{title:"联系电话",field:"telephone",align:'center',width:'10%'},
{title:"设置人姓名",field:"xxdjryxm",align:'center',width:'10%'},
{title:"设置人单位",field:"xxdjdwgajgjgdm",align:'center',width:'10%'},
{title:"设置时间",field:"djsj",align:'center',width:'10%'}
];
function doQuery(obj){
......
......@@ -337,10 +337,11 @@ var table_title = [
{title:"操作",field:"xxzjbh",align:'center',width:'10%',formatter:function(val,row,index){
return getColumn(row);
}},
{title:"姓名",field:"truename",align:'center',width:'15%'},
{title:"警号",field:"policemanid",align:'center',width:'15%'},
{title:"系统账号",field:"username",align:'center',width:'20%'},
{title:"所属单位",field:"unitname",align:'center',width:'25%'},
{title:"姓名",field:"truename",align:'center',width:'10%'},
{title:"联络员类型",field:"ywlx",align:'center',width:'25%'},
{title:"警号",field:"policemanid",align:'center',width:'10%'},
{title:"系统账号",field:"username",align:'center',width:'10%'},
{title:"所属单位",field:"unitname",align:'center',width:'20%'},
{title:"联系电话",field:"telephone",align:'center',width:'15%'}
];
......
......@@ -171,20 +171,20 @@
<td class="ar necessary" width="13.3%">业务类型:</td>
<td width="20%">
<span class="textbox">
<input type="text" id="ywlx" name="ywlx" value="${tbYwZczl.ywlx}" class="val easyui-combotree" data-options="url: '/queryTypeCode?type=CODE_YWLXDM',method:'get',fit:true,textField : 'text', valueField : 'id'"/>
<input type="text" id="ywlx" name="ywlx" value="${tbYwZczl.ywlx}" class="val easyui-openCombotree" data-options="url: '/queryTypeCode?type=CODE_YWLXDM',method:'get',fit:true,textField : 'text', valueField : 'id'"/>
</span>
</td>
<td class="ar" width="13.3%">审批人:</td>
<td width="20%">
<span class="textbox">
<input type="hidden" id="hiddenZpsprjh" value="${tbYwZczl.zdsprjh}">
<input type="text" id="zdsprjh" name="zdsprjh" value="" class="val easyui-combotree" data-options="url: '/queryTypeCode?type=CODE_SPJY&startId=${tbYwZczl.ywlx}',method:'get',fit:true,textField : 'text', valueField : 'id'"/>
<input type="text" id="zdsprjh" name="zdsprjh" value="" class="val easyui-openCombotree" data-options="url: '/queryTypeCode?type=CODE_SPJY&startId=${tbYwZczl.ywlx}',method:'get',fit:true,textField : 'text', valueField : 'id'"/>
</span>
</td>
<td class="ar necessary" width="13.3%">侦查指令类型:</td>
<td width="20%">
<span class="textbox">
<input type="text" id="zllx" name="zllx" value="${tbYwZczl.zllx}" class="val easyui-combotree" data-options="url: '/queryTypeCode?type=CODE_ZLLXDM',method:'get',fit:true,textField : 'text', valueField : 'id'"/>
<input type="text" id="zllx" name="zllx" value="${tbYwZczl.zllx}" class="val easyui-openCombotree" data-options="url: '/queryTypeCode?type=CODE_ZLLXDM',method:'get',fit:true,textField : 'text', valueField : 'id'"/>
</span>
</td>
<td class="ar" width="13.3%"></td>
......@@ -194,17 +194,7 @@
<td class="ar necessary">接受单位:</td>
<td colspan="3">
<span class="textbox textbox-3">
<%if("65".equals(ssdw)) { %>
<input type="text" id="zljsdwdm" value="${tbYwZczl.zljsdwdm}" name="zljsdwdm" class="val easyui-combotree" multiple data-options="url: '/queryTypeCode?type=CODE_DZXZUNIT',method:'get',fit:true,textField : 'text', valueField : 'id'"/>
<%} else if("14".equals(ssdw)&&grade.equals("S")) { %>
<input type="text" id="zljsdwdm" value="${tbYwZczl.zljsdwdm}" name="zljsdwdm" class="val easyui-combotree" multiple data-options="url: '/queryTypeCode?type=CODE_XZUNIT',method:'get',fit:true,textField : 'text', valueField : 'id'"/>
<%} else if("62".equals(ssdw)) { %>
<input type="text" id="zljsdwdm" value="${tbYwZczl.zljsdwdm}" name="zljsdwdm" class="val easyui-combotree" multiple data-options="url: '/queryTypeCode?type=CODE_XZUNIT_XDZL',method:'get',fit:true,textField : 'text', valueField : 'id'"/>
<%}else{%>
<input type="text" id="zljsdwdm" value="${tbYwZczl.zljsdwdm}" name="zljsdwdm" class="val easyui-combotree" multiple data-options="url: '/queryTypeCode?type=CODE_XZUNIT',method:'get',fit:true,textField : 'text', valueField : 'id'"/>
<% } %>
<%--<input type="text" id="zljsdwdm" value="${tbYwZczl.zljsdwdm}" name="zljsdwdm" class="val easyui-combotree" data-options="url: '/queryTypeCode?type=CODE_XZUNIT&rootId=650100000000',method:'get',fit:true,textField : 'text', valueField : 'id'"/>
--%>
<input type="text" id="zljsdwdm" value="${tbYwZczl.zljsdwdm}" name="zljsdwdm" class="val easyui-openCombotree" multiple data-options="url: '/queryTypeCode?type=CODE_XZUNIT',method:'get',fit:true,textField : 'text', valueField : 'id', cascadeCheck:false,minonly:false,multiple:true"/>
</span>
</td>
<td></td>
......@@ -262,6 +252,7 @@
<!--- 代码框-->
<script type="text/javascript" src="/easyui-window/js/jquery.min.js"></script>
<script type="text/javascript" src="/easyui-window/js/jquery.easyui.min.js"></script>
<script type="text/javascript" src="/easyui-window/js/jquery.easyui.my.js"></script>
<script type="text/javascript" src="/easyui-window/js/function.js"></script>
<script type="text/javascript" src="/easyui-window/js/easyui-lang-zh_CN.js"></script>
<!--- 日期时间-->
......@@ -280,12 +271,6 @@
watermark.load({ watermark_txt: "<%=truename%>"+" "+"<%=identitycard%>"+" "+"<%=unitcode%>"+" "+"<%=policeId%>"+" "+ip});
});
</script>
<script>
openCombotree('ywlx');
openCombotree('zllx');
openCombotree('zljsdwdm');
</script>
</body>
</html>
......@@ -294,8 +279,8 @@
$(document).ready(function(){
var hiddenZpsprjh = $("#hiddenZpsprjh").val();
$('#zdsprjh').combotree('setValue',hiddenZpsprjh);
$('#ywlx').combotree({
$('#zdsprjh').openCombotree('setValue',hiddenZpsprjh);
$('#ywlx').openCombotree({
onChange: function (n,o) {
debugger
//控制类案中的代码值
......@@ -385,17 +370,17 @@
layer.alert("回报期限必填!","提示");
return;
}
var ywlx= $("#ywlx").combotree("getValue");
var ywlx= $("#ywlx").openCombotree("getValue");
if(ywlx==''){
layer.alert("业务类型必填!","提示");
return;
}
var zllx= $("#zllx").combotree("getValue");
var zllx= $("#zllx").openCombotree("getValue");
if(zllx==''){
layer.alert("指令类型必填!","提示");
return;
}
var zljsdwdm= $("#zljsdwdm").combotree("getValue");
var zljsdwdm= $("#zljsdwdm").openCombotree("getValue");
if(zljsdwdm==''){
layer.alert("接受单位必填!","提示");
return;
......@@ -466,17 +451,17 @@
layer.alert("回报期限必填!","提示");
return;
}
var ywlx= $("#ywlx").combotree("getValue");
var ywlx= $("#ywlx").openCombotree("getValue");
if(ywlx==''){
layer.alert("业务类型必填!","提示");
return;
}
var zllx= $("#zllx").combotree("getValue");
var zllx= $("#zllx").openCombotree("getValue");
if(zllx==''){
layer.alert("指令类型必填!","提示");
return;
}
var zljsdwdm= $("#zljsdwdm").combotree("getValue");
var zljsdwdm= $("#zljsdwdm").openCombotree("getValue");
if(zljsdwdm==''){
layer.alert("接受单位必填!","提示");
return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment