|
@@ -7,6 +7,7 @@ class flow_meeting_keyClassModel extends flowModel
|
|
protected function flowinit(){
|
|
protected function flowinit(){
|
|
$this->subsubdatastyle = "custom:min-width:60px; padding: 15px; vertical-align:top;";
|
|
$this->subsubdatastyle = "custom:min-width:60px; padding: 15px; vertical-align:top;";
|
|
$this->meeting_room = m("meeting_room")->meetingRoomIdList();
|
|
$this->meeting_room = m("meeting_room")->meetingRoomIdList();
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
//删除单据时调用
|
|
//删除单据时调用
|
|
@@ -110,6 +111,30 @@ class flow_meeting_keyClassModel extends flowModel
|
|
// $zt = $nzt;
|
|
// $zt = $nzt;
|
|
// }
|
|
// }
|
|
// 有会议开始、结束时间时开启↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑
|
|
// 有会议开始、结束时间时开启↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑
|
|
|
|
+ $topic = m('meeting_topics')->getone("mid={$this->id}",'id, topic_state, topic_title', 'sort desc');
|
|
|
|
+ $rs['topic'] = $this->getTopicState($topic['topic_state']);
|
|
|
|
+
|
|
|
|
+ if ($zt == 0) {
|
|
|
|
+ $topic = m('meeting_topics')->getone("mid={$this->id}",'id, topic_state, topic_title', 'sort asc');
|
|
|
|
+ $rs['topic'] = $this->getTopicInfoState($topic);
|
|
|
|
+ } else if ($zt == 1) {
|
|
|
|
+ // 展示近几个议题状态
|
|
|
|
+ $topics = m('meeting_topics')->getall("mid={$this->id}",'id, topic_state, topic_title', 'sort');
|
|
|
|
+ for ($i = 0; $i < count($topics); $i++) {
|
|
|
|
+ $topic = $topics[$i];
|
|
|
|
+ if ($topic['topic_state'] == 3) {
|
|
|
|
+ $rs['topic'] = $this->getTopicInfoState($topic);
|
|
|
|
+ }
|
|
|
|
+ if ($topic['topic_state'] == 1) {
|
|
|
|
+ $rs['topic'] .= $this->getTopicInfoState($topic);
|
|
|
|
+ }
|
|
|
|
+ if ($topic['topic_state'] == 2) {
|
|
|
|
+ $rs['topic'] .= $this->getTopicInfoState($topic);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ } else if ($zt == 2) {
|
|
|
|
+ $rs['topic'] = '<font style="color:#ff4974"; padding: 4px 8px; border-radius: 4px;">已结束</font>.<br />';
|
|
|
|
+ }
|
|
|
|
|
|
// 会议状态-将id转换为文字
|
|
// 会议状态-将id转换为文字
|
|
$rs['meet_state'] = m("meeting")->getstatezt($zt);
|
|
$rs['meet_state'] = m("meeting")->getstatezt($zt);
|
|
@@ -121,7 +146,7 @@ class flow_meeting_keyClassModel extends flowModel
|
|
//单据判断条件从写$lx类型,$uid用户Id
|
|
//单据判断条件从写$lx类型,$uid用户Id
|
|
protected function flowbillwhere($lx, $uid){
|
|
protected function flowbillwhere($lx, $uid){
|
|
return [
|
|
return [
|
|
- 'order'=>'sort'
|
|
|
|
|
|
+ 'order'=>'meet_state, sort'
|
|
];
|
|
];
|
|
}
|
|
}
|
|
|
|
|
|
@@ -273,4 +298,19 @@ class flow_meeting_keyClassModel extends flowModel
|
|
return null;
|
|
return null;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ // 固定会议
|
|
|
|
+ public function fixedMeetings($mid='') {
|
|
|
|
+ $meets = $this->getall('sort = 5');
|
|
|
|
+ for ($i = 0; $i < count($meets); $i++) {
|
|
|
|
+ $meet = $meets[$i];
|
|
|
|
+ $id = $meet['id'];
|
|
|
|
+ $st = $meet['start_time'];
|
|
|
|
+ m('meeting_key')->update([
|
|
|
|
+ 'start_time'=>date("Y-m-d"),
|
|
|
|
+ 'meet_state'=>0
|
|
|
|
+ ], "id={$id}");
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|