軟著-培訓(xùn)系統(tǒng)前_第1頁
軟著-培訓(xùn)系統(tǒng)前_第2頁
軟著-培訓(xùn)系統(tǒng)前_第3頁
軟著-培訓(xùn)系統(tǒng)前_第4頁
軟著-培訓(xùn)系統(tǒng)前_第5頁
已閱讀5頁,還剩25頁未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)

文檔簡介

config.js代碼:window._ed=0;////console.log(sData);}$.extend(jQuery.fn.dataTableExt.oSort,{return"formatted-num-asc":function(a,b){returna-b;"formatted-num-desc":function(a,b){returnb-a;//2014-03-26"date-uk-asc":function(a,b)a=newb=newreturn(a.getTime()-"date-uk-desc":function(a,b)a=newb=new//return(b.getTime()-"string-pre":function(a){if(typeofa!='string'){a=(a!==null&&a.toString)?a.toString():}return"string-asc":function(x,y{ "string-desc":function(x,y{ "html-asc":function(x,y)x=x.replace(/<.*?>/g,y=y.replace(/<.*?>/g,""); //return((x<y)?-1:((x>y)?1:"html-desc":function(x,y)x=x.replace(/<.*?>/g,y=y.replace(/<.*?>/g,""); //return((x<y)?1:((x>y)?-1:}$.extend(Stotype,{isPositiveInteger:function(){isInteger:function()return(newisNumber:function(value,element)trim:function()trans:function()replaceAll:function(os,ns)skipChar:function(ch)if(!this||this.length===0){return'';if(this.charAt(0)===ch){returnthis.substring(1).skipChar(ch);}returnthis;isValidPwd:function()isValidMail:function() isSpaces:function()for(vari=0;i<this.length;i+=1){varch=this.charAt(i);if(ch!=''&&ch!="\n"&&ch!="\t"&&ch!="\r"){returnfalse;}returnisPhone:function() isUrl:function()isExternalUrl:function()

.)==-.}varisOpera=userAgent.indexOf("Opera")>-ifisOpera)returnOpera"判斷是否Operaif(userAgent.indexOf("Firefox")>-1){return"FF";}//判斷是否Firefox瀏覽器ifuserAgent.indexOf("Safari")1returnSafari";判斷是否Safari瀏覽器if(userAgent.indexOf("compatible")>-1&&userAgent.indexOf("MSIE")>-1&&returnIE判斷是否IE}//}return_this?_this:}////Object.onew=function(o){varF=function(o){};F.prototype=o;returnnew}functionsorterText(txt,len){varsortText="";if(txt&&txt.length>20)sortText=txt.substring(0,20)+}else}return}Stotype.toDate=function()var_dt=newDate(parseInt(this)*}/*月(M)、日(d)、12小時(h)、24小時(H)、分(m)、秒(s)、周(E)、季度(q)可以用1-2個占位符年(y)可以用1-4個占位符,毫秒(S)只能用1個占位符(是1-3位的數(shù)字)*/Dtotype.pattern=function(fmt){varo="Mthis.getMonth1月份"d+":this.getDate(),//日"h+this.getHours(12012this.getHours(12小時"H+":this.getHours(),//小時"mthis.getMinutes分"s+":this.getSeconds(),//秒"q+Math.floor((this.getMonth33季度"S":this.getMilliseconds()//毫秒varweek="0":"1":"2":"3":"4":"5":"6":}fmt=fmt.replace(RegExp.$1,((RegExp.$1.length>1)?(RegExp.$1.length>2?"\u661f\u671f":"\u5468"):"")+week[this.getDay()+""]);}for(varkino)if(newRegExp("("+k+")").test(fmt))fmt=fmt.replace(RegExp.$1,(RegExp.$1.length==1)?(o[k]):(("00"+o[k]).substr((""+o[k]).length)));}}return}Stotype.toJson=function(){returneval("("+this+")");}ArrayIndexOf=function(Arr,vItem){for(i=0;i<Arr.length;i++){if(vItem==Arr[i]){returni;}}return}varnMaxLine=6000;//DataTable配置類"bPaginate":false,"bLengthChange":false,"iDisplayLength":nMaxLine,"bFilter":true,//varSys=System].Debug開關(guān)Sys.Load=false;Sys.Debug=true;//[System]DepartmentSystem].控制器名]Sys.enableMulitSelect=System]System]Sys.dim=System]除去NavSystem]彈出層的高度Sys.dim.layerHeightfalse;Sys.dim.layerWidthfalse;Sys.dim.layerScaleH0;System]Sys.dim.fnSetMuil=function(bN){Sys.enableMulitSelect=bN;}Sys.Dtb={};//[System]Sys.Dtb.classSelected=//[System]ClassSys.Dtb.classHover="row_hover";System]全選Sys.Dtb.checkBox='<inputtype="checkbox"value="" id="theCheckBox2"class="sAllbox"onclick="muliSelectCheckbox(this,this.checked);"/>';Sys.Dtb.checkBox40='<spanstyle="display:inline-block;width:40px;"><inputtype="checkbox" id="theCheckBox2"class="sAllbox"Sys.Dtb.checkBox50='<spanstyle="display:inline-block;width:50px;"><input id="theCheckBox2"class="sAllbox"http://Sys.Dtb.checkBoxPlan='<inputtype="checkbox"value="" id="theCheckBox2"class="sAllbox"onclick="fnTrainPlanSelectAll(this,this.checked);"/>';SystemDatatableSys.Dtb.stack=//[System]銷毀DataTableSys.Dtb.destroyfunction(sNodeIdvarnNode=Sys.Dtb.get(sNodeId);if(nNode!=undefined){}}//[System]獲取DataTablebyidSys.Dtb.getfunction(sNodeIdsNodeId=sNodeId.replace("#",'');returneval("Sys.Dtb.stack."+sNodeId);}System]添加Sys.Dtb.create=function(sNodeId,oConfig){eval("Sys.Dtb.stack."+sNodeId.replace("#",'')+"=//}}Sys.Dtb.fnSetData=function(sNodeId,aData,oSetting)oSetting=oSetting?oSetting:false;if(aData!=null&&aData.length>0){if(oSetting==false){}else}}else}////eval("Sys.Dtb.stack."+sNodeId.replace("#",'')+"=}//[System]添加DataTableSys.Dtb.fnDeleteRowfunction(sNodeId,nTrvar_oCurrent=}System]Sys.Dtb.ucheck=function(sNodeId)var_oCurrent=//刪除現(xiàn)有的datatableif(_oCurrent){}}Url對象Sys.Url//從Url獲取ControllerSys.Url.getControllerfunction(Url)var_sCont=Url.split("/");}//當(dāng)前ControllerSys.Url.Controllerfalse;//當(dāng)前UrlSys.Url.currentUrlfalse;System]已加載的JsSys.loadedJs=[];Sys.loadPartJs=function(ScriptName,_callback){varnameMd5=hex_md5(ScriptName);url:ScriptName,cache:false,complete:function(XHR,Status)if(!ArrayIndexOf(Sys.loadedJs,nameMd5)){}if(typeof_callback!=="undefined")}}else//if(typeof_callback!=="undefined")}}//變量,理論上說可以加快回收,臨時變量比較大的時候使functionunSet(_v)if(Ototype.toString.call(_v)==='[objectArray]'){var_i=0;for(_iin_v[_i]=null;}return_v=}//DataTable自動高度調(diào)整函數(shù)//varwph=$('#task-paging-varparPad=parseInt($('#studyPointLeft').parent().css("padding-top"));if(isNaN(parPad)){parPad=0;}DataTables.each(function(i,nNode){varAllCheckBox=AllCheckBox=$(".sAllbox",////varRowtr=$('tr[role=row]',varAlltr=$(".dataTabletr[role!=row]",nNode);varSeltr=$('.row_selected',nNode);varTotal=Alltr.length;varSelet=//if(AllCheckBox)}//彈出層//}elsevarnex=$(nNode).next();varsibH=1;while(nex.length>0)if(!$(nex).hasClass("Hright")&&!$(nex).hasClass("LoadingTip")){sibH=sibH+$(nex).outerHeight(true)+2;}nex=}:"+if($(".dataTables_scrollBody",nNode).length>0){varparW=$(nNode).width();varchildW=$(".dataTables_scrollBody",nNode).width();if(childW>parW){);//}else40減去表頭高度}}}}//dataTablesEmpty.each(function(i,node){varparents=$(node).parentsUntil();varDataTableWapper=parents[3];//為什么要減1呢,因?yàn)閠d有1pxvar_dHeight}}$('.outterH').each(function(){varpre=$(this).prev();varnex=$(this).next();varsibH=1;while(pre.length>0)sibH=sibH+$(pre).outerHeight(true)+2;pre=$(pre).prev();}while(nex.length>0)sibH=sibH+$(nex).outerHeight(true)+}nex=}

varpar=varparH=$('.innerH').each(function左右布局左邊滾動條.if(this.style.display=="none"){//}elsevarpre=$(this).prev();varnex=$(this).next();varsibH=1;while(pre.length>0)if(pre[0].style.display!="none")sibH=sibH+$(pre).outerHeight(true)+}pre=}while(nex.length>0)if(!$(nex).hasClass("LoadingTip")&&nex[0].style.display!="none"){sibH=sibH+$(nex).outerHeight(true)+2;}nex=}varpar=varparH= parseInt($(this).css("margin-top"))-sibH-3);}$('.middleH').each(function(){varpre=$(this).prev();varnex=$(this).next();varsibH=0;while(pre.length>0)sibH=sibH+$(pre).outerHeight(true);pre=$(pre).prev();}while(nex.length>0)sibH=sibH+}nex=}}

varparH=//varwph=$('#task-paging-div').height();varimportBtns=$('.importBtns').height();if($(nNode).children().hasClass("editTable")||($(".dataTables_scrollBody",nNode).length>0&&$(".dataTables_scrollBody",nNode).children().hasClass("editTable"))){}elsevarpre=$(nNode).prev();varnex=$(nNode).next();varsibH=1;while(pre.length>0)sibH=sibH+$(pre).outerHeight(true);pre=$(pre).prev();}while(nex.length>0)sibH=sibH+$(nex).outerHeight(true)}nex=}varpar=$(nNode).parent();varparH=0;while(par.length>0)parH=parH=parH+parseInt($(par).css("padding-top"));nex=$(par).next();while(nex.length>0)sibH=sibH+}nex=}if(parH==0)pre=$(par).prev();while(pre.length>0){if(!$(pre).hasClass("fleft")&&pre[0].id!="planpa"){sibH=sibH+$(pre).outerHeight(true);}}else

pre=}if($(par).hasClass("xubox_main")){break;}par=$(par).parent();}varoffH=if($(".xubox_main").length>0)offH=}$(nNode).height(Sys.dim.layerHeight-parH-sibH+}else }}if($(".dataTables_scrollBody",nNode).length>0){varparW=$(nNode).width();varchildW=$(".dataTables_scrollBody",nNode).width();if(childW>parW){$(".dataTables_scrollBody",nNode).height($(nNode).height()-40);//減去表頭高}else$(".dataTables_scrollBodynNode).height($(nNode).height()-40);//度}}} if($(".dataTables_scrollBody").length>0){varsrcollTbl=$(_this); }elsesrcollTbl=} nodes.each(function(i,node)if(node.checked!==value)$(node).parent().parent().click();node.checked=value;}else//varfparent=vartable=$(_this).parent().parent().parent().parent();varnodes=$(table).find('input[type="checkbox"]');nodes.each(function(i,node){if(node.checked!==value)$(node).parent().parent().click();node.checked=value;}}if(console&&Sys.Debug){}}//////varhandle=this._className=//this.allowMuliDelPoint=function()//currentDataTable.fnSetColumnVis(0,_bVis?false:true);//設(shè)置Sys.enableMulitSelect=_bVis?false://}this.close=function()}//this.init=function()handle._node=}}LoadingvarLoading=Object.onew({start:function(id){varwi=$("#main-right").width()*0.95;if(wi<=1015){wi=}$(id).css({position:"relative","min-height":"50px","width":wielse}finish:function(_nParent)if(typeof_nParent!=="undefined"){varLt=$('.LoadingTip',_nParent);}elsevarLt=}

vartmp=[];varposList=ArrayList.split('|');for(varkinobjArray){vartmp2=for(varkeyinobjArray[k])_pos=ArrayIndexOf(posList,key);if(false!==_pos){if(objArray[k][key]!=null){tmp2[_pos]=objArray[k][key];}elsetmp2[_pos]=}}}}return}functionfnStringSimplify(ry_strry_str防止ry_str為null對象varlen=ry_str.length;if(len>20)}elseif(ry_str==="null"){ry_str請選擇";}return}}functionfnStringSortByLetter(str){varnewStr=str+return}varfparent=$(element).parent(); varnodes=$(table).find('input[type="checkbox"]');nodes.each(function(i,node)//if(node.checked!==checkedValue)$(node).click();node.checked=checkedValue;} varnames=["log","debug","info","warn","error","assert","dir", for(vari=0;i<names.length; window.console[names[i]]=function(){functionclone(myObj)if(typeof(myObj)!='object')returnmyObj;if(myObj==null)returnmyObj;varmyNewObj=newObject();for(variinmyObj)myNewObj[i]=clone(myObj[i]);returnmyNewObj;}functionjsonSortByASC(json,sortType){vartypeArray=[],objectArrayOld=[],objectArrayNew=[];$.each(json,function(index,value){$.each(json,function(index,value){typeArray=typeArray.sort(function(x,y){ //return((x<y)?-1:((x>y)?1:while(objectArrayOld.length!=0)for(indexObject=0;indexObject<objectArrayOld.length;indexObject++){vartypeArray1=objectArrayOld[indexObject][sortType];vartypeArray2=typeArray[0];if(typeArray1==typeArray2)}}typeArray.splice(0,1);objectArrayOld.splice(indexObject,1);}return}//functionscroll(viewid,scrollid,size)//varscroll=.ge//vartb2=.ge//varlen=//for(vari=tb2.rows.length;i>size;i--)//}//創(chuàng)建一個varbak //將div//將拷貝得到的表格在刪除數(shù)據(jù)行后添加到創(chuàng)建的div//設(shè)置創(chuàng)建的div的position屬性為absolute,即絕對定于滾動條容器(bak.style.positionabsolute";//設(shè)置div的display屬性為block,即顯示div(貌似也不是必須,但如果你不希望總是顯bak.style.left=//設(shè)置div的top屬性為0,初期時滾動條位置為0,此屬性與left頭bak.style.top=//scroll.onscroll=function()//設(shè)置div的top}}//varpointDataLP=varpostPointLP="iPointId|iPointCode|iPointName";varpointDataNum=varuserArchiveLP=//培訓(xùn)任務(wù)列表1varTrainTaskDataLP=//培訓(xùn)任務(wù)列表2 varTrainTaskDataAddManLP=//培訓(xùn)任務(wù)列表5varTrainTaskDataPointConLP=//培訓(xùn)任務(wù)列表6varTraindeManLP=//varTrainPlanDataLP=//列表順varStaffDataLP=//緩存內(nèi)頁FIFO更新策略varHTMLCachenewArray();//varinnerPage=//varnavStack=new//上一個頁面的UrlvarlastPageUrlnull;//當(dāng)前頁面的varcurrentPageUrl=////當(dāng)前DataTable////要點(diǎn)varpId=new//基本要點(diǎn)ParentIdpId.bspId=false;//崗位要點(diǎn)ParentIdpId.posId=false;//模板要點(diǎn)ParentIdpId.tempId=false;//基本要點(diǎn)樹對象varTreeLoader=new//varBasePoint=new//varcurrentPosiFolder=//varPosiPoint=new//varTempPoint=new//varTrainPlan=new//varselPoint=new//varAlp=new//培訓(xùn)計劃vartId=newObject();varcurrentKeyCode=-//頁面resizetodofunctionresize(){varoptionHe=$("#main-varwindowHeight=$(window).height();varwinWidth=$(window).width();varnavHeight=$('#global_header').height();Sys.dim.fullHeight=windowHeight-navHeight;if(Sys.dim.layerHeight==false&&Sys.dim.layerScaleH==0){Sys.dim.layerHeight=windowHeight*0.8;}elseif(Sys.dim.layerScaleH>0)}if(Sys.dim.layerWidth==false&&Sys.dim.layerScaleW==0){Sys.dim.layerWidth=winWidth*0.8;}elseif(Sys.dim.layerScaleW>0)Sys.dim.layerWidth=winWidth*}if(Sys.dim.layerHeight>window.screen.availHeight){Sys.dim.layerHeight=Sys.dim.fullHeight;}if(Sys.dim.layerWidth>window.screen.availWidth){Sys.dim.layerWidth=winWidth*0.9;}if($('#studyPointLeft').length>0&&$('#studyPointRight').length>0){if($('#studyPointLeft').parent().offset().top==0){ }else }}elsevarparPad=parseInt($('#studyPointLeft').parent().css("padding-top"));}$('.Hleft').each(function(){//左 }elsevarparPad=parseInt($('#studyPointLeft').parent().css("padding-top"));if($('#studyPointLeft').parent().offset().top==0){ $("#tpTop").outerHeight(true)-5-}else }}//}//寬度resizetodovarcurWidth=layer彈出層調(diào)整iflayer.index>0//console.log("H:"+Sys.dim.layerHeight+"W:"+//設(shè)置layervar_tmpLayerHeight=Sys.dim.layerHeight;var_tmpLayerWidth=if(_tmpLayerWidth<400){_tmpLayerWidth=400;}if(_tmpLayerHeight<300){_tmpLayerHeight=300;}layer.area(layer.index,{width:_tmpLayerWidth,height:_tmpLayerHeight,top:(windowHeight-_tmpLayerHeight)/2});}T}if(event.clientX<=0||event.clientY<0)s0關(guān)閉窗口sw1;}else//}}////varsearchUrl=window.location.search;if(currentKeyCode==116){//刷新窗口}else }}functiononload(){RR.toJson();//10不提示if(R.s==1){else//undefined也是}if(getBrowserType()!=="IE"){$('.navDropDown').click(function(){var_nSubNavs=$('.subNavs');}else}}else//}//按鍵keycode.onkeydownfunctione)varev=e||window.event;}//HTML5if(Sys.Load==true){Sys.Load=}elseif(typeofquery==="undefined"||query.indexOf("http:")>=0){}elseloadInPage(query,function(){Sys.Load=false;});}}//varsearchUrl=if(searchUrl.toLowerCase().indexOf("http:")>0){window.location.search="";}else }}//////varActions=if(typeofActions!=="undefined")var_func='load'+Actions+try{eval(_func+}catch(e)}}}////$(function()$.ajaxSetup({cache:false//窗口啟動resize//functionnavLeftClick()varlink=$(this).attr('data-if(!$(this).hasClass('noeffect')){}}//functiongoBack()if(lastPageUrl!==null){}}//functionloadInPage(Url,_callback)if(typeofUrl!=="undefined"&&Url.isUrl())varsearchUrl=$.get(Url,function(HTML)//varControlName="/"+if(Url.toLowerCase().indexOf('pospointmanage')>0){//崗位設(shè)置與要點(diǎn)設(shè)ControlName=}elseControlName=}}varController=varnavItem=$('a.navItems[data-link="'+ControlName+'"]').eq(0);if(navItem.hasClass('snav')){$('.subNavs').show();}Sys.Url.Controller=Controller;varnameMd5=hex_md5(Controller);varcacheOn=!Sys.Debug;if(ArrayIndexOf(Sys.loadedJs,nameMd5)!==false)cacheOn=true;varScriptName="/Scripts/JsPart/part_"+Controller+".js";//頁面UrllastPageUrl=lastPageUrl==currentPageUrl?lastPageUrl:currentPageUrl;Sys.Url.curr

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論