高章伟
2022-03-18 4bfe21c4b5ddc089ae5a95f4b10f6cff148b690d
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<apex:page id="Page" controller="OFSDailyReportController" standardStylesheets="false" sidebar="false" showHeader="false" action="{!init}">
<style>
/* div#hbbcontainer
{
    overflow:auto;
    width:100%;
    height:105px;
}
div#hbbcontainer tr.noHeader
{
    display:none;
}
 
.tr {
    height: 40px;
    border-bottom-style: groove;
}
 
a { text-decoration: none; color: black;} */
div.item-inner {
    font-size:14px;
}
</style>
<apex:includeScript value="{!URLFOR($Resource.framework7, 'dist/js/framework7.min.js')}"/>
<apex:stylesheet value="{!URLFOR($Resource.framework7, 'dist/css/framework7.min.css')}"/>
<script type="text/javascript">
    var myApp = new Framework7();
</script>
<apex:form id="allForm" styleClass="homeTab">
    <apex:pageBlock id="allBlock">
        <div class="list-block" style="margin:0px 5px; width:630px">
        <div class="list-group">
          <ul style="font-size:16px;text-align:center">
            <li class="list-group-title" style="height:40px">
                <div style="float:left;width:40px;color: black;margin-top:5px">到达</div>
                <div style="float:left;width:40px;color: black;margin-top:5px">离开</div>
                <div style="float:left;width:100px;color: black;margin-top:5px">时间</div>
                <div style="float:left;width:160px;color: black;margin-top:5px;">主题</div>
                <div style="float:left;width:80px;color: black;margin-top:5px">活动区分</div>
                <div style="float:left;width:180px;color: black;margin-top:5px;">访问场所</div>
            </li>
            <apex:variable value="{!1}" var="cnt" />
            <apex:repeat value="{!drList}" var="dr" id="ideventclist" >
                <li class="swipeout" style="background-color :{!IF(dr.wsFlg,'#A4A89C',IF(dr.leaveFlg,'#89D3ED',IF(dr.arriveFlg, '#EEDA18', IF(dr.nowEvent && dr.activityDate = TODAY() , '#FF837D', '#FFFFFF'))))};">
                  <div class="swipeout-content item-content">
                      <div class="item-inner">
                        <div class="item-title">
                            <div style="float:left;width:40px">
                                <apex:outputPanel layout="none" rendered="{!IF(dr.activityDate = TODAY() && dr.arriveFlg=false && dr.wsFlg=false, true, false)}">
                                    <a href="/OFSHpArrive?Id={!dr.eId}" class="external"><img style="width:25px" src="{!URLFOR($Resource.OFSIcon, 'Door_Enter_Arrow-512.png')}"/></a>
                                </apex:outputPanel>
                                <apex:outputPanel layout="none" rendered="{!IF(dr.activityDate = TODAY() && dr.arriveFlg=false && dr.wsFlg=false, false, true)}">
                                    &nbsp;
                                </apex:outputPanel>
                            </div>
                            <div style="float:left;width:40px">
                                <apex:outputPanel layout="none" rendered="{!IF(dr.activityDate = TODAY() && dr.leaveFlg=false && dr.wsFlg=false, true, false)}">
                                    <a href="/OFSHpLeave?Id={!dr.eId}" class="external"><img style="width:25px" src="{!URLFOR($Resource.OFSIcon, 'Door_Exit_Arrow-512.png')}"/></a>
                                </apex:outputPanel>
                                <apex:outputPanel layout="none" rendered="{!IF(dr.activityDate = TODAY() && dr.leaveFlg=true && dr.wsFlg=false, false, true)}">
                                    &nbsp;
                                </apex:outputPanel>
                            </div>
                            <div style="float:left;width:100px">
                                <apex:outputText value="{0,date,HH:mm}"><apex:param value="{!dr.starttime + 8/24}" /></apex:outputText>-
                                <apex:outputText value="{0,date,HH:mm}"><apex:param value="{!dr.endtime + 8/24}" /></apex:outputText>
                            </div>
                            <div style="float:left;width:160px;white-space: normal;"><apex:outputText value="{!dr.subject}"/></div>
                            <div style="float:left;width:80px"><apex:outputField value="{!dr.rec.Activity_Type2__c}"/></div>
                            <!-- TODO hospitallayout画面にskipする -->
                            <div style="float:left;width:180px;white-space: normal;">
                                <apex:outputPanel layout="none" rendered="{!NOT(ISBLANK(dr.rec.whatid__c))}">
                                    <a class="external" id="Loc_{!Text(cnt)}"  href="/apex/OFSHospitalLayout?wv=1&w=90&h=90&id={!
URLENCODE(dr.rec.whatid__c)}"><apex:outputText value="{!dr.location}"/></a>
                                </apex:outputPanel>
                                <apex:outputPanel layout="none" rendered="{!ISBLANK(dr.rec.whatid__c)}">
                                    <apex:outputText value="{!dr.location}"/>
                                </apex:outputPanel>   
                            </div>
                        </div>
                      </div>
                  </div>
                  <div class="swipeout-actions-right">
                    <apex:outputPanel layout="none" rendered="{!IF(dr.activityDate = TODAY() && (dr.arriveFlg=true || dr.leaveFlg=true), true, false)}">
                        <a href="/OFSHpCancel?Id={!dr.eId}" class="external">撤销</a>
                    </apex:outputPanel>
                    <apex:outputPanel layout="none" rendered="{!IF(dr.arriveFlg=false && dr.leaveFlg=false, true, false)}">
                        <a href="/OFSHpExcept?Id={!dr.eId}" class="external bg-red">{!IF(dr.wsflg, '对象内', '对象外')}</a>
                    </apex:outputPanel>
                    <a href="/OFSEventEdit?Id={!dr.eId}" class="external bg-blue">编辑</a>
                  </div>
                </li>
                <apex:variable value="{!cnt + 1}" var="cnt" />
            </apex:repeat>
          </ul>
          </div>
        </div>
    </apex:pageBlock>
</apex:form>
</apex:page>