esayui 的 combobox 的觸發事件
$(function() {
appendEvent();
}]
##另一種頁面加載
$(document).ready(function() {}
function appendEvent() {
$("#nns_CdV").combobox({
onChange: function (nns_Cd) {
$.ajax({
type: "POST",
url: 'MST0020SelectUpdateAction1!selectInsert', //orderModifyStatus
data: {nns_Cd:nns_Cd},
dataType:"json",
success: function(data){
$('#tokui_Kanri_CdV').val(data.tokui_Kanri_Cd);
}, error: function (msg) {
// 荷受人コードが存在する場合
message= '<s:text name="CM_CW_000"><s:param><s:text name="BTN_UPDATE_DATA"/></s:param></s:text>'
}
});
}
});
}
在 input 文本框中添加新屬性
$('#tokui_Cd').attr({
disabled:true
});
之前爲
<input type="text" class="easyui-validatebox" size="45" id="tokui_Cd" name="tokui_Cd" value='${tokui_Cd_S}' />
js 觸發後
<input type="text" class="easyui-validatebox" size="45" id="tokui_Cd" name="tokui_Cd" value='${tokui_Cd_S}' disabled />
完整代碼爲
$(function () {
appendEvent();
});
function appendEvent() {
$("#nns_Cd").combobox({
onChange: function () {
alert("2");
$('#tokui_Cd').attr({
disabled:true
});
}
});
}
esayui 的下拉列表 disabled 的使用
$("#nns_Cd.easyui-combobox").combobox({ disabled: true });
$("#ID").combobox("disable"); ------ $("#ID").combobox("enable");
查看 oracle 表空間名
select tablespace_name from dba_tablespaces;
查看 oracle 表空間佔用率
/*直接在 pl/sql 執行即可 轉自https://zhidao.baidu.com/question/158429926.html*/
select
b.file_name 物理文件名,
b.tablespace_name 表空jian/* 表空間(這條加入了‘間’字報錯)*/,
b.bytes/1024/1024 大小M,
(b.bytes-sum(nvl(a.bytes,0)))/1024/1024 已使用M,
substr((b.bytes-sum(nvl(a.bytes,0)))/(b.bytes)*100,1,5) 利用率
from dba_free_space a,dba_data_files b
where a.file_id=b.file_id
group by b.tablespace_name,b.file_name,b.bytes
order by b.tablespace_name