1 Star 0 Fork 1

yihoc/WEBWMS

forked from gujiejing/WEBWMS 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
a1.txt 17.06 KB
一键复制 编辑 原始数据 按行查看 历史
gujiejing 提交于 2018-05-23 23:17 . bbbbbbbbbbe
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598
aaabbbb
cccc
ddd
eee
eerereresss
ereresss11233456
ffffff
暂时不需要的代码临时存放点
$('#queryRemindType').combobox({
url : '<%=request.getContextPath()%>/change/change_getRemindTypeSelect.action',
valueField : 'id',
textField : 'text',
editable : false,
cache: false,
async:false,
panelHeight : 'auto',
panelMaxHeight : 200,
onBeforeLoad: function(param){
param.codeType = 'REMIND_EVENT';
param.theCurrentPageMenuCode = menuCode;
param.parentCode = 'ROOT';
param.defaultValue= remindType;
},
onLoadSuccess: function (res) {
$("#queryRemindType").combobox('setValue',remindType);
}
});
$('#eventDatagrid').datagrid('reload',{
isQuery:"true",
'eventQueryVO.eventNo':eventNo,
'eventQueryVO.declarantName':queryDeclarantName,
'eventQueryVO.declarantNo':queryDeclarantNo,
'eventQueryVO.department' : queryDeptCode,
'eventQueryVO.mainEvent' : queryMainEvent,
'eventQueryVO.subEvent' : querySubEvent,
'eventQueryVO.application' : queryApplication,
'eventQueryVO.priorityLevel' : queryPriority,
'eventQueryVO.title':title,
'eventQueryVO.status':queryStatus,
'eventQueryVO.declareTimeBefore':queryDStartDate,
'eventQueryVO.declareTimeAfter':queryDEndDate,
'eventQueryVO.closeTimeBefore':queryEStartDate,
'eventQueryVO.closeTimeAfter':queryEEndDate,
'eventQueryVO.secondlineMember':secondlineMember,
'eventQueryVO.frontlineMember':frontlineMember,
'eventQueryVO.remindType':queryRemindType,
'menuCode' : menuCode//当前页面的菜单代码
}).datagrid('unselectAll');
$('#eventResolveDatagrid').datagrid('reload');
var queryApplication = $("#queryApplication").combobox('getValue');
$("#queryApplication").combobox('setValue','');
$('#queryApplication').combobox({
url : '<%=request.getContextPath()%>/common/common_findPropertyCodeByPCode.action',
valueField : 'id',
textField : 'text',
editable : false,
panelHeight : 'auto',
panelMaxHeight : 200,
onBeforeLoad: function(param){
param.typeCode = 'ITSM_APPLICATION';
param.theCurrentPageMenuCode = menuCode;
param.parentCode = 'ROOT';
}
});
$('#queryRemindType').combobox({
url : '<%=request.getContextPath()%>/incident/event_getRemindTypeSelect.action',
valueField : 'id',
textField : 'text',
editable : false,
cache: false,
async:false,
panelHeight : 'auto',
panelMaxHeight : 200,
onBeforeLoad: function(param){
param.codeType = 'REMIND_EVENT';
param.theCurrentPageMenuCode = menuCode;
param.parentCode = 'ROOT';
param.defaultValue= remindType;
},
onLoadSuccess: function (res) {
$("#queryRemindType").combobox('setValue',remindType);
}
});
$("#queryPriority").combobox({
valueField : 'label',
textField : 'value',
editable : false,
panelHeight : 'auto',
panelMaxHeight : 200,
data: [{
label: '1',
value: '优先级1'
},{
label: '2',
value: '优先级2'
},{
label: '3',
value: '优先级3'
},{
label: '4',
value: '优先级4'
},{
label: '5',
value: '优先级5'
}]
});
$("#queryStatus").combobox({
valueField : 'label',
textField : 'value',
editable : false,
panelHeight : 'auto',
panelMaxHeight : 200,
data: [{
label: '1',
value: '创建'
},{
label: '2',
value: '分派中'
},{
label: '3',
value: '处理中'
},{
label: '4',
value: '退回'
},{
label: '5',
value: '待反馈'
},{
label: '6',
value: '关闭'
},{
label: '7',
value: '挂起'
},{
label: '8',
value: '挂起恢复'
}]
});
//事件分类
$('#queryMainEvent').combobox({
url : '<%=request.getContextPath()%>/common/common_findPropertyCodeByPCode.action',
valueField : 'id',
textField : 'text',
editable : false,
panelHeight : 'auto',
panelMaxHeight : 200,
onBeforeLoad: function(param){
param.typeCode = 'ITSM_MAINEVENT';
param.theCurrentPageMenuCode = menuCode;
param.parentCode = 'ROOT';
},
onSelect:function(record){
$('#querySubEvent').combobox({
url : '<%=request.getContextPath()%>/common/common_findPropertyCodeByPCode.action',
valueField : 'id',
textField : 'text',
editable : false,
panelHeight : 'auto',
panelMaxHeight : 200,
onBeforeLoad: function(param){
param.typeCode = 'ITSM_SUBEVENT';
param.theCurrentPageMenuCode = menuCode;
param.parentCode = record.id;
},
onSelect:function(record) {
}
});
}
});
<td class="td-left">
<input type="text" class="easyui-combobox" style="width:200px" id="queryApplication" name="eventQueryVO.application" />
</td>
cust.php 下的
<!--
<div id="alldate">
<table border="1">
<tr>
<td>ID</td>
<td>客户ID</td>
<td>客户中文描述</td>
<td>客户英文描述</td>
<td>客户地址</td>
<td>客户联系电话</td>
<td>客户联系人</td>
<td>操作</td>
</tr>
<?php do { ?>
<tr>
<td><?php echo $row_Rec['id'];?></td>
<td><?php echo $row_Rec['custid'];?></td>
<td><?php echo $row_Rec['custcn'];?></td>
<td><?php echo $row_Rec['custen'];?></td>
<td><?php echo $row_Rec['addr'];?></td>
<td><?php echo $row_Rec['tel'];?></td>
<td><?php echo $row_Rec['contact'];?></td>
<td>
<a href="#" id="<?php echo $row_Rec['id'];?>">MODIFY</a>
|
<a href="#" id="<?php echo $row_Rec['id'];?>">DEL</a>
</td>
</tr>
<?php } while ($row_Rec = mysql_fetch_assoc($result)); ?>
</table>
</div>
-->
//初始化--事件大类
$('#sjdl').combobox({
url:'<%=request.getContextPath() %>/common/common_findPropertyCodeByType.action',
valueField:'customCode',
textField:'name',
editable : false,
panelHeight : 'auto',
panelMaxHeight : 200,
onBeforeLoad: function(param){
param.typeCode = 'ITSM_INCIDENT_CLASS';
param.theCurrentPageMenuCode = theCurrentPageMenuCode;
}
});
//初始化--事件小类
$('#sjxl').combobox({
url:'<%=request.getContextPath() %>/common/common_findPropertyCodeByType.action',
valueField:'customCode',
textField:'name',
editable : false,
panelHeight : 'auto',
panelMaxHeight : 200,
onBeforeLoad: function(param){
param.typeCode = 'ITSM_INCIDENT_TYPE';
param.theCurrentPageMenuCode = theCurrentPageMenuCode;
}
});
//初始化--事件状态
$('#sjzt').combobox({
url:'<%=request.getContextPath() %>/common/common_findPropertyCodeByType.action',
valueField:'customCode',
textField:'name',
editable : false,
panelHeight : 'auto',
panelMaxHeight : 200,
onBeforeLoad: function(param){
param.typeCode = 'ITSM_INCIDENT_STATUS';
param.theCurrentPageMenuCode = theCurrentPageMenuCode;
},
onLoadSuccess:function(){
$("#sjzt").combobox("setValue",'0002');
}
});
//初始化-来源类型
$('#lylx').combobox({
url:'<%=request.getContextPath() %>/common/common_findPropertyCodeByType.action',
valueField:'customCode',
textField:'name',
editable : false,
panelHeight : 'auto',
panelMaxHeight : 200,
onBeforeLoad: function(param){
param.typeCode = 'ITSM_INCIDENT_SOURCE_TYPE';
param.theCurrentPageMenuCode = theCurrentPageMenuCode;
},
onLoadSuccess:function(){
$("#lylx").combobox("setValue",'00');
}
});
//影响度
$("#important").combobox({
url:'<%=request.getContextPath() %>/common/common_findPropertyCodeByType.action',
valueField:'customCode',
textField:'name',
editable : false,
panelHeight : 'auto',
panelMaxHeight : 200,
onBeforeLoad: function(param){
param.typeCode = 'ITSM_BAS_IMPORTANCE';
param.theCurrentPageMenuCode = theCurrentPageMenuCode;
},
onLoadSuccess: function(){
var data=$('#important').combobox('getData');
if(data.length>0){
$('#important').combobox('setValue', '03');
}
},
onChange:function(newValue,oldValue){
//获取影响度
var importantCode = newValue;
//获取紧急度的值
var urgencyCode = $("#urgency").combobox('getValue');
if(urgencyCode != ""){
//根据影响度,紧急度联动,带出优先级
$.ajax({
type:'POST',
url:'<%=request.getContextPath()%>/incident/incident_getPriorityCode.action',
data: {importantCode:importantCode,urgencyCode:urgencyCode},
dataType:'json',
success:function(data){
$("#priority").combobox("setValue",data);
}
})
}
}
});
//紧急度
$("#urgency").combobox({
url:'<%=request.getContextPath() %>/common/common_findPropertyCodeByType.action',
valueField:'customCode',
textField:'name',
editable : false,
panelHeight : 'auto',
panelMaxHeight : 200,
onBeforeLoad: function(param){
param.typeCode = 'ITSM_BAS_URGENCY';
param.theCurrentPageMenuCode = theCurrentPageMenuCode;
},
onChange:function(newValue,oldValue){
//获取紧急度的值
var urgencyCode = newValue;
//获取影响度的值
var importantCode = $("#urgency").combobox('getValue');
if(importantCode != ""){
//根据影响度,紧急度联动,带出优先级
$.ajax({
type:'POST',
url:'<%=request.getContextPath()%>/incident/incident_getPriorityCode.action',
data: {importantCode:importantCode,urgencyCode:urgencyCode},
dataType:'json',
success:function(data){
$("#priority").combobox("setValue",data);
}
})
}
}
});
//实现优先级-影响度-紧急度-下拉菜单的三级联动
$('#priority').combobox({
url:'<%=request.getContextPath() %>/common/common_findPropertyCodeByType.action',
valueField:'customCode',
textField:'name',
editable : false,
panelHeight : 'auto',
panelMaxHeight : 200,
onBeforeLoad: function(param){
param.typeCode = 'ITSM_BAS_PRIORITY';
param.theCurrentPageMenuCode = theCurrentPageMenuCode;
},
onChange:function(newValue, oldValue){
//不同优先级对应不同的时间期限
var days;
var lastTime;
//下拉菜单选项改变之后,后续的出现联动。
if(newValue == "01"){
$.ajax({
url:'<%=request.getContextPath()%>/incident/incident_getDays.action',
type:'POST',
data:{'code':newValue},
success:function(d){
var n =eval('('+d+')');
days = parseInt(n);
lastTime = new Date();
//根据选择的优先级----自动带出最晚完成时间
lastTime.setDate(lastTime.getDate()+days);
year = lastTime.getFullYear();
month = lastTime.getMonth()+1;
day = lastTime.getDate();
hour = lastTime.getHours();
min = lastTime.getMinutes();
if(month < 10){month = "0"+month;}
if(day < 10){day = "0"+day;}
if(hour < 10){hour = "0"+hour;}
if(min < 10){min = "0"+min;}
var endCompleteTime = year+"-"+month+"-"+day+" "+hour+":"+min;
$("#endTime").textbox("setValue",endCompleteTime);
}
});
}else if(newValue == "02"){
$.ajax({
url:'<%=request.getContextPath()%>/incident/incident_getDays.action',
type:'POST',
data:{'code':newValue},
success:function(d){
var n =eval('('+d+')');
days = parseInt(n);
lastTime = new Date();
//根据选择的优先级----自动带出最晚完成时间
lastTime.setDate(lastTime.getDate()+days);
year = lastTime.getFullYear();
month = lastTime.getMonth()+1;
day = lastTime.getDate();
hour = lastTime.getHours();
min = lastTime.getMinutes();
if(month < 10){month = "0"+month;}
if(day < 10){day = "0"+day;}
if(hour < 10){hour = "0"+hour;}
if(min < 10){min = "0"+min;}
var endCompleteTime = year+"-"+month+"-"+day+" "+hour+":"+min;
$("#endTime").textbox("setValue",endCompleteTime);
}
});
}else if(newValue == "03"){
$.ajax({
url:'<%=request.getContextPath()%>/incident/incident_getDays.action',
type:'POST',
data:{'code':newValue},
success:function(d){
var n =eval('('+d+')');
days = parseInt(n);
lastTime = new Date();
//根据选择的优先级----自动带出最晚完成时间
lastTime.setDate(lastTime.getDate()+days);
year = lastTime.getFullYear();
month = lastTime.getMonth()+1;
day = lastTime.getDate();
hour = lastTime.getHours();
min = lastTime.getMinutes();
if(month < 10){month = "0"+month;}
if(day < 10){day = "0"+day;}
if(hour < 10){hour = "0"+hour;}
if(min < 10){min = "0"+min;}
var endCompleteTime = year+"-"+month+"-"+day+" "+hour+":"+min;
$("#endTime").textbox("setValue",endCompleteTime);
}
});
}else if(newValue == "04"){
$.ajax({
url:'<%=request.getContextPath()%>/incident/incident_getDays.action',
type:'POST',
data:{'code':newValue},
success:function(d){
var n =eval('('+d+')');
days = parseInt(n);
lastTime = new Date();
//根据选择的优先级----自动带出最晚完成时间
lastTime.setDate(lastTime.getDate()+days);
year = lastTime.getFullYear();
month = lastTime.getMonth()+1;
day = lastTime.getDate();
hour = lastTime.getHours();
min = lastTime.getMinutes();
if(month < 10){month = "0"+month;}
if(day < 10){day = "0"+day;}
if(hour < 10){hour = "0"+hour;}
if(min < 10){min = "0"+min;}
var endCompleteTime = year+"-"+month+"-"+day+" "+hour+":"+min;
$("#endTime").textbox("setValue",endCompleteTime);
}
});
}else if(newValue == "05"){
$.ajax({
url:'<%=request.getContextPath()%>/incident/incident_getDays.action',
type:'POST',
data:{'code':newValue},
success:function(d){
var n =eval('('+d+')');
days = parseInt(n);
lastTime = new Date();
//根据选择的优先级----自动带出最晚完成时间
lastTime.setDate(lastTime.getDate()+days);
year = lastTime.getFullYear();
month = lastTime.getMonth()+1;
day = lastTime.getDate();
hour = lastTime.getHours();
min = lastTime.getMinutes();
if(month < 10){month = "0"+month;}
if(day < 10){day = "0"+day;}
if(hour < 10){hour = "0"+hour;}
if(min < 10){min = "0"+min;}
var endCompleteTime = year+"-"+month+"-"+day+" "+hour+":"+min;
$("#endTime").textbox("setValue",endCompleteTime);
}
});
}
}
});
[{
"id":1,
"text":"Java",
"desc":"Write once, run anywhere"
},{
"id":2,
"text":"C#",
"desc":"One of the programming languages designed for the Common Language Infrastructure"
},{
"id":3,
"text":"Ruby",
"selected":true,
"desc":"A dynamic, reflective, general-purpose object-oriented programming language"
},{
"id":4,
"text":"Perl",
"desc":"A high-level, general-purpose, interpreted, dynamic programming language"
},{
"id":5,
"text":"Basic",
"desc":"A family of general-purpose, high-level programming languages"
}]
[{
"value":"f20",
"text":"Firefox 2.0 or higher",
"group":"Firefox"
},{
"value":"f15",
"text":"Firefox 1.5.x",
"group":"Firefox"
},{
"value":"f10",
"text":"Firefox 1.0.x",
"group":"Firefox"
},{
"value":"ie7",
"text":"Microsoft Internet Explorer 7.0 or higher",
"group":"Microsoft Internet Explorer"
},{
"value":"ie6",
"text":"Microsoft Internet Explorer 6.x",
"group":"Microsoft Internet Explorer"
},{
"value":"ie5",
"text":"Microsoft Internet Explorer 5.x",
"group":"Microsoft Internet Explorer"
},{
"value":"ie4",
"text":"Microsoft Internet Explorer 4.x",
"group":"Microsoft Internet Explorer"
},{
"value":"op9",
"text":"Opera 9.0 or higher",
"group":"Opera"
},{
"value":"op8",
"text":"Opera 8.x",
"group":"Opera"
},{
"value":"op7",
"text":"Opera 7.x",
"group":"Opera"
},{
"value":"Safari",
"text":"Safari"
},{
"value":"Other",
"text":"Other"
}]
<input class="easyui-combobox" name="language" style="width:50%"
data-options="
url: 'combobox_data2.json',
method: 'get',
valueField:'value',
textField:'text',
groupField:'group'
">
<p>width: 30%</p>
<input class="easyui-combobox" name="language" style="width:30%"
data-options="
url:'combobox_data1.json',
method:'get',
valueField:'id',
textField:'text',
panelHeight:'auto'
">
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/yihoc/WEBWMS.git
git@gitee.com:yihoc/WEBWMS.git
yihoc
WEBWMS
WEBWMS
master

搜索帮助