震惊!!!一个EasyUi新手入门方法推荐,看过此文的人第二天都升职加薪赢取白富美了!!!!!!!!!!!!!!!!!!!!!!

**本文主记录日常使用的方法与函数,页面组件新手自己看官网例子很容易就能上手。
希望看过本人的都能淘到自己所需要的东西。
**

满足不了的方法与函数,最后再去dataOptions里面注册。

取值塞值

$("#id").textbox("getValue");
$("#id").textbox("setValue","value");
//设置为不可编辑
  $("#id").textbox("setValue","value").textbox("readonly",true)

日期框设置为必输 ,其他同理需要({})

$('#id').datebox({
    
     required:true});

日期框效验日期不得小于当前日期之后持续获得焦点
focus()是文本框自己的方法,其他组件只是继承此方法。


function changeDate(obj){
    
    
	if(obj.value > $("#workdate").val()){
    
    
     baseFun.info("灭失时间不能大于当前系统日期"+$("#workdate").val());
     obj.datebox('textbox').focus();
    }
}

展示 隐藏某元素

 $("#_dl_ID").hide();
  $("#_dl_ID").show();

可编辑列表结束编辑时遍历
这样才即可获得数据

var row = $('#_multiTable0').datagrid('getRows').length
for(var i=0;i<row;i++){
    
    
  $('#_multiTable0').datagrid('beginEdit',i);
}

帮助窗口隐藏外部按钮与边框,父子调用方法完成特殊需求。

$(function(){
    
    
$("td[i='footer']",parent.document).hide();
});

//调用父类方法传值
function xxx(){
    
    
var row = $('#_tabResultArea0').datagrid('getSelected');
//父类方法custInfo处理拿到的值
window.parent.custInfo(row);
}

监听事件,用与新增、修改之后的回调操作。

function toImport(){
    
    
var url=_ctx+"/gmrs/sc/SiGuarHouseMangeAction/initPrice.do";
  var flag = baseFun.showModal(url ,'市场价格导入','m');
  //获取监听句柄
  flag.addEventListener('close', function(){
    
    
       dosearch();
        })
}

radio点击事件书写

$("#_dl_degrees").click(function(){
    
    
	XXXXX
 });

流程使用


select nvl((select (case when c.verifymark='0' then '1' else '退回时审核意见应为不同意!'end) from fl_flowopinioninfo c  where c.businessinsid=${businessinsid} and c.soleorderid=${soleorderid} ),'【意见签署页面】为必做任务,没有完成,不允许此操作!')from dual

select case when trim(a.VERIFYMARK)='1' then '1' else '您不同意审核,无法提交!' end from fl_flowopinioninfo a where a.BUSINESSINSID='${businessinsid}' and a.SOLEORDERID=${soleorderid}

${orgtype =='2branch'  ?  'a' : 'b'}

select case when trim(a.VERIFYMARK)='1' then '1' else '您不同意审核,无法终审!' end from fl_flowopinioninfo a where a.BUSINESSINSID='${businessinsid}' and a.SOLEORDERID=${soleorderid}

select nvl((select (case when c.verifymark='0' then '1' else '退回时审核意见应为不同意!'end) from fl_flowopinioninfo c  where c.businessinsid=${businessinsid} and c.soleorderid=${soleorderid} ),'【意见签署页面】为必做任务,没有完成,不允许此操作!')from dual

猜你喜欢

转载自blog.csdn.net/bojikeqian/article/details/120131013