<!-- <apex:page id="Page" standardController="Daily_Report__c" extensions="XinDailyReportController" sidebar="false" action="{!init}" docType="html-5.0"> -->
|
<apex:page id="Page" Controller="XinDailyReportController" sidebar="false" action="{!init}" docType="html-5.0" >
|
<apex:stylesheet value="{!URLFOR($Resource.jquerysuggestcss)}"/>
|
<apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/>
|
<apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/>
|
<apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/>
|
<apex:includeScript value="{!URLFOR($Resource.jquerysuggestjs)}"/>
|
<apex:includeScript value="{!URLFOR($Resource.XinDailyReportTuning2Js)}"/>
|
<apex:includeScript value="{!URLFOR($Resource.CommonUtilJs)}"/>
|
<apex:includeScript value="/soap/ajax/29.0/connection.js"/>
|
<apex:includeScript value="/soap/ajax/29.0/apex.js"/>
|
<!-- Add By Li Jun for PIPL 20220225 -->
|
<apex:includeScript value="{!URLFOR($Resource.AWSService, 'AWSService.js') }" />
|
<script src="../../soap/ajax/53.0/connection.js" type="text/javascript"></script>
|
<!-- Add By Li Jun for PIPL 20220225 -->
|
<!-- <apex:includeScript value="{!URLFOR($Resource.connection20)}"/>
|
<apex:includeScript value="{!URLFOR($Resource.apex20)}"/> -->
|
<apex:includeScript value="{!URLFOR($Resource.jquerydoubletapjs)}"/>
|
<script type="text/javascript">
|
var reporterEditFlg = {!reporterEditFlg};
|
var displayStatus = '{!displayStatus}';
|
var managerFlg = {!managerFlg};
|
var allDisableFlg = {!allDisableFlg};
|
var ministerCommentEditFlg = {!ministerCommentEditFlg};
|
var managerCommentEditFlg = {!managerCommentEditFlg};
|
var cancelRequestFlg = {!cancelRequestFlg};
|
var reportTypeFlg = {!reportTypeFlg}; // 20210426 zh
|
var Error_Message1 = '{!$Label.Error_Message1}';
|
var Error_Message2 = '{!$Label.Error_Message2}';
|
var Error_Message15 = '{!$Label.Error_Message15}';
|
var Error_Message16 = '{!$Label.Error_Message16}';
|
var Error_Message17 = '{!$Label.Error_Message17}';
|
var Error_Message18 = '{!$Label.Error_Message18}';
|
var Error_Message19 = '{!$Label.Error_Message19}';
|
var Error_Message20 = '{!$Label.Error_Message20}';
|
var Error_Message21 = '{!$Label.Error_Message21}';
|
var Error_Message22 = '{!$Label.Error_Message22}';
|
var Error_Message23 = '{!$Label.Error_Message23}';
|
var Error_Message24 = '{!$Label.Error_Message24}';
|
var Error_Message25 = '{!$Label.Error_Message25}';
|
var Error_Message26 = '{!$Label.Error_Message26}';
|
var Error_Message39 = '{!$Label.Error_Message39}';
|
var Error_Message41 = '{!$Label.Error_Message41}';
|
var Error_Message42 = '{!$Label.Error_Message42}';
|
var Error_Message43 = '{!$Label.Error_Message43}';
|
var Error_Message44 = '{!$Label.Error_Message44}';
|
var Error_Message49 = '{!$Label.Error_Message49}';// zh 20200814
|
var Message003 = '{!$Label.Message_003}';
|
var Job_Category = '{!me.Job_Category__c}';
|
var ReportJob_Category = '{!reportOwner.Job_Category__c}';
|
var Inspection_ID_LTV = '{!$Label.Inspection_ID_LTV}';
|
var Inspection_ID_SLTV = '{!$Label.Inspection_ID_SLTV}';
|
var Inspection_ID_General = '{!$Label.Inspection_ID_General}';
|
var Inspection_AllAssets = '{!$Label.Inspection_AllAssets}';
|
var Repair_ID_LTV = '{!$Label.Repair_ID_LTV}';
|
var Repair_ID_SLTV = '{!$Label.Repair_ID_SLTV}';
|
var Repair_ID_General = '{!$Label.Repair_ID_General}';
|
var Repair_All = '{!$Label.Repair_All}';
|
var OnCall_ID = '{!$Label.OnCall_ID}';
|
var MC_All = '{!$Label.MC_All}';
|
var tempIndex = '';
|
var tempActId = '';
|
var tempRecordTypeName = '';
|
var tempBtnIdHidden = '';
|
var tempRedId = '';
|
var tempReportId = '';
|
var hiddenDivShowFlg = false;
|
var StatusCheck = '{!report.Status_With_Check__c}'; //20210426 zh
|
sforce.connection.sessionId = '{!$Api.Session_ID}';
|
|
//Add By Li Jun 20220225 for PIPL Start
|
AWSService.sfSessionId = '{!GETSESSIONID()}';
|
var staticResources = JSON.parse('{!staticResource}');
|
var contactAWSIds = JSON.parse('{!contactAWSIds}');
|
console.log('contactAWSIds:'+JSON.stringify(contactAWSIds));
|
var sfIdToContactInfo = {};
|
function preparePayloadForSearchContact(){
|
let searchPayload = new Object();
|
searchPayload.dataIds = contactAWSIds;
|
searchPayload.contactName = '';
|
return JSON.stringify(searchPayload);
|
}
|
function searchContactAll(){
|
let data = preparePayloadForSearchContact();
|
let searchCallBack = function searchCallBack(result){
|
let contacts = result.object;
|
if(contacts == null){
|
return;
|
}
|
for(var i=0;i<contacts.length;i++){
|
let temp = {}
|
temp.lastName = contacts[i].lastName?contacts[i].lastName:'';
|
if(contacts[i].sfRecordId){
|
sfIdToContactInfo[contacts[i].sfRecordId] = temp;
|
}
|
}
|
console.log('AWS Result:'+JSON.stringify(sfIdToContactInfo));
|
let allSizeForAct =document.getElementById('Page:mainForm:idDayEdit:AllSize').value;
|
console.log('Act size:'+allSizeForAct);
|
for(let i=0;i<allSizeForAct;i++){
|
for(let j=1;j<6;j++){
|
let contactIdForVis = document.getElementById("Page:mainForm:idDayEdit:idActivities:"+i+":idVisitor"+j+"_IdHidden").value;
|
if(contactIdForVis){
|
console.log('SFId for Contact:'+contactIdForVis);
|
if(sfIdToContactInfo.hasOwnProperty(contactIdForVis)){
|
document.getElementById("Page:mainForm:idDayEdit:idActivities:"+i+":idVisitor"+j).value = sfIdToContactInfo[contactIdForVis].lastName;
|
}
|
}
|
}
|
}
|
};
|
AWSService.search(staticResources.searchUrl,data,searchCallBack,staticResources.token);
|
}
|
//Add By Li Jun 20220225 for PIPL End
|
//window.document.onkeydown= onKeyEvent;
|
function initSetPage() {
|
// 2018/11/21 SWAG-B6Q8BS 初始化设置颜色使用
|
setcolor();
|
// 2018/11/21 SWAG-B6Q8BS 初始化设置颜色使用
|
if(displayStatus == '0'){
|
setDisabled();
|
}
|
else if(displayStatus == '1'){
|
for(var j=0;j<document.forms['Page:mainForm'].elements.length;j++) {
|
setButtonDisable(document.forms['Page:mainForm'].elements[j], true);
|
}
|
}
|
else{
|
|
setVisitorPlaceDisabled();
|
if(allDisableFlg){
|
setDisabled();
|
//20210426 zh WLIG-BX3DQ5 【委托】Outlook日历和SFDC日历同步 add start
|
if(!reportTypeFlg){
|
document.getElementById('Page:mainForm:idDayEdit:idReportType').disabled = false;
|
}
|
//20210426 zh WLIG-BX3DQ5 【委托】Outlook日历和SFDC日历同步 add end
|
if(cancelRequestFlg){
|
setButtonDisable(document.getElementById('Page:mainForm:idDayEdit:idCancelRequest'), false);
|
}
|
reportBtn(); // reportボタンを復活
|
}
|
}
|
|
if(reporterEditFlg){
|
document.getElementById('Page:mainForm:idDayEdit:idReporter_lkwgt').style.display = 'none';
|
}
|
setButtonDisable(document.getElementById('Page:mainForm:idDayEdit:idReporter'), reporterEditFlg);
|
bindAllDoubleTap();
|
// ホームへのボタンは常に有効
|
setButtonDisable(document.getElementById('Page:mainForm:idDayEdit:idHome'), false);
|
// 反馈设置
|
setComment();
|
vpChack1(); // 20200827 访问场所不允许修改 zh
|
initDelayAndCancel();// 20211011 上级分配的任务不允许延期取消 mzy
|
}
|
// window.sfdcPage.appendToOnloadQueue(function() { initSetPage(); });
|
|
//20210426 zh WLIG-BX3DQ5 【委托】Outlook日历和SFDC日历同步 start
|
function setTypeDisable(){
|
var reportType = j$(escapeVfId('Page:mainForm:idDayEdit:idReportType')).value();
|
var reportDate = new Date(j$(escapeVfId('Page:mainForm:idDayEdit:idReportDate')).value());
|
var today = new Date();
|
if(StatusCheck=='草案中' && reportDate > today){
|
if(reportType == '一日休假' || reportType == '全天培训'){
|
reportTypeFlg = true;
|
allDisableFlg = false;
|
for(var j=19;j<document.forms['Page:mainForm'].elements.length;j++) {
|
setButtonDisable(document.forms['Page:mainForm'].elements[j],false);
|
}
|
// vpChack1();
|
initSetPage();
|
}else{
|
reportTypeFlg = false;
|
allDisableFlg = true;
|
initSetPage();
|
}
|
}
|
}
|
//20210426 zh WLIG-BX3DQ5 【委托】Outlook日历和SFDC日历同步 end
|
|
//訪問場所インスタント検索
|
function setVisitorPlace(index){
|
try{
|
var str = 'Page:mainForm:idDayEdit:idActivities:'+ index + ':idVisitorPlace';
|
var strPage = null;
|
var options = {};
|
|
strVD = 'Page:mainForm:idDayEdit:idActivities:'+ index + ':idVisitorDiv';
|
vl = j$(escapeVfId(strVD)).value();
|
|
var ros = j$(escapeVfId('Page:mainForm:idDayEdit:idHiddenRepOwnerStateHospital')).value();
|
if(vl == '病院'){
|
strPage = '/apex/Xin_SearchVisitorPlace?r=' + encodeURI(ros);
|
options = {minchars:3, minwords:2, resultsClass:'visitorplace_results'};
|
}
|
else if(vl == '販売店'){
|
strPage = '/apex/Xin_SearchVisitorPlace_Sales?r=' + encodeURI(ros) + '&d=' + j$(escapeVfId('Page:mainForm:idDayEdit:idReportDate')).value();
|
options = {minchars:3, minwords:2, resultsClass:'visitorplace_results'};
|
}
|
else if(vl == '社内活動'){
|
strPage = '/apex/Xin_SearchVisitorPlace_Training?r=' + encodeURI(ros);
|
options = {minchars:3, resultsClass:'visitorplace_results'};
|
}
|
else if(vl == '社外イベント'){
|
strPage = '/apex/Xin_SearchVisitorPlace_Campaign?r=' + encodeURI(ros);
|
options = {minchars:3, resultsClass:'visitorplace_results'};
|
}
|
else {}
|
jQuery(escapeVfId(str)).unbind();
|
if (strPage != null) {
|
jQuery(escapeVfId(str)).suggest(strPage,options);
|
}
|
}catch(e){
|
alert(e);
|
}
|
|
setVisitorPlaceDisabled();
|
}
|
|
|
//訪問場所を別windowsで開く
|
function openVisitorPlace(index){
|
try{
|
var str = 'Page:mainForm:idDayEdit:idActivities:'+ index + ':idVisitorPlaceId';
|
var aId = j$(escapeVfId(str)).value();
|
if(aId.length != 0){
|
var urlStr = '/' + aId;
|
window.open(urlStr,'_blank','');
|
}
|
}catch(e){
|
alert(e);
|
}
|
}
|
function openVisitorPlace2(index){
|
try{
|
var str = 'Page:mainForm:idDayEdit:idActivities:'+ index + ':idVisitorPlaceId';
|
var aId = j$(escapeVfId(str)).value();
|
if(aId.length != 0){
|
var accountRecord = sforce.apex.execute("Add_Report","getAccountForJs",{id:aId});
|
var urlStr = '/' + accountRecord[0].Department_Class__r.Id;
|
window.open(urlStr,'_blank','');
|
}
|
}catch(e){
|
alert(e);
|
}
|
}
|
|
//関連する引合インスタント検索
|
function setRelOppId(index, id, hiddenId){
|
|
try{
|
var str = 'Page:mainForm:idDayEdit:idActivities:'+ index + ':' + id;
|
var strPD = 'Page:mainForm:idDayEdit:idActivities:'+ index + ':idVisitorPlace';
|
var aNamePD = j$(escapeVfId(strPD)).value();
|
if(aNamePD == ''){
|
// 訪問場所を設定してください。
|
document.getElementById(str).blur();
|
alert(Error_Message16);
|
return;
|
}
|
|
var strVP = 'Page:mainForm:idDayEdit:idActivities:'+ index + ':idVisitorPlaceId';
|
var vl = j$(escapeVfId(strVP)).value();
|
if(vl.length == 0){
|
// 訪問場所が存在しません。
|
document.getElementById(str).blur();
|
alert(Error_Message15);
|
return;
|
}
|
|
var match = sforce.apex.execute("Add_Report","checkAccountMatch",{name:aNamePD,id:vl});
|
if(match == "NG"){
|
// 訪問場所IDマッチしていない
|
document.getElementById(str).blur();
|
alert("无法确定访问场所,请再设定一次访问场所。");
|
return;
|
}
|
var strPage = '/apex/Xin_SearchOpportunity?r=' + encodeURI(vl);
|
jQuery(escapeVfId(str)).unbind();
|
jQuery(escapeVfId(str)).suggest(strPage,{});
|
//DoubleTapイベントをbind
|
bindDoubleTap(index, id, hiddenId);
|
}catch(e){
|
}
|
}
|
|
//関連する引合インスタント検索
|
function setRelOppId2(index, id){
|
|
try{
|
var str = 'Page:mainForm:idDayEdit:idActivities:'+ index + ':' + id;
|
var aId = j$(escapeVfId(str)).value();
|
if(aId.length != 0){
|
var urlStr = '/' + aId;
|
window.open(urlStr,'_blank','');
|
}
|
}catch(e){
|
}
|
}
|
|
//関連するサービス契約インスタント検索
|
function setRelServiceId(index, id, hiddenId){
|
try{
|
var str = 'Page:mainForm:idDayEdit:idActivities:'+ index + ':' + id;
|
var strId = 'Page:mainForm:idDayEdit:idActivities:'+ index + ':' + id + 'Id';
|
var strPD = 'Page:mainForm:idDayEdit:idActivities:'+ index + ':idVisitorPlace';
|
var aNamePD = j$(escapeVfId(strPD)).value();
|
if(aNamePD == ''){
|
// 訪問場所を設定してください。
|
document.getElementById(str).blur();
|
alert(Error_Message16);
|
return;
|
}
|
|
var strVP = 'Page:mainForm:idDayEdit:idActivities:'+ index + ':idVisitorPlaceId';
|
var vl = j$(escapeVfId(strVP)).value();
|
if(vl.length == 0){
|
// 訪問場所が存在しません。
|
document.getElementById(str).blur();
|
alert(Error_Message15);
|
return;
|
}
|
|
var match = sforce.apex.execute("Add_Report","checkAccountMatch",{name:aNamePD,id:vl});
|
if(match == "NG"){
|
// 訪問場所IDマッチしていない
|
document.getElementById(str).blur();
|
alert("无法确定访问场所,请再设定一次访问场所。");
|
return;
|
}
|
|
var aId = j$(escapeVfId(strId)).value();
|
if(aId.length == 0){
|
strPage = '/apex/Xin_SearchMaintenanceContract?r=' + encodeURI(vl);
|
jQuery(escapeVfId(str)).unbind();
|
jQuery(escapeVfId(str)).suggest(strPage,{});
|
bindDoubleTap(index, id, hiddenId);
|
}
|
}catch(e){
|
}
|
}
|
|
//関連するサービス契約インスタント検索
|
function setRelServiceId2(index, id){
|
try{
|
var str = 'Page:mainForm:idDayEdit:idActivities:'+ index + ':' + id;
|
var aId = j$(escapeVfId(str)).value();
|
|
if(aId.length != 0){
|
var urlStr = '/' + aId;
|
window.open(urlStr,'_blank','');
|
}
|
}catch(e){
|
}
|
}
|
|
function twistSection(twisty, sectionId) {
|
var parentDiv = twisty;
|
while (parentDiv.tagName != 'DIV') { parentDiv = parentDiv.parentNode; }
|
var div = parentDiv.nextSibling;
|
var elemWasOn = false;
|
if (div.style.display != 'none') {
|
div.style.display = 'none';
|
twisty.className ='showListButton';
|
twisty.alt = twisty.title = 'セクションを表示 - '+twisty.name;
|
elemWasOn = true;
|
} else {
|
div.style.display = 'block';
|
twisty.className = 'hideListButton';
|
twisty.alt = twisty.title = 'セクションを非表示 - '+twisty.name;
|
}
|
return !elemWasOn;
|
}
|
|
function bindAllDoubleTap(){
|
var isiOS = false;
|
var agent = navigator.userAgent.toLowerCase();
|
if(agent.indexOf('iphone') >= 0 || agent.indexOf('ipad') >= 0){
|
isiOS = true;
|
}
|
if (isiOS == false) {
|
return false;
|
}
|
|
var actsize = j$(escapeVfId('idActSize')).value();
|
for(var i=0; i<actsize; i++){
|
bindDoubleTap(i, "idRelOpp1", "idRelOpp1Id");
|
bindDoubleTap(i, "idRelOpp2", "idRelOpp2Id");
|
bindDoubleTap(i, "idRelOpp3", "idRelOpp3Id");
|
bindDoubleTap(i, "idRelOpp4", "idRelOpp4Id");
|
bindDoubleTap(i, "idRelOpp5", "idRelOpp5Id");
|
bindDoubleTap(i, "idRelService1", "idRelService1Id");
|
// bindDoubleTap(i, "idRelService2", "idRelService2Id");
|
}
|
}
|
|
function bindDoubleTap(index, id, hiddenId){
|
var isiOS = false;
|
var agent = navigator.userAgent.toLowerCase();
|
if(agent.indexOf('iphone') >= 0 || agent.indexOf('ipad') >= 0){
|
isiOS = true;
|
}
|
if (isiOS == false) {
|
return false;
|
}
|
o1 = 'Page:mainForm:idDayEdit:idActivities:' + index + ':' + id;
|
var obj = j$(escapeVfId(o1));
|
|
obj.doubletap(
|
/** doubletap-dblclick callback */
|
function(event){
|
setRelOppId2(index, hiddenId);
|
},
|
/** touch-click callback (touch) */
|
function(event){
|
},
|
/** doubletap-dblclick delay (default is 500 ms) */
|
400
|
);
|
}
|
|
// レイアを用意
|
j$(function(){
|
j$("#divOPD").hide();
|
j$("#glayLayer").click(function(){
|
//j$(this).hide();
|
//j$("#divOPD").hide();
|
closeOPDSISDiv();
|
})
|
});
|
/********20160503_ADD*********/
|
function activeBtn(inO){
|
|
var getVal = document.getElementById(inO.id).value;
|
var idS = inO.id.substring(37);
|
|
//2021-09-29 mzy 点检改善开发 update satrt
|
var i = idS.substring(0,1);
|
var repOwnerJob = document.getElementById('Page:mainForm:idDayEdit:idHiddenRepOwnerJob').value;
|
if(getVal!=null&&getVal!=''){
|
document.getElementById(idS+"Btn").disabled = false;
|
document.getElementById(idS+"Btn").style.cssText = "width: 63px; cursor: default; border-color: rgb(196, 196, 196);background-position: 0px -90px;";
|
document.getElementById(idS+"LoseBtn").disabled = false;
|
document.getElementById(idS+"LoseBtn").style.cssText = "width: 35px; cursor: default; border-color: rgb(196, 196, 196);background-position: 0px -90px;";
|
if(repOwnerJob == '销售服务'){
|
var puroposeTypeFSE1 = document.getElementById('Page:mainForm:idDayEdit:idActivities:' + i + ':idPuroposeTypeFSE1').value;
|
if(puroposeTypeFSE1 == '合同点检'){
|
document.getElementById(idS+"Btn").disabled = true;
|
document.getElementById(idS+"Btn").style.cssText = "width: 63px; cursor: default; border-color: rgb(196, 196, 196); color: #909090; background-position: 0px -90px;"
|
}
|
}
|
//width: 100px; cursor: default; border-color: rgb(196, 196, 196); color: rgb(144, 144, 144); background-position: 0px -90px;
|
}else{
|
document.getElementById(idS+"Btn").disabled = true;
|
document.getElementById(idS+"Btn").style.cssText = "width: 100px; cursor: default; border-color: rgb(196, 196, 196); color: #909090; background-position: 0px -90px;"
|
}
|
//2021-09-29 mzy 点检改善开发 update end
|
}
|
|
window.onload = function CheckValue() {
|
// body...
|
var allLine =document.getElementById('Page:mainForm:idDayEdit:AllSize').value;
|
|
for (var j = 0 ;j<allLine;j++) {
|
for (var i = 1; i< 5; i++) {
|
var valCheck = document.getElementById('Page:mainForm:idDayEdit:idActivities:'+j+':idRelOpp'+i).value;
|
if(valCheck!=null&&valCheck!=""){
|
document.getElementById(j+':idRelOpp'+i+"Btn").disabled = false;
|
document.getElementById(j+':idRelOpp'+i+"Btn").style.cssText = "width: 63px; cursor: default; border-color: rgb(196, 196, 196);background-position: 0px -90px;";
|
document.getElementById(j+':idRelOpp'+i+"LoseBtn").disabled = false;
|
document.getElementById(j+':idRelOpp'+i+"LoseBtn").style.cssText = "width: 35px; cursor: default; border-color: rgb(196, 196, 196);background-position: 0px -90px;";
|
}
|
}
|
//sla信息更新按钮 zh
|
var valCheckService1 = document.getElementById('Page:mainForm:idDayEdit:idActivities:'+j+':idRelService1').value;
|
//2021-09-29 mzy 点检改善开发 update satrt
|
var repOwnerJob = document.getElementById('Page:mainForm:idDayEdit:idHiddenRepOwnerJob').value;
|
if (repOwnerJob == '销售服务') {
|
//合同点检的不需要信息更新
|
var puroposeTypeFSE1 = document.getElementById('Page:mainForm:idDayEdit:idActivities:' + j + ':idPuroposeTypeFSE1').value;
|
if(valCheckService1!=null&&valCheckService1!=""&&puroposeTypeFSE1=='合同季报'){
|
document.getElementById(j+':idRelService1Btn').disabled = false;
|
document.getElementById(j+':idRelService1Btn').style.cssText = "width: 100px; cursor: default; border-color: rgb(196, 196, 196);background-position: 0px -90px;"
|
}
|
}
|
//2021-09-29 mzy 点检改善开发 update end
|
|
}
|
initSetPage();
|
// 20200420 任务日报管理 add gzw start
|
setDisabledByStatus();
|
// 20200420 任务日报管理 add gzw end
|
initDelayAndCancel();
|
}
|
//2021-10-11 mzy 任务管理改善 add start
|
function initDelayAndCancel(){
|
var allLine =document.getElementById('Page:mainForm:idDayEdit:AllSize').value;
|
for (var j = 0 ;j<allLine;j++) {
|
//如果是上级分配的任务,则不可以进行延期和取消
|
//任务是否存在
|
var valIsTaskBlank = document.getElementById('Page:mainForm:idDayEdit:idActivities:'+j+':idIsTaskBlank').value;
|
//任务区分
|
var valTaskDifferent = document.getElementById('Page:mainForm:idDayEdit:idActivities:'+j+':idTaskDifferent').value;
|
//用户Job
|
var repOwnerJob = document.getElementById('Page:mainForm:idDayEdit:idHiddenRepOwnerJob').value;
|
//事件的状态
|
var NewEventStatus = document.getElementById('Page:mainForm:idDayEdit:idActivities:'+j+':idNewEventStatus').value;
|
//判断任务是否存在
|
if(valIsTaskBlank=='false'){
|
//任务状态为 完成 ,则 不可以修改
|
var valTaskStatus = document.getElementById('Page:mainForm:idDayEdit:idActivities:'+j+':idTaskStatus').value;
|
//存在,判断是否为上级分配任务 ,是否为完成
|
if(valTaskDifferent == '上级分配任务' ||valTaskStatus == '03 完成'){
|
//是上级分配任务,延期/取消按钮 disabled
|
//取消按钮
|
document.getElementById('Page:mainForm:idDayEdit:idActivities:'+j+':idCancel').disabled = true;
|
document.getElementById('Page:mainForm:idDayEdit:idActivities:'+j+':idCancel').style="width: 100px; cursor: default; background-position: 0px -90px; border-color: rgb(196, 196, 196); color: rgb(144, 144, 144);";
|
//延期按钮
|
document.getElementById('Page:mainForm:idDayEdit:idActivities:'+j+':idDelay').disabled = true;
|
document.getElementById('Page:mainForm:idDayEdit:idActivities:'+j+':idDelay').style="width: 100px; cursor: default; background-position: 0px -90px; border-color: rgb(196, 196, 196); color: rgb(144, 144, 144);";
|
//job 为 销售服务
|
if(repOwnerJob == '销售服务'){
|
// 延期
|
//Page:mainForm:idDayEdit:idActivities:0:tskidDelayReasonFSE
|
document.getElementById('Page:mainForm:idDayEdit:idActivities:'+j+':tskidDelayReasonFSE').disabled = true;
|
// 取消
|
//Page:mainForm:idDayEdit:idActivities:0:tskidCancelReasonFSE
|
document.getElementById('Page:mainForm:idDayEdit:idActivities:'+j+':tskidCancelReasonFSE').disabled = true;
|
}else {
|
// 延期
|
//Page:mainForm:idDayEdit:idActivities:0:tskidDelayReasonEscFSE
|
document.getElementById('Page:mainForm:idDayEdit:idActivities:'+j+':tskidDelayReasonEscFSE').disabled = true;
|
//取消
|
//Page:mainForm:idDayEdit:idActivities:0:tskidCancelReasonEscFSE
|
document.getElementById('Page:mainForm:idDayEdit:idActivities:'+j+':tskidCancelReasonEscFSE').disabled = true;
|
}
|
//延期信息
|
//Page:mainForm:idDayEdit:idActivities:0:idDelayDate
|
document.getElementById('Page:mainForm:idDayEdit:idActivities:'+j+':idDelayDate').disabled = true;
|
//Page:mainForm:idDayEdit:idActivities:0:idDelayReason
|
document.getElementById('Page:mainForm:idDayEdit:idActivities:'+j+':idDelayReason').disabled = true;
|
//取消信息
|
//Page:mainForm:idDayEdit:idActivities:0:idCancelReasonRemark
|
document.getElementById('Page:mainForm:idDayEdit:idActivities:'+j+':idCancelReasonRemark').disabled = true;
|
}
|
|
// //任务完成后不可以修改
|
// if( valTaskStatus == '03 完成'){
|
// j$(escapeVfId('Page:mainForm:idDayEdit:idActivities:' + j + ':idfieldset')).attr('disabled', 'disabled');
|
|
// }
|
}else {
|
//事件完成
|
if(NewEventStatus == '03 完成'){
|
// j$(escapeVfId('Page:mainForm:idDayEdit:idActivities:' + j + ':idfieldset')).attr('disabled', 'disabled');
|
//事件完成后延期取消不可修改
|
//取消按钮
|
document.getElementById('Page:mainForm:idDayEdit:idActivities:'+j+':idCancel').disabled = true;
|
document.getElementById('Page:mainForm:idDayEdit:idActivities:'+j+':idCancel').style="width: 100px; cursor: default; background-position: 0px -90px; border-color: rgb(196, 196, 196); color: rgb(144, 144, 144);";
|
//延期按钮
|
document.getElementById('Page:mainForm:idDayEdit:idActivities:'+j+':idDelay').disabled = true;
|
document.getElementById('Page:mainForm:idDayEdit:idActivities:'+j+':idDelay').style="width: 100px; cursor: default; background-position: 0px -90px; border-color: rgb(196, 196, 196); color: rgb(144, 144, 144);";
|
|
//job 为 销售服务
|
if(repOwnerJob == '销售服务'){
|
// 延期
|
//Page:mainForm:idDayEdit:idActivities:1:idDelayReasonFSE
|
document.getElementById('Page:mainForm:idDayEdit:idActivities:'+j+':idDelayReasonFSE').disabled = true;
|
// 取消
|
//Page:mainForm:idDayEdit:idActivities:1:idCancelReasonFSE
|
document.getElementById('Page:mainForm:idDayEdit:idActivities:'+j+':idCancelReasonFSE').disabled = true;
|
}else {
|
// 延期
|
//Page:mainForm:idDayEdit:idActivities:0:tskidDelayReasonEscFSE
|
document.getElementById('Page:mainForm:idDayEdit:idActivities:'+j+':idDelayReasonEscFSE').disabled = true;
|
//取消
|
//Page:mainForm:idDayEdit:idActivities:0:tskidCancelReasonEscFSE
|
document.getElementById('Page:mainForm:idDayEdit:idActivities:'+j+':idCancelReasonEscFSE').disabled = true;
|
}
|
|
//延期信息
|
//Page:mainForm:idDayEdit:idActivities:0:idDelayDate
|
document.getElementById('Page:mainForm:idDayEdit:idActivities:'+j+':idDelayDate').disabled = true;
|
//Page:mainForm:idDayEdit:idActivities:0:idDelayReason
|
document.getElementById('Page:mainForm:idDayEdit:idActivities:'+j+':idDelayReason').disabled = true;
|
//取消信息
|
//Page:mainForm:idDayEdit:idActivities:0:idCancelReasonRemark
|
document.getElementById('Page:mainForm:idDayEdit:idActivities:'+j+':idCancelReasonRemark').disabled = true;
|
}
|
}
|
}
|
}
|
//2021-10-11 mzy 任务管理改善 add end
|
function enquiryPage(outO){
|
//idRelOpp1Btn id: Related_Opportunity1_ID__c
|
// Name : Related_Opportunity1__c
|
var indexNumber = outO.id.substring(10,11);
|
var EsetId = document.getElementById("Page:mainForm:idDayEdit:idActivities:"+outO.id.substring(0,1)+":idRelOpp"+indexNumber+"HiddenId").value;
|
var Name = document.getElementById("Page:mainForm:idDayEdit:idActivities:"+outO.id.substring(0,1)+":idRelOpp"+indexNumber+"Hidden").value;
|
//Related_Opportunity1_ID__c
|
window.open("/apex/EnquiryDetails?EsetId="+EsetId+"&indexNumber="+indexNumber,'_blank','width=500px,height=420px');
|
}
|
|
//2021-11-24 yjk 增加询价失单按钮 start
|
function loseEnquiry(outO){
|
var indexNumber = outO.id.substring(10,11);
|
var EsetId = document.getElementById("Page:mainForm:idDayEdit:idActivities:"+outO.id.substring(0,1)+":idRelOpp"+indexNumber+"HiddenId").value;
|
window.open('/apex/PCLLostReportPage?pageStatus=Create&oppId=' + EsetId + '&lostType=失单','_blank');
|
}
|
//2021-11-24 yjk 增加询价失单按钮 end
|
|
/********20160503_ADD**************/
|
//setInterval(function() { saveJs(); }, 10000);
|
|
//20210604 zh SLA信息更新 start
|
function slaInfoPage(eventCId,index){
|
var visitor1 = document.getElementById("Page:mainForm:idDayEdit:idActivities:"+index+":idVisitor1_IdHidden").value;
|
var visitor2 = document.getElementById("Page:mainForm:idDayEdit:idActivities:"+index+":idVisitor2_IdHidden").value;
|
var visitor3 = document.getElementById("Page:mainForm:idDayEdit:idActivities:"+index+":idVisitor3_IdHidden").value;
|
var visitor4 = document.getElementById("Page:mainForm:idDayEdit:idActivities:"+index+":idVisitor4_IdHidden").value;
|
var visitor5 = document.getElementById("Page:mainForm:idDayEdit:idActivities:"+index+":idVisitor5_IdHidden").value;
|
var visitorPlaceId = document.getElementById("Page:mainForm:idDayEdit:idActivities:"+index+":idVisitorPlaceId").value;
|
var serviceId = document.getElementById("Page:mainForm:idDayEdit:idActivities:"+index+":idRelService1HiddenId").value;
|
var id = document.getElementById("Page:mainForm:idDayEdit:idActivities:"+index+":EventCSLAInfoId").value;
|
|
|
var url = "/apex/SLAReportDetails?serviceId="+serviceId+"&index="+index+'&';
|
if(id != '' && id != null){
|
url += "id="+id+'&';
|
}
|
if(eventCId != '' && eventCId != null){
|
url += "eventCId="+eventCId+'&';
|
}
|
if(visitor1 != '' && visitor1 != null){
|
url += "visitor1="+visitor1+'&';
|
}
|
if(visitor2 != '' && visitor2 != null){
|
url += "visitor2="+visitor2+'&';
|
}
|
if(visitor3 != '' && visitor3 != null){
|
url += "visitor3="+visitor3+'&';
|
}
|
if(visitor4 != '' && visitor4 != null){
|
url += "visitor4="+visitor4+'&';
|
}
|
if(visitor5 != '' && visitor5 != null){
|
url += "visitor5="+visitor5+'&';
|
}
|
if(visitorPlaceId != '' && visitorPlaceId != null){
|
url += "accountId="+visitorPlaceId+'&';
|
}
|
window.open(url,'_blank','width=500px,height=420px');
|
}
|
//20210604 zh SLA信息更新 end
|
|
</script>
|
<style type="text/css">
|
.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;
|
}
|
.formtable {
|
border-spacing: 0;
|
margin: 8px;
|
}
|
.formtable th {
|
font-weight: bold;
|
text-align: right;
|
vertical-align: middle;
|
}
|
.formtable td {
|
vertical-align: middle;
|
}
|
.formtable td.center, .formtable th.center {
|
text-align: center;
|
vertical-align: middle;
|
}
|
.formtable input.w100, .formtable textarea.w100, .formtable select.w100 {
|
width: 100%;
|
}
|
.formtable .borderbottom {
|
border-bottom: 1px solid #888;
|
}
|
.formtable .borderbottom2 {
|
border-bottom: 4px solid #888;
|
}
|
.formtable .lookupInput, .formtable .dateFormat {
|
display: block;
|
}
|
.formtable .dateFormat {
|
display: none;
|
}
|
.btnRed {
|
color: red;
|
backgroundPosition: "";
|
display: inline;
|
-moz-border-bottom-colors: none;
|
-moz-border-left-colors: none;
|
-moz-border-right-colors: none;
|
-moz-border-top-colors: none;
|
cursor : "pointer";
|
background: url("/img/alohaSkin/btn_sprite.png") repeat-x scroll right top #E8E8E9;
|
border-color: #B5B5B5 #B5B5B5 #7F7F7F;
|
border-image: none;
|
border-radius: 3px 3px 3px 3px;
|
border-style: none solid solid none;
|
border-width: medium 1px 1px medium;
|
font-size: 0.9em;
|
font-weight: bold;
|
padding: 4px 3px;
|
margin:0 2px;
|
}
|
|
#glayLayer {
|
display: none;
|
position: fixed;
|
left: 0;
|
top: 0;
|
height: 100%;
|
width: 100%;
|
background: #7BAEB5;
|
filter: alpha(opacity=75);
|
opacity: 0.75;
|
}
|
* html #glayLayer {
|
position: absolute;
|
}
|
|
#divOPD {
|
margin-top: -250px;
|
margin-left: -300px;
|
width: 400px;
|
height: 200px;
|
background: white;
|
padding: 10px;
|
position: fixed;
|
top: 65%;
|
left: 50%;
|
}
|
* html #divOPD {
|
position: absolute;
|
}
|
|
</style>
|
<script>
|
function showModal() {
|
blockme();
|
showModalJs();
|
}
|
</script>
|
<!-- // 2018/11/21 SWAG-B6Q8BS 判断是否需要弹窗更新客户信息 start -->
|
<apex:outputPanel id="CheckAlertInputDep">
|
<script type="text/javascript">
|
|
// 2018/11/21 SWAG-B6Q8BS 初始化设置颜色使用
|
function setcolor(){
|
var ProfileId_2S1 = '{!$Label.ProfileId_2S1}';
|
var salesman2S1_Price = '{!$Label.salesman2S1_Price}';
|
var completionFlg = '{!completionFlg}';
|
//2S1_销售医院担当 和 2S1_销售医院担当(查看价格)
|
|
if("{!$Profile.Id}" != ProfileId_2S1 && "{!$Profile.Id}" != salesman2S1_Price){
|
return;
|
}
|
var actSize = '{!actSize}';
|
var alertflg = false;
|
for(var i = 0;i<actSize; i++){
|
var TempElement = document.getElementById("Page:mainForm:idDayEdit:idActivities:"+ i +":alertStringValue");
|
var IsAlertInputDep = 'false';
|
if( TempElement != null && TempElement != undefined ){
|
IsAlertInputDep = TempElement.value;
|
TempElement.value ='false';
|
}
|
if(IsAlertInputDep == 'true'){
|
TempElement = document.getElementById("Page:mainForm:idDayEdit:idActivities:"+ i +":idVisitorPlace");
|
if(TempElement != null && TempElement != undefined ){
|
TempElement.style.color ='red';
|
alertflg = true;
|
}
|
}
|
}
|
if(alertflg ==true && typeof completionFlg != "undefined" && completionFlg != null && completionFlg != ""){
|
alert('拜访H层客户时,请注意收集病例数信息,按"更新客户信息"按钮登录');
|
}
|
}
|
</script>
|
</apex:outputPanel>
|
<!-- // 2018/11/21 SWAG-B6Q8BS 判断是否需要弹窗更新客户信息 end -->
|
<!-- <apex:sectionHeader title="{!$Label.Daily_Edit}" subtitle="{!$Label.New_Daily}"/> -->
|
<apex:outputPanel id="all">
|
<apex:form id="mainForm" >
|
|
<apex:actionFunction name="checkBusinessTripJs" immediate="true" rerender="idBusinessTrip" />
|
<apex:actionFunction name="openPDNewJS" action="{!openPDNew}" rerender="idHiddenActId" oncomplete="openPD(tempIndex,tempActId,tempRecordTypeName,tempBtnIdHidden,tempRedId,tempReportId);">
|
<apex:param name="upsertActIndex" assignTo="{!upsertActIndex}" value="" />
|
</apex:actionFunction>
|
<apex:actionFunction name="addLeadNewJS" action="{!openPDNew}" rerender="idHiddenActId" oncomplete="addLead(tempIndex,tempActId);">
|
<apex:param name="upsertActIndex" assignTo="{!upsertActIndex}" value="" />
|
</apex:actionFunction>
|
<apex:actionFunction name="addAssetManualNewJS" action="{!openPDNew}" rerender="idHiddenActId" oncomplete="addAssetManual(tempIndex,tempActId);">
|
<apex:param name="upsertActIndex" assignTo="{!upsertActIndex}" value="" />
|
</apex:actionFunction>
|
<!-- GIR Solution 2019-12-12 by vivek end -->
|
<apex:actionFunction name="addSolutionNewJS" action="{!openPDNewSol}" rerender="idHiddenActId" oncomplete="addSolution(tempIndex,tempActId);">
|
<apex:param name="upsertActIndex" assignTo="{!upsertActIndex}" value="" />
|
</apex:actionFunction>
|
<!-- GIR Solution 2019-12-12 by vivek end -->
|
|
<!-- SWAG-BUF6R8 20201020 youchang start -->
|
<apex:actionFunction name="addOpdNewJS" action="{!openPDNew}" rerender="idHiddenActId" oncomplete="addOpd(tempIndex,tempActId);">
|
<apex:param name="upsertActIndex" assignTo="{!upsertActIndex}" value="" />
|
</apex:actionFunction>
|
<!-- SWAG-BUF6R8 20201020 youchang start -->
|
|
<!-- ETAPP与日报联动 20210520 zh start -->
|
<apex:actionFunction name="openETAPPActJS" action="{!updateETAPPFlag}" rerender="idHiddenActId" oncomplete="openETAPPActNew(tempIndex,tempActId)" >
|
<apex:param name="upsertActIndex" assignTo="{!upsertActIndex}" value="" />
|
</apex:actionFunction>
|
<!-- ETAPP与日报联动 20210520 zh end -->
|
|
<!-- 任务和日报管理 update by vivek 2020-05-23 start -->
|
<apex:actionFunction name="ifDelayJS" action="{!delaysave}" rerender="mainForm" oncomplete="unblockUI();setVisitorPlaceDisabled();initSetPage();">
|
<apex:param name="delIndex" assignTo="{!delIndex}" value="" />
|
</apex:actionFunction>
|
<apex:actionFunction name="ifCancelJS" action="{!cancelSave}" rerender="idHiddenActId" oncomplete="unblockUI();">
|
<apex:param name="delIndex" assignTo="{!delIndex}" value="" />
|
</apex:actionFunction>
|
<!-- 任务和日报管理 update by vivek 2020-05-23 end -->
|
<apex:actionFunction name="addMaintenanceContractNewJS" action="{!openPDNew}" rerender="idHiddenActId" oncomplete="addMaintenanceContract(tempIndex,tempActId);">
|
<apex:param name="upsertActIndex" assignTo="{!upsertActIndex}" value="" />
|
</apex:actionFunction>
|
<apex:actionFunction name="addInsReportNewJS" action="{!openPDNew}" rerender="idHiddenActId" oncomplete="addInsReport(tempIndex,tempActId);">
|
<apex:param name="upsertActIndex" assignTo="{!upsertActIndex}" value="" />
|
</apex:actionFunction>
|
<apex:actionFunction name="showModalJs" oncomplete="unblockUI();" />
|
<apex:actionFunction name="getDailyReportJs" action="{!getDailyReport}"/>
|
<apex:actionFunction name="initJs" action="{!init}">
|
<apex:param name="SaveStatus" assignTo="{!initAfterMessage}" value="" />
|
</apex:actionFunction>
|
<apex:pageBlock id="idDayEdit" mode="edit">
|
<table width="1200">
|
<tr>
|
<td class="pbTitle" style="width:92%"><h2 class="mainTitle">{!$Label.Daily_Edit}</h2></td>
|
<td>
|
<!-- inputFieldのrequiredInputチェックは、submitの時のみ発生、saveボタンをsubmitにする必要 -->
|
<!-- 但し、enter keyを無効にするため、このreturn falseのdummy submitボタンを実装 -->
|
<!-- TODO xudan IEに効かない、別方法で考える -->
|
<!-- <apex:commandButton value="dummy submit" onclick="return false;" action="{!save}" style="display:none;"/> -->
|
<apex:commandButton id="idHome" value="{!$Label.Home_Back}" onclick="blockme();" style="width:100px" action="{!homeBack}" rerender="dummy"/>
|
</td>
|
</tr>
|
</table>
|
<apex:outputPanel id="idBasicInfo">
|
<apex:inputField id="idHiddenActId" value="{!report.Activity_ID__c}" style="display:none" />
|
<apex:inputHidden id="idHiddenReportReportFlg" value="{!reportReportFlg}" />
|
<apex:inputHidden id="idHiddenAccompanyingReportFlg" value="{!accompanyingReportFlg}" />
|
<apex:inputHidden id="idHiddenAllDisableFlg" value="{!allDisableFlg}" />
|
<apex:inputHidden id="idHiddenCancelRequestFlg" value="{!cancelRequestFlg}" />
|
<apex:inputHidden id="idHiddenReporterEditFlg" value="{!reporterEditFlg}" />
|
<apex:inputHidden id="idHiddenRepOwnerJob" value="{!reportOwner.Job_Category__c}" />
|
<apex:inputHidden id="idHiddenRepOwnerId" value="{!reportOwner.Id}" />
|
<apex:inputHidden id="idHiddenRepOwnerStateHospital" value="{!reportOwner.State_Hospital__c}" />
|
<apex:inputHidden id="AllSize" value="{!actSize}" />
|
<apex:inputHidden id="CreateRAC" value="{!CreateRentalApply}" />
|
<input type="hidden" id="idHiddenUserId" value="{!me.Id}" />
|
<input type="hidden" id="idHiddenUserProfileId" value="{!me.ProfileId}" />
|
<input type="hidden" id="idHiddenRepOwnerManagerId" value="{!reportOwner.ManagerId}" />
|
<input type="hidden" id="hidOwnerBuchangApprovalManager" value="{!reportOwner.BuchangApprovalManager__c}" />
|
<input type="hidden" id="hidROBuchangAMSales" value="{!reportOwner.BuchangApprovalManagerSales__c}" />
|
<input type="hidden" id="idHiddenUserBatchUser" value="{!me.Batch_User__c}" />
|
<input type="hidden" id="reportStatusFlg" value="{!reportStatusFlg}" />
|
<apex:outputPanel rendered="{!IF(error,true,false)}" >
|
<table width="100%">
|
<tr>
|
<td align="center"><div class="errorMsg">{!errorMessage}</div></td>
|
</tr>
|
</table>
|
<apex:messages styleClass="editListError"/>
|
</apex:outputPanel>
|
<apex:outputPanel rendered="{!IF(completion,true,false)}" >
|
<table width="100%">
|
<tr>
|
<apex:outputPanel rendered="{!IF(etAPPFlg='true',false,IF(eventFlg='true',true,false))}" >
|
<td align="left" width="33%">
|
<font color="errorMsg">{!eventMsg}</font>
|
</td>
|
</apex:outputPanel>
|
<apex:outputPanel rendered="{!IF(etAPPFlg='true',true,false)}" >
|
<td align="left" width="33%">
|
<font color="errorMsg">{!eventMsg}<br/>{!etAPPMsg1}<br /> {!etAPPMsg2}</font>
|
</td>
|
</apex:outputPanel>
|
<td align="center" width="33%"><font color="green">{!$Label.Message_002}</font></td>
|
<apex:outputPanel rendered="{!IF(etAPPFlg='true',true,IF(eventFlg='true',true,false))}" >
|
<td align="right"><font> </font></td>
|
</apex:outputPanel>
|
|
</tr>
|
</table>
|
</apex:outputPanel>
|
<div>
|
<div class="pbSubheader first tertiaryPalette">
|
<span class="pbSubExtra"><span class="requiredLegend"><span class="requiredExampleOuter"><span class="requiredExample"> </span></span><span class="requiredText"> = {!$Label.Required_Information}</span></span></span>
|
<h3>{!$Label.Basic_Information}</h3>
|
</div>
|
<table class="formtable" width="1200" border="0">
|
<colgroup>
|
<col width="90" />
|
<col width="3" />
|
<col width="80" />
|
<col width="100" />
|
<col width="65" />
|
<col width="20" />
|
<col width="16" />
|
<col width="10" />
|
<col width="16" />
|
<col width="20" />
|
<col width="18" />
|
<col width="10" />
|
<col width="20" />
|
<col width="70" />
|
<col width="20" />
|
<col width="130" />
|
<col width="20" />
|
<col width="90" />
|
<col width="20" />
|
<col width="100" />
|
<col width="20" />
|
<col width="120" />
|
</colgroup>
|
<tr>
|
<th>{!$Label.Employee_Number}</th>
|
<td> </td>
|
<td>{!reportOwner.Employee_No__c} </td>
|
<td> </td>
|
<th>{!$Label.Reporter}</th>
|
<td> </td>
|
<td colspan="5"><span><div class="requiredInput"><div class="requiredBlock"></div><apex:inputField id="idReporter" onchange="setDisabled();" value="{!report_search.Reporter__c}" style="width:80px;" /></div></span></td>
|
<td> </td>
|
<th colspan="2">{!$Label.Department}</th>
|
<td> </td>
|
<td>{!reportOwner.Category6__c} </td>
|
<td> </td>
|
<th>{!$Label.Job_Category}</th>
|
<td> </td>
|
<!-- 20210107 SWAG-BX24F5 you -->
|
<td><apex:outputField id="idReporter2" value="{!reportOwner.Job_Category__c}" style="width:80px;" />
|
</td>
|
<td> </td>
|
<td> </td>
|
<!-- <td colspan="2"><span style="font-weight: bold;">OCM管理省 </span><apex:outputField value="{!report.OCM_man_province__c}" /></td> -->
|
</tr>
|
<tr>
|
<th>{!$Label.Date}</th>
|
<td> </td>
|
<td><span><div class="requiredInput"><div class="requiredBlock"></div><apex:inputField id="idReportDate" onchange="setDisabled();" value="{!report_search.Reported_Date__c}" style="width:70px" /></div></span></td>
|
<td><input type="button" class="btn" id="idGetActive" value="{!$Label.Get_Day_Report}" style="width:90px" onclick="checkGetActive(); return false;" /></td>
|
<th>{!$Label.Working_Time}</th>
|
<td> </td>
|
<td><span><div class="requiredInput"><div class="requiredBlock"></div><apex:inputText id="idRepoStartHour" value="{!repoStartHourText}" style="width:15px;ime-mode: disabled;ime-mode: disabled;text-align:right" maxlength="2" /></div></span></td>
|
<td class="left"><b>:</b></td>
|
<td><span><div class="requiredInput"><div class="requiredBlock"></div><apex:inputText id="idRepoStartMinute" value="{!repoStartMinuteText}" style="width:15px;ime-mode: disabled;ime-mode: disabled;text-align:right" maxlength="2" /></div></span></td>
|
<td class="left">~</td>
|
<td><span><div class="requiredInput"><div class="requiredBlock"></div><apex:inputText id="idRepoEndHour" value="{!repoEndHourText}" style="width:15px;ime-mode: disabled;ime-mode: disabled;text-align:right" maxlength="2" /></div></span></td>
|
<td class="left"><b>:</b></td>
|
<td><span><div class="requiredInput"><div class="requiredBlock"></div><apex:inputText id="idRepoEndMinute" value="{!repoEndMinuteText}" style="width:15px;ime-mode: disabled;ime-mode: disabled;text-align:right" maxlength="2" /></div></span></td>
|
<th>{!$ObjectType.Daily_Report__c.fields.Daily_Report_Data_Type__c.Label}</th>
|
<td> </td>
|
<td><span><div class="requiredInput"><div class="requiredBlock"></div><apex:inputField id="idReportType" value="{!report.Daily_Report_Data_Type__c}" style="width:105px" onchange="setTypeDisable();" /></div></span></td>
|
<td> </td>
|
<th>{!$Label.Business_Trip}</th>
|
<td> </td>
|
<td><input type="radio" id="idBusinessTripYes" name="example" onClick="checkBusinessTrip(true);" value="Yes" />Yes<input type="radio" id="idBusinessTripNo" name="example" onClick="checkBusinessTrip(false);" value="No"/>No<apex:inputField id="idBusinessTrip" value="{!report.Business_Trip__c}" style="display:none" /></td>
|
<td colspan="2"><span style="font-weight: bold;">{!$ObjectType.Daily_Report__c.fields.Status_With_Check__c.label} </span><apex:outputField value="{!report.Status_With_Check__c}" /></td>
|
<!--<td></td>-->
|
</tr>
|
<apex:outputPanel rendered="{!IF(repoErrorFlg,true,false)}" ><tr><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td colspan="11"><div class="errorMsg"><strong>{!$Label.Error_Message28}:</strong> {!repoErrorMessage}</div></td><td> </td><td> </td><td> </td><td> </td><td> </td></tr></apex:outputPanel>
|
<tr>
|
<!-- LHJ SWAG-BD54MV 20190614 Start-->
|
<!-- <th>{!$Label.Status}</th>
|
<td> </td>
|
<td><span><div class="requiredInput"><div class="requiredBlock"></div><apex:inputField id="idStatus" value="{!report.Status__c}" styleClass="" /></div></span></td>
|
|
<td><apex:commandButton id="idCancelRequest" value="{!$Label.Daily_Btn_Cancel}" style="width:90px" action="{!cancelRequest}" disabled="{!!cancelRequestFlg}" rerender="dummy"/></td>-->
|
<td> </td>
|
<td> </td>
|
<td> </td>
|
<td> </td>
|
<!-- LHJ SWAG-BD54MV 20190614 End-->
|
<th>{!$Label.Submit_Date}</th>
|
<td> </td>
|
<td colspan="5"><apex:outputtext value="{0, date, yyyy/MM/dd HH:mm}" style="align:left"><apex:param value="{!report.Submit_DateTime_New__c + 8/24}"></apex:param> </apex:outputtext></td>
|
<td> </td>
|
<th align="center" colspan="2">{!$Label.Approved_Date}</th>
|
<td> </td>
|
<td><apex:outputtext value="{0, date, yyyy/MM/dd HH:mm}" ><apex:param value="{!report.Approved_DateTime__c + 8/24}"></apex:param> </apex:outputtext></td>
|
<td> </td>
|
<th>{!$Label.Created}</th>
|
<td> </td>
|
<td><apex:outputField value="{!report.CreatedById}" /></td>
|
<td> </td>
|
<td><a href="mailto:" id="idSendMail" >{!$Label.Send_Mail}</a></td>
|
</tr>
|
</table>
|
</div>
|
</apex:outputPanel>
|
<div>
|
<div class="pbSubheader first tertiaryPalette">
|
<span class="pbSubExtra"><span class="requiredLegend"><span class="requiredExampleOuter"><span class="requiredExample"> </span></span><span class="requiredText"> = {!$Label.Required_Information}</span></span></span>
|
<h3>{!$Label.Activities}</h3>
|
</div>
|
<apex:outputPanel id="Activities">
|
<input type="hidden" id="idActSize" value="{!actSize}" />
|
|
<apex:repeat id="idActivities" value="{!activities}" var="a">
|
<!-- 20200420 任务日报管理 add gzw start -->
|
<fieldset id ="{!('Page:mainForm:idDayEdit:idActivities:'+ a.stringIndex +':idfieldset')}">
|
<!-- 20200420 任务日报管理 add gzw end -->
|
<!-- // 2018/11/21 SWAG-B6Q8BS 判断是否需要将科室置红 start -->
|
<apex:inputHidden id="alertStringValue" value="{!a.act.IsAlertInputDep__c}" />
|
<!-- // 2018/11/21 SWAG-B6Q8BS 判断是否需要将科室置红 start -->
|
|
<table class="formtable" width="1200" border="0" style="background-color:#E6E6FA">
|
<colgroup>
|
<col width="95" />
|
<col width="3" />
|
<col width="16" />
|
<col width="10" />
|
<col width="16" />
|
<col width="20" />
|
<col width="18" />
|
<col width="10" />
|
<col width="20" />
|
<col width="30" />
|
<col width="20" />
|
<col width="110" />
|
<col width="20" />
|
<col width="110" />
|
<col width="20" />
|
<col width="110" />
|
<col width="20" />
|
<col width="110" />
|
<col width="20" />
|
<col width="110" />
|
<col width="20" />
|
<col width="110" />
|
</colgroup>
|
<tr>
|
<th>{!$Label.Working_Time}</th>
|
<td> </td>
|
<td><span><div class="requiredInput"><div class="requiredBlock"></div><apex:inputText id="idActStartHour" value="{!a.actStartHourText}" style="width:15px;ime-mode: disabled;ime-mode: disabled;text-align:right" maxlength="2"/></div></span></td>
|
<td class="left"><b>:</b></td>
|
<td><span><div class="requiredInput"><div class="requiredBlock"></div><apex:inputText id="idActStartMinute" value="{!a.actStartMinuteText}" style="width:15px;ime-mode: disabled;ime-mode: disabled;text-align:right" maxlength="2"/></div></span></td>
|
<td class="left">~</td>
|
<td><span><div class="requiredInput"><div class="requiredBlock"></div><apex:inputText id="idActEndHour" value="{!a.actEndHourText}" style="width:15px;ime-mode: disabled;ime-mode: disabled;text-align:right" maxlength="2"/></div></span></td>
|
<td class="left"><b>:</b></td>
|
<td><span><div class="requiredInput"><div class="requiredBlock"></div><apex:inputText id="idActEndMinute" value="{!a.actEndMinuteText}" style="width:15px;ime-mode: disabled;ime-mode: disabled;text-align:right" maxlength="2"/></div></span></td>
|
|
<th>{!$Label.Classification_Visited}</th>
|
<td> </td>
|
<td><span><div class="requiredInput"><div class="requiredBlock"></div><apex:inputField id="idVisitorDiv" value="{!a.act.Activity_Type2__c}" >
|
<apex:actionSupport event="onchange" onsubmit="blockme();vpClear1({!a.index}); return false;"/>
|
<apex:actionSupport event="onclick" onsubmit="vpChack({!a.index});return false;" />
|
<!-- <apex:actionSupport event="onfocus" onsubmit="vpChack({!a.index});return false;" />-->
|
</apex:inputField>
|
|
</div></span><apex:inputField id="idVisitorDivBefore" value="{!a.act.Activity_Type2_Before__c}" style="display:none"></apex:inputField></td>
|
|
|
<td> </td>
|
<th><apex:outputLabel value="{!$Label.Visit_Location}" onclick="openVisitorPlace({!a.index});" /></th>
|
<td> </td>
|
<td colspan="7"><apex:inputField id="idVisitorPlace" value="{!a.act.Location__c}" onblur="vpClear2_delay({!a.index});" onfocus="setVisitorPlace({!a.index});" style="width:97%" />
|
<apex:inputText id="idVisitorPlace2" value="{!a.act.Visitor_Place_Free__c}" style="width:97%; display:none" />
|
<apex:inputHidden id="idVisitorPlaceId" value="{!a.act.whatid__c}" />
|
<apex:inputHidden id="idVisitorPlaceHidden" value="{!a.act.Location__c}" />
|
<apex:inputHidden id="idVisitorPlaceHiddenId" value="{!a.act.whatid__c}" />
|
<!-- <input type="hidden" id="idVisitorPlaceHidden{!a.index}" value="{!a.act.Location__c}" />-->
|
<!-- <input type="hidden" id="idVisitorPlaceIdHidden{!a.index}" value="{!a.act.whatid__c}" />-->
|
</td>
|
</tr>
|
<apex:outputPanel rendered="{!IF(OR(a.actErrorFlg1,a.actErrorFlg2),true,false)}" ><tr><th> </th><td> </td><td colspan="10"><div class="errorMsg"><strong>{!IF(a.actErrorFlg1,$Label.Error_Message28 + ':','')}</strong> {!a.actErrorMessage1}</div></td><td> </td><td> </td><td> </td><td colspan="3"><div class="errorMsg"><strong>{!IF(a.actErrorFlg2,$Label.Error_Message28 + ':','')}</strong> {!a.actErrorMessage2}</div></td><td> </td><td> </td><td> </td><td> </td></tr></apex:outputPanel>
|
<tr>
|
<th>{!$Label.Visitor}</th><!--访问对象-->
|
<td> </td>
|
<td colspan="5"><span><div class="requiredInput"><div class="requiredBlock"></div>
|
<apex:inputText id="idVisitor1" value="{!idVisitor1PI}" style="width:100px" onchange="clearVisitorId({!a.index},'idVisitor1_IdHidden');" onClick="searchVisitor2({!a.index},value);return false;" /></div></span><apex:inputText id="idVisitor1_IdHidden" value="{!a.act.Visitor1_ID__c}" style="display:none"/></td>
|
<td> </td>
|
<td colspan="2">
|
<apex:inputText id="idVisitor2" value="{!idVisitor2PI}" style="width:100px" onchange="clearVisitorId({!a.index},'idVisitor2_IdHidden');" onClick="searchVisitor2({!a.index},value);return false;" /><apex:inputText id="idVisitor2_IdHidden" value="{!a.act.Visitor2_ID__c}" style="display:none"/></td>
|
<!-- <apex:inputField id="idVisitor2" value="{!a.act.Visitor2__c}" style="width:100px" onchange="clearVisitorId({!a.index},'idVisitor2_IdHidden');" onClick="searchVisitor2({!a.index},value);return false;" /><apex:inputText id="idVisitor2_IdHidden" value="{!a.act.Visitor2_ID__c}" style="display:none"/></td> -->
|
<td> </td>
|
<td>
|
<apex:inputText id="idVisitor3" value="{!idVisitor3PI}" style="width:100px" onchange="clearVisitorId({!a.index},'idVisitor3_IdHidden');" onClick="searchVisitor2({!a.index},value);return false;" /><apex:inputText id="idVisitor3_IdHidden" value="{!a.act.Visitor3_ID__c}" style="display:none"/></td>
|
<!-- <apex:inputField id="idVisitor3" value="{!a.act.Visitor3__c}" style="width:100px" onchange="clearVisitorId({!a.index},'idVisitor3_IdHidden');" onClick="searchVisitor2({!a.index},value);return false;" /><apex:inputText id="idVisitor3_IdHidden" value="{!a.act.Visitor3_ID__c}" style="display:none"/></td> -->
|
<td> </td>
|
<td>
|
<apex:inputText id="idVisitor4" value="{!idVisitor4PI}" style="width:100px" onchange="clearVisitorId({!a.index},'idVisitor4_IdHidden');" onClick="searchVisitor2({!a.index},value);return false;" /><apex:inputText id="idVisitor4_IdHidden" value="{!a.act.Visitor4_ID__c}" style="display:none"/></td>
|
<!-- <apex:inputField id="idVisitor4" value="{!a.act.Visitor4__c}" style="width:100px" onchange="clearVisitorId({!a.index},'idVisitor4_IdHidden');" onClick="searchVisitor2({!a.index},value);return false;" /><apex:inputText id="idVisitor4_IdHidden" value="{!a.act.Visitor4_ID__c}" style="display:none"/></td> -->
|
<td> </td>
|
<td>
|
<apex:inputText id="idVisitor5" value="{!idVisitor5PI}" style="width:100px" onchange="clearVisitorId({!a.index},'idVisitor5_IdHidden');" onClick="searchVisitor2({!a.index},value);return false;" /><apex:inputText id="idVisitor5_IdHidden" value="{!a.act.Visitor5_ID__c}" style="display:none"/></td>
|
<!-- <apex:inputField id="idVisitor5" value="{!a.act.Visitor5__c}" style="width:100px" onchange="clearVisitorId({!a.index},'idVisitor5_IdHidden');" onClick="searchVisitor2({!a.index},value);return false;" /><apex:inputText id="idVisitor5_IdHidden" value="{!a.act.Visitor5_ID__c}" style="display:none"/></td> -->
|
<td> </td>
|
<th>{!$Label.Main_Visit_Location}</th>
|
<td> </td>
|
<td><apex:inputField id="idMainPlace" value="{!a.act.Main_Visit_Location__c}" style="width:100px" /></td>
|
<td> </td>
|
<th>{!$Label.Free_Input} <apex:inputField id="idFree_Input__c" value="{!a.act.Free_Input__c}" onClick="if(vpChack({!a.index})) return false;setVisitorPlaceDisabled();"/> </th>
|
</tr>
|
<tr>
|
<th>拜访目的</th>
|
<td></td>
|
<apex:outputPanel rendered="{!IF(reportOwner.Job_Category__c == '销售服务', 'true', 'false')}" layout="none">
|
<td colspan="3"><span><div class="requiredInput"><div class="requiredBlock"></div><apex:inputField id="idActivityPurposeFSEDiv" value="{!a.act.Activity_PurposeFSE__c}" ></apex:inputField>
|
</div></span></td>
|
</apex:outputPanel>
|
<apex:outputPanel rendered="{!IF(reportOwner.Job_Category__c != '销售服务', 'true', 'false')}" layout="none">
|
<td colspan="3"><span><div class="requiredInput"><div class="requiredBlock"></div><apex:inputField id="idActivityPurposeEscFSEDiv" value="{!a.act.Activity_PurposeEscFSE__c}">
|
</apex:inputField>
|
</div></span></td>
|
</apex:outputPanel>
|
<th class="" colspan="2">OPD计划</th>
|
<!-- <td class=""> </td> -->
|
<td class="" colspan="2"><apex:outputField id="opd" value="{!a.act.OPDPlan_Flag__c}" style="width:98%" /></td>
|
<th class="">主题</th>
|
<td class=""> </td>
|
<td class="" colspan="5"><span><div><div class="requiredBlock"></div><apex:inputField id="idPurpose" value="{!a.act.Purpose__c}" style="width:98%" /></div></span></td>
|
<td> </td>
|
<th>{!$Label.Companion}</th>
|
<td> </td>
|
<td colspan="3"><apex:inputField value="{!a.act.Companion__c}" style="width:95%" /></td>
|
</tr>
|
<tr>
|
<th>{!$ObjectType.Event.fields.Purpose_Type__c.Label}</th>
|
<td> </td>
|
<td colspan="18"><div class="requiredInput"><div class="requiredBlock"></div>
|
|
<apex:outputPanel rendered="{!IF(reportOwner.Job_Category__c == '销售服务', 'true', 'false')}" layout="none">
|
<apex:inputField id="idPuroposeTypeFSE1" value="{!a.act.Purpose_TypeFSE__c}" style="width:100px;" />
|
<apex:inputField id="idPuroposeTypeFSE2" value="{!a.act.Purpose_TypeFSE2__c}" style="width:100px;" />
|
<apex:inputField id="idPuroposeTypeFSE3" value="{!a.act.Purpose_TypeFSE3__c}" style="width:100px;" />
|
<apex:inputField id="idPuroposeTypeFSE4" value="{!a.act.Purpose_TypeFSE4__c}" style="width:100px;" />
|
<apex:inputField id="idPuroposeTypeFSE5" value="{!a.act.Purpose_TypeFSE5__c}" style="width:100px;" />
|
</apex:outputPanel>
|
|
<apex:outputPanel rendered="{!IF(reportOwner.Job_Category__c != '销售服务', 'true', 'false')}" layout="none">
|
<apex:inputField id="idPuroposeType1" value="{!a.act.Purpose_TypeEscFSE__c}" style="width:100px;" />
|
<apex:inputField id="idPuroposeType2" value="{!a.act.Purpose_TypeEscFSE2__c}" style="width:100px;" />
|
<apex:inputField id="idPuroposeType3" value="{!a.act.Purpose_TypeEscFSE3__c}" style="width:100px;" />
|
<apex:inputField id="idPuroposeType4" value="{!a.act.Purpose_TypeEscFSE4__c}" style="width:100px;" />
|
<apex:inputField id="idPuroposeType5" value="{!a.act.Purpose_TypeEscFSE5__c}" style="width:100px;" />
|
</apex:outputPanel>
|
|
|
</div></td>
|
<td> </td>
|
<!-- <th>使用报告书 <apex:inputField value="{!a.act.UseReport__c}"></apex:inputField> <apex:inputHidden id="EventCSLAInfoId1" value="{!a.act.SLAReportInfo__c}" /></th> -->
|
</tr>
|
<apex:outputPanel rendered="{!a.pt1ErrorFlg}" layout="none">
|
<tr>
|
<th> </th><td> </td><td colspan="8"><div class="errorMsg"><strong>{!$Label.Error_Message28}:</strong> {!$Label.Error_Message3}</div></td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td><td> </td>
|
</tr>
|
</apex:outputPanel>
|
<tr>
|
<th>{!$Label.Involved}{!$Label.Opportunity}</th>
|
<td> </td>
|
<td colspan="5"><apex:inputField id="idRelOpp1" onfocus="setRelOppId({!a.index},'idRelOpp1','idRelOpp1Id');" ondblclick="setRelOppId2({!a.index},'idRelOpp1Id');" onchange="resetValue('Page:mainForm:idDayEdit:idActivities:{!a.index}:idRelOpp1');activeBtn(this);" value="{!a.act.Related_Opportunity1__c}" style="width:100px;" /><apex:inputHidden id="idRelOpp1Id" value="{!a.act.Related_Opportunity1_ID__c}" /><apex:inputHidden id="idRelOpp1Hidden" value="{!a.act.Related_Opportunity1__c}" /><apex:inputHidden id="idRelOpp1HiddenId" value="{!a.act.Related_Opportunity1_ID__c}" /></td>
|
<td> </td>
|
<td colspan="2"><apex:inputField id="idRelOpp2" onfocus="setRelOppId({!a.index},'idRelOpp2','idRelOpp2Id');" ondblclick="setRelOppId2({!a.index},'idRelOpp2Id');" onchange="resetValue('Page:mainForm:idDayEdit:idActivities:{!a.index}:idRelOpp2');activeBtn(this);" value="{!a.act.Related_Opportunity2__c}" style="width:100px;" /><apex:inputHidden id="idRelOpp2Id" value="{!a.act.Related_Opportunity2_ID__c}" /><apex:inputHidden id="idRelOpp2Hidden" value="{!a.act.Related_Opportunity2__c}" /><apex:inputHidden id="idRelOpp2HiddenId" value="{!a.act.Related_Opportunity2_ID__c}" /></td>
|
<td> </td>
|
<td><apex:inputField id="idRelOpp3" onfocus="setRelOppId({!a.index},'idRelOpp3','idRelOpp3Id');" ondblclick="setRelOppId2({!a.index},'idRelOpp3Id');" onchange="resetValue('Page:mainForm:idDayEdit:idActivities:{!a.index}:idRelOpp3');activeBtn(this);" value="{!a.act.Related_Opportunity3__c}" style="width:100px;" /><apex:inputHidden id="idRelOpp3Id" value="{!a.act.Related_Opportunity3_ID__c}" /><apex:inputHidden id="idRelOpp3Hidden" value="{!a.act.Related_Opportunity3__c}" /><apex:inputHidden id="idRelOpp3HiddenId" value="{!a.act.Related_Opportunity3_ID__c}" /></td>
|
<td> </td>
|
<td><apex:inputField id="idRelOpp4" onfocus="setRelOppId({!a.index},'idRelOpp4','idRelOpp4Id');" ondblclick="setRelOppId2({!a.index},'idRelOpp4Id');" onchange="resetValue('Page:mainForm:idDayEdit:idActivities:{!a.index}:idRelOpp4');activeBtn(this);" value="{!a.act.Related_Opportunity4__c}" style="width:100px;" /><apex:inputHidden id="idRelOpp4Id" value="{!a.act.Related_Opportunity4_ID__c}" /><apex:inputHidden id="idRelOpp4Hidden" value="{!a.act.Related_Opportunity4__c}" /><apex:inputHidden id="idRelOpp4HiddenId" value="{!a.act.Related_Opportunity4_ID__c}" /></td>
|
<td> </td>
|
<td><apex:inputField id="idRelOpp5" onfocus="setRelOppId({!a.index},'idRelOpp5','idRelOpp5Id');" ondblclick="setRelOppId2({!a.index},'idRelOpp5Id');" onchange="resetValue('Page:mainForm:idDayEdit:idActivities:{!a.index}:idRelOpp5');activeBtn(this);" value="{!a.act.Related_Opportunity5__c}" style="width:100px;" /><apex:inputHidden id="idRelOpp5Id" value="{!a.act.Related_Opportunity5_ID__c}" /><apex:inputHidden id="idRelOpp5Hidden" value="{!a.act.Related_Opportunity5__c}" /><apex:inputHidden id="idRelOpp5HiddenId" value="{!a.act.Related_Opportunity5_ID__c}" /></td>
|
<th colspan="2">{!$Label.Involved}{!$Label.Service_Agreement}</th>
|
<td> </td>
|
<td>
|
<apex:inputField id="idRelService1" onfocus="setRelServiceId({!a.index},'idRelService1','idRelService1Id');" ondblclick="setRelServiceId2({!a.index},'idRelService1Id');" onchange="resetValue('Page:mainForm:idDayEdit:idActivities:{!a.index}:idRelService1');activeBtn(this);" value="{!a.act.Related_Service1__c}" style="width:100px;" />
|
<apex:inputHidden id="idRelService1Id" value="{!a.act.Related_Service1_ID__c}" /><apex:inputHidden id="idRelService1Hidden" value="{!a.act.Related_Service1__c}" /><apex:inputHidden id="idRelService1HiddenId" value="{!a.act.Related_Service1_ID__c}" />
|
</td>
|
<td> </td>
|
<!-- <td>
|
<apex:inputField id="idRelService2" onfocus="setRelServiceId({!a.index},'idRelService2','idRelService2Id');" ondblclick="setRelServiceId2({!a.index},'idRelService2Id');" onchange="resetValue('Page:mainForm:idDayEdit:idActivities:{!a.index}:idRelService2');" value="{!a.act.Related_Service2__c}" style="width:100px;" /><apex:inputHidden id="idRelService2Id" value="{!a.act.Related_Service2_ID__c}" /><apex:inputHidden id="idRelService2Hidden" value="{!a.act.Related_Service2__c}" /><apex:inputHidden id="idRelService2HiddenId" value="{!a.act.Related_Service2_ID__c}" />
|
</td> -->
|
<th>使用报告书 <apex:inputField value="{!a.act.UseReport__c}"></apex:inputField> <apex:inputHidden id="EventCSLAInfoId" value="{!a.act.SLAReportInfo__c}" />
|
<apex:inputHidden id="isDisabledVisitorPlace" value="{!a.isDisabledVisitorPlace}" />
|
</th>
|
</tr>
|
<tr>
|
<td> </td>
|
<td> </td>
|
<td colspan="5"><input type="button" id="{!a.index}:idRelOpp1Btn" class="btn" value="询价更新" onclick="enquiryPage(this);" style="width: 63px; cursor: default; border-color: rgb(196, 196, 196); color: #909090; background-position: 0px -90px;" disabled="disabled" />
|
|
<input type="button" id="{!a.index}:idRelOpp1LoseBtn" class="btn" value="失单" onclick="loseEnquiry(this);" style="width: 35px; cursor: default; border-color: rgb(196, 196, 196); color: #909090; background-position: 0px -90px;" disabled="disabled" />
|
</td>
|
<td> </td>
|
|
|
<td colspan="2"><input type="button" id="{!a.index}:idRelOpp2Btn" class="btn" value="询价更新" onclick="enquiryPage(this);" style="width: 63px; cursor: default; border-color: rgb(196, 196, 196); color: #909090; background-position: 0px -90px;" disabled="disabled" />
|
<input type="button" id="{!a.index}:idRelOpp2LoseBtn" class="btn" value="失单" onclick="loseEnquiry(this);" style="width: 35px; cursor: default; border-color: rgb(196, 196, 196); color: #909090; background-position: 0px -90px;" disabled="disabled" />
|
</td>
|
<td> </td>
|
<td><input type="button" id="{!a.index}:idRelOpp3Btn" class="btn" value="询价更新" onclick="enquiryPage(this);" style="width: 63px; cursor: default; border-color: rgb(196, 196, 196); color: #909090; background-position: 0px -90px;" disabled="disabled" />
|
<input type="button" id="{!a.index}:idRelOpp3LoseBtn" class="btn" value="失单" onclick="loseEnquiry(this);" style="width: 35px; cursor: default; border-color: rgb(196, 196, 196); color: #909090; background-position: 0px -90px;" disabled="disabled" />
|
</td>
|
<td> </td>
|
<td><input type="button" id="{!a.index}:idRelOpp4Btn" class="btn" value="询价更新" onclick="enquiryPage(this);" style="width: 63px; cursor: default; border-color: rgb(196, 196, 196); color: #909090; background-position: 0px -90px;" disabled="disabled" />
|
<input type="button" id="{!a.index}:idRelOpp4LoseBtn" class="btn" value="失单" onclick="loseEnquiry(this);" style="width: 35px; cursor: default; border-color: rgb(196, 196, 196); color: #909090; background-position: 0px -90px;" disabled="disabled" />
|
</td>
|
<td> </td>
|
<td colspan="4"><input type="button" id="{!a.index}:idRelOpp5Btn" class="btn" value="询价更新" onclick="enquiryPage(this);" style="width: 63px; cursor: default; border-color: rgb(196, 196, 196); color: #909090; background-position: 0px -90px;" disabled="disabled" />
|
<input type="button" id="{!a.index}:idRelOpp5LoseBtn" class="btn" value="失单" onclick="loseEnquiry(this);" style="width: 35px; cursor: default; border-color: rgb(196, 196, 196); color: #909090; background-position: 0px -90px;" disabled="disabled" />
|
</td>
|
|
<td><input type="button" id="{!a.index}:idRelService1Btn" class="btn" value="信息更新" onclick="slaInfoPage('{!a.act.Id}','{!a.index}')" style="width: 100px; cursor: default; border-color: rgb(196, 196, 196); color: #909090; background-position: 0px -90px;" disabled="disabled" /></td>
|
</tr>
|
</table>
|
<table class="formtable" width="1200" border="0" style="background-color:#DCDCDC">
|
<colgroup>
|
<col width="92" />
|
<col width="3" />
|
<col width="110" />
|
<col width="12" />
|
<col width="110" />
|
<col width="12" />
|
<col width="110" />
|
<col width="12" />
|
<col width="110" />
|
<col width="12" />
|
<col width="110" />
|
<col width="12" />
|
<col width="110" />
|
<col width="12" />
|
<col width="110" />
|
<col width="12" />
|
<col width="110" />
|
</colgroup>
|
<tr>
|
<th rowspan="3">{!$Label.Description}</th>
|
<td rowspan="3"> </td>
|
<td rowspan="3" colspan="13"><apex:inputField id="idDescription" value="{!a.act.Description__c}" style="width:1000px;height:55px"/></td>
|
<td><apex:inputField value="{!a.act.Find_Imitations_Flag__c}" />
|
{!$Label.Find_Imitations}</td>
|
</tr>
|
<tr>
|
<td>
|
<input type="button" id="idETApp{!a.index}" name="ETAppBtn" value="转至ET APP" class="btn" style="width: 110px; cursor: pointer; border-color: rgb(181, 181, 181) rgb(181, 181, 181) rgb(127, 127, 127);"
|
onclick="ETAppOpen('{!a.index}');"
|
/>
|
</td>
|
</tr>
|
<tr>
|
<td>
|
<input type="button" class="btn" id="idETAPPAct{!a.index}" name="reportBtn" value="ET APP活动" style="width:110px; cursor: pointer; border-color: rgb(181, 181, 181) rgb(181, 181, 181) rgb(127, 127, 127);" onclick="openETAPPAct('{!a.index}')" />
|
</td>
|
</tr>
|
<tr>
|
<th style="text-align:left;"><apex:commandButton styleClass="idSave" value="{!$Label.Save}" onclick="blockme();" style="width:80px" action="{!save}" rerender="mainForm" oncomplete="unblockUI();setVisitorPlaceDisabled();initSetPage();" /></th>
|
<td> </td>
|
<td><input type="button" class="{!If(a.act.Lead_ID__c != '','btnRed','btn')}" id="idLead{!a.index}" name="reportBtn" value="{!$Label.Opportunity_Creating}" style="width:110px" onclick="addLeadNew('{!a.index}', '{!a.act.Id}');"/></td>
|
<td> </td>
|
<td><input type="button" class="btn" id="idOpportunityView{!a.index}" name="reportBtn" value="周询价管理表" style="width:110px;" onclick="PCLViewDisplay('{!a.index}' , '{!report.Reporter__c}');" /></td>
|
<td> </td>
|
<!--服务技师 2019/02/27 Start -->
|
<td><input type="button" class="{!If(a.act.Maintenance_Contract_ID__c != '','btnRed','btn')}" id="idMaintenance_Contract{!a.index}" name="reportBtn" value="BME工作量跟进" style="width:110px" onclick="window.open('/apex/BmeWorkPage');"/></td>
|
<td> </td>
|
<!-- 服务技师 2019/02/27 end -->
|
<td><input type="button" class="btn" id="idRepair{!a.index}" name="reportBtn" value="{!$Label.View_Repair_Recovery}" style="width:110px;" onclick="viewDisplay('{!a.index}','idRepair');"/></td>
|
<td> </td>
|
<td><input type="button" class="btn" id="idMC{!a.index}" name="reportBtn" value="维修合同跟进视图" style="width:110px;" onclick="viewDisplay('{!a.index}','idMC');"/></td>
|
<td> </td>
|
<td><input type="button" class="{!If(a.act.InsReport_ID__c != '','btnRed','btn')}" id="idInspections{!a.index}" name="reportBtn" value="{!$Label.View_Inspections}" style="width:110px" onclick="addInsReportNew('{!a.index}', '{!a.act.Id}', '{!a.act.InsReport_ID__c}');"/></td>
|
<!-- <td><input type="button" class="btn" id="idInspections{!a.index}" name="reportBtn" value="{!$Label.View_Inspections}" style="width:110px;" onclick="viewDisplay('{!a.index}','idInspections');"/></td> -->
|
<td> </td>
|
<!-- GIR Solution 2019-12-12 by vivek start -->
|
<td style="display: none;"><input type="button" class="{!If(a.act.Asset_Manual_ID__c != '','btnRed','btn')}" id="idAsset_Manual{!a.index}" name="reportBtn" value="新建保有设备" style="width:110px" onclick="addAssetManualNew('{!a.index}', '{!a.act.Id}');"/></td>
|
<td><input type="button" class="{!If(a.act.Asset_Manual_ID__c != '','btnRed','btn')}" id="idSolution{!a.index}" name="reportBtn" value="solution项目需求" style="width:110px" onclick="addSolutionNew('{!a.index}', '{!a.act.Id}');"/></td>
|
<!-- GIR Solution 2019-12-12 by vivek end -->
|
<!-- <td> </td> -->
|
<td><input type="button" class="btn" id="idAccDC{!a.index}" name="reportBtn" value="更新客户信息" style="width:110px;" onclick="openVisitorPlace2({!a.index});"/></td>
|
</tr>
|
<tr>
|
<td> </td>
|
<td> </td>
|
<!-- SWAG-BUF6R8 20201020 youchang start
|
<td><input type="button" class="{!If(a.act.Rental_Apply_ID__c != '','btnRed','btn')}" id="idRental_Apply{!a.index}" name="reportBtn" value="新建备品申请书" style="width:110px;{!If(a.act.Rental_Apply_ID__c != '','color:red;','color:black;')}" onclick="openPDNew('{!a.index}','{!a.act.id}','Rental_Apply','idRental_Apply_IdHidden','idRental_Apply','{!report.id}');"/><apex:inputText id="idRental_Apply_IdHidden" value="{!a.act.Rental_Apply_ID__c}" style="display:none" disabled="true"/></td>
|
-->
|
<td><input type="button" class="btn" id="idOpds{!a.index}" name="reportBtn" value="新建OPD计划" style="width:110px" onclick="addOpdNew('{!a.index}', '{!a.act.Id}');"/></td>
|
<!--SWAG-BUF6R8 20201020 youchang end -->
|
<td> </td>
|
<td><input type="button" class="{!If(a.act.OPD_ID__c != '' || a.act.OPDPlan_Flag__c,'btnRed','btn')}" id="idOPD{!a.index}" name="reportBtn" value="{!$Label.OPD_Taiwan}" style="width:110px;{!If(a.act.OPD_ID__c != '','color:red;','color:black;')}" onclick="openPDNew('{!a.index}','{!a.act.id}','OPD','idOPD_IdHidden','idOPD','{!report.id}');"/><apex:inputText id="idOPD_IdHidden" value="{!a.act.OPD_ID__c}" style="display:none" disabled="true"/></td>
|
<!-- <td><input type="button" class="{!If(a.act.OPD_ID__c != '','btnRed','btn')}" id="idOPD{!a.index}" name="reportBtn" value="{!$Label.OPD_Taiwan}" style="width:110px;{!If(a.act.OPD_ID__c != '','color:red;','color:black;')}" onclick="selectOPDSISReportType('{!a.index}','{!a.act.id}','OPD','idOPD_IdHidden','idOPD','{!report.id}');"/><apex:inputText id="idOPD_IdHidden" value="{!a.act.OPD_ID__c}" style="display:none" disabled="true"/></td> -->
|
<td> </td>
|
<td><input type="button" class="{!If(a.act.NTC_ID__c != '','btnRed','btn')}" id="idNTC{!a.index}" name="reportBtn" value="NTC/CDS培训" style="width:110px;{!If(a.act.NTC_ID__c != '','color:red;','color:black;')}" onclick="openPDNew('{!a.index}','{!a.act.id}','NTC','idNTC_IdHidden','idNTC','{!report.id}');"/><apex:inputText id="idNTC_IdHidden" value="{!a.act.NTC_ID__c}" style="display:none" disabled="true"/></td>
|
<td> </td>
|
<td><input type="button" class="{!If(a.act.OnCall_ID__c != '','btnRed','btn')}" id="idONCALL{!a.index}" name="reportBtn" value="ON CALL" style="width:110px;{!If(a.act.OnCall_ID__c != '','color:red;','color:black;')}" onclick="openPDNew('{!a.index}','{!a.act.id}','On_Call','idONCALL_IdHidden','idONCALL','{!report.id}');"/><apex:inputText id="idONCALL_IdHidden" value="{!a.act.OnCall_ID__c}" style="display:none" disabled="true"/></td>
|
<td> </td>
|
<td><input type="button" class="{!If(a.act.ReportAccompanied_ID__c != '','btnRed','btn')}" id="idReportAccompanied{!a.index}" name="reportBtn" value="{!$Label.Report_Accompanied}" style="width:110px;{!If(a.act.ReportAccompanied_ID__c != '','color:red;','color:black;')}" onclick="openPDNew('{!a.index}','{!a.act.id}','Visit_With','idReportAccompanied_IdHidden','idReportAccompanied','{!report.id}');"/><apex:inputText id="idReportAccompanied_IdHidden" value="{!a.act.ReportAccompanied_ID__c}" style="display:none" disabled="true"/></td>
|
<td> </td>
|
<td><input type="button" class="{!If(a.act.CityStatus_ID__c != '','btnRed','btn')}" id="idCityStatus{!a.index}" name="reportBtn" value="{!$Label.City_Status_Report}" style="width:110px;{!If(a.act.CityStatus_ID__c != '','color:red;','color:black;')}" onclick="openPDNew('{!a.index}','{!a.act.id}','MarketCondition','idCityStatus_IdHidden','idCityStatus','{!report.id}');"/><apex:inputText id="idCityStatus_IdHidden" value="{!a.act.CityStatus_ID__c}" style="display:none" disabled="true"/></td>
|
<td> </td>
|
<!-- <td>
|
<input type="button" class="{!If(a.act.Claim_ID__c != '','btnRed','btn')}" id="idClaim{!a.index}" name="reportBtn" value="{!$Label.Claim_Input}" style="width:110px;{!If(a.act.Claim_ID__c != '','color:red;','color:black;')}" onclick="openPDNew('{!a.index}','{!a.act.id}','Complaint','idClaim_IdHidden','idClaim','{!report.id}');"/>
|
<apex:inputText id="idClaim_IdHidden" value="{!a.act.Claim_ID__c}" style="display:none" disabled="true"/>
|
</td> -->
|
<td> </td>
|
<td><input type="button" class="{!If(a.act.Conflict_ID__c != '','btnRed','btn')}" id="idConflict{!a.index}" name="reportBtn" value="{!$Label.Competitor_Information}" style="width:110px;{!If(a.act.Conflict_ID__c != '','color:red;','color:black;')}" onclick="openPDNew('{!a.index}','{!a.act.id}','Competitor','idConflict_IdHidden','idConflict','{!report.id}');"/><apex:inputText id="idConflict_IdHidden" value="{!a.act.Conflict_ID__c}" style="display:none" disabled="true"/></td>
|
</tr>
|
<tr>
|
<td style="text-align:left;"><apex:commandButton styleClass="idSaveComment" value="{!$Label.SaveComment}" onclick="blockme();" style="width:80px" action="{!saveComment}" rerender="dummy" disabled="{!ministerCommentEditFlg && managerCommentEditFlg}"/></td>
|
<td colspan="16">
|
<apex:outputPanel >
|
<!-- <apex:pageBlock id="ididMinisterManagerBlock"> -->
|
<apex:pageBlockSection id="idMinisterManager" title="部长/经理的反馈" columns="2" collapsible="true">
|
<apex:outputField id="idMinister" value="{!a.act.Minister__c}" />
|
<apex:inputTextarea id="idMinisterComment" value="{!a.act.Minister_Comment__c}" disabled="{!ministerCommentEditFlg}" style="width:700px" />
|
<apex:outputField id="idManager" value="{!a.act.Manager__c}" />
|
<apex:inputTextarea id="idManagerComment" value="{!a.act.Manager_Comment__c}" disabled="{!managerCommentEditFlg}" style="width:700px" />
|
</apex:pageBlockSection>
|
<script>(function() {
|
var twisty = document.getElementById('img_{!$Component.idMinisterManager}');
|
twistSection(twisty);
|
})();
|
</script>
|
<!-- </apex:pageBlock> -->
|
</apex:outputPanel>
|
</td>
|
</tr>
|
</table>
|
<table class="formtable" width="1200" border="0" style="background-color:#C7FFB7">
|
<colgroup>
|
<col width="100" />
|
<col width="3" />
|
<col width="80" />
|
<col width="20" />
|
<col width="110" />
|
<col width="20" />
|
<col width="110" />
|
<col width="20" />
|
<col width="16" />
|
<col width="10" />
|
<col width="16" />
|
<col width="20" />
|
<col width="18" />
|
<col width="10" />
|
<col width="50" />
|
<col width="20" />
|
<col width="110" />
|
<col width="20" />
|
<col width="110" />
|
<col width="20" />
|
<col width="110" />
|
</colgroup>
|
<tr>
|
<th>{!$Label.Next}{!$Label.Activities_Schedule}</th>
|
<td> </td>
|
<th>{!$Label.Visit_Date}</th>
|
<td> </td>
|
<td><apex:inputField value="{!a.act.nextPlanDate__c}" styleClass=""/></td>
|
<td> </td>
|
<th>{!$Label.Visiting_Hours}</th>
|
<td> </td>
|
<td><apex:inputText id="idPlanStartHour" value="{!a.planStartHourText}" style="width:15px;ime-mode: disabled;ime-mode: disabled;text-align:right" maxlength="2"/></td>
|
<td class="left"><b>:</b></td>
|
<td><apex:inputText id="idPlanStartMinute" value="{!a.planStartMinuteText}" style="width:15px;ime-mode: disabled;ime-mode: disabled;text-align:right" maxlength="2"/></td>
|
<td class="left">~</td>
|
<td><apex:inputText id="idPlanEndHour" value="{!a.planEndHourText}" style="width:15px;ime-mode: disabled;ime-mode: disabled;text-align:right" maxlength="2"/></td>
|
<td class="left"><b>:</b></td>
|
<td><apex:inputText id="idPlanEndMinute" value="{!a.planEndMinuteText}" style="width:15px;ime-mode: disabled;ime-mode: disabled;text-align:right" maxlength="2"/></td>
|
<td> </td>
|
<td> </td>
|
<td> </td>
|
<td> </td>
|
<td> </td>
|
<td> </td>
|
</tr>
|
<apex:outputPanel rendered="{!IF(OR(a.planErrorFlg1,a.planErrorFlg2),true,false)}" ><tr><th> </th><td> </td><td> </td><td> </td><td colspan="3"><div class="errorMsg"><strong>{!IF(a.planErrorFlg1,$Label.Error_Message28 + ':','')}</strong> {!a.planErrorMessage1}</div></td><td> </td><td colspan="9"><div class="errorMsg"><strong>{!IF(a.planErrorFlg2,$Label.Error_Message28 + ':','')}</strong> {!a.planErrorMessage2}</div></td><td> </td><td> </td><td> </td><td> </td></tr></apex:outputPanel>
|
<tr>
|
<th> </th>
|
<td> </td>
|
<th>{!$Label.Purpose}({!$Label.Planning})</th>
|
<td> </td>
|
<td colspan="17"><apex:inputText value="{!a.planPurposeText}" style="width:99%"/></td>
|
</tr>
|
<apex:outputPanel rendered="{!IF(OR(a.planErrorFlg3),true,false)}" ><tr><th> </th><td> </td><td> </td><td> </td><td colspan="3"><div class="errorMsg"><strong>{!IF(a.planErrorFlg3,$Label.Error_Message28 + ':','')}</strong> {!a.planErrorMessage3}</div></td><td> </td></tr></apex:outputPanel>
|
</table>
|
<table class="formtable" width="1200" border="0">
|
<colgroup>
|
<col width="45" />
|
<col width="3" />
|
<col width="110" />
|
<col width="20" />
|
<col width="110" />
|
<col width="20" />
|
<col width="110" />
|
<col width="20" />
|
<col width="110" />
|
<col width="20" />
|
<col width="110" />
|
<col width="20" />
|
<col width="110" />
|
<col width="20" />
|
<col width="110" />
|
<col width="20" />
|
<col width="110" />
|
</colgroup>
|
<tr>
|
<!-- 20200420 任务日报管理 add gzw start -->
|
<th>
|
报告状态:
|
</th>
|
<td style= "min-width: 50px;">
|
<apex:outputText id="idEventStatus" value="{!a.act.eventStatus__c}" />
|
<apex:inputHidden id="idHiddenEventStatus" value="{!a.act.eventStatus__c}" />
|
|
</td>
|
<th>
|
取消理由:
|
</th>
|
<td>
|
<!-- <apex:inputText id="idCancelReason" value="{!a.cancelReason}" /> -->
|
<!-- <apex:inputText id="idCancelReason" value="{!a.cancelReason}" /> -->
|
<!-- 2021-09-18 mzy 任务管理改善 start -->
|
<!--
|
<apex:outputPanel rendered="{!IF(reportOwner.Job_Category__c == '销售服务', 'true', 'false')}" layout="none">
|
<apex:inputField id="idCancelReasonFSE" value="{!a.act.cancelReasonSelectFSE__c}" />
|
</apex:outputPanel>
|
<apex:outputPanel rendered="{!IF(reportOwner.Job_Category__c != '销售服务', 'true', 'false')}" layout="none">
|
<apex:inputField id="idCancelReasonEscFSE" value="{!a.act.cancelReasonSelect__c}" />
|
</apex:outputPanel>
|
-->
|
<apex:inputHidden id="idIsTaskBlank" value="{!a.isTaskBlank}" />
|
<!-- 2021-10-11 mzy 任务管理改善 start-->
|
<apex:inputHidden id="idTaskDifferent" value="{!a.taskDifferent}" />
|
<apex:inputHidden id="idTaskStatus" value="{!a.tsk.taskStatus__c}" />
|
<apex:inputHidden id="idNewEventStatus" value="{!a.EventStatus}" />
|
<!-- 2021-10-11 mzy 任务管理改善 end-->
|
<!--无任务,用报告一览的延期理由-->
|
<apex:outputPanel rendered="{!IF(a.isTaskBlank==true,true,false)}">
|
<apex:outputPanel rendered="{!IF(reportOwner.Job_Category__c == '销售服务', 'true', 'false')}" layout="none">
|
<apex:inputField id="idCancelReasonFSE" value="{!a.act.cancelReasonSelectFSE__c}" />
|
</apex:outputPanel>
|
<apex:outputPanel rendered="{!IF(reportOwner.Job_Category__c != '销售服务', 'true', 'false')}" layout="none">
|
<apex:inputField id="idCancelReasonEscFSE" value="{!a.act.cancelReasonSelect__c}" />
|
</apex:outputPanel>
|
</apex:outputPanel>
|
<!--有任务,用任务的延期理由-->
|
<apex:outputPanel rendered="{!IF(a.isTaskBlank==false,true,false)}">
|
<apex:outputPanel rendered="{!IF(reportOwner.Job_Category__c == '销售服务', 'true', 'false')}" layout="none">
|
<apex:inputField id="tskidCancelReasonFSE" value="{!a.tsk.cancelReasonSelectFSE__c}" />
|
</apex:outputPanel>
|
<apex:outputPanel rendered="{!IF(reportOwner.Job_Category__c != '销售服务', 'true', 'false')}" layout="none">
|
<apex:inputField id="tskidCancelReasonEscFSE" value="{!a.tsk.cancelReasonSelect__c}" />
|
</apex:outputPanel>
|
</apex:outputPanel>
|
<!-- 2021-09-18 mzy 任务管理改善 end -->
|
</td>
|
<th>
|
其他:
|
</th>
|
<td>
|
<apex:inputField id="idCancelReasonRemark" value="{!a.act.cancelReasonOther__c}" style="width: 80px;" />
|
</td>
|
|
<td> </td>
|
<td><apex:commandButton value="取消" id="idCancel" reRender="Activities,idAddActPanel"
|
onclick="cancelsaveJS('{!a.index}','{!a.act.Event_ID__c}');return false;"
|
style="width:100px;" >
|
<apex:param name="delIndex" value="{!a.index}" assignTo="{!delIndex}"/>
|
</apex:commandButton></td>
|
<th> </th>
|
</tr>
|
<tr>
|
<th>
|
延期理由:
|
</th>
|
<td>
|
<!-- <apex:inputText id="idCancelReason" value="{!a.cancelReason}" /> -->
|
<!-- <apex:inputText id="idCancelReason" value="{!a.cancelReason}" /> -->
|
<!-- 2021-09-18 mzy 任务管理改善 start -->
|
<!--
|
<apex:outputPanel rendered="{!IF(reportOwner.Job_Category__c == '销售服务', 'true', 'false')}" layout="none">
|
<apex:inputField id="idDelayReasonFSE" value="{!a.act.delayReasonSelectFSE__c}" />
|
</apex:outputPanel>
|
<apex:outputPanel rendered="{!IF(reportOwner.Job_Category__c != '销售服务', 'true', 'false')}" layout="none">
|
<apex:inputField id="idDelayReasonEscFSE" value="{!a.act.delayReasonSelect__c}" />
|
</apex:outputPanel>
|
-->
|
<!--无任务,用报告一览的延期理由-->
|
<apex:outputPanel rendered="{!IF(a.isTaskBlank==true,true,false)}">
|
<apex:outputPanel rendered="{!IF(reportOwner.Job_Category__c == '销售服务', 'true', 'false')}" layout="none">
|
<apex:inputField id="idDelayReasonFSE" value="{!a.act.delayReasonSelectFSE__c}" />
|
</apex:outputPanel>
|
<apex:outputPanel rendered="{!IF(reportOwner.Job_Category__c != '销售服务', 'true', 'false')}" layout="none">
|
<apex:inputField id="idDelayReasonEscFSE" value="{!a.act.delayReasonSelect__c}" />
|
</apex:outputPanel>
|
</apex:outputPanel>
|
<!--有任务,用任务的延期理由-->
|
<apex:outputPanel rendered="{!IF(a.isTaskBlank==false,true,false)}">
|
<apex:outputPanel rendered="{!IF(reportOwner.Job_Category__c == '销售服务', 'true', 'false')}" layout="none">
|
<apex:inputField id="tskidDelayReasonFSE" value="{!a.tsk.delayReasonSelectFSE__c}" />
|
</apex:outputPanel>
|
<apex:outputPanel rendered="{!IF(reportOwner.Job_Category__c != '销售服务', 'true', 'false')}" layout="none">
|
<apex:inputField id="tskidDelayReasonEscFSE" value="{!a.tsk.delayReasonSelect__c}" />
|
</apex:outputPanel>
|
</apex:outputPanel>
|
<!-- 2021-09-18 mzy 任务管理改善 end -->
|
</td>
|
<th>
|
其他:
|
</th>
|
<td>
|
<apex:inputText id="idDelayReason" value="{!a.delayReason}" style="width: 80px;" />
|
<!-- <apex:inputText id="idDelayReason" value="{!a.act.delayReason__c}" /> -->
|
</td>
|
<th>
|
延期日期选择:
|
</th>
|
<td>
|
<apex:input id="idDelayDate" value="{!a.delayToDate}" type="date"
|
/>
|
</td>
|
<th> </th>
|
<td><!-- <apex:commandButton value="延期" id="idDelay" reRender="Activities,idAddActPanel" action="{!delaysave}"
|
onclick="if(!window.confirm('您是否要延期日历上的活动?')){
|
return false;
|
}else{
|
var delayDate = Page:mainForm:idDayEdit:idActivities:0:idDelayDate
|
} "
|
style="width:100px;" >
|
<apex:param name="delIndex" value="{!a.index}" assignTo="{!delIndex}"/>
|
</apex:commandButton> -->
|
<!-- 2021-09-22 mzy 任务管理改善 start-->
|
<!--<apex:commandButton value="延期" id="idDelay" reRender="Activities,idAddActPanel"
|
onclick="delaysaveJS('{!a.index}','{!a.act.Event_ID__c}','{!a.taskDifferent}','{!a.delayTaskDelay}','{!a.latestDate}');return false;"
|
style="width:100px;" >
|
<apex:param name="delIndex" value="{!a.index}" assignTo="{!delIndex}"/>
|
</apex:commandButton>-->
|
<apex:commandButton value="延期" id="idDelay" reRender="Activities,idAddActPanel"
|
onclick="delaysaveJS('{!a.index}','{!a.act.Event_ID__c}','{!a.taskDifferent}','{!a.delayTaskDelay}','{!a.latestDate}');return false;"
|
style="width:100px;" >
|
</apex:commandButton>
|
<!-- 2021-09-22 mzy 任务管理改善 end-->
|
|
</td>
|
<!-- 20200420 任务日报管理 add gzw blockme(); end -->
|
<th> </th>
|
<td> </td>
|
<th> </th>
|
<td> </td>
|
<th> </th>
|
<td> </td>
|
<th> </th>
|
<td> </td>
|
<th> </th>
|
<!-- <td><apex:commandButton value="{!$Label.deleteLabel}" id="idDelete" action="{!deleteActivity}" reRender="Activities,idAddActPanel" onclick="if(!window.confirm(Message003)) return false;if((document.getElementById('Page:mainForm:idDayEdit:idActivities:' + {!a.index} + ':idProduct_Description_IdHidden').value != null && document.getElementById('Page:mainForm:idDayEdit:idActivities:' + {!a.index} + ':idProduct_Description_IdHidden').value != '') || (document.getElementById('Page:mainForm:idDayEdit:idActivities:' + {!a.index} + ':idOPD_IdHidden').value != null && document.getElementById('Page:mainForm:idDayEdit:idActivities:' + {!a.index} + ':idOPD_IdHidden').value != '') ||
|
(document.getElementById('Page:mainForm:idDayEdit:idActivities:' + {!a.index} + ':idNTC_IdHidden').value != null && document.getElementById('Page:mainForm:idDayEdit:idActivities:' + {!a.index} + ':idNTC_IdHidden').value != '') ||
|
(document.getElementById('Page:mainForm:idDayEdit:idActivities:' + {!a.index} + ':ididONCALL_IdHidden').value != null && document.getElementById('Page:mainForm:idDayEdit:idActivities:' + {!a.index} + ':ididONCALL_IdHidden').value != '') ||
|
(document.getElementById('Page:mainForm:idDayEdit:idActivities:' + {!a.index} + ':idReportAccompanied_IdHidden').value != null && document.getElementById('Page:mainForm:idDayEdit:idActivities:' + {!a.index} + ':idReportAccompanied_IdHidden').value != '') ||
|
(document.getElementById('Page:mainForm:idDayEdit:idActivities:' + {!a.index} + ':idCityStatus_IdHidden').value != null && document.getElementById('Page:mainForm:idDayEdit:idActivities:' + {!a.index} + ':idCityStatus_IdHidden').value != '') ||
|
(document.getElementById('Page:mainForm:idDayEdit:idActivities:' + {!a.index} + ':idImprovement_IdHidden').value != null && document.getElementById('Page:mainForm:idDayEdit:idActivities:' + {!a.index} + ':idImprovement_IdHidden').value != '') ||
|
(document.getElementById('Page:mainForm:idDayEdit:idActivities:' + {!a.index} + ':idConflict_IdHidden').value != null && document.getElementById('Page:mainForm:idDayEdit:idActivities:' + {!a.index} + ':idConflict_IdHidden').value != '') ||
|
</apex:commandButton>
|
</td> -->
|
<td> <!-- 20200420 gzw 任务日报管理 注释删除按钮 -->
|
<!--<apex:commandButton value="{!$Label.deleteLabel}" id="idDelete" action="{!deleteActivity}" reRender="Activities,idAddActPanel" onclick="if(!window.confirm(Message003)) return false;blockme();" onComplete="setVisitorPlaceDisabled();bindAllDoubleTap();unblockUI();" style="width:100px;" >
|
<apex:param name="delIndex" value="{!a.index}" assignTo="{!delIndex}"/>
|
</apex:commandButton> -->
|
</td>
|
</tr>
|
</table>
|
<Hr></Hr>
|
<!-- 20200420 任务日报管理 add gzw start -->
|
</fieldset>
|
<!-- 20200420 任务日报管理 add gzw end -->
|
</apex:repeat>
|
<script>
|
console.log('Load AWS Data');
|
searchContactAll();
|
</script>
|
</apex:outputPanel>
|
<apex:outputPanel id="idAddActPanel">
|
<table class="formtable" width="1200" border="0">
|
<colgroup>
|
<col width="45" />
|
<col width="3" />
|
<col width="110" />
|
<col width="20" />
|
<col width="110" />
|
<col width="20" />
|
<col width="110" />
|
<col width="20" />
|
<col width="110" />
|
<col width="20" />
|
<col width="110" />
|
<col width="20" />
|
<col width="110" />
|
<col width="20" />
|
<col width="110" />
|
<col width="20" />
|
<col width="110" />
|
</colgroup>
|
<tr>
|
<th> </th>
|
<td> </td>
|
<td><apex:commandButton value="{!$Label.Add_Line}" id="idAddAct" action="{!addActivity}"
|
reRender="Activities,idAddActPanel" onClick="blockme();"
|
onComplete="bindAllDoubleTap();setVisitorPlaceDisabled();unblockUI();initSetPage();"
|
style="width:100px;display:{!IF(actSize>14,'none','')}"/></td>
|
<th> </th>
|
<td> </td>
|
<th> </th>
|
<td> </td>
|
<th> </th>
|
<td> </td>
|
<th> </th>
|
<td> </td>
|
<th> </th>
|
<td> </td>
|
<th> </th>
|
<td> </td>
|
<th> </th>
|
<td> </td>
|
</tr>
|
</table>
|
</apex:outputPanel>
|
</div>
|
<div>
|
<div class="pbSubheader first tertiaryPalette">
|
<span class="pbSubExtra"><span class="requiredLegend"><span class="requiredExampleOuter"><span class="requiredExample"> </span></span><span class="requiredText"> = {!$Label.Required_Information}</span></span></span>
|
<h3>{!$Label.Add_Information}</h3>
|
</div>
|
<apex:outputPanel id="idManager">
|
<table class="formtable" width="1200" border="0">
|
<colgroup>
|
<col width="100" />
|
<col width="3" />
|
<col width="110" />
|
<col width="20" />
|
<col width="110" />
|
<col width="20" />
|
<col width="110" />
|
<col width="20" />
|
<col width="110" />
|
<col width="20" />
|
<col width="110" />
|
<col width="20" />
|
<col width="110" />
|
<col width="20" />
|
<col width="110" />
|
<col width="20" />
|
<col width="110" />
|
</colgroup>
|
<tr>
|
<th>{!$Label.From_Manager}<br/>{!$Label.Feedback}</th>
|
<td> </td>
|
<td colspan="15"><apex:inputField id="idFeedBack" value="{!report.Feed_Back_From_Manager__c}" style="width:1000px;height:55px;"/></td>
|
</tr>
|
<tr>
|
<th>{!$Label.Feedback}<br />{!$Label.To_Manager}</th>
|
<td> </td>
|
<td><apex:outputField value="{!report.FeedbackManager__c}" style="width:80px" /></td>
|
<td> </td>
|
<th>{!$Label.Send_Mail}{!$Label.Check}</th>
|
<td> </td>
|
<td><apex:inputField id="idMailSendCheck" value="{!report.Mail_Send_Check__c}" styleClass=""/></td>
|
<td> </td>
|
<!-- LHJ SWAG-BD54MV 20190814 Start-->
|
<!-- <td> </td>
|
<td> </td>
|
<td> </td>-->
|
<th>{!$Label.Status}</th>
|
<td> </td>
|
<td><span><div class="requiredInput"><div class="requiredBlock"></div><apex:inputField id="idStatus" value="{!report.Status__c}" styleClass="" /></div></span></td>
|
<td><apex:commandButton id="idCancelRequest" value="{!$Label.Daily_Btn_Cancel}" style="width:90px" action="{!cancelRequest}" disabled="{!!cancelRequestFlg}" rerender="dummy"/></td>
|
<!-- LHJ SWAG-BD54MV 20190814 End-->
|
|
|
<!-- <td><apex:commandButton id="idHome" value="{!$Label.Home_Back}" onclick="blockme();" style="width:100px" action="{!homeBack}" /></td>-->
|
|
<td> </td>
|
<td><apex:commandButton id="idDaily" value="{!$Label.Save_Back}"
|
onclick="blockme();" style="width:100px"
|
action="{!dailyBack}" rerender="mainForm" oncomplete="unblockUI();setVisitorPlaceDisabled();"/></td>
|
<td> </td>
|
<td><apex:commandButton styleClass="idSave" value="{!$Label.Save}" onclick="blockme();" style="width:100px" action="{!save}" rerender="mainForm" oncomplete="unblockUI();setVisitorPlaceDisabled();initSetPage();"/></td>
|
</tr>
|
</table>
|
</apex:outputPanel>
|
</div>
|
<div id="glayLayer" ></div>
|
<div id="divOPD" style="display:none;">
|
<table style="font-size:16px; font-weight:bold; width:100%">
|
<tr><td colspan="{!if(reportOwner.Job_Category__c=='销售推广',3,4)}" style="text-align:center; font-size: 20px;">请选择报表类型</td></tr>
|
<tr height="20px"></tr>
|
<apex:outputPanel layout="none" rendered="{!if(reportOwner.Job_Category__c=='销售推广',false,true)}">
|
<tr>
|
<!-- SWAG-BVW8CW 20201217 you start -->
|
<td width="25%" style="text-align:center;"><input type="radio" name="OPD/SIS" value="OPD" onclick="changeOPDSISRecordName(this.value);" checked="checked"/>跟台</td>
|
<td width="25%" style="text-align:center;"><input type="radio" name="OPD/SIS" value="SIS" onclick="changeOPDSISRecordName(this.value);"/>OPD</td>
|
<td width="25%" style="text-align:center;"><input type="radio" name="OPD/SIS" value="SIS_ET" onclick="changeOPDSISRecordName(this.value);"/>SIS-ET</td>
|
<td width="25%" style="text-align:center;"><input type="radio" name="OPD/SIS" value="SIS_ENG" onclick="changeOPDSISRecordName(this.value);"/>SIS-ENG</td>
|
<!-- SWAG-BVW8CW 20201217 you end -->
|
</tr>
|
<tr>
|
<td style="text-align:center;font-weight:normal;font-size:12px;">(产品主机担当/医院担当考核)</td>
|
<td style="text-align:center;font-weight:normal;font-size:12px;">主机试用报告</td>
|
<td style="text-align:center;font-weight:normal;font-size:12px;">SIS-ET</td>
|
<td style="text-align:center;font-weight:normal;font-size:12px;">SIS-ENG</td>
|
</tr>
|
</apex:outputPanel>
|
<!-- //2021/01/27 liying start SWAG-BXL6KU -->
|
<apex:outputPanel layout="none" rendered="{!if(reportOwner.Job_Category__c=='销售推广',true,false)}">
|
<tr>
|
<td width="33.3%" style="text-align:center;"><input type="radio" name="OPD/SIS" value="SIS" onclick="changeOPDSISRecordName(this.value);" checked="checked" />OPD</td>
|
<td width="33.3%" style="text-align:center;"><input type="radio" name="OPD/SIS" value="SIS_ET" onclick="changeOPDSISRecordName(this.value);"/>SIS-ET</td>
|
<td width="33.3%" style="text-align:center;"><input type="radio" name="OPD/SIS" value="SIS_ENG" onclick="changeOPDSISRecordName(
|
this.value);"/>SIS-ENG</td>
|
</tr>
|
<tr>
|
<td style="text-align:center;font-weight:normal;font-size:12px;">主机试用报告</td>
|
<td style="text-align:center;font-weight:normal;font-size:12px;">SIS-ET</td>
|
<td style="text-align:center;font-weight:normal;font-size:12px;">SIS-ENG</td>
|
</tr>
|
</apex:outputPanel>
|
|
<tr height="20px"></tr>
|
<tr>
|
<td colspan="{!if(reportOwner.Job_Category__c=='销售推广',3,4)}" style="text-align:center;">
|
<apex:commandButton id="OPDCreate" value="生成报表" onclick="createOPDSISReport();" rerender="dummy"/>
|
<apex:commandButton id="OPDCancel" value="取消" onclick="closeOPDSISDiv();" rerender="dummy"/>
|
</td>
|
</tr>
|
</table>
|
</div>
|
</apex:pageBlock>
|
</apex:form>
|
</apex:outputPanel>
|
<!-- //2021/01/27 liying start SWAG-BXL6KU -->
|
</apex:page>
|