| | |
| | | blockme(); |
| | | document.getElementById("allPage:allForm:allBlock:searchBlock:text1").value = ""; |
| | | document.getElementById("allPage:allForm:allBlock:searchBlock:val1").value = ""; |
| | | |
| | | |
| | | searchConsumableorderdetails(); |
| | | } |
| | | var selectedSize = 0; |
| | |
| | | <apex:pageBlock id="EDCline_1" > |
| | | <apex:commandButton style="display:none"/> |
| | | <apex:commandButton onclick="EditConsumable();" value="编辑" style="margin-left:30px;width:180px" rerender="dummy" rendered="{!!(editAble)}" disabled="{!IF(ambc.Change_status__c='已提交'||ambc.Change_status__c='批准'||ambc.Change_status__c='驳回',true,false)}"/> |
| | | |
| | | |
| | | <apex:commandButton onclick="SorderJs();" value="提交申请" style="margin-left:30px;width:180px" rerender="dummy" rendered="{!!(editAble )}" disabled="{!IF(ambc.Change_status__c='已提交'||ambc.Change_status__c='批准',true,false)}"/> |
| | | <apex:commandButton onclick="saveJs();" value="保存变更申请单" style="margin-left:30px;width:180px" rerender="dummy" rendered="{!IF((editAble) && ambc.Change_status__c !='驳回',true,false)}" /> |
| | | <apex:commandButton onclick="saveJs();" value="保存变更申请单" style="margin-left:30px;width:180px" rerender="dummy" rendered="{!IF(ambc.Change_status__c='驳回' && editAble,true,false)}" /> |
| | | <apex:commandButton onclick="DeleteConsumable();" value="删除" style="margin-left:30px;width:180px" rerender="dummy" rendered="{!!(editAble)}" disabled="{!IF(ambc.Change_status__c='已提交'||ambc.Change_status__c='批准'||ambc.Change_status__c='驳回',true,false)}"/> |
| | | <apex:commandButton onclick="backOrderJs();" value="再申请" style="margin-left:30px;width:180px" rerender="dummy" rendered="{!IF(ambc.Change_status__c='驳回' && !editAble,true,false)}" /> |
| | | </apex:pageBlock> |
| | | |
| | | |
| | | <apex:pageBlock title="变更申请单信息" id="unEditable" rendered="{!!(editAble)}"> |
| | | <table> |
| | | <colgroup> |
| | |
| | | <td align="right" >状 态:</td> |
| | | <td align="left" ><apex:outputField id="OrderStatus_out" value="{!ambc.Change_status__c}" style="width:100px"/></td> |
| | | <!-- <td/> --> |
| | | </tr> |
| | | </tr> |
| | | <tr> |
| | | |
| | | |
| | | <!-- <td/> --> |
| | | <td align="right">变更原因:</td> |
| | | <td align="left"> |
| | |
| | | <col width="180px"/> |
| | | <col width="60px"/> |
| | | <col width="60px"/> |
| | | |
| | | |
| | | </colgroup> |
| | | <tr> |
| | | <td align="right"></td> |
| | |
| | | <td> |
| | | <apex:selectList value="{!text1}" id="text1" size="1" style="width:90px"><apex:selectOptions value="{!textOpts}"/> |
| | | </apex:selectList> |
| | | </td> |
| | | </td> |
| | | <td> |
| | | <apex:inputText value="{!val1}" |
| | | id="val1" style="width:100px"/> |
| | |
| | | <tr > |
| | | |
| | | <td colspan="3"/> |
| | | |
| | | |
| | | <td colspan="4" style="height:50px"> 变更原因:<!-- <apex:selectList value="{!ambc.ChangeReason__c}" id="changeReason01" size="1" style="width:204px" onchange="ChangeReasonjs('{!ambc.ChangeReason__c}');"><apex:selectOptions value="{!changeReasonOpts}" /> --> |
| | | <!-- </apex:selectList> --> |
| | | <apex:inputField value="{!ambc.ChangeReason__c}" style="width:200px"></apex:inputField> |
| | | </td> |
| | | <td colspan="4">变更原因其他:<apex:inputText value="{!ambc.ChangeReason_text__c}" style="width:200px"/></td> |
| | | <!-- <td colspan="4">保修天数:<apex:inputText value="{!ambc.WarrantyDays__c}" style="width:200px"/></td> --> |
| | | |
| | | |
| | | </tr> |
| | | <!-- <tr></tr> --> |
| | | <tr> |
| | |
| | | <!-- <td colspan="4"> 保修天数:<apex:inputText value="{!ambc.WarrantyDays__c}" style="width:200px"/></td> --> |
| | | <!-- <td colspan="4"/> --> |
| | | </tr> |
| | | |
| | | |
| | | </table> |
| | | </apex:pageBlock> |
| | | <apex:outputPanel id="message"> |
| | |
| | | |
| | | </apex:pageBlock> |
| | | <!-- CHAN-BC6BV2 XHL AddStart 20190522 --> |
| | | <apex:pageBlock title="附件" id="accessory" rendered="{!isShow}"> |
| | | |
| | | <apex:pageBlock title="文件" id="accessory" rendered="{!isShow}"> |
| | | |
| | | <apex:pageBlockButtons location="top"> |
| | | <apex:commandButton value="附件上传" onclick="uploadingAttachmentJs();" disabled="{!IF(ambc.Change_status__c='已提交'||ambc.Change_status__c='批准',true,false)}"/> |
| | | <apex:commandButton value="文件上传" onclick="uploadingAttachmentJs();" disabled="{!IF(ambc.Change_status__c='已提交'||ambc.Change_status__c='批准',true,false)}"/> |
| | | </apex:pageBlockButtons> |
| | | <apex:pageBlockTable value="{!contents}" var="attachment" > |
| | | |
| | | |
| | | |
| | | |
| | | <apex:column headerValue="标题" style="width: 33%"> |
| | | <apex:outputField value="{!attachment.Title}"/> |
| | | </apex:column> |
| | |
| | | </apex:form> |
| | | <script> |
| | | </script> |
| | | </apex:page> |
| | | </apex:page> |