| | |
| | | </apex:actionFunction> |
| | | <apex:actionFunction name="setEditAble" action="{!setEditAble}" rerender="mpdDetailsSection,edmpdDetails, message" onComplete="unblockUI();"> |
| | | </apex:actionFunction> |
| | | <apex:actionFunction name="FilesUpload" action="{!FilesUpload}" rerender="mpdDetailsSection,edmpdDetails, message" onComplete="unblockUI();"> |
| | | <apex:actionFunction name="FilesUpload" action="{!FilesUploadLightning}" rerender="mpdDetailsSection,edmpdDetails, message" onComplete="unblockUI();"> |
| | | </apex:actionFunction> |
| | | <apex:actionFunction name="Submitmpd" action="{!Submitmpd}" rerender="mpdDetailsSection,edmpdDetails, message" onComplete="unblockUI();init();"> |
| | | </apex:actionFunction> |
| | |
| | | <apex:pageBlock id="EDCline_1" > |
| | | <apex:commandButton onclick="EditMpd();" value="编辑" style="margin-left:30px;width:180px" rerender="mpdDetailsSection,edmpdDetails,message" rendered="{!!editAble }" disabled="{!IF(mpd.Status__c ='草案中'||mpd.Status__c='已驳回'||!editDisabled,false,true)}"/> |
| | | |
| | | <apex:commandButton onclick="FilesUploadJs();" value="上传附件" style="margin-left:30px;width:180px" rerender="mpdDetailsSection,message" rendered="{!!(EditDelCommitBtnDisabled||editAble)}" disabled="{!IF(mpd.Status__c ='草案中'||mpd.Status__c='已驳回'||!editDisabled,false,true)}"/> |
| | | <apex:commandButton onclick="FilesUploadJs();" value="上传文件" style="margin-left:30px;width:180px" rerender="mpdDetailsSection,message" rendered="{!!(EditDelCommitBtnDisabled||editAble)}" disabled="{!IF(mpd.Status__c ='草案中'||mpd.Status__c='已驳回'||!editDisabled,false,true)}"/> |
| | | |
| | | <apex:commandButton onclick="SubmitmpdJs();" value="提交待审批" style="margin-left:30px;width:180px" rerender="unEditable" rendered="{!!(EditDelCommitBtnDisabled||editAble)}" disabled="{!IF(mpd.Status__c ='草案中'||mpd.Status__c='已驳回',false,true)}"/> |
| | | <apex:commandButton onclick="Update();" value="保存维护记录" style="margin-left:30px;width:180px" rerender="edmpdDetails" rendered="{!IF(editAble,true,false)}" /> |
| | |
| | | <apex:variable var="edv" value="" rendered="{!editAble}" id="edvariable"> |
| | | <apex:outputPanel rendered="{!(edc.size==1)}" layout="none"> |
| | | <apex:outputPanel layout="none" rendered="{!IF((RecordTypeName = 'GuranteeMain'&& !contains(GuranteeMainProductService,edc[0]))||RecordTypeName != 'GuranteeMain',true , false)}"> |
| | | <apex:InputField value="{!aa.mpded[edc[0]]}" id="edtheValue" style="max-width: 120px;min-width: 10px"/> |
| | | <apex:InputField value="{!aa.mpded[edc[0]]}" id="edtheValue" style="max-width: 120px;min-width: 10px;margin-bottom: 0px;"/> |
| | | </apex:outputPanel> |
| | | <apex:outputPanel layout="none" rendered="{!IF((RecordTypeName = 'GuranteeMain'&& !contains(GuranteeMainProductService,edc[0]))||RecordTypeName != 'GuranteeMain',false , true)}"> |
| | | <apex:outputField value="{!aa.mpded[edc[0]]}"/> |
| | |
| | | </apex:pageBlock> |
| | | </apex:outputPanel> |
| | | </apex:form> |
| | | <apex:pageBlock title="附件" id="mpdataSection" rendered="{!!editAble}"> |
| | | <apex:pageBlock title="文件" id="mpdataSection" rendered="{!!editAble}"> |
| | | <apex:pageBlockTable value="{!AttachmentRecoeds}" var="a" > |
| | | <apex:column headerValue="标题" style="width: 33%"> |
| | | <apex:outputLink value="/{!a.Concc.Id}?retURL={!URLENCODE('/apex/MaintenanceProductData?id='+id)}" target="_self"> |
| | | {!a.Concc.name} |
| | | {!a.Concc.Title} |
| | | </apex:outputLink> |
| | | </apex:column> |
| | | <apex:column headerValue="创建人"> |