Denny Chen
2022-02-28 6947068a02499b9d1022f9efca5bcf1bdd3f1c70
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<apex:page controller="DirectAssignController" showHeader="false" sidebar="false" id="allPage">
<script type="text/javascript">
  function confirmAssign() {
    return confirm("确认指定该申请单的暂定分配?");
    
  }
</script>
<style type="text/css">
  .bPageBlock .detailList .dataCol {
    width: 15%;
  }
</style>
<head>
  <apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/>
  <apex:stylesheet value="{!URLFOR($Resource.RentalFixtureSetAssignCss)}"/>
  <apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/>
  <apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/>
  <apex:includeScript value="{!URLFOR($Resource.RelationListPagingCmpJS)}"/>
</head>
<!-- note -->
   <apex:form id="allForm">
    <apex:outputPanel id="pageallPanel">
      <apex:pageBlock id="searchBlock" tabStyle="Report">
        <apex:pageBlockSection title="指定暂定分配画面" rendered="{!targetId==''}" >
          <apex:outputField value="{!raesd.Fixture_Model_No_text__c}"/>
          <apex:outputField value="{!raesd.Asset__c}"/>
        </apex:pageBlockSection>
 
        <apex:pageBlockSection columns="3" collapsible="false" title="抢夺暂定分配画面" rendered="{!targetId!=''}" >
            <apex:outputField value="{!raesd.Fixture_Model_No_text__c}" />
            <apex:outputField value="{!raesd.Asset__c}" />
            <apex:outputField label="原申请单号" value="{!raesd.Rental_Apply__r.Name}" />
        </apex:pageBlockSection>
 
        <div style="padding-left: 70px;margin: 10px;">
          <apex:outputLabel rendered="{!targetId==''}">
            <apex:outputLabel for="bieBeiPinFenLei" style="font-weight: bold; font-family: Arial,Helvetica,sans-serif; font-size: 91%;color: #4a4a56;" value="申请单号" />
            <apex:inputText label="申请单号" value="{!searchKey}"/>
            <apex:commandButton action="{!search}" value="检索" onclick="blockme();" rerender="allForm" oncomplete="unblockUI();"/>
          </apex:outputLabel>
          
          <div style="float: right;">
            <apex:commandButton action="{!backtoSetAssign}" value="返回" />
            <apex:commandButton action="{!quenTop}" value="原单排队No.置顶" onclick="if(!confirmAssign()) return false;blockme();" rerender="allForm" oncomplete="unblockUI();"/>
            <apex:commandButton action="{!quenBottom}" value="原单排队No.置底" onclick="if(!confirmAssign()) return false;blockme();" rerender="allForm" oncomplete="unblockUI();"/>
            <apex:commandButton action="{!quenToDiscard}" value="原单放弃排队" onclick="if(!confirmAssign()) return false;blockme();" rerender="allForm" oncomplete="unblockUI();"/>
          </div>
        </div>
        <apex:outputPanel id="message">
              <apex:pageMessages />
          </apex:outputPanel>
          <apex:pageBlockTable value="{!wrappers}" var="rased">
            <apex:column headerValue="选择">
                <apex:inputCheckbox value="{!rased.selected}"/>
            </apex:column>
            <apex:column value="{!rased.detail.Rental_Apply__r.Name}" ></apex:column>
            <apex:column value="{!rased.detail.Rental_Apply_Equipment_Set__r.Name}"></apex:column>
            <apex:column value="{!rased.detail.Queue_Day__c}"></apex:column>
            <apex:column value="{!rased.detail.Queue_Number__c}"></apex:column>
            <apex:column value="{!rased.detail.Rental_Apply__r.WorkPlace__c}"></apex:column>
            <apex:column value="{!rased.detail.Rental_Apply__r.Person_In_Charge__r.Name}"></apex:column>
            <apex:column value="{!rased.detail.Rental_Apply__r.demo_purpose2__c}"></apex:column>
            <apex:column value="{!rased.detail.Allow_Adjust_Queue_Flag__c}"></apex:column>
            <apex:column value="{!rased.detail.jumpReason__c}"></apex:column>
            <apex:column value="{!rased.detail.Queue_Conment__c}"></apex:column>
            <apex:column value="{!rased.detail.Queue_User__r.Name}"></apex:column>
            <apex:column value="{!rased.detail.Salesdepartment_before__c}"></apex:column>
            <apex:column value="{!rased.detail.Equipment_Type_text__c}"></apex:column>
          </apex:pageBlockTable>
          
      </apex:pageBlock>
    </apex:outputPanel>
  </apex:form>
</apex:page>