<apex:page standardController="TS_Repair__c" extensions="TSRepairController" showHeader="true" sidebar="false" id="allPage" action="{!init}" title="TS日报">
|
<apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/>
|
<apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/>
|
<apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/>
|
<!-- <apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/> -->
|
<!-- <apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/> -->
|
<apex:stylesheet value="{!URLFOR($Resource.jquerysuggestcss)}"/>
|
<apex:includeScript value="{!URLFOR($Resource.jquerysuggestjs)}"/>
|
<apex:includeScript value="{!URLFOR($Resource.connection20)}"/>
|
<apex:includeScript value="{!URLFOR($Resource.apex20)}"/>
|
<apex:includeScript value="{! URLFOR($Resource.AWSService, 'AWSService.js') }" />
|
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no"/>
|
<style type="text/css">
|
/*.sfdcBody {position: absolute;
|
left:0px;
|
right:0px;
|
top:0px;
|
bottom:0px;
|
width: 80%;
|
overflow:auto;}
|
|
*/
|
.dateFormat {
|
display: none;
|
}
|
.pbSubheader {
|
/*background: #BFB19C;*/
|
/*background-color: #44A3BB!important;
|
background-color: #E6E6FA!important;*/
|
background-color: #1797c0!important;
|
background-color: #BFB19C!important;
|
|
|
}
|
td.columuslowercolour {
|
background-color:red;
|
text-align: right;
|
}
|
td.columuscuperolour {
|
background-color: yellow;
|
text-align: right;
|
}
|
|
.visitorplace_results {
|
border: 1px solid gray;
|
background-color: white;
|
padding: 0;
|
margin: 0;
|
list-style: none;
|
position: absolute;
|
z-index: 10000;
|
display: none;
|
overflow:auto;
|
white-space:nowrap;
|
width:400px;
|
height:250px;
|
}
|
.visitorplace_results li {
|
padding: 2px 5px 2px 0px;
|
margin-left : 2px;
|
color: #101010;
|
text-align: left;
|
}
|
.status {
|
width: 50px;
|
box-sizing: border-box;
|
background: #B1B4B6;
|
font-size: 9px;
|
padding: 6px 2px;
|
margin:0,0;
|
display: inline-block;
|
-webkit-transition-duration: 0.3s;
|
transition-duration: 0.3s;
|
-webkit-transition-property: box-shadow;
|
transition-property: box-shadow;
|
-webkit-transform: translateZ(0);
|
transform: translateZ(0);
|
|
}
|
.qqq{
|
width: 50px;
|
background: #51b7e6;
|
font-size: 9px;
|
padding: 6px 2px;
|
margin:0,0;
|
display: inline-block;
|
-webkit-transition-duration: 0.3s;
|
transition-duration: 0.3s;
|
-webkit-transition-property: box-shadow;
|
transition-property: box-shadow;
|
-webkit-transform: translateZ(0);
|
transform: translateZ(0);
|
box-sizing: border-box;
|
box-shadow: 2px 2px 2px #999999;
|
cursor : pointer;
|
}
|
.status:hover{
|
box-shadow: 2px 2px 2px #999999;
|
cursor : pointer;
|
background: #51b7e6;
|
}
|
|
</style>
|
<!-- JS 方法 -->
|
<script>
|
var j$ = jQuery.noConflict();
|
var closeField = '';
|
var closePhone = '';
|
var newSearchContactWindow = null;
|
var staticResourceContact = JSON.parse('{!staticResourceContact}')
|
|
|
j$(document).ready(function() {
|
var status = '{!tsr.TSReportStatus__c}';
|
//alert(status);
|
if(status == '草案中'){
|
j$(escapeVfId('status1')).attr('class','qqq');
|
}else if(status == '申请中'){
|
j$(escapeVfId('status1')).attr('class','qqq');
|
j$(escapeVfId('status2')).attr('class','qqq');
|
}else if(status == '确认'){
|
j$(escapeVfId('status1')).attr('class','qqq');
|
j$(escapeVfId('status2')).attr('class','qqq');
|
j$(escapeVfId('status3')).attr('class','qqq');
|
|
}else{
|
j$(escapeVfId('status1')).attr('class','qqq');
|
j$(escapeVfId('status4')).attr('class','qqq');
|
}
|
|
isOncilck();
|
|
});
|
|
// 王鹏伟 设置按钮是否可以点击 开始
|
function isOncilck(){
|
var onclickType = '{!onclickType}';
|
var status = '{!tsr.TSReportStatus__c}';
|
//console.info("onclickType:"+onclickType);
|
if (onclickType == '-1') {
|
j$(escapeVfId('status1')).css("pointer-events","none");
|
j$(escapeVfId('status2')).css("pointer-events","none");
|
j$(escapeVfId('status3')).css("pointer-events","none");
|
j$(escapeVfId('status4')).css("pointer-events","none");
|
} else if(onclickType == '0'){
|
//onclickType == 0 批准,驳回设置为不可点击
|
j$(escapeVfId('status3')).css("pointer-events","none");
|
j$(escapeVfId('status4')).css("pointer-events","none");
|
}else if(onclickType == '1'){
|
//onclickType == 1 草案,申请设置为不可点击
|
console.info("onclickType="+onclickType);
|
j$(escapeVfId('status1')).css("pointer-events","none");
|
j$(escapeVfId('status2')).css("pointer-events","none");
|
|
if(status == '确认' || status == '草案中'){
|
j$(escapeVfId('status1')).css("pointer-events","none");
|
j$(escapeVfId('status2')).css("pointer-events","none");
|
j$(escapeVfId('status3')).css("pointer-events","none");
|
j$(escapeVfId('status4')).css("pointer-events","none");
|
}
|
if(status == '驳回'){
|
j$(escapeVfId('status3')).css("pointer-events","none");
|
j$(escapeVfId('status4')).css("pointer-events","none");
|
}
|
} else {
|
if(status == '确认'){
|
j$(escapeVfId('status1')).css("pointer-events","none");
|
j$(escapeVfId('status2')).css("pointer-events","none");
|
j$(escapeVfId('status3')).css("pointer-events","none");
|
j$(escapeVfId('status4')).css("pointer-events","none");
|
}
|
}
|
}
|
// 王鹏伟 设置按钮是否可以点击 结束
|
//<!-- 王鹏伟 点击按钮更新状态开始 -->
|
function setStatusJS(str){
|
var rId = '{!tsr.id}';
|
console.info(rId+"--------"+str);
|
blockme();
|
setStatus(str);
|
var status = '{!tsr.TSReportStatus__c}';
|
/*alert(status);*/
|
if(status == '草案中'){
|
j$(escapeVfId('status1')).attr('class','qqq');
|
j$(escapeVfId('status2')).attr('class','status');
|
j$(escapeVfId('status3')).attr('class','status');
|
j$(escapeVfId('status4')).attr('class','status');
|
}else if(status == '申请中'){
|
j$(escapeVfId('status1')).attr('class','qqq');
|
j$(escapeVfId('status2')).attr('class','qqq');
|
j$(escapeVfId('status3')).attr('class','status');
|
j$(escapeVfId('status4')).attr('class','status');
|
|
}else if(status == '确认'){
|
j$(escapeVfId('status1')).attr('class','qqq');
|
j$(escapeVfId('status2')).attr('class','qqq');
|
j$(escapeVfId('status3')).attr('class','qqq');
|
j$(escapeVfId('status4')).attr('class','status');
|
|
}else{
|
j$(escapeVfId('status1')).attr('class','qqq');
|
j$(escapeVfId('status2')).attr('class','status');
|
j$(escapeVfId('status3')).attr('class','status');
|
j$(escapeVfId('status4')).attr('class','qqq');
|
}
|
}
|
//<!-- 王鹏伟 点击按钮更新状态结束 -->
|
|
function saveJs() {
|
if(confirm('是否保存修改?')==true){
|
blockme();
|
saveBtn();
|
}
|
}
|
|
function test(line){
|
|
var managementCode = j$(escapeVfId('allPage:allForm:RepairInfoList:' + line + ':managementCode')).value();
|
var firstinputOriginalValue = j$(escapeVfId('allPage:allForm:RepairInfoList:' + line + ':firstinputOriginalValue')).value();
|
|
var mark = j$(escapeVfId('allPage:allForm:RepairInfoList:' + line + ':firstinput')).value();
|
if (mark == ''){
|
alert('首次登陆案件不能为空');
|
j$(escapeVfId('allPage:allForm:RepairInfoList:' + line + ':firstinput')).val(firstinputOriginalValue);
|
return;
|
} else {
|
if(managementCode != '' && mark == '是' && firstinputOriginalValue == '否'){
|
if(confirm('确定要解除与 [ '+managementCode+' ] 案件的关联吗? 解除关联会清空与案件相关的内容')==true){
|
|
} else {
|
j$(escapeVfId('allPage:allForm:RepairInfoList:' + line + ':firstinput')).val(firstinputOriginalValue);
|
}
|
}
|
}
|
if(mark == '是'){
|
j$(escapeVfId('allPage:allForm:RepairInfoList:' + line + ':managementCode')).attr("disabled","disabled");
|
}
|
else if(mark == '否'){
|
setFirstinput(line);
|
}
|
}
|
|
function ServiceType(line){
|
|
var TSRepairFirstSubmission = j$(escapeVfId("TSRepairFirstSubmission")).value();
|
var ServiceType = j$(escapeVfId('allPage:allForm:RepairInfoList:' + line + ':serviceType')).value();
|
var serviceTypeReference = j$(escapeVfId('allPage:allForm:RepairInfoList:' + line + ':serviceTypeReference')).value();
|
var baId = j$(escapeVfId('allPage:allForm:RepairInfoList:' + line + ':baId')).value();
|
var lineNo = Number(line) + Number(1);
|
if (ServiceType == '' && baId != '') {
|
if(confirm('确定要删除第 [ '+lineNo+' ]个 业务活动吗?')==true){
|
|
} else {
|
j$(escapeVfId('allPage:allForm:RepairInfoList:' + line + ':serviceType')).val(serviceTypeReference);
|
}
|
}
|
updateServiceCategory(line);
|
}
|
|
function timecheck(line){
|
|
var end_minute = j$(escapeVfId('allPage:allForm:RepairInfoList:' + line + ':idEndMinuteText')).value();
|
var end_hour = j$(escapeVfId('allPage:allForm:RepairInfoList:' + line + ':idEndHourTextt')).value();
|
var start_minute = j$(escapeVfId('allPage:allForm:RepairInfoList:' + line + ':idStartMinuteText')).value();
|
var start_hour = j$(escapeVfId('allPage:allForm:RepairInfoList:' + line + ':idActStartHour')).value();
|
|
var em = parseInt(end_minute);
|
var eh = parseInt(end_hour);
|
var sm = parseInt(start_minute);
|
var sh = parseInt(start_hour);
|
|
if(end_minute != '' && end_hour != '' && start_hour != '' && start_minute != ''){
|
var temp = em - sm;
|
temp = parseInt(temp);
|
if(temp != 30 && temp != -30 && temp != 0 ){
|
alert('输入时间必须时30分钟的整倍数');
|
j$(escapeVfId('allPage:allForm:RepairInfoList:' + line + ':idEndMinuteText')).val('');
|
j$(escapeVfId('allPage:allForm:RepairInfoList:' + line + ':idworkingHours')).val('');
|
return;
|
}
|
var hour = eh - sh;
|
if (eh != 0 && sh != 0 && hour < 0) {
|
alert('结束时间必须大于等于起始时间');
|
j$(escapeVfId('allPage:allForm:RepairInfoList:' + line + ':idEndHourTextt')).val('');
|
j$(escapeVfId('allPage:allForm:RepairInfoList:' + line + ':idworkingHours')).val('');
|
return;
|
} else if ((eh == 0 || sh == 0) && hour < 0) {
|
j$(escapeVfId('allPage:allForm:RepairInfoList:' + line + ':idworkingHours')).val('');
|
return;
|
}
|
var timenumber = '';
|
if(temp == -30){
|
timenumber = eh - sh - 1 + '.' + '50';
|
}else if(temp == 30){
|
timenumber = eh - sh + "." + '50';
|
}else{
|
timenumber = eh - sh + "." + '00';
|
}
|
j$(escapeVfId('allPage:allForm:RepairInfoList:' + line + ':idworkingHours')).val(timenumber);
|
}
|
|
}
|
|
//报告日期更改时调用
|
function reportDate(){
|
blockme();
|
reportDateChage();
|
}
|
// 查找业务活动
|
function openSelectWindow(line, baId,ufId) {
|
var baseUrl = j$(escapeVfId("baseUrl")).value();
|
var repairId = j$(escapeVfId("repairId")).value();
|
window.open(baseUrl + '/apex/SearchManagementCode?lineno=' + line + '&baId=' + encodeURIComponent(baId) + '&repairId='+encodeURIComponent(repairId) + '&ufId='+encodeURIComponent(ufId),'pselect', 'width=950,height=450,scrollbars=yes,toolbar=no,status=no,directories=no,menubar=no,resizable=1', true);
|
}
|
|
function refreshPage(fromUserFaultInfoId,lineno){
|
initBusinessActivity(fromUserFaultInfoId,lineno);
|
}
|
|
function setVisitorPlace(index){
|
try{
|
var businessACustomerUnit = 'allPage:allForm:RepairInfoList:'+index+':BusinessACustomerUnit';
|
var strPage = null;
|
var options = {};
|
var productSegmentf = '{!use.TSUserSegment__c}';
|
if ('NDT&ANI' == productSegmentf) {
|
productSegmentf = 'NDT/ANI';
|
}
|
strPage = '/apex/TS_SearchAccount?r='+productSegmentf;
|
options = {minchars:3, minwords:2, resultsClass:'visitorplace_results'};
|
jQuery(escapeVfId(businessACustomerUnit)).unbind();
|
if (strPage != null) {
|
jQuery(escapeVfId(businessACustomerUnit)).suggest(strPage,options);
|
}
|
}catch(e){
|
alert(e);
|
}
|
}
|
|
function vpClear2_delay(index){
|
var accountName = 'allPage:allForm:RepairInfoList:'+index+':BusinessACustomerUnit';
|
var accountNameVal = j$(escapeVfId(accountName)).value();
|
var accountId = 'allPage:allForm:RepairInfoList:'+index+':BusinessACustomerUnitId';
|
var accountIdVal = j$(escapeVfId(accountId)).value();
|
vpClear2(index);
|
}
|
|
function vpClear2(index){
|
resetValue('allPage:allForm:RepairInfoList:'+index+':BusinessACustomerUnit');
|
}
|
|
|
//20220310 zhj PIPL start
|
function isError(){
|
let h = HasError()
|
if(h){
|
unblockUI();
|
}
|
}
|
function HasError(){
|
// if (IsAddmessage) {
|
// return true;
|
// }
|
let e = document.getElementById("allPage:allForm:message");
|
if (!e) {
|
return false;
|
}
|
|
let divs = j$(e).find("div.message");
|
for (let i = 0; i < divs.length; i++) {
|
for (let j = 0; j < divs[i].classList.length; j++) {
|
for(let cls of divs[i].classList){
|
if (cls.indexOf('error')>-1) {
|
return true;
|
}
|
}
|
|
}
|
|
}
|
return false;
|
}
|
|
function alertErrorMessage(errorMsg) {
|
let errorMsgNode = document.getElementById("allPage:allForm:message");
|
errorMsgNode.innerText = errorMsg;
|
errorMsgNode.className = 'pbError';
|
}
|
|
function htmlToElement(html) {
|
var template = document.createElement('template');
|
html = html.trim(); // Never return a text node of whitespace as the result
|
template.innerHTML = html;
|
return template.content.firstChild;
|
}
|
|
var contactIdValue = '';
|
function searchContact(contactNodeId,field1,field2,field3,accountValueId){
|
closeField = field1;
|
closePhone = field2;
|
contactIdValue = field3;
|
var accountValueLkid = document.getElementById(accountValueId+'_lkid').value;
|
var searchContactKeyWord = document.getElementById(field1).value;
|
if (accountValueLkid != '000000000000000') {
|
let baseUrl = "/apex/SearchContactPage";
|
let suffixUrl = "?contactId="+contactNodeId+ "&accountId=" + accountValueLkid;
|
let newSearchContactParam = 'height=600,width=800,left=100,top=100,dialogHide=true,resizable=no,scrollbars=yes,toolbar=no,status=no';
|
newSearchContactWindow = window.open(baseUrl+suffixUrl, 'Popup', newSearchContactParam);
|
if (window.focus) {
|
newSearchContactWindow.focus();
|
}
|
return false;
|
}else {
|
alert('请先选择客户单位');
|
}
|
}
|
|
var currentLastName = '';
|
var currentPhoneId = '';
|
|
function replaceSearchContactLookup() {
|
blockme();
|
sforce.connection.sessionId = '{!GETSESSIONID()}';
|
let queryContactBack = function(data,number){
|
document.getElementById(currentLastName).value = data.object.lastName;
|
document.getElementById(currentPhoneId).innerText = data.object.phone;
|
number++;
|
if(document.getElementById('allPage:allForm:RepairInfoList:'+number+':contactIdValue') != null && document.getElementById('allPage:allForm:RepairInfoList:'+number+':contactIdValue').value != ''){
|
currentLastName = 'allPage:allForm:RepairInfoList:'+number+':Contacts__c';
|
currentPhoneId = 'allPage:allForm:RepairInfoList:'+number+':j_id91';
|
let sfId = document.getElementById('allPage:allForm:RepairInfoList:'+number+':contactIdValue').value;
|
var queryStr = 'Select Id, AWS_Data_Id__c'
|
+' from Contact where id = \''
|
+ sfId +'\' ';
|
var reports = sforce.connection.query(queryStr);
|
var records = reports.getArray("records");
|
var awsDataId = records[0].AWS_Data_Id__c;
|
AWSService.queryTSRepair(staticResourceContact.queryUrl, awsDataId, queryContactBack, staticResourceContact.token,number);
|
}
|
}
|
for(var i = 0;i<3;i++){
|
let contactHtmlString = '<img src="/img/s.gif" onclick="searchContact(\'allPage:allForm:contactId\',\'allPage:allForm:RepairInfoList:'+i+':Contacts__c\',\'allPage:allForm:RepairInfoList:'+i+':j_id91\',\'allPage:allForm:RepairInfoList:'+i+':contactIdValue\',\'allPage:allForm:RepairInfoList:'+i+':BusinessACustomerUnit\')" alt="Reference Document Number Lookup" class="lookupIcon" title="Reference Document Number Lookup (New Window)"/>';
|
let lookUpNode = htmlToElement(contactHtmlString);
|
console.log(lookUpNode);
|
let parentNode = document.getElementById('allPage:allForm:RepairInfoList:'+i+':contactIdValue').parentNode;
|
parentNode.appendChild(lookUpNode);
|
}
|
if(document.getElementById('allPage:allForm:RepairInfoList:0:contactIdValue').value != ''){
|
currentLastName = 'allPage:allForm:RepairInfoList:0:Contacts__c';
|
currentPhoneId = 'allPage:allForm:RepairInfoList:0:j_id91';
|
//解密
|
let sfId = document.getElementById('allPage:allForm:RepairInfoList:0:contactIdValue').value;
|
var queryStr = 'Select Id, AWS_Data_Id__c'
|
+' from Contact where id = \''
|
+ sfId +'\' ';
|
var reports = sforce.connection.query(queryStr);
|
var records = reports.getArray("records");
|
var awsDataId = records[0].AWS_Data_Id__c;
|
AWSService.queryTSRepair(staticResourceContact.queryUrl, awsDataId, queryContactBack, staticResourceContact.token,0);
|
}
|
unblockUI();
|
}
|
|
|
function closePopupWindow() {
|
console.log('closePopupWindow()')
|
if (null != newSearchContactWindow) {
|
newSearchContactWindow.close();
|
}
|
let contactInfoStr = document.getElementById('allPage:allForm:contactId').value;
|
console.log('closePopup:'+contactInfoStr);
|
let contactInfo = JSON.parse(contactInfoStr);
|
|
document.getElementById(contactIdValue).value = contactInfo.ContactId;
|
document.getElementById(''+closeField).value = contactInfo.Name;
|
document.getElementById(''+closePhone).value = contactInfo.Phone;
|
document.getElementById(''+closePhone).innerText = contactInfo.Phone;
|
}
|
//20220310 zhj PIPL end
|
</script>
|
<apex:form id="allForm">
|
<apex:inputHidden value="{!contactId}" id="contactId"/>
|
<!-- 王鹏伟 点击按钮更新状态开始 -->
|
<apex:actionFunction name="setStatus" action="{!setStatus}" reRender="Activities,message,Activities1" oncomplete="unblockUI();">
|
|
<apex:param name="status" assignTo="{!status}" value="" />
|
</apex:actionFunction>
|
<!-- 王鹏伟 点击按钮更新状态结束 -->
|
<apex:actionFunction name="updateServiceCategory" action="{!updateServiceCategory}" rerender="Activities" onComplete="replaceSearchContactLookup();unblockUI();">
|
<apex:param name="num" assignTo="{!num}" value="" />
|
</apex:actionFunction>
|
|
<apex:actionFunction name="initBusinessActivity" action="{!initBusinessActivity}" rerender="allForm" onComplete="unblockUI();">
|
<apex:param name="fromUserFaultInfoId" assignTo="{!fromUserFaultInfoId}" value="" />
|
<apex:param name="lineno" assignTo="{!lineno}" value="" />
|
</apex:actionFunction>
|
|
|
<apex:actionFunction name="addBusinessActivity" action="{!addBusinessActivity}" reRender="allPanel" oncomplete="unblockUI();" ></apex:actionFunction>
|
|
<apex:actionFunction name="reportDateChage" action="{!checkReportDate}" reRender="allForm" oncomplete="unblockUI();" >
|
</apex:actionFunction>
|
|
<apex:actionFunction name="setFirstinput" reRender="Activities" oncomplete="unblockUI();" >
|
</apex:actionFunction>
|
|
<apex:outputPanel >
|
|
</apex:outputPanel>
|
<input type="hidden" id="baseUrl" value="{!baseUrl}"/>
|
<input type="hidden" id="repairId" value="{!repairId}"/>
|
<input type="hidden" id="TSRepairFirstSubmission" value="{!tsr.TSRepairFirstSubmission__c}"/>
|
<input type="hidden" id="serviceCategoryJSON" value="{!serviceCategoryJSON}"/>
|
<apex:outputPanel id="message">
|
|
<apex:pagemessages />
|
</apex:outputPanel>
|
|
<apex:outputPanel id="allPanel">
|
<apex:pageBlock title="SSBG TS 日报" id="unEditable" rendered="true">
|
<table class="formtable" width="100%" border="0">
|
<colgroup>
|
<col width="8%"/>
|
<col width="8%"/>
|
<col width="8%"/>
|
<col width="8%"/>
|
<col width="8%"/>
|
<col width="12%"/>
|
<col width="5%"/>
|
<col width="5%"/>
|
<col width="8%"/>
|
<col width="14.4%"/>
|
</colgroup>
|
|
<tr>
|
<td align="center" >员工ID:</td>
|
<td align="center" ><apex:outputField value="{!tsr.TSRepairEmployeeID__c}"/></td>
|
<td align="center" >报告人:</td>
|
<td align="center" ><apex:outputField value="{!tsr.TSReportName__c}"/></td>
|
<td align="center" >所属部/课:</td>
|
<td align="left" ><apex:outputField value="{!tsr.TSRepairDepartmenClass__c}"/></td>
|
<td align="left" >所属区域:</td>
|
<td align="center" ><apex:outputField value="{!tsr.TSRepairUserArea__c}"/></td>
|
<td align="center" >日报状态:</td>
|
<td >
|
<div class="status" id="status1" onclick="setStatusJS('草案中');">草案中</div>
|
<div class="status" id="status2" onclick="setStatusJS('申请中');">申请中</div>
|
<div class="status" id="status3" onclick="setStatusJS('确认');">确 认</div>
|
<div class="status" id="status4" onclick="setStatusJS('驳回');">驳 回</div>
|
<div>
|
<input id="focus" value="" style="width:0px;height:0px;border: 0px;" />
|
</div>
|
</td>
|
|
</tr>
|
<tr>
|
<td align="center" >报告日期:</td>
|
<td align="center" ><apex:inputField id="reportDate" value="{!tsr.TSReportDate__c }" onchange="reportDate();"/>
|
</td>
|
<td align="center" >上级:</td>
|
<td align="center" ><apex:outputField value="{!tsr.TSRepairSuperior__c}"/></td>
|
<td align="center" >批准日:</td>
|
<td><apex:outputField value="{!tsr.TSApprovalDate__c}"/></td>
|
<td></td>
|
<td></td>
|
<td align="center" >驳回理由:</td>
|
<td align="left" >
|
<!-- 申请中 上级 可编辑-->
|
<apex:outputPanel id="tsrInput" rendered="{!IF( tsr.TSReportStatus__c = '申请中' && onclickType = '1' , 'true' , 'false' )}">
|
<apex:inputField id="TSRepairDismissReason" value="{!tsr.TSRepairDismissReason__c }" style="width: 96%" >
|
|
</apex:inputField>
|
</apex:outputPanel>
|
<!-- 非上级 只读-->
|
<apex:outputPanel id="tsrOutput" rendered="{!IF( onclickType != '1' , 'true' , 'false' )}">
|
<c:PDFWbr targetStr="{!tsr.TSRepairDismissReason__c}"/>
|
</apex:outputPanel>
|
<!-- 非 申请中 上级 只读-->
|
<apex:outputPanel id="tsrOutput2" rendered="{!IF( tsr.TSReportStatus__c != '申请中' && onclickType = '1', 'true' , 'false' )}">
|
<c:PDFWbr targetStr="{!tsr.TSRepairDismissReason__c}"/>
|
</apex:outputPanel>
|
</td>
|
</tr>
|
</table>
|
</apex:pageBlock>
|
</apex:outputPanel>
|
|
<apex:outputPanel id="Activities" rendered="{!IF( temp = '0' , 'true' , 'false' )}">
|
<input type="hidden" id="idBusinessActivitySize" value="{!BusinessActivitySize}" />
|
|
<apex:repeat id="RepairInfoList" value="{!RepairInfoList}" var="repairInfo">
|
<div class="pbSubheader first tertiaryPalette">
|
<h3>业务活动</h3>
|
</div>
|
<table class="formtable" width="100%" border="0" style="background-color:#E6E6FA">
|
<colgroup>
|
<col width="8%"/>
|
<col width="14%"/>
|
<col width="11%"/>
|
<col width="11%"/>
|
<col width="11%"/>
|
<col width="11%"/>
|
<col width="11%"/>
|
<col width="11%"/>
|
</colgroup>
|
<tr>
|
<th style="text-align: left;" border="2">工作时间</th>
|
<td colspan="2"><span>
|
<apex:inputField id="idActStartHour" style="width:17%;ime-mode: disabled;ime-mode: disabled;text-align:left" value="{!repairInfo.ba.StartTimeHour__c}" onchange="timecheck('{!repairInfo.lineNumber}');"></apex:inputField>
|
</span>
|
<b>:</b>
|
<span>
|
<apex:inputField id="idStartMinuteText" style="width:17%;ime-mode: disabled;ime-mode: disabled;text-align:left" value="{!repairInfo.ba.StartTimeMinute__c}" onchange="timecheck('{!repairInfo.lineNumber}');"></apex:inputField>
|
</span>
|
~
|
|
<span>
|
<apex:inputField id="idEndHourTextt" style="width:17%;ime-mode: disabled;ime-mode: disabled;text-align:left" value="{!repairInfo.ba.EndTimeHour__c}" onchange="timecheck('{!repairInfo.lineNumber}');"></apex:inputField>
|
</span>
|
<b>:</b>
|
|
<span>
|
<apex:inputField id="idEndMinuteText" style="width:17%;ime-mode: disabled;ime-mode: disabled;text-align:left" value="{!repairInfo.ba.EndTimeMinute__c}" onchange="timecheck('{!repairInfo.lineNumber}');"></apex:inputField>
|
</span></td>
|
<th style="text-align: center;">合计工时</th>
|
<td><span><div class="requiredInput"><div class="requiredBlock"></div><apex:inputText id="idworkingHours" value="{!repairInfo.ba.workingHours__c}" style="width:150px;ime-mode: disabled;ime-mode: disabled;text-align:left" maxlength="2"/></div></span></td>
|
<script>
|
j$(escapeVfId('allPage:allForm:RepairInfoList:{!repairInfo.lineNumber}:idworkingHours')).attr('readonly', true);
|
</script>
|
</tr>
|
<tr>
|
<th style="text-align: left;">服务类型</th>
|
<td align="left" ><apex:inputField value="{!repairInfo.ba.serviceType__c}" id="serviceType" onchange="ServiceType('{!repairInfo.lineNumber}');"/></td>
|
<td></td>
|
<th style="text-align: center;" >服务范畴</th>
|
<td align="left" ><apex:inputField value="{!repairInfo.ba.BusinessAServiceCategory__c}" id="BusinessAServiceCategory"/></td>
|
|
<th style="text-align: center;">首次登陆案件</th>
|
<td align="left" ><apex:inputField id="firstinput" value="{!repairInfo.ba.firstInput__c}" onchange="test('{!repairInfo.lineNumber}');" style="width: 100%"/></td>
|
|
<th style="text-align: center;">管理编码</th>
|
<td align="center" ><apex:inputText id="managementCode" value="{!repairInfo.ba.FindManagementCode__c}" disabled="true" />
|
</td>
|
<td>
|
<apex:commandButton id="managementCodeSelect" disabled="{!IF(repairInfo.ba.firstInput__c = '是',true,false)}" value="编码搜索" onclick="openSelectWindow('{!repairInfo.lineNumber}','{!repairInfo.ba.Id}','{!repairInfo.uf.Id}');return false;"/>
|
</td>
|
<th></th>
|
<td>
|
<apex:inputHidden id="baId" value="{!repairInfo.BusinessActivityId}" />
|
<apex:inputHidden id="serviceTypeReference" value="{!repairInfo.baServiceType}" />
|
<apex:inputHidden id="firstinputOriginalValue" value="{!repairInfo.firstinputOriginalValue}" />
|
</td>
|
</tr>
|
</table>
|
<table class="formtable" width="100%" border="0" style="background-color:#DCDCDC">
|
|
<colgroup>
|
<col width="11%"/>
|
<col width="11%"/>
|
<col width="11%"/>
|
<col width="11%"/>
|
<col width="11%"/>
|
<col width="11%"/>
|
<col width="11%"/>
|
<col width="11%"/>
|
<col width="12%"/>
|
</colgroup>
|
<tr>
|
<th colspan="9" style="text-align: left;">用户/故障信息</th>
|
</tr>
|
<tr>
|
<td colspan="9"> <hr/></td>
|
</tr>
|
<tr>
|
<th style="text-align: left;" >用户&产品信息</th>
|
<th style="text-align: center;" >客户单位</th>
|
<td style="text-align: left;">
|
<apex:inputField id="BusinessACustomerUnit" value="{!repairInfo.ba.BusinessAAccount__c}" />
|
</td>
|
<th style="text-align: center;">联系人</th>
|
<td align="left" >
|
<!-- <apex:inputField value="{!repairInfo.ba.BusinessAContact__c}" style="width: 80%"/> -->
|
<!-- Add By zhj for PIPL 20220309 Start -->
|
<apex:inputText value="{!contactNameValue}" id="Contacts__c" style="width: 80%"/>
|
<apex:inputHidden id="contactIdValue" value="{!repairInfo.ba.BusinessAContact__c}"/>
|
<!-- Add By zhj for PIPL 20220309 end -->
|
</td>
|
<th style="text-align: center;">联系电话</th>
|
<td align="left" ><apex:outputField value="{!repairInfo.ba.BusinessAPhone_F__c}"/></td>
|
</tr>
|
|
|
<apex:repeat id="failureAssetList" value="{!repairInfo.failureAssetList}" var="failureAsset">
|
|
<tr>
|
<th></th>
|
<th style="text-align: center;">机型</th>
|
<td align="left" ><apex:inputField value="{!failureAsset.model__c}" id="model"/></td>
|
<th style="text-align: center;">产品系列</th>
|
<td align="left" ><apex:inputField value="{!failureAsset.FAProductSeries__c}" id="FAProductSeries"/></td>
|
<th style="text-align: center;">机身号</th>
|
<td align="left" ><apex:inputField value="{!failureAsset.SerialNumber__c}" id="SerialNumber"/></td>
|
<th style="text-align: center;">保修状态</th>
|
<td align="left" ><apex:inputField value="{!failureAsset.WarrantyStatus__c}" id="WarrantyStatus" style="width: 100%"/></td>
|
</tr>
|
</apex:repeat>
|
<tr>
|
<th ></th>
|
<th style="text-align: center;">合计台数</th>
|
<td align="left" ><apex:outputText value="{!repairInfo.ba.BusinessACombinedAmount__c}"/></td>
|
<th><apex:commandButton onclick="blockme();" id="addFailureAsset" action="{!addFailureAsset}" reRender="Activities" value="添加产品" style="width: 70px;" oncomplete="unblockUI();" disabled="{!repairInfo.disabled}"><apex:param name="num" value="{!repairInfo.lineNumber}" assignTo="{!num}" /></apex:commandButton></th>
|
</tr>
|
<tr>
|
<td colspan="9"> <hr/></td>
|
</tr>
|
<tr>
|
<th colspan="9" style="text-align: left;">需求/故障信息</th>
|
</tr>
|
|
<tr>
|
<th></th>
|
<th style="text-align: center;">故障内容</th>
|
<td align="left" ><apex:inputField value="{!repairInfo.ba.BusinessAFaultContent__c}" id="UFFaultContent" style="width: 97%"/></td>
|
<th style="text-align: center;">报修日期</th>
|
<td align="left" ><apex:inputField value="{!repairInfo.ba.BusinessARepairDate__c}" id="UFRepairDate" style="width: 96%" /></td>
|
<th style="text-align: center;">判断日期</th>
|
<td align="left" ><apex:inputField value="{!repairInfo.ba.BusinessADetermineDate__c}" id="UFDetermineDate" style="width: 97%"/></td>
|
<th style="text-align: center;">要求服务日期</th>
|
<td align="left" ><apex:inputField value="{!repairInfo.ba.BusinessADateRequest__c}" id="UFDateRequest" style="width: 95%"/></td>
|
</tr>
|
<tr>
|
<th></th>
|
<th style="text-align: center;">信息来源</th>
|
<td align="left" ><apex:inputField value="{!repairInfo.ba.BusinessAMessageSource__c}" id="UFMessageSource" style="width: 100%"/></td>
|
<th style="text-align: center;">服务性质</th>
|
<td align="left" ><apex:inputField value="{!repairInfo.ba.BusinessANatureService__c}" id="UFNatureService" style="width: 100%"/></td>
|
<th style="text-align: center;">无偿原因</th>
|
<td align="left" ><apex:inputField value="{!repairInfo.ba.BusinessAWithoutReason__c}" id="UFWithoutReason" style="width: 100%"/></td>
|
</tr>
|
|
<tr>
|
<td colspan="9"> <hr/></td>
|
</tr>
|
<tr>
|
<th colspan="9" style="text-align: left;">本次业务活动的内容</th>
|
|
</tr>
|
<tr>
|
<th></th>
|
|
<th style="text-align: center;">服务内容</th>
|
<td colspan="5" >
|
<apex:inputText value="{!repairInfo.ba.BusinessAServiceContentNew__c}" id="BusinessAServiceContentNew" style="width:99.5%; height:30px; resize:none;"/>
|
</td>
|
<th style="text-align: center;">服务合同号</th>
|
<td align="left" ><apex:inputField value="{!repairInfo.ba.BusinessAServiceContractNo__c}" id="BusinessAServiceContractNo" /></td>
|
</tr>
|
<tr>
|
<th></th>
|
<th style="text-align: center;">服务场所</th>
|
<td align="left" ><apex:inputField value="{!repairInfo.ba.BusinessAServicePlace__c}" id="BusinessAServicePlace" style="width: 100%"/>
|
</td>
|
<th style="text-align: center;">出差地</th>
|
<td align="left"><apex:inputField value="{!repairInfo.ba.BusinessABusinessTrip__c}" id="BusinessABusinessTrip" style="width: 96%"/>
|
</td>
|
<th style="text-align: center;">案件完成日</th>
|
<td align="left" ><apex:inputField value="{!repairInfo.ba.BusinessACompletionDate__c}" id="BusinessACompletionDate" style="width: 98%"/>
|
</td>
|
<th style="text-align: center;">下次服务时间</th>
|
<td align="left" ><apex:inputField value="{!repairInfo.ba.BusinessANextService__c}" id="BusinessANextService" style="width: 96%"/>
|
</td>
|
|
</tr>
|
<tr>
|
<th></th>
|
<th style="text-align: center;">派遣周期</th>
|
<td align="left" ><apex:outputField value="{!repairInfo.ba.BusinessADispatchTime__c}" id="BusinessADispatchTime" style="width: 100%"/>
|
</td>
|
<th style="text-align: center;">维修周期</th>
|
<td align="left"><apex:outputField value="{!repairInfo.ba.BusinessAMaintainTime__c}" id="BusinessAMaintainTime" style="width: 96%"/>
|
</td>
|
<th style="text-align: center;">停机时间</th>
|
<td align="left" ><apex:outputField value="{!repairInfo.ba.BusinessADowntime__c}" id="BusinessADowntime" style="width: 98%"/>
|
</td>
|
<th style="text-align: center;">服务结果</th>
|
<td align="left" ><apex:inputField value="{!repairInfo.ba.BusinessAServiceResult__c}" id="BusinessAServiceResult" style="width: 100%"/>
|
</td>
|
|
</tr>
|
<tr>
|
<th></th>
|
<th style="text-align: center;">报价日期</th>
|
<td align="left" ><apex:inputField value="{!repairInfo.ba.BusinessADateQuotation__c}" id="BusinessADateQuotation" style="width: 95%"/></td>
|
<th style="text-align: center;">同意报价日期</th>
|
<td align="left" ><apex:inputField value="{!repairInfo.ba.BusinessADateApproval__c}" id="UFDateApproval" style="width: 95%"/></td>
|
</tr>
|
<tr>
|
<td colspan="9"> <hr/></td>
|
</tr>
|
<tr>
|
<th colspan="9" style="text-align: left;">往次服务内容</th>
|
</tr>
|
<tr>
|
<th></th>
|
<th style="text-align: center;">服务内容(汇总)</th>
|
<td colspan="8"><apex:outputField id="response" value="{!repairInfo.ba.BusinessAServiceContent__c
|
}" style="width:99.5%; height:120px; resize:none;"/>
|
</td>
|
<script>
|
j$(escapeVfId('allPage:allForm:RepairInfoList:{!repairInfo.lineNumber}:response')).attr('readonly', true);
|
</script>
|
</tr>
|
<tr>
|
<td colspan="9"> <hr/></td>
|
</tr>
|
<tr>
|
<th style="text-align: left;">附件</th>
|
<th></th>
|
<th></th>
|
<th>
|
<apex:commandButton id="uploadingAttachment" reRender="message,allPanel,allForm" value="附件上传" onclick="blockme();" action="{!uploadingAttachment}" oncomplete="unblockUI();" ><apex:param name="baIds" value="{!repairInfo.ba.Id}/{!repairInfo.lineNumber}" assignTo="{!baIds}"/>
|
</apex:commandButton>
|
</th>
|
</tr>
|
<tr>
|
<th></th>
|
<th style="text-align: center;">标题</th>
|
<th></th>
|
<th style="text-align: center;">上次修改时间</th>
|
<th></th>
|
<th style="text-align: center;">创建人</th>
|
</tr>
|
<apex:repeat id="attachmentLsit" value="{!repairInfo.attachmentLsit}" var="attachment" >
|
|
<tr>
|
<th></th>
|
<td> <apex:outputLink value="/{!attachment.Id}" target="LINK_{!attachment.Id}"><c:PDFWbr targetStr="{!attachment.Name}" /></apex:outputLink>
|
</td>
|
<th></th>
|
<td align="center"><apex:outputField value="{!attachment.CreatedDate}"/></td>
|
<th></th>
|
<td align="center"><apex:outputField value="{!attachment.OwnerId}"/></td>
|
</tr>
|
</apex:repeat>
|
<tr>
|
<td colspan="9"> <hr/></td>
|
</tr>
|
<tr>
|
<th style="text-align: left;">审批意见</th>
|
<td align="left" ><apex:outputField value="{!repairInfo.ba.BusinessAApprovalOpinion__c}" id="BusinessAApprovalOpinionOutput" style="width: 100%"/>
|
</td>
|
<th></th>
|
<th style="text-align: center;">意见</th>
|
<td align="left"><apex:outputField value="{!repairInfo.ba.BusinessAOpinion__c}" id="BusinessAOpinionOutput"/>
|
</td>
|
</tr>
|
<tr>
|
<td colspan="9"> <hr/></td>
|
</tr>
|
|
|
</table>
|
|
<br/>
|
<br/>
|
<hr/>
|
<br/>
|
<br/>
|
</apex:repeat>
|
|
</apex:outputPanel>
|
|
<apex:outputPanel rendered="{!IF( temp = '1' , 'true' , 'false' )}" id="Activities1">
|
<input type="hidden" id="idBusinessActivitySize" value="{!BusinessActivitySize}" />
|
|
<apex:repeat value="{!RepairInfoList}" var="repairInfo">
|
<div class="pbSubheader first tertiaryPalette">
|
<h3>业务活动</h3>
|
</div>
|
<table class="formtable" width="100%" border="0" style="background-color:#E6E6FA">
|
<colgroup>
|
<col width="8%"/>
|
<col width="14%"/>
|
<col width="11%"/>
|
<col width="11%"/>
|
<col width="11%"/>
|
<col width="11%"/>
|
<col width="11%"/>
|
<col width="11%"/>
|
</colgroup>
|
<tr>
|
<th style="text-align: left;" border="2">工作时间</th>
|
<td colspan="2"><span>
|
<apex:outputField id="idActStartHour" style="width:17%" value="{!repairInfo.ba.StartTimeHour__c}" ></apex:outputField>
|
</span>
|
<b>:</b>
|
<span>
|
<apex:outputField id="idStartMinuteText" style="width:17%" value="{!repairInfo.ba.StartTimeMinute__c}" ></apex:outputField>
|
</span>
|
~
|
|
<span>
|
<apex:outputField id="idEndHourTextt" style="width:17%" value="{!repairInfo.ba.EndTimeHour__c}" ></apex:outputField>
|
</span>
|
<b>:</b>
|
|
<span>
|
<apex:outputField id="idEndMinuteText" style="width:17%;" value="{!repairInfo.ba.EndTimeMinute__c}"></apex:outputField>
|
</span></td>
|
<th style="text-align: center;">合计工时</th>
|
<td><span><div class="requiredInput"><div class="requiredBlock"></div><apex:outputText id="idworkingHours" value="{!repairInfo.ba.workingHours__c}" style="width:150px;ime-mode: disabled;ime-mode: disabled;text-align:left"/></div></span></td>
|
<script>
|
j$(escapeVfId('allPage:allForm:RepairInfoList:{!repairInfo.lineNumber}:idworkingHours')).attr('readonly', true);
|
</script>
|
</tr>
|
<tr>
|
<th style="text-align: left;">服务类型</th>
|
<td align="left" ><apex:outputField value="{!repairInfo.ba.serviceType__c}" id="serviceType"/></td>
|
<td></td>
|
<th style="text-align: center;" >服务范畴</th>
|
<td align="left" ><apex:outputField value="{!repairInfo.ba.BusinessAServiceCategory__c}" id="BusinessAServiceCategory"/></td>
|
|
<th style="text-align: center;">首次登陆案件</th>
|
<td align="left" ><apex:outputField id="firstinput" value="{!repairInfo.ba.firstInput__c}" style="width: 100%"/></td>
|
|
<th style="text-align: center;">管理编码</th>
|
<td align="center" ><apex:outputText id="managementCode" value="{!repairInfo.ba.FindManagementCode__c}"/></td>
|
<th></th>
|
</tr>
|
</table>
|
<table class="formtable" width="100%" border="0" style="background-color:#DCDCDC">
|
|
<colgroup>
|
<col width="11%"/>
|
<col width="11%"/>
|
<col width="11%"/>
|
<col width="11%"/>
|
<col width="11%"/>
|
<col width="11%"/>
|
<col width="11%"/>
|
<col width="11%"/>
|
<col width="12%"/>
|
</colgroup>
|
<tr>
|
<th colspan="9" style="text-align: left;">用户/故障信息</th>
|
</tr>
|
<tr>
|
<td colspan="9"> <hr/></td>
|
</tr>
|
<tr>
|
<th style="text-align: left;" >用户&产品信息</th>
|
<th style="text-align: center;" >客户单位</th>
|
<td style="text-align: left;"><apex:outputField value="{!repairInfo.ba.BusinessAAccount__c}" style="width: 80%"/></td>
|
<th style="text-align: center;">联系人</th>
|
<td align="left" ><apex:outputField value="{!repairInfo.ba.BusinessAContact__c}" style="width: 80%"/></td>
|
<th style="text-align: center;">联系电话</th>
|
<td align="left" ><apex:outputField value="{!repairInfo.ba.BusinessAPhone_F__c}"/></td>
|
</tr>
|
|
|
<apex:repeat id="failureAssetList" value="{!repairInfo.failureAssetList}" var="failureAsset">
|
|
<tr>
|
<th></th>
|
<th style="text-align: center;">机型</th>
|
<td align="left" ><apex:outputField value="{!failureAsset.model__c}" id="model"/></td>
|
<th style="text-align: center;">产品系列</th>
|
<td align="left" ><apex:outputField value="{!failureAsset.FAProductSeries__c}" id="FAProductSeries"/></td>
|
<th style="text-align: center;">机身号</th>
|
<td align="left" ><apex:outputField value="{!failureAsset.SerialNumber__c}" id="SerialNumber"/></td>
|
<th style="text-align: center;">保修状态</th>
|
<td align="left" ><apex:outputField value="{!failureAsset.WarrantyStatus__c}" id="WarrantyStatus" style="width: 100%"/></td>
|
</tr>
|
</apex:repeat>
|
<tr>
|
<th ></th>
|
<th style="text-align: center;">合计台数</th>
|
<td align="left" ><apex:outputText value="{!repairInfo.ba.BusinessACombinedAmount__c}"/></td>
|
|
</tr>
|
<tr>
|
<td colspan="9"> <hr/></td>
|
</tr>
|
<tr>
|
<th colspan="9" style="text-align: left;">需求/故障信息</th>
|
</tr>
|
|
<tr>
|
<th></th>
|
<th style="text-align: center;">故障内容</th>
|
<td align="left" ><apex:outputField value="{!repairInfo.ba.BusinessAFaultContent__c}" id="UFFaultContent" style="width: 97%"/></td>
|
<th style="text-align: center;">报修日期</th>
|
<td align="left" ><apex:outputField value="{!repairInfo.ba.BusinessARepairDate__c}" id="UFRepairDate" style="width: 96%"/></td>
|
<th style="text-align: center;">判断日期</th>
|
<td align="left" ><apex:outputField value="{!repairInfo.ba.BusinessADetermineDate__c}" id="UFDetermineDate" style="width: 97%"/></td>
|
<th style="text-align: center;">要求服务日期</th>
|
<td align="left" ><apex:outputField value="{!repairInfo.ba.BusinessADateRequest__c}" id="UFDateRequest" style="width: 95%"/></td>
|
</tr>
|
<tr>
|
<th></th>
|
<th style="text-align: center;">信息来源</th>
|
<td align="left" ><apex:outputField value="{!repairInfo.ba.BusinessAMessageSource__c}" id="UFMessageSource" style="width: 100%"/></td>
|
<th style="text-align: center;">服务性质</th>
|
<td align="left" ><apex:outputField value="{!repairInfo.ba.BusinessANatureService__c}" id="UFNatureService" style="width: 100%"/></td>
|
<th style="text-align: center;">无偿原因</th>
|
<td align="left" ><apex:outputField value="{!repairInfo.ba.BusinessAWithoutReason__c}" id="UFWithoutReason" style="width: 100%"/></td>
|
</tr>
|
|
<tr>
|
<td colspan="9"> <hr/></td>
|
</tr>
|
<tr>
|
<th colspan="9" style="text-align: left;">本次业务活动的内容</th>
|
|
</tr>
|
<tr>
|
<th></th>
|
<th style="text-align: center;">服务内容</th>
|
<td align="left" >
|
<apex:outputText value="{!repairInfo.ba.BusinessAServiceContentNew__c}" id="BusinessAServiceContentNew"/>
|
</td>
|
<th></th>
|
<th></th>
|
<th></th>
|
<th></th>
|
<th style="text-align: center;">服务合同号</th>
|
<td align="left" ><apex:outputField value="{!repairInfo.ba.BusinessAServiceContractNo__c}" id="BusinessAServiceContractNo" /></td>
|
</tr>
|
<tr>
|
<th></th>
|
<th style="text-align: center;">服务场所</th>
|
<td align="left" ><apex:outputField value="{!repairInfo.ba.BusinessAServicePlace__c}" id="BusinessAServicePlace" style="width: 100%"/>
|
</td>
|
<th style="text-align: center;">出差地</th>
|
<td align="left"><apex:outputField value="{!repairInfo.ba.BusinessABusinessTrip__c}" id="BusinessABusinessTrip" style="width: 96%"/>
|
</td>
|
<th style="text-align: center;">案件完成日</th>
|
<td align="left" ><apex:outputField value="{!repairInfo.ba.BusinessACompletionDate__c}" id="BusinessACompletionDate" style="width: 98%"/>
|
</td>
|
<th style="text-align: center;">下次服务时间</th>
|
<td align="left" ><apex:outputField value="{!repairInfo.ba.BusinessANextService__c}" id="BusinessANextService" style="width: 96%"/>
|
</td>
|
|
</tr>
|
<tr>
|
<th></th>
|
<th style="text-align: center;">派遣周期</th>
|
<td align="left" ><apex:outputField value="{!repairInfo.ba.BusinessADispatchTime__c}" id="BusinessADispatchTime" style="width: 100%"/>
|
</td>
|
<th style="text-align: center;">维修周期</th>
|
<td align="left"><apex:outputField value="{!repairInfo.ba.BusinessAMaintainTime__c}" id="BusinessAMaintainTime" style="width: 96%"/>
|
</td>
|
<th style="text-align: center;">停机时间</th>
|
<td align="left" ><apex:outputField value="{!repairInfo.ba.BusinessADowntime__c}" id="BusinessADowntime" style="width: 98%"/>
|
</td>
|
<th style="text-align: center;">服务结果</th>
|
<td align="left" ><apex:outputText value="{!repairInfo.ba.BusinessAServiceResult__c}" id="BusinessAServiceResult" style="width: 96%"/>
|
</td>
|
|
</tr>
|
<tr>
|
<th></th>
|
<th style="text-align: center;">报价日期</th>
|
<td align="left" ><apex:outputField value="{!repairInfo.ba.BusinessADateQuotation__c}" id="BusinessADateQuotation" style="width: 95%"/></td>
|
<th style="text-align: center;">同意报价日期</th>
|
<td align="left" ><apex:outputField value="{!repairInfo.ba.BusinessADateApproval__c}" id="UFDateApproval" style="width: 95%"/></td>
|
</tr>
|
<tr>
|
<td colspan="9"> <hr/></td>
|
</tr>
|
<tr>
|
<th colspan="9" style="text-align: left;">往次服务内容</th>
|
</tr>
|
<tr>
|
<th></th>
|
<th style="text-align: center;">服务内容(汇总)</th>
|
<td colspan="8"><apex:outputField id="response" value="{!repairInfo.ba.BusinessAServiceContent__c
|
}" style="width:99.5%; height:120px; resize:none;"/>
|
</td>
|
<script>
|
j$(escapeVfId('allPage:allForm:RepairInfoList:{!repairInfo.lineNumber}:response')).attr('readonly', true);
|
</script>
|
</tr>
|
<tr>
|
<td colspan="9"> <hr/></td>
|
</tr>
|
<tr>
|
<th style="text-align: left;">附件</th>
|
<th></th>
|
<th></th>
|
<th>
|
|
</th>
|
</tr>
|
<tr>
|
<th></th>
|
<th style="text-align: center;">标题</th>
|
<th></th>
|
<th style="text-align: center;">上次修改时间</th>
|
<th></th>
|
<th style="text-align: center;">创建人</th>
|
</tr>
|
<apex:repeat id="attachmentLsit1" value="{!repairInfo.attachmentLsit}" var="attachment" >
|
|
<tr>
|
<th></th>
|
<td> <apex:outputLink value="/{!attachment.Id}" target="LINK_{!attachment.Id}"><c:PDFWbr targetStr="{!attachment.Name}" /></apex:outputLink>
|
</td>
|
<th></th>
|
<td align="center"><apex:outputField value="{!attachment.CreatedDate}"/></td>
|
<th></th>
|
<td align="center"><apex:outputField value="{!attachment.OwnerId}"/></td>
|
</tr>
|
</apex:repeat>
|
<tr>
|
<td colspan="9"> <hr/></td>
|
</tr>
|
<tr>
|
<th style="text-align: left;">审批意见</th>
|
<td align="left" ><apex:inputField value="{!repairInfo.ba.BusinessAApprovalOpinion__c}" id="BusinessAApprovalOpinion" style="width: 100%"/>
|
</td>
|
<th></th>
|
<th style="text-align: center;">意见</th>
|
<td align="left"><apex:inputField value="{!repairInfo.ba.BusinessAOpinion__c}" id="BusinessAOpinion"/>
|
</td>
|
</tr>
|
|
<tr>
|
<td colspan="9"> <hr/></td>
|
</tr>
|
|
|
</table>
|
<br/>
|
<br/>
|
<hr/>
|
<br/>
|
<br/>
|
</apex:repeat>
|
</apex:outputPanel>
|
<script>
|
console.log('appendToOnloadQueue')
|
sfdcPage.appendToOnloadQueue(function () {
|
replaceSearchContactLookup();
|
});
|
</script>
|
<apex:commandButton id="test" onclick="blockme();" action="{!addBusinessActivity}" reRender="Activities" value="添加业务活动" oncomplete="unblockUI();" disabled="{!If(tsr.TSReportStatus__c = '申请中' || tsr.TSReportStatus__c = '确认' ,true , If((tsr.TSReportStatus__c = '草案中' || tsr.TSReportStatus__c = '驳回') && onclickType != '0',true,false))}"></apex:commandButton>
|
<apex:commandButton id="save" onclick="blockme();" action="{!save}" reRender="message,allPanel,allForm" value="保存" style="width: 70px;" oncomplete="unblockUI();isError();" disabled="{!If(tsr.TSReportStatus__c = '申请中' || tsr.TSReportStatus__c = '确认',true , If((tsr.TSReportStatus__c = '草案中' || tsr.TSReportStatus__c = '驳回') && onclickType != '0',true,false))}"></apex:commandButton>
|
</apex:form>
|
</apex:page>
|