导航

2016年12月3日

摘要: //当前日期 var now = new Date(); //换算为毫秒数 var now_ms = Date.UTC( now.getFullYear(), now.getMonth(),now.getDate());//getMonth 从0-11 所以真实月份要+1, getDate 注意与 getDay的区别,getDate为日, getDay 为周 //计算开始日期 var _fo... 阅读全文

posted @ 2016-12-03 21:25 yiyishuitian 阅读(411) 评论(0) 推荐(0) 编辑

摘要: function setSimpleLookupValue(LookupId, Type, Id, Name) { /// /// Sets the value for lookup attributes that accept only a single entity reference. /// Use of this function to set lookups... 阅读全文

posted @ 2016-12-03 20:36 yiyishuitian 阅读(710) 评论(0) 推荐(0) 编辑

摘要: 以下以省市为例: function preFilterLookup() { //要进行过滤的lookup按钮加入addPresearch事件 Xrm.Page.getControl("shi").addPreSearch(function () { addLookupFilter(); }); } function ad... 阅读全文

posted @ 2016-12-03 15:24 yiyishuitian 阅读(270) 评论(0) 推荐(0) 编辑