| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- function openRemark(dayhour){
- var contengt = "1.每日应报工时为"+dayhour+"小时,系统会根据每日应报工时自动计算饱和度比率。<br/>";
- contengt += "2.饱和度分为4个级别:1、100%以上 <span style='color:#0000FF'>超负荷</span> 2、90%-100% <span style='color:#000000'>饱和</span> 3、60%-90% <span style='color:#008000'>基本饱和</span> 4、60%以下 <span style='color:#FF0000'>不饱和</span><br/>";
- contengt += " 3.工时数字会根据这四个级别进行变色 ";
- $.ligerDialog.open({ title:"统计说明",content:contengt,height: 150,width: 350, showMin: true, isResize: true, slide: false });
- }
-
- function senfe(o,a,b,c,d){
- var t=document.getElementById(o).getElementsByTagName("tr");
- for(var i=0;i<t.length;i++){
- t[i].onmouseover=function(){
- this.x="1";
- this.style.backgroundColor=d;
- var td = this.getElementsByTagName("td");
- for(var j=0;j<td.length;j++){
- td[j].style.backgroundColor=c;
- }
- }
- t[i].onmouseout=function(){
- this.x="0";
- this.style.backgroundColor="";
- var td = this.getElementsByTagName("td");
- for(var j=0;j<td.length;j++){
- td[j].style.backgroundColor="";
- }
- }
- }
- }
-
-
- function getWorkDiaryList(userId,day,userName,yearInt,monthInt){
- var projId = $("#projId").val();
- $.ajax({
- type: 'get',
- url: 'TmsSaturationAction.do?task=getWorkDiaryDetail&time=' + new Date().getTime(),
- data : {"userId" : userId, "projId":projId,"year":yearInt,"month":monthInt,"day":day},
- timeout:30000,
- cache:false,
- dataType: 'json',
- success: function (data) {
- var datas = eval(data);
- var total = datas.Total;
- var result = datas.Rows;
- var contengMsg = "";
- for(var i=0;i<total;i++){
- var task = result[i].task_name;
- if( task == null || task == 'null'){
- task = '非任务工作日志'
- }
- contengMsg += "任务"+(i+1)+"<br />";
- contengMsg += "----------------------------<br />";
- contengMsg += "任务名称:"+task+"<br />";
- contengMsg += "工时:"+result[i].man_hour+"<br />";
- contengMsg += "工作内容:"+result[i].remark+"<br /><br />";
- }
- f_open(userName,day,contengMsg,yearInt,monthInt);
- },
- error: function (request, status, error) {
- alert("对不起,连接异常,请稍后重试");
- return "";
- }
- });
- }
- function f_open(userName,day,contengMsg,yearInt,monthInt){
- $.ligerDialog.open({ title:userName+"("+yearInt+"-"+monthInt+"-"+day+")",content:contengMsg,height: 300,width: 350, showMin: true, isResize: true, slide: false });
- }
|