You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

5226 lines
229 KiB
Go

4 weeks ago
package localcache
import (
"encoding/json"
"encoding/xml"
"flx/Common"
"flx/Model"
"flx/websocketservers"
"fmt"
"reflect"
"sort"
"strconv"
"strings"
"time"
"unsafe"
log "github.com/sirupsen/logrus"
)
// 当前报到委员
var CurrentPerson *Model.T_AgendaPerson
// 所有人员信息
var AllPerson []*Model.T_AgendaPerson
// 当前会议信息
var CurrentAgenda Model.T_Agenda
var CurrentCongress Model.T_Congress
// 应到人员
var ShouldNum int
// 实到人员
var ArriveNum int
// 本机报到人员
var CArriveNum int = 0
// 本机报到人员ID
var CArrivePersonsID []string
// 未到人员
var NoArriveNum int
var ALLAPinfo []Model.T_AgendaPerson
//---------------------------------------------------------------
var CurrentScreenSessionStatus Common.SessionStatus
// id对应字典表
var MDDictionary map[string]*Model.TDictionary
var Currentreportper *Model.T_AgendaPerson = nil
// 基础人员map
var MStIDStaffInfo map[string]*Model.T_StaffInfo
// 民族字典表
var MNations map[string]*Model.TDicNation
var MGroups map[string]*Model.TStaffgroup
var MIDStaffCategory map[string]*Model.TStaffcategory
var SysSets []*Model.TSysset
var AllSysSet map[string]*Model.TSysset
var AllScren []Model.TScreen
var MIDScren = make(map[string]Model.TScreen)
// 所有窗体
var AllScrenForm []Model.TScreenform
// 所有窗体事件
var AllScreenFormEvent []Model.TScreenformevent
//问题上面的都是新加的从cpcs获取-----------------------------------------------------------------------------------
// 五秒内不处理重复卡号
var LastCardTime = make(map[string]time.Time)
// 可修改应到人数
var CanChangePersonDueCount int
// 可修改实到人数
var CanChangePersonInCount int
// 当前会议议题
var CurrentTopic *Model.TTopic
var CurrentTopicChildTopic []*Model.TTopic
// 大屏多项议题当前议题编号
var IndexChildTopic int
// 大屏多项议题当前页
var IndexPageTopic int
// 全部按键人数
var FinishPerson int
// 部分按键人数
var PartFinishPerson int
// 未按键人数
var NoPressPerson int
// 定时表决剩余时间
var VoteCursorTimer int
// 申请发言人员
var ApplySpeakPersons []*Model.SpeakingPerson
// 发言人员
var SpeakingPersons []*Model.SpeakingPerson
// 发言过人员列表
var SpeakedPersons []*Model.T_AgendaPerson
// var MScreenData map[string]map[string]interface{}
var MScreenData = make(map[string]map[string]interface{})
// 照片列表人员信息
var Allperpiccontent []map[string]interface{}
func TacitScreen(parametermap map[string]interface{}) (resultmap map[string]interface{}) {
defer func() {
if r := recover(); r != nil {
// tempresultmap[common.DBRESULT] = "发生错误,无法获取数据"
log.Error("TacitScreen:", r)
}
}()
AllScreenValue := make(map[string]interface{})
//global.GlobalDBConnectImpl.InitMysqlDB()
sfeparametermap := make(map[string]interface{})
sfparametermap := make(map[string]interface{})
if nil != parametermap["id"] {
sfeparametermap["sfe_screenid"] = parametermap["id"].(string)
}
sfeparametermap["sfe_typename"] = CurrentScreenSessionStatus //临时写死,使用时改成 sfeparametermap["sfe_typename"] = CurrentScreenSessionStatus
screenformeventvalue, _ := GetAllOrder(sfeparametermap)
for n := 0; n < len(screenformeventvalue); n++ {
value := screenformeventvalue[n]
sfid := value.Sfe_sf_id
if sfid == "" {
continue
}
if MIDScren[value.Sfe_screenid].Scr_sortid != 5555 {
continue
}
sfparametermap["id"] = sfid
screenformmap := make(map[string]interface{})
screenformmap, _ = Getscreenform(sfparametermap)
// if err == nil {
var MScreenValue map[string]interface{}
MScreenValue = make(map[string]interface{})
var screenformvalue Model.TScreenform
var adev []map[string]interface{}
if len(screenformmap) != 0 {
screenformvalue = screenformmap[Common.DATALIST].(Model.TScreenform)
adev = screenformmap[Common.DBRESULT].([]map[string]interface{})
if value.Sfe_screenid != screenformvalue.Sf_screenid {
fmt.Println("--------")
}
// adev := screenformmap[Common.DBRESULT].([]map[string]interface{})
// screenformvalue.Sf_content=
for _, item := range adev {
// AllEventID = append(AllEventID, item["bindingFieldID"].(string))
// }
// // for i := 0; i < len(adev); i++ {
// // AllEventID = append(AllEventID, devicenode.Device[i].BindingFieldID)
// // }
// for i := 0; i < len(AllEventID); i++ {
switch item["bindingFieldID"].(string) {
case Common.None_ScreenBindingID:
break
case Common.Time_ScreenBindingID:
MScreenValue[Common.Time_ScreenBindingID] = time.Now()
break
case Common.Date_ScreenBindingID:
//通过接口获取cpcd时间
MScreenValue[Common.Date_ScreenBindingID] = time.Now()
break
case Common.CompanyName_ScreenBindingID:
MScreenValue[Common.CompanyName_ScreenBindingID] = "北京飞利信科技股份有限公司"
break
case Common.SponsorName_ScreenBindingID:
MScreenValue[Common.SponsorName_ScreenBindingID] = CurrentCongress.Co_HostUnit
break
case Common.SessionMajorTitle_ScreenBindingID:
MScreenValue[Common.SessionMajorTitle_ScreenBindingID] = CurrentAgenda.Ag_Name
break
case Common.SessionLongName_ScreenBindingID:
MScreenValue[Common.SessionLongName_ScreenBindingID] = CurrentCongress.Co_Name + CurrentAgenda.Ag_Name
break
case Common.SessionMinorTitle_ScreenBindingID:
MScreenValue[Common.SessionMinorTitle_ScreenBindingID] = CurrentAgenda.Ag_Content
break
case Common.SessionTitleFormat_ScreenBindingID:
MScreenValue[Common.SessionTitleFormat_ScreenBindingID] = CurrentCongress.Co_Name
break
case Common.CongressType_ScreenBindingID:
//问题MDDictionary通过cpcs获得
MScreenValue[Common.CongressType_ScreenBindingID] = MDDictionary[CurrentAgenda.Ag_Type].Dic_name
break
case Common.PeoplesDueCount_ScreenBindingID:
MScreenValue[Common.PeoplesDueCount_ScreenBindingID] = len(AllPerson)
break
case Common.PeoplesInCount_ScreenBindingID:
var InCount = 0
for j := 0; j < len(AllPerson); j++ {
if AllPerson[j].AP_CheckState == 1 {
InCount++
}
}
MScreenValue[Common.PeoplesInCount_ScreenBindingID] = InCount
break
case Common.PeoplesAbsentCount_ScreenBindingID:
var NotInCount = 0
for j := 0; j < len(AllPerson); j++ {
if AllPerson[j].AP_CheckState != 1 {
NotInCount++
}
}
MScreenValue[Common.PeoplesAbsentCount_ScreenBindingID] = NotInCount
break
case Common.PeoplesRequestedForAbsentCount_ScreenBindingID:
var RequestedCount = 0
for j := 0; j < len(AllPerson); j++ {
if AllPerson[j].AP_Status != "20" && AllPerson[j].AP_CheckState != 1 && AllPerson[j].AP_VotePower == 1 {
RequestedCount++
}
}
MScreenValue[Common.PeoplesRequestedForAbsentCount_ScreenBindingID] = RequestedCount
break
case Common.PeolesUncheckedInCount_ScreenBindingID:
var RequestedCount = 0
for j := 0; j < len(AllPerson); j++ {
if AllPerson[j].AP_CheckState != 1 && AllPerson[j].AP_VotePower == 1 {
RequestedCount++
}
}
MScreenValue[Common.PeolesUncheckedInCount_ScreenBindingID] = RequestedCount
break
case Common.CurrentCheckingPeoplesName_ScreenBindingID:
//问题 Currentreportper未赋值
if Currentreportper != nil {
// 问题 MStIDStaffInfo从cpcs获取
MScreenValue[Common.CurrentCheckingPeoplesName_ScreenBindingID] = MStIDStaffInfo[Currentreportper.AP_StaffID].St_Name
} else {
MScreenValue[Common.CurrentCheckingPeoplesName_ScreenBindingID] = ""
}
break
case Common.CurrentCheckingPeoplesUnit_ScreenBindingID:
if Currentreportper != nil {
MScreenValue[Common.CurrentCheckingPeoplesUnit_ScreenBindingID] = MStIDStaffInfo[Currentreportper.AP_StaffID].St_WorkUnit
} else {
MScreenValue[Common.CurrentCheckingPeoplesUnit_ScreenBindingID] = ""
}
break
case Common.CurrentCheckingPeoplesDangPai_ScreenBindingID:
if Currentreportper != nil {
MScreenValue[Common.CurrentCheckingPeoplesDangPai_ScreenBindingID] = MDDictionary[MStIDStaffInfo[Currentreportper.AP_StaffID].St_PartyID].Dic_name
} else {
MScreenValue[Common.CurrentCheckingPeoplesDangPai_ScreenBindingID] = ""
}
break
case Common.CurrentCheckingPeoplesLevel_ScreenBindingID:
if Currentreportper != nil {
MScreenValue[Common.CurrentCheckingPeoplesLevel_ScreenBindingID] = MStIDStaffInfo[Currentreportper.AP_StaffID].St_Job
} else {
MScreenValue[Common.CurrentCheckingPeoplesLevel_ScreenBindingID] = ""
}
break
case Common.CurrentCheckingPeoplesMinzu_ScreenBindingID:
if Currentreportper != nil {
//问题 MNations从cpcs获取
if MStIDStaffInfo[Currentreportper.AP_StaffID].St_NationID != "" {
MScreenValue[Common.CurrentCheckingPeoplesMinzu_ScreenBindingID] = MNations[MStIDStaffInfo[Currentreportper.AP_StaffID].St_NationID].Nationname
} else {
MScreenValue[Common.CurrentCheckingPeoplesMinzu_ScreenBindingID] = ""
}
} else {
MScreenValue[Common.CurrentCheckingPeoplesMinzu_ScreenBindingID] = ""
}
break
case Common.CurrentCheckingPeoplesGroup_ScreenBindingID:
if Currentreportper != nil {
//问题 MGroups从cpcs获取
MScreenValue[Common.CurrentCheckingPeoplesGroup_ScreenBindingID] = MGroups[MStIDStaffInfo[Currentreportper.AP_StaffID].St_GroupID].Gr_name
} else {
MScreenValue[Common.CurrentCheckingPeoplesGroup_ScreenBindingID] = ""
}
break
case Common.CurrentCheckingPeoplesJiGuan_ScreenBindingID:
MScreenValue[Common.CurrentCheckingPeoplesJiGuan_ScreenBindingID] = ""
break
case Common.CurrentCheckingPeoplesShenFenZheng_ScreenBindingID:
if Currentreportper != nil {
MScreenValue[Common.CurrentCheckingPeoplesShenFenZheng_ScreenBindingID] = MStIDStaffInfo[Currentreportper.AP_StaffID].St_CardNum
} else {
MScreenValue[Common.CurrentCheckingPeoplesShenFenZheng_ScreenBindingID] = ""
}
break
case Common.CurrentCheckingRenYuanLeiXing_ScreenBindingID:
if Currentreportper != nil {
MScreenValue[Common.CurrentCheckingRenYuanLeiXing_ScreenBindingID] = MIDStaffCategory[MStIDStaffInfo[Currentreportper.AP_StaffID].St_CategoryID].Ca_name
} else {
MScreenValue[Common.CurrentCheckingRenYuanLeiXing_ScreenBindingID] = ""
}
break
// case Common.CurrentCheckingPeopleZhengJianLeiXing_ScreenBindingID:
// if Currentreportper!=nil {
// MScreenValue[Common.CurrentCheckingPeopleZhengJianLeiXing_ScreenBindingID]=MDDictionary[Currentreportper.Ap_cardtype].Dic_name
// }else{
// MScreenValue[Common.CurrentCheckingPeopleZhengJianLeiXing_ScreenBindingID]=""
// }
// break;
case Common.PeolesBiaoJuecheckedInPercent_ScreenBindingID:
MScreenValue[Common.PeolesBiaoJuecheckedInPercent_ScreenBindingID] = strconv.Itoa(ArriveNum*100/ShouldNum) + "%"
break
case Common.PeolescheckedInPercent_ScreenBindingID:
var InCount = 0
for j := 0; j < len(ALLAPinfo); j++ {
if ALLAPinfo[j].AP_CheckState == 1 {
InCount++
}
}
MScreenValue[Common.PeolescheckedInPercent_ScreenBindingID] = strconv.Itoa(InCount*100/len(ALLAPinfo)) + "%"
break
case Common.PeoplesCanDueCount_ScreenBindingID:
MScreenValue[Common.PeoplesCanDueCount_ScreenBindingID] = strconv.Itoa(CanChangePersonDueCount)
break
case Common.PeoplesInCanCount_ScreenBindingID:
MScreenValue[Common.PeoplesInCanCount_ScreenBindingID] = strconv.Itoa(CanChangePersonInCount)
break
case Common.PeoplesAbsentCanCount_ScreenBindingID:
MScreenValue[Common.PeoplesAbsentCanCount_ScreenBindingID] = strconv.Itoa(CanChangePersonDueCount - CanChangePersonInCount)
break
case Common.CurrentRefrushCardStatePrompt_ScreenBindingID:
MScreenValue[Common.CurrentRefrushCardStatePrompt_ScreenBindingID] = ""
break
case Common.ThisClientPCInCountOfPerson_ScreenBindingID:
MScreenValue[Common.ThisClientPCInCountOfPerson_ScreenBindingID] = CArriveNum
break
case Common.ThisClientPCInCountOfOfDelegate_ScreenBindingID:
MScreenValue[Common.ThisClientPCInCountOfOfDelegate_ScreenBindingID] = ""
break
case Common.ThisClientPCCurrentPeopleName_ScreenBindingID:
MScreenValue[Common.ThisClientPCCurrentPeopleName_ScreenBindingID] = ""
break
case Common.ThisClientPCCurrentPeopleUnit_ScreenBindingID:
MScreenValue[Common.ThisClientPCCurrentPeopleUnit_ScreenBindingID] = ""
break
case Common.ThisClientPCCurrentPeopleLevel_ScreenBindingID:
MScreenValue[Common.ThisClientPCCurrentPeopleLevel_ScreenBindingID] = ""
break
case Common.ThisClientPCCurrentPeoplePhoto_ScreenBindingID:
MScreenValue[Common.ThisClientPCCurrentPeoplePhoto_ScreenBindingID] = ""
break
case Common.ThisClientPCCurrentPeopleTip_ScreenBindingID:
MScreenValue[Common.ThisClientPCCurrentPeopleTip_ScreenBindingID] = ""
break
case Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID:
MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID] = ""
break
case Common.ThisClientPCCurrentPeopleSpeakTip_ScreenBindingID:
MScreenValue[Common.ThisClientPCCurrentPeopleSpeakTip_ScreenBindingID] = ""
break
case Common.ThisClientPCCurrentPeopleMinzu_ScreenBindingID:
MScreenValue[Common.ThisClientPCCurrentPeopleMinzu_ScreenBindingID] = ""
break
case Common.ThisClientPCCurrentPeopleDangPai_ScreenBindingID:
MScreenValue[Common.ThisClientPCCurrentPeopleDangPai_ScreenBindingID] = ""
break
case Common.ThisClientPCCurrentPeopleGroup_ScreenBindingID:
MScreenValue[Common.ThisClientPCCurrentPeopleGroup_ScreenBindingID] = ""
break
case Common.ThisClientPCCurrentPeopleSeatRow_ScreenBindingID:
MScreenValue[Common.ThisClientPCCurrentPeopleSeatRow_ScreenBindingID] = ""
break
case Common.ThisClientPCCurrentPeopleSeatColumn_ScreenBindingID:
MScreenValue[Common.ThisClientPCCurrentPeopleSeatColumn_ScreenBindingID] = ""
break
case Common.ThisClientPCCurrentPeopleSeatInfo_ScreenBindingID:
MScreenValue[Common.ThisClientPCCurrentPeopleSeatInfo_ScreenBindingID] = ""
break
case Common.ThisClientPCCurrentPeopleSeatArea_ScreenBindingID:
MScreenValue[Common.ThisClientPCCurrentPeopleSeatArea_ScreenBindingID] = ""
break
case Common.ThisClientPCCurrentPeopleMeetingPlace_ScreenBindingID:
MScreenValue[Common.ThisClientPCCurrentPeopleMeetingPlace_ScreenBindingID] = ""
break
case Common.ThisClientPCCurrentPeopleJiGuan_ScreenBindingID:
MScreenValue[Common.ThisClientPCCurrentPeopleJiGuan_ScreenBindingID] = ""
break
case Common.ThisClientPCCurrentPeopleShenFenZheng_ScreenBindingID:
MScreenValue[Common.ThisClientPCCurrentPeopleShenFenZheng_ScreenBindingID] = ""
break
case Common.ThisClientPCCurrentPeopleRenYuanLeiXing_ScreenBindingID:
MScreenValue[Common.ThisClientPCCurrentPeopleRenYuanLeiXing_ScreenBindingID] = ""
break
case Common.ThisClientPCCurrentPeopleZhengJianLeiXing_ScreenBindingID:
MScreenValue[Common.ThisClientPCCurrentPeopleZhengJianLeiXing_ScreenBindingID] = ""
break
case Common.ThisClientPCCurrentPeopleXiWei_ScreenBindingID:
MScreenValue[Common.ThisClientPCCurrentPeopleXiWei_ScreenBindingID] = ""
break
case Common.LocalPeopleTypeCount_ScreenBindingID:
MScreenValue[Common.LocalPeopleTypeCount_ScreenBindingID] = ""
break
case Common.LocalQuanxianPeopleTypeCount_ScreenBindingID:
MScreenValue[Common.LocalQuanxianPeopleTypeCount_ScreenBindingID] = ""
break
case Common.YindaoPeople_ScreenBindingID:
MScreenValue[Common.YindaoPeople_ScreenBindingID] = ShouldNum
break
case Common.PeopleTypeCount_ScreenBindingID:
MScreenValue[Common.PeopleTypeCount_ScreenBindingID] = ""
break
case Common.WeidaoPeople_ScreenBindingID:
MScreenValue[Common.WeidaoPeople_ScreenBindingID] = NoArriveNum
break
case Common.YindaoBiaojuePeople_ScreenBindingID:
MScreenValue[Common.YindaoBiaojuePeople_ScreenBindingID] = ShouldNum
break
case Common.PeopleBiaojueType_ScreenBindingID:
MScreenValue[Common.PeopleBiaojueType_ScreenBindingID] = ArriveNum
break
case Common.WeidaobiaojuePeple_ScreenBindingID:
MScreenValue[Common.WeidaobiaojuePeple_ScreenBindingID] = NoArriveNum
break
case Common.KuoZhan1_ScreenBindingID:
MScreenValue[Common.KuoZhan1_ScreenBindingID] = Currentreportper.AP_Remark
break
case Common.KuoZhan2_ScreenBindingID:
MScreenValue[Common.KuoZhan2_ScreenBindingID] = ""
break
case Common.KuoZhan3_ScreenBindingID:
MScreenValue[Common.KuoZhan3_ScreenBindingID] = ""
break
case Common.YindaoWUBiaojuePeople_ScreenBindingID:
var WuPeopleCount = 0
for j := 0; j < len(AllPerson); j++ {
if AllPerson[j].AP_VotePower != 1 {
WuPeopleCount++
}
}
MScreenValue[Common.YindaoWUBiaojuePeople_ScreenBindingID] = WuPeopleCount
break
case Common.PeopleWUBiaojueType_ScreenBindingID:
var WuArriPeopleCount = 0
for j := 0; j < len(AllPerson); j++ {
if AllPerson[j].AP_VotePower != 1 && AllPerson[j].AP_CheckState == 1 {
WuArriPeopleCount++
}
}
MScreenValue[Common.PeopleWUBiaojueType_ScreenBindingID] = WuArriPeopleCount
break
case Common.WeidaoWUbiaojuePeple_ScreenBindingID:
var WuNotArriPeopleCount = 0
for j := 0; j < len(AllPerson); j++ {
if AllPerson[j].AP_VotePower != 1 && AllPerson[j].AP_CheckState != 1 {
WuNotArriPeopleCount++
}
}
MScreenValue[Common.WeidaoWUbiaojuePeple_ScreenBindingID] = WuNotArriPeopleCount
break
case Common.AnJian1Mingcheng_ScreenBindingID:
MScreenValue[Common.AnJian1Mingcheng_ScreenBindingID] = CurrentTopic.To_buttononename
break
case Common.AnJianValue_ScreenBindingID:
MScreenValue[Common.AnJianValue_ScreenBindingID] = CurrentTopic.To_buttononenum + CurrentTopic.To_buttontwonum + CurrentTopic.To_buttonthreenum + CurrentTopic.To_buttonfournum + CurrentTopic.To_buttonfivenum
break
case Common.AnJian1Value_ScreenBindingID:
MScreenValue[Common.AnJian1Value_ScreenBindingID] = CurrentTopic.To_buttononenum
break
case Common.AnJian2Mingcheng_ScreenBindingID:
MScreenValue[Common.AnJian2Mingcheng_ScreenBindingID] = CurrentTopic.To_buttontwoname
break
case Common.AnJian2Value_ScreenBindingID:
MScreenValue[Common.AnJian2Value_ScreenBindingID] = CurrentTopic.To_buttontwonum
break
case Common.AnJian3Mingcheng_ScreenBindingID:
MScreenValue[Common.AnJian3Mingcheng_ScreenBindingID] = CurrentTopic.To_buttonthreename
break
case Common.AnJian3Value_ScreenBindingID:
MScreenValue[Common.AnJian3Value_ScreenBindingID] = CurrentTopic.To_buttonthreenum
break
case Common.AnJian4Mingcheng_ScreenBindingID:
MScreenValue[Common.AnJian4Mingcheng_ScreenBindingID] = CurrentTopic.To_buttonfourname
break
case Common.AnJian4Value_ScreenBindingID:
MScreenValue[Common.AnJian4Value_ScreenBindingID] = CurrentTopic.To_buttonfournum
break
case Common.AnJian5Mingcheng_ScreenBindingID:
MScreenValue[Common.AnJian5Mingcheng_ScreenBindingID] = CurrentTopic.To_buttonfivename
break
case Common.AnJian5Value_ScreenBindingID:
MScreenValue[Common.AnJian5Value_ScreenBindingID] = CurrentTopic.To_buttonfivenum
break
case Common.WaiverOrUnPushDownCount_ScreenBindingID:
MScreenValue[Common.WaiverOrUnPushDownCount_ScreenBindingID] = CurrentTopic.To_actualnum - CurrentTopic.To_buttonnotnum - CurrentTopic.To_buttontwonum
break
case Common.VoteUndeclareCount_ScreenBindingID:
MScreenValue[Common.VoteUndeclareCount_ScreenBindingID] = CurrentTopic.To_buttonnotnum
break
case Common.UnvoteInformation_ScreenBindingID:
MScreenValue[Common.UnvoteInformation_ScreenBindingID] = "请按表决键表决"
break
case Common.AnJian1Percent_ScreenBindingID:
if CurrentTopic.To_actualnum != 0 {
MScreenValue[Common.AnJian1Percent_ScreenBindingID] = strconv.Itoa(int(CurrentTopic.To_buttononenum*100/CurrentTopic.To_actualnum)) + "%"
}
break
case Common.AnJian2Percent_ScreenBindingID:
if CurrentTopic.To_actualnum != 0 {
MScreenValue[Common.AnJian2Percent_ScreenBindingID] = strconv.Itoa(int(CurrentTopic.To_buttontwonum*100/CurrentTopic.To_actualnum)) + "%"
}
break
case Common.AnJian3Percent_ScreenBindingID:
if CurrentTopic.To_actualnum != 0 {
MScreenValue[Common.AnJian3Percent_ScreenBindingID] = strconv.Itoa(int(CurrentTopic.To_buttonthreenum*100/CurrentTopic.To_actualnum)) + "%"
}
break
case Common.AnJian4Percent_ScreenBindingID:
if CurrentTopic.To_actualnum != 0 {
MScreenValue[Common.AnJian4Percent_ScreenBindingID] = strconv.Itoa(int(CurrentTopic.To_buttonfournum*100/CurrentTopic.To_actualnum)) + "%"
}
break
case Common.AnJian5Percent_ScreenBindingID:
if CurrentTopic.To_actualnum != 0 {
MScreenValue[Common.AnJian5Percent_ScreenBindingID] = strconv.Itoa(int(CurrentTopic.To_buttonfivenum*100/CurrentTopic.To_actualnum)) + "%"
}
break
case Common.UnPushDownPercent_ScreenBindingID:
if CurrentTopic.To_actualnum != 0 {
MScreenValue[Common.UnPushDownPercent_ScreenBindingID] = strconv.Itoa(int(CurrentTopic.To_buttonnotnum*100/CurrentTopic.To_actualnum)) + "%"
}
break
case Common.PushDownPercent_ScreenBindingID:
if CurrentTopic.To_actualnum != 0 {
MScreenValue[Common.PushDownPercent_ScreenBindingID] = strconv.Itoa(int((CurrentTopic.To_buttonnotnum+CurrentTopic.To_buttontwonum+CurrentTopic.To_buttonthreenum+CurrentTopic.To_buttonfournum+CurrentTopic.To_buttonfivenum)*100/CurrentTopic.To_actualnum)) + "%"
}
break
case Common.WaiverOrUnPushDownPercent_ScreenBindingID:
if CurrentTopic.To_actualnum != 0 {
MScreenValue[Common.WaiverOrUnPushDownPercent_ScreenBindingID] = strconv.Itoa(int((CurrentTopic.To_actualnum-CurrentTopic.To_buttonnotnum-CurrentTopic.To_buttontwonum)*100/CurrentTopic.To_actualnum)) + "%"
}
break
case Common.FavourInformation_ScreenBindingID:
var acount int
if AllSysSet["votehalfprompt"].Sys_value == "1" {
acount = ShouldNum
} else {
acount = ArriveNum
}
if float64(CurrentTopic.To_buttononenum)/float64(acount) > 0.5 {
MScreenValue[Common.FavourInformation_ScreenBindingID] = "赞成过半数"
} else {
MScreenValue[Common.FavourInformation_ScreenBindingID] = ""
}
break
case Common.AvgAppraise_ScreenBindingID:
MScreenValue[Common.AvgAppraise_ScreenBindingID] = strconv.FormatFloat(float64(CurrentTopic.To_voteresult*1.0/100), 'f', 2, 32)
break
case Common.ChildTopicAnJian1Mingcheng_ScreenBindingID:
MScreenValue[Common.ChildTopicAnJian1Mingcheng_ScreenBindingID] = CurrentTopicChildTopic[IndexChildTopic].To_buttononename
break
case Common.ChildTopicAnJian1Value_ScreenBindingID:
MScreenValue[Common.ChildTopicAnJian1Value_ScreenBindingID] = CurrentTopicChildTopic[IndexChildTopic].To_buttononenum
break
case Common.ChildTopicAnJian2Mingcheng_ScreenBindingID:
MScreenValue[Common.ChildTopicAnJian2Mingcheng_ScreenBindingID] = CurrentTopicChildTopic[IndexChildTopic].To_buttontwoname
break
case Common.ChildTopicAnJian2Value_ScreenBindingID:
MScreenValue[Common.ChildTopicAnJian2Value_ScreenBindingID] = CurrentTopicChildTopic[IndexChildTopic].To_buttontwonum
break
case Common.ChildTopicAnJian3Mingcheng_ScreenBindingID:
MScreenValue[Common.ChildTopicAnJian3Mingcheng_ScreenBindingID] = CurrentTopicChildTopic[IndexChildTopic].To_buttonthreename
break
case Common.ChildTopicAnJian3Value_ScreenBindingID:
MScreenValue[Common.ChildTopicAnJian3Value_ScreenBindingID] = CurrentTopicChildTopic[IndexChildTopic].To_buttonthreenum
break
case Common.ChildTopicAnJian4Mingcheng_ScreenBindingID:
MScreenValue[Common.ChildTopicAnJian4Mingcheng_ScreenBindingID] = CurrentTopicChildTopic[IndexChildTopic].To_buttonfourname
break
case Common.ChildTopicAnJian4Value_ScreenBindingID:
MScreenValue[Common.ChildTopicAnJian4Value_ScreenBindingID] = CurrentTopicChildTopic[IndexChildTopic].To_buttonfournum
break
case Common.ChildTopicAnJian5Mingcheng_ScreenBindingID:
MScreenValue[Common.ChildTopicAnJian5Mingcheng_ScreenBindingID] = CurrentTopicChildTopic[IndexChildTopic].To_buttonfivename
break
case Common.ChildTopicAnJian5Value_ScreenBindingID:
MScreenValue[Common.ChildTopicAnJian5Value_ScreenBindingID] = CurrentTopicChildTopic[IndexChildTopic].To_buttonfivenum
break
case Common.ChildTopicVoteUndeclareCount_ScreenBindingID:
MScreenValue[Common.ChildTopicVoteUndeclareCount_ScreenBindingID] = CurrentTopicChildTopic[IndexChildTopic].To_buttonnotnum
break
case Common.ChildTopicVoteResultText_ScreenBindingID:
MScreenValue[Common.ChildTopicVoteResultText_ScreenBindingID] = CurrentTopicChildTopic[IndexChildTopic].To_voteresult_CH
break
case Common.ChildTopicAnJian1Percent_ScreenBindingID:
MScreenValue[Common.ChildTopicAnJian1Percent_ScreenBindingID] = strconv.Itoa(int(CurrentTopicChildTopic[IndexChildTopic].To_buttononenum*100/CurrentTopicChildTopic[IndexChildTopic].To_actualnum)) + "%"
break
case Common.ChildTopicAnJian2Percent_ScreenBindingID:
MScreenValue[Common.ChildTopicAnJian2Percent_ScreenBindingID] = strconv.Itoa(int(CurrentTopicChildTopic[IndexChildTopic].To_buttontwonum*100/CurrentTopicChildTopic[IndexChildTopic].To_actualnum)) + "%"
break
case Common.ChildTopicAnJian3Percent_ScreenBindingID:
MScreenValue[Common.ChildTopicAnJian3Percent_ScreenBindingID] = strconv.Itoa(int(CurrentTopicChildTopic[IndexChildTopic].To_buttonthreenum*100/CurrentTopicChildTopic[IndexChildTopic].To_actualnum)) + "%"
break
case Common.ChildTopicUnPushDownPercent_ScreenBindingID:
MScreenValue[Common.ChildTopicUnPushDownPercent_ScreenBindingID] = strconv.Itoa(int(CurrentTopicChildTopic[IndexChildTopic].To_buttonnotnum*100/CurrentTopicChildTopic[IndexChildTopic].To_actualnum)) + "%"
break
case Common.ChildTopicAvgAppraise_ScreenBindingID:
MScreenValue[Common.ChildTopicAvgAppraise_ScreenBindingID] = strconv.FormatFloat(float64(CurrentTopicChildTopic[IndexChildTopic].To_voteresult*1.0/100), 'f', 2, 32)
break
case Common.MuchTopicAllPressNum_ScreenBindingID:
MScreenValue[Common.MuchTopicAllPressNum_ScreenBindingID] = FinishPerson
break
case Common.MuchTopicPartPressNum_ScreenBindingID:
MScreenValue[Common.MuchTopicPartPressNum_ScreenBindingID] = PartFinishPerson
break
case Common.MuchTopicNoPressNum_ScreenBindingID:
MScreenValue[Common.MuchTopicNoPressNum_ScreenBindingID] = NoPressPerson
break
case Common.TopicMajorTitle_ScreenBindingID:
MScreenValue[Common.TopicMajorTitle_ScreenBindingID] = CurrentTopic.To_name
break
case Common.TopicMajorRemark_ScreenBindingID:
MScreenValue[Common.TopicMajorRemark_ScreenBindingID] = CurrentTopic.To_remark
break
case Common.TopicChild_ScreenBindingID:
va, _ := json.Marshal(CurrentTopicChildTopic)
MScreenValue[Common.TopicChild_ScreenBindingID] = string(va)
break
case Common.TopicContent_ScreenBindingID:
var SysValue map[string]interface{}
SysValue = make(map[string]interface{})
SysValue["to_agendahtml"] = CurrentTopic.To_agendahtml
SysValue["to_agendabgcolor"] = screenformvalue.Sf_bgcolor
MScreenValue[Common.TopicMajorRemark_ScreenBindingID] = SysValue
break
case Common.CurrentSubjectContent_ScreenBindingID:
if len(CurrentTopicChildTopic) > 0 {
var SysValue map[string]interface{}
SysValue = make(map[string]interface{})
SysValue["to_agendahtml"] = CurrentTopic.To_agendahtml
SysValue["to_agendabgcolor"] = screenformvalue.Sf_bgcolor
MScreenValue[Common.CurrentSubjectContent_ScreenBindingID] = SysValue
} else {
var SysValue map[string]interface{}
SysValue = make(map[string]interface{})
SysValue["to_agendahtml"] = CurrentTopic.To_agendahtml
SysValue["to_agendabgcolor"] = screenformvalue.Sf_bgcolor
MScreenValue[Common.CurrentSubjectContent_ScreenBindingID] = SysValue
// MScreenValue["to_agendabgcolor"] = CurrentTopic.To_agendabgcolor
}
break
case Common.VoteResultText_ScreenBindingID:
MScreenValue[Common.VoteResultText_ScreenBindingID] = CurrentTopic.To_voteresult_CH
break
case Common.Checkin_ScreenBindingID:
MScreenValue[Common.Checkin_ScreenBindingID] = 0
break
case Common.ButtonOne_ScreenBindingID:
MScreenValue[Common.ButtonOne_ScreenBindingID] = 0
break
case Common.ButtonTwo_ScreenBindingID:
MScreenValue[Common.ButtonTwo_ScreenBindingID] = 0
break
case Common.ButtonThree_ScreenBindingID:
MScreenValue[Common.ButtonThree_ScreenBindingID] = 0
break
case Common.ButtonFour_ScreenBindingID:
MScreenValue[Common.ButtonFour_ScreenBindingID] = 0
break
case Common.ButtonFive_ScreenBindingID:
MScreenValue[Common.ButtonFive_ScreenBindingID] = 0
break
case Common.VoteRestrictTime_ScreenBindingID:
MScreenValue[Common.VoteRestrictTime_ScreenBindingID] = VoteCursorTimer
break
case Common.CurrentSpeakingPeoplesName_ScreenBindingID:
if len(SpeakingPersons) > 0 {
if AllSysSet["isshowchairman"].Sys_value == "1" {
if AllSysSet["showspeakfirstorlast"].Sys_value == "1" {
MScreenValue[Common.CurrentSpeakingPeoplesName_ScreenBindingID] = SpeakingPersons[len(SpeakingPersons)-1].AgPName
} else {
MScreenValue[Common.CurrentSpeakingPeoplesName_ScreenBindingID] = SpeakingPersons[0].AgPName
}
} else {
var pername string
if AllSysSet["showspeakfirstorlast"].Sys_value == "1" {
for j := len(SpeakingPersons) - 1; j >= 0; j-- {
if SpeakingPersons[j].AgPerson.AP_FirstSpeakPower != 1 {
pername = SpeakingPersons[j].AgPName
break
}
}
} else {
for j := 0; j < len(SpeakingPersons); j++ {
if SpeakingPersons[j].AgPerson.AP_FirstSpeakPower != 1 {
pername = SpeakingPersons[j].AgPName
break
}
}
}
MScreenValue[Common.CurrentSpeakingPeoplesName_ScreenBindingID] = pername
}
} else {
MScreenValue[Common.CurrentSpeakingPeoplesName_ScreenBindingID] = ""
}
break
case Common.CurrentSpeakingPeoplesUnit_ScreenBindingID:
if len(SpeakingPersons) > 0 {
if AllSysSet["isshowchairman"].Sys_value == "1" {
if AllSysSet["showspeakfirstorlast"].Sys_value == "1" {
MScreenValue[Common.CurrentSpeakingPeoplesUnit_ScreenBindingID] = MStIDStaffInfo[SpeakingPersons[len(SpeakingPersons)-1].AgPerson.AP_StaffID].St_WorkUnit
} else {
MScreenValue[Common.CurrentSpeakingPeoplesUnit_ScreenBindingID] = MStIDStaffInfo[SpeakingPersons[0].AgPerson.AP_StaffID].St_WorkUnit
}
} else {
var percontent string
if AllSysSet["showspeakfirstorlast"].Sys_value == "1" {
for j := len(SpeakingPersons) - 1; j >= 0; j-- {
if SpeakingPersons[j].AgPerson.AP_FirstSpeakPower != 1 {
percontent = MStIDStaffInfo[SpeakingPersons[j].AgPerson.AP_StaffID].St_WorkUnit
break
}
}
} else {
for j := 0; j < len(SpeakingPersons); j++ {
if SpeakingPersons[j].AgPerson.AP_FirstSpeakPower != 1 {
percontent = MStIDStaffInfo[SpeakingPersons[j].AgPerson.AP_StaffID].St_WorkUnit
break
}
}
}
MScreenValue[Common.CurrentSpeakingPeoplesUnit_ScreenBindingID] = percontent
}
} else {
MScreenValue[Common.CurrentSpeakingPeoplesUnit_ScreenBindingID] = ""
}
break
case Common.CurrentSpeakingPeoplesDangPai_ScreenBindingID:
if len(SpeakingPersons) > 0 {
if AllSysSet["isshowchairman"].Sys_value == "1" {
if AllSysSet["showspeakfirstorlast"].Sys_value == "1" {
MScreenValue[Common.CurrentSpeakingPeoplesDangPai_ScreenBindingID] = MDDictionary[MStIDStaffInfo[SpeakingPersons[len(SpeakingPersons)-1].AgPerson.AP_StaffID].St_PartyID].Dic_name
} else {
MScreenValue[Common.CurrentSpeakingPeoplesDangPai_ScreenBindingID] = MDDictionary[MStIDStaffInfo[SpeakingPersons[0].AgPerson.AP_StaffID].St_PartyID].Dic_name
}
} else {
var percontent string
if AllSysSet["showspeakfirstorlast"].Sys_value == "1" {
for j := len(SpeakingPersons) - 1; j >= 0; j-- {
if SpeakingPersons[j].AgPerson.AP_FirstSpeakPower != 1 {
percontent = MDDictionary[MStIDStaffInfo[SpeakingPersons[j].AgPerson.AP_StaffID].St_PartyID].Dic_name
break
}
}
} else {
for j := 0; j < len(SpeakingPersons); j++ {
if SpeakingPersons[j].AgPerson.AP_FirstSpeakPower != 1 {
percontent = MDDictionary[MStIDStaffInfo[SpeakingPersons[j].AgPerson.AP_StaffID].St_PartyID].Dic_name
break
}
}
}
MScreenValue[Common.CurrentSpeakingPeoplesDangPai_ScreenBindingID] = percontent
}
} else {
MScreenValue[Common.CurrentSpeakingPeoplesDangPai_ScreenBindingID] = ""
}
break
case Common.CurrentSpeakingPeoplesLevel_ScreenBindingID:
if len(SpeakingPersons) > 0 {
if AllSysSet["isshowchairman"].Sys_value == "1" {
if AllSysSet["showspeakfirstorlast"].Sys_value == "1" {
MScreenValue[Common.CurrentSpeakingPeoplesLevel_ScreenBindingID] = MStIDStaffInfo[SpeakingPersons[len(SpeakingPersons)-1].AgPerson.AP_StaffID].St_Job
} else {
MScreenValue[Common.CurrentSpeakingPeoplesLevel_ScreenBindingID] = MStIDStaffInfo[SpeakingPersons[0].AgPerson.AP_StaffID].St_Job
}
} else {
var percontent string
if AllSysSet["showspeakfirstorlast"].Sys_value == "1" {
for j := len(SpeakingPersons) - 1; j >= 0; j-- {
if SpeakingPersons[j].AgPerson.AP_FirstSpeakPower != 1 {
percontent = MStIDStaffInfo[SpeakingPersons[j].AgPerson.AP_StaffID].St_Job
break
}
}
} else {
for j := 0; j < len(SpeakingPersons); j++ {
if SpeakingPersons[j].AgPerson.AP_FirstSpeakPower != 1 {
percontent = MStIDStaffInfo[SpeakingPersons[j].AgPerson.AP_StaffID].St_Job
break
}
}
}
MScreenValue[Common.CurrentSpeakingPeoplesLevel_ScreenBindingID] = percontent
}
} else {
MScreenValue[Common.CurrentSpeakingPeoplesLevel_ScreenBindingID] = ""
}
break
case Common.CurrentSpeakingPeoplesMinzu_ScreenBindingID:
if len(SpeakingPersons) > 0 {
if AllSysSet["isshowchairman"].Sys_value == "1" {
if AllSysSet["showspeakfirstorlast"].Sys_value == "1" {
MScreenValue[Common.CurrentSpeakingPeoplesMinzu_ScreenBindingID] = MNations[MStIDStaffInfo[SpeakingPersons[len(SpeakingPersons)-1].AgPerson.AP_StaffID].St_NationID].Nationname
} else {
MScreenValue[Common.CurrentSpeakingPeoplesMinzu_ScreenBindingID] = MNations[MStIDStaffInfo[SpeakingPersons[0].AgPerson.AP_StaffID].St_NationID].Nationname
}
} else {
var percontent string
if AllSysSet["showspeakfirstorlast"].Sys_value == "1" {
for j := len(SpeakingPersons) - 1; j >= 0; j-- {
if SpeakingPersons[j].AgPerson.AP_FirstSpeakPower != 1 {
percontent = MNations[MStIDStaffInfo[SpeakingPersons[j].AgPerson.AP_StaffID].St_NationID].Nationname
break
}
}
} else {
for j := 0; j < len(SpeakingPersons); j++ {
if SpeakingPersons[j].AgPerson.AP_FirstSpeakPower != 1 {
percontent = MNations[MStIDStaffInfo[SpeakingPersons[j].AgPerson.AP_StaffID].St_NationID].Nationname
break
}
}
}
MScreenValue[Common.CurrentSpeakingPeoplesMinzu_ScreenBindingID] = percontent
}
} else {
MScreenValue[Common.CurrentSpeakingPeoplesMinzu_ScreenBindingID] = ""
}
break
case Common.CurrentSpeakingPeoplesGroup_ScreenBindingID:
if len(SpeakingPersons) > 0 {
if AllSysSet["isshowchairman"].Sys_value == "1" {
if AllSysSet["showspeakfirstorlast"].Sys_value == "1" {
MScreenValue[Common.CurrentSpeakingPeoplesGroup_ScreenBindingID] = MGroups[MStIDStaffInfo[SpeakingPersons[len(SpeakingPersons)-1].AgPerson.AP_StaffID].St_GroupID].Gr_name
} else {
MScreenValue[Common.CurrentSpeakingPeoplesGroup_ScreenBindingID] = MGroups[MStIDStaffInfo[SpeakingPersons[0].AgPerson.AP_StaffID].St_NationID].Gr_name
}
} else {
var percontent string
if AllSysSet["showspeakfirstorlast"].Sys_value == "1" {
for j := len(SpeakingPersons) - 1; j >= 0; j-- {
if SpeakingPersons[j].AgPerson.AP_FirstSpeakPower != 1 {
percontent = MGroups[MStIDStaffInfo[SpeakingPersons[j].AgPerson.AP_StaffID].St_NationID].Gr_name
break
}
}
} else {
for j := 0; j < len(SpeakingPersons); j++ {
if SpeakingPersons[j].AgPerson.AP_FirstSpeakPower != 1 {
percontent = MGroups[MStIDStaffInfo[SpeakingPersons[j].AgPerson.AP_StaffID].St_NationID].Gr_name
break
}
}
}
MScreenValue[Common.CurrentSpeakingPeoplesGroup_ScreenBindingID] = percontent
}
} else {
MScreenValue[Common.CurrentSpeakingPeoplesGroup_ScreenBindingID] = ""
}
break
case Common.CurrentApplySpeakingPeoplesName_ScreenBindingID:
if len(ApplySpeakPersons) > 0 {
MScreenValue[Common.CurrentApplySpeakingPeoplesName_ScreenBindingID] = ApplySpeakPersons[0].AgPName
} else {
MScreenValue[Common.CurrentApplySpeakingPeoplesName_ScreenBindingID] = ""
}
break
case Common.CurrentApplySpeakingPeoplesUnit_ScreenBindingID:
if len(ApplySpeakPersons) > 0 {
MScreenValue[Common.CurrentApplySpeakingPeoplesUnit_ScreenBindingID] = MStIDStaffInfo[ApplySpeakPersons[0].AgPerson.AP_StaffID].St_WorkUnit
} else {
MScreenValue[Common.CurrentApplySpeakingPeoplesUnit_ScreenBindingID] = ""
}
break
case Common.CurrentApplySpeakingPeoplesDangPai_ScreenBindingID:
if len(ApplySpeakPersons) > 0 {
MScreenValue[Common.CurrentApplySpeakingPeoplesDangPai_ScreenBindingID] = MDDictionary[MStIDStaffInfo[ApplySpeakPersons[0].AgPerson.AP_StaffID].St_PartyID].Dic_name
} else {
MScreenValue[Common.CurrentApplySpeakingPeoplesDangPai_ScreenBindingID] = ""
}
break
case Common.CurrentApplySpeakingPeoplesLevel_ScreenBindingID:
if len(ApplySpeakPersons) > 0 {
MScreenValue[Common.CurrentApplySpeakingPeoplesLevel_ScreenBindingID] = MStIDStaffInfo[ApplySpeakPersons[0].AgPerson.AP_StaffID].St_Job
} else {
MScreenValue[Common.CurrentApplySpeakingPeoplesLevel_ScreenBindingID] = ""
}
break
case Common.CurrentApplySpeakingPeoplesMinzu_ScreenBindingID:
if len(ApplySpeakPersons) > 0 {
MScreenValue[Common.CurrentApplySpeakingPeoplesMinzu_ScreenBindingID] = MNations[MStIDStaffInfo[ApplySpeakPersons[0].AgPerson.AP_StaffID].St_NationID].Nationname
} else {
MScreenValue[Common.CurrentApplySpeakingPeoplesMinzu_ScreenBindingID] = ""
}
break
case Common.CurrentApplySpeakingPeoplesGroup_ScreenBindingID:
if len(ApplySpeakPersons) > 0 {
MScreenValue[Common.CurrentApplySpeakingPeoplesGroup_ScreenBindingID] = MGroups[MStIDStaffInfo[ApplySpeakPersons[0].AgPerson.AP_StaffID].St_NationID].Gr_name
} else {
MScreenValue[Common.CurrentApplySpeakingPeoplesGroup_ScreenBindingID] = ""
}
break
case Common.SpeakingRestrictTime_ScreenBindingID:
if len(SpeakingPersons) > 0 {
if AllSysSet["isshowchairman"].Sys_value == "1" {
if AllSysSet["showspeakfirstorlast"].Sys_value == "1" {
if SpeakingPersons[len(SpeakingPersons)-1].AgPerson.AP_FirstSpeakPower == 1 {
MScreenValue[Common.SpeakingRestrictTime_ScreenBindingID] = ""
} else {
MScreenValue[Common.SpeakingRestrictTime_ScreenBindingID] = SpeakingPersons[len(SpeakingPersons)-1].AllowSpeakTime
}
} else {
MScreenValue[Common.SpeakingRestrictTime_ScreenBindingID] = SpeakingPersons[0].AllowSpeakTime
}
} else {
var percontent string
if AllSysSet["showspeakfirstorlast"].Sys_value == "1" {
for j := len(SpeakingPersons) - 1; j >= 0; j-- {
if SpeakingPersons[j].AgPerson.AP_FirstSpeakPower != 1 {
percontent = SpeakingPersons[j].AllowSpeakTime
break
}
}
} else {
for j := 0; j < len(SpeakingPersons); j++ {
if SpeakingPersons[j].AgPerson.AP_FirstSpeakPower != 1 {
percontent = SpeakingPersons[j].AllowSpeakTime
break
}
}
}
MScreenValue[Common.SpeakingRestrictTime_ScreenBindingID] = percontent
}
} else {
MScreenValue[Common.SpeakingRestrictTime_ScreenBindingID] = ""
}
break
case Common.ReportState_ScreenBindingID:
MScreenValue[Common.ReportState_ScreenBindingID] = MDDictionary[CurrentAgenda.Ag_CheckInType].Dic_name
break
case Common.CurrentCheckingPeoplesPhoto_ScreenBindingID:
if Currentreportper != nil {
MScreenValue[Common.CurrentCheckingPeoplesPhoto_ScreenBindingID] = MStIDStaffInfo[Currentreportper.AP_StaffID].St_Image
} else {
MScreenValue[Common.CurrentCheckingPeoplesPhoto_ScreenBindingID] = ""
}
break
case Common.CurrentApplySpeakingPeoplesPhoto_ScreenBindingID:
if len(ApplySpeakPersons) > 0 {
MScreenValue[Common.CurrentApplySpeakingPeoplesPhoto_ScreenBindingID] = MStIDStaffInfo[ApplySpeakPersons[0].AgPerson.AP_StaffID].St_Image
} else {
MScreenValue[Common.CurrentApplySpeakingPeoplesPhoto_ScreenBindingID] = ""
}
break
case Common.CurrentSpeakingPeoplesPhoto_ScreenBindingID:
if len(SpeakingPersons) > 0 {
if AllSysSet["isshowchairman"].Sys_value == "1" {
if AllSysSet["showspeakfirstorlast"].Sys_value == "1" {
MScreenValue[Common.CurrentSpeakingPeoplesPhoto_ScreenBindingID] = MStIDStaffInfo[SpeakingPersons[len(SpeakingPersons)-1].AgPerson.AP_StaffID].St_Image
} else {
MScreenValue[Common.CurrentSpeakingPeoplesPhoto_ScreenBindingID] = MStIDStaffInfo[SpeakingPersons[0].AgPerson.AP_StaffID].St_Image
}
} else {
var percontent string
if AllSysSet["showspeakfirstorlast"].Sys_value == "1" {
for j := len(SpeakingPersons) - 1; j >= 0; j-- {
if SpeakingPersons[j].AgPerson.AP_FirstSpeakPower != 1 {
percontent = MStIDStaffInfo[SpeakingPersons[j].AgPerson.AP_StaffID].St_Image
break
}
}
} else {
for j := 0; j < len(SpeakingPersons); j++ {
if SpeakingPersons[j].AgPerson.AP_FirstSpeakPower != 1 {
percontent = MStIDStaffInfo[SpeakingPersons[j].AgPerson.AP_StaffID].St_Image
break
}
}
}
MScreenValue[Common.CurrentSpeakingPeoplesPhoto_ScreenBindingID] = percontent
}
} else {
MScreenValue[Common.CurrentSpeakingPeoplesPhoto_ScreenBindingID] = ""
}
break
case Common.HasedPhoto_ScreenBindingID:
MScreenValue[Common.HasedPhoto_ScreenBindingID] = "upload/screenfile/huibiao.png"
break
case Common.PeoplesCheckingList_ScreenBindingID:
var allpercontent []map[string]interface{}
var allpersons []Model.T_AgendaPerson
for _, ap := range ALLAPinfo {
allpersons = append(allpersons, ap)
}
rowcount, err := strconv.Atoi(item["rowCount"].(string))
if err != nil {
rowcount = 6
}
colcount, errr := strconv.Atoi(item["colCount"].(string))
if errr != nil {
colcount = 11
}
//showStyle 静态显示还是动态显示 0静态 1动态
if item["showStyle"].(string) == "0" {
if _, ok := item["peopleOrderBy"]; ok {
//排序方式有待研究 目前是编号
if item["peopleOrderBy"].(string) == "" || item["peopleOrderBy"].(string) == "0" {
sort.SliceStable(allpersons, func(i, j int) bool {
return allpersons[i].AP_CodeNum < allpersons[j].AP_CodeNum
})
} else {
sort.SliceStable(allpersons, func(i, j int) bool {
return allpersons[i].AP_CodeNum < allpersons[j].AP_CodeNum
})
}
} else {
sort.SliceStable(allpersons, func(i, j int) bool {
return allpersons[i].AP_CodeNum < allpersons[j].AP_CodeNum
})
}
for d := 0; d < len(allpersons); d++ {
percontent := make(map[string]interface{})
if strings.Contains(item["bindingFieldPeopleType"].(string), MStIDStaffInfo[allpersons[d].AP_StaffID].St_CategoryID) {
percontent["pername"] = MStIDStaffInfo[allpersons[d].AP_StaffID].St_Name
percontent["formid"] = item["id"].(string)
percontent["checkinstatus"] = allpersons[d].AP_CheckState
allpercontent = append(allpercontent, percontent)
}
}
if rowcount*colcount < len(allpercontent) {
allpercontent = allpercontent[0 : rowcount*colcount]
}
} else {
//trendsStyle 动态方式(动态加入0动态减入1 )
if item["trendsStyle"].(string) == "0" {
//排序方式有待研究 目前是报到时间
if item["peopleOrderBy"].(string) == "6" {
sort.SliceStable(allpersons, func(i, j int) bool {
return allpersons[i].AP_CheckInTime.Format("2006-01-02 15:04:05") < allpersons[j].AP_CheckInTime.Format("2006-01-02 15:04:05")
})
} else {
sort.SliceStable(allpersons, func(i, j int) bool {
return allpersons[i].AP_CheckInTime.Format("2006-01-02 15:04:05") > allpersons[j].AP_CheckInTime.Format("2006-01-02 15:04:05")
})
}
for d := 0; d < len(allpersons); d++ {
percontent := make(map[string]interface{})
if strings.Contains(item["bindingFieldPeopleType"].(string), MStIDStaffInfo[allpersons[d].AP_StaffID].St_CategoryID) {
if allpersons[d].AP_CheckState == 1 {
percontent["pername"] = MStIDStaffInfo[allpersons[d].AP_StaffID].St_Name
percontent["checkinstatus"] = allpersons[d].AP_CheckState
percontent["formid"] = item["id"].(string)
allpercontent = append(allpercontent, percontent)
}
}
}
if rowcount*colcount < len(allpercontent) {
if item["peopleOrderBy"].(string) == "6" {
allpercontent = allpercontent[len(allpercontent)-rowcount*colcount:]
} else {
allpercontent = allpercontent[0 : rowcount*colcount]
}
}
} else {
sort.SliceStable(allpersons, func(i, j int) bool {
return allpersons[i].AP_CodeNum < allpersons[j].AP_CodeNum
})
for d := 0; d < len(allpersons); d++ {
if rowcount*colcount <= len(allpercontent) {
break
}
percontent := make(map[string]interface{})
if strings.Contains(item["bindingFieldPeopleType"].(string), MStIDStaffInfo[allpersons[d].AP_StaffID].St_CategoryID) {
if allpersons[d].AP_CheckState != 1 {
percontent["pername"] = MStIDStaffInfo[allpersons[d].AP_StaffID].St_Name
percontent["checkinstatus"] = allpersons[d].AP_CheckState
percontent["formid"] = item["id"].(string)
allpercontent = append(allpercontent, percontent)
}
}
}
if rowcount*colcount < len(allpercontent) {
allpercontent = allpercontent[0 : rowcount*colcount]
}
}
}
// allcontent, _ := json.Marshal(allpercontent)
MScreenValue[Common.PeoplesCheckingList_ScreenBindingID] = allpercontent
break
case Common.PeoplesSpeakingList_ScreenBindingID:
var allpercontent []map[string]interface{}
var allpersons []*Model.SpeakingPerson
for _, ap := range SpeakingPersons {
allpersons = append(allpersons, ap)
}
//排序方式有待研究 目前是发言开始时间
sort.SliceStable(allpersons, func(i, j int) bool {
return allpersons[i].SpeakStartTime.Format("2006-01-02 15:04:05") > allpersons[j].SpeakStartTime.Format("2006-01-02 15:04:05")
})
rowcount, err := strconv.Atoi(item["rowCount"].(string))
if err != nil {
rowcount = 5
}
colcount, errr := strconv.Atoi(item["colCount"].(string))
if errr != nil {
colcount = 1
}
for d := 0; d < rowcount*colcount; d++ {
if d >= len(allpersons) {
break
}
percontent := make(map[string]interface{})
if strings.Contains(item["bindingFieldPeopleType"].(string), MStIDStaffInfo[allpersons[d].AgPerson.AP_StaffID].St_CategoryID) {
if allpersons[d].ShowOnScreen {
percontent["pername"] = MStIDStaffInfo[allpersons[d].AgPerson.AP_StaffID].St_Name
percontent["formid"] = item["id"].(string)
percontent["allowSpeakTime"] = allpersons[d].AllowSpeakTime
percontent["overTimeSecond"] = allpersons[d].OverTimeSecond
percontent["formid"] = item["id"].(string)
allpercontent = append(allpercontent, percontent)
}
}
}
// allcontent, _ := json.Marshal(allpercontent)
MScreenValue[Common.PeoplesSpeakingList_ScreenBindingID] = allpercontent
break
case Common.PeoplesApplySpeakingList_ScreenBindingID:
// var allpercontentAll []map[string]interface{}
// allpercontentAll = make([]map[string]interface{}, 0)
var allpercontent []map[string]interface{}
allpercontent = make([]map[string]interface{}, 0)
var allpersons []*Model.SpeakingPerson
allpersons = make([]*Model.SpeakingPerson, 0)
for _, ap := range ApplySpeakPersons {
allpersons = append(allpersons, ap)
}
//排序方式有待研究 目前是发言开始时间
sort.SliceStable(allpersons, func(i, j int) bool {
return allpersons[i].ApplyTime.Format("2006-01-02 15:04:05") > allpersons[j].ApplyTime.Format("2006-01-02 15:04:05")
})
rowcount, err := strconv.Atoi(item["rowCount"].(string))
if err != nil {
rowcount = 5
}
colcount, errr := strconv.Atoi(item["colCount"].(string))
if errr != nil {
colcount = 1
}
for d := 0; d < len(allpersons); d++ {
percontent := make(map[string]interface{})
if strings.Contains(item["bindingFieldPeopleType"].(string), MStIDStaffInfo[allpersons[d].AgPerson.AP_StaffID].St_CategoryID) {
if allpersons[d].ShowOnScreen {
percontent["pername"] = MStIDStaffInfo[allpersons[d].AgPerson.AP_StaffID].St_Name
percontent["formid"] = item["id"].(string)
if allpersons[d].SpeakTimes > 1 {
percontent["secondTip"] = "二次申请"
} else {
percontent["secondTip"] = ""
}
percontent["perjob"] = MStIDStaffInfo[allpersons[d].AgPerson.AP_StaffID].St_Job
allpercontent = append(allpercontent, percontent)
}
}
}
if rowcount*colcount < len(allpercontent) {
allpercontent = allpercontent[0 : rowcount*colcount]
}
// allcontent, _ := json.Marshal(allpercontent)
// 检查 MScreenValue 是否已存在结果,如果存在则合并结果
if existingContent, ok := MScreenValue[Common.PeoplesApplySpeakingList_ScreenBindingID]; ok {
// 将已有内容转换为 []map[string]interface{}
if existingSlice, valid := existingContent.([]map[string]interface{}); valid {
allpercontent = append(existingSlice, allpercontent...) // 合并两个切片
}
}
// allpercontentAll["id"] = item["id"].(string)
// allpercontentAll["data"] = allpercontent
// allpercontentAll = append(allpercontentAll, allpercontent)
MScreenValue[Common.PeoplesApplySpeakingList_ScreenBindingID] = allpercontent
fmt.Println("申请发言人列表", allpercontent)
break
case Common.PeoplesAlreadySpeakingList_ScreenBindingID:
var allpercontent []map[string]interface{}
allpercontent = make([]map[string]interface{}, 0)
var allpersons []*Model.T_AgendaPerson
allpersons = make([]*Model.T_AgendaPerson, 0)
for _, ap := range SpeakedPersons {
allpersons = append(allpersons, ap)
}
//排序方式有待研究 目前是发言开始时间
sort.SliceStable(allpersons, func(i, j int) bool {
return allpersons[i].AP_CodeNum < allpersons[j].AP_CodeNum
})
rowcount, err := strconv.Atoi(item["rowCount"].(string))
if err != nil {
rowcount = 5
}
colcount, errr := strconv.Atoi(item["colCount"].(string))
if errr != nil {
colcount = 1
}
for d := 0; d < rowcount*colcount; d++ {
if d >= len(allpersons) {
break
}
percontent := make(map[string]interface{})
if strings.Contains(item["bindingFieldPeopleType"].(string), MStIDStaffInfo[allpersons[d].AP_StaffID].St_CategoryID) {
percontent["pername"] = MStIDStaffInfo[allpersons[d].AP_StaffID].St_Name
percontent["perjob"] = MStIDStaffInfo[allpersons[d].AP_StaffID].St_Job
percontent["formid"] = item["id"].(string)
allpercontent = append(allpercontent, percontent)
}
}
// allcontent, _ := json.Marshal(allpercontent)
MScreenValue[Common.PeoplesAlreadySpeakingList_ScreenBindingID] = allpercontent
break
case Common.PeoplesImageList_ScreenBindingID:
if Currentreportper != nil {
rowcount, err := strconv.Atoi(item["rowCount"].(string))
if err != nil {
rowcount = 1
}
colcount, err := strconv.Atoi(item["colCount"].(string))
if err != nil {
colcount = 5
}
maxCount := rowcount * colcount
// 创建新的报到人员信息
newPer := make(map[string]interface{})
newPer["pername"] = MStIDStaffInfo[Currentreportper.AP_StaffID].St_Name
newPer["perimage"] = MStIDStaffInfo[Currentreportper.AP_StaffID].St_Image
newPer["formid"] = item["id"].(string)
// 如果已有数据超过最大数量,移除最旧的一个
if len(Allperpiccontent) >= maxCount {
Allperpiccontent = Allperpiccontent[:maxCount-1]
}
// 将新报到人员插入到数组最前面
Allperpiccontent = append([]map[string]interface{}{newPer}, Allperpiccontent...)
MScreenValue[Common.PeoplesImageList_ScreenBindingID] = Allperpiccontent
}
// var allpercontent []map[string]interface{}
// var allpersons []Model.T_AgendaPerson
// for _, ap := range ALLAPinfo {
// allpersons = append(allpersons, ap)
// }
// //排序方式有待研究 目前是编号
// sort.SliceStable(allpersons, func(i, j int) bool {
// return allpersons[i].AP_CheckInTime.Format("2006-01-02 15:04:05") > allpersons[j].AP_CheckInTime.Format("2006-01-02 15:04:05")
// })
// rowcount, err := strconv.Atoi(item["rowCount"].(string))
// if err != nil {
// rowcount = 1
// }
// colcount, errr := strconv.Atoi(item["colCount"].(string))
// if errr != nil {
// colcount = 5
// }
// for d := 0; d < rowcount*colcount; d++ {
// if d >= len(allpersons) {
// break
// }
// percontent := make(map[string]interface{})
// if strings.Contains(item["bindingFieldPeopleType"].(string), MStIDStaffInfo[allpersons[d].AP_StaffID].St_CategoryID) {
// percontent["pername"] = MStIDStaffInfo[allpersons[d].AP_StaffID].St_Name
// percontent["perimage"] = MStIDStaffInfo[allpersons[d].AP_StaffID].St_Image
// percontent["formid"] = item["id"].(string)
// allpercontent = append(allpercontent, percontent)
// }
// }
// // allcontent, _ := json.Marshal(allpercontent)
// MScreenValue[Common.PeoplesImageList_ScreenBindingID] = allpercontent
break
case Common.PeoplesGroupList_ScreenBindingID:
var allgroupcontent []map[string]interface{}
var allpersons []Model.T_AgendaPerson
for _, ap := range ALLAPinfo {
allpersons = append(allpersons, ap)
}
for _, gro := range MGroups {
groupcontent := make(map[string]interface{})
gshouldnum := 0
garrivenum := 0
gnoarrivenum := 0
for d := 0; d < len(allpersons); d++ {
if MStIDStaffInfo[allpersons[d].AP_StaffID].St_GroupID == gro.Id {
gshouldnum += 1
if allpersons[d].AP_CheckState == 1 {
garrivenum += 1
}
}
}
gnoarrivenum = gshouldnum - garrivenum
groupcontent["groupname"] = gro.Gr_name
groupcontent["groupshouldnum"] = gshouldnum
groupcontent["grouparrivenum"] = garrivenum
groupcontent["groupnoarrivenum"] = gnoarrivenum
allgroupcontent = append(allgroupcontent, groupcontent)
}
// allcontent, _ := json.Marshal(allgroupcontent)
MScreenValue[Common.PeoplesGroupList_ScreenBindingID] = allgroupcontent
break
//子议题列表
case Common.TTopic_ScreenBindingID:
var allgroupcontent []map[string]interface{}
var mun = "1"
sort.SliceStable(CurrentTopicChildTopic, func(i, j int) bool {
return CurrentTopicChildTopic[i].To_num < CurrentTopicChildTopic[j].To_num
})
var onepagecount int
onepagecount, _ = strconv.Atoi(item["topicNumOnePage"].(string))
for toindex, to := range CurrentTopicChildTopic {
if toindex < onepagecount*IndexPageTopic || toindex >= onepagecount*(IndexPageTopic+1) {
continue
}
tobj := make(map[string]interface{})
if mun == "1" {
if item["keyTopicSelect"] == "true" {
tobj["To_name"] = "议题名称"
}
if item["key1Select"] == "true" {
tobj["key1Select"] = to.To_buttononename
}
if item["key2Select"] == "true" {
tobj["key2Select"] = to.To_buttontwoname
}
if item["key3Select"] == "true" {
tobj["key3Select"] = to.To_buttonthreename
}
if item["keyOtherSelect"] == "true" {
tobj["keyOtherSelect"] = "未按人数"
}
if item["keyResultSelect"] == "true" {
tobj["keyResultSelect"] = "结果"
}
if len(tobj) != 0 {
allgroupcontent = append(allgroupcontent, tobj)
}
tobj = make(map[string]interface{})
mun = "2"
}
if item["keyTopicSelect"] == "true" {
tobj["To_name"] = to.To_name
}
if item["key1Select"] == "true" {
tobj["key1Select"] = to.To_buttononenum
}
if item["key2Select"] == "true" {
tobj["key2Select"] = to.To_buttontwonum
}
if item["key3Select"] == "true" {
tobj["key3Select"] = to.To_buttonthreenum
}
if item["keyOtherSelect"] == "true" {
tobj["keyOtherSelect"] = to.To_buttonnotnum
}
if item["keyResultSelect"] == "true" {
tobj["keyResultSelect"] = to.To_voteresult_CH
}
tobj["topicindex"] = to.To_num
// myresultmap = append(myresultmap, tobj)
if len(tobj) != 0 {
allgroupcontent = append(allgroupcontent, tobj)
}
tobj = make(map[string]interface{})
}
if len(allgroupcontent) != 0 {
MScreenValue[Common.TTopic_ScreenBindingID] = allgroupcontent
}
break
}
//-- 动态列表变量 --
// //本机报到人员列表
// ThisClientPCCheckInArray_ScreenBindingID int = 0x1082
// //按预报到人员姓名拼音
// CheckInOrderByName_ScreenBindingID int = 0x1107
// //按预报到人员证件卡号
// CheckInOrderByCard_ScreenBindingID int = 0x1108
// //按预报到人员的座列号
// CheckInOrderBySeat_ScreenBindingID int = 0x1110
}
}
AllScreenValue := make(map[string]interface{})
screenformvalue.Sf_content = ""
AllScreenValue["ScreenContent"] = Common.StructToMap(screenformvalue)
AllScreenValue["ScreenFromContent"] = adev
AllScreenValue["ScreenData"] = MScreenValue
var sparametermap map[string]interface{}
sparametermap["id"] = value.Sfe_screenid
//问题 先去掉报错
screenvalue, _ := GetOneScreen(sparametermap)
// tscreenresule := make(map[string]interface{})
// screenvalue := tscreenresule[Common.DBRESULT].(Model.TScreen)
if screenvalue.Scr_sortid == 5555 {
if _, ok := MScreenData[screenformvalue.Sf_screenid]; ok {
//报到大屏每隔5秒发送一次数据不变也发送 所以去掉
// if !Common.MapsAreEqual(AllScreenValue, MScreenData[screenformvalue.Sf_screenid]) {
websocketservers.ServerSendHTMLScreenDataChange(AllScreenValue, Common.LoadConfig().CheckInDoor.DoorName)
MScreenData[screenformvalue.Sf_screenid] = AllScreenValue
// }
} else {
websocketservers.ServerSendHTMLScreenDataChange(AllScreenValue, Common.LoadConfig().CheckInDoor.DoorName)
MScreenData[screenformvalue.Sf_screenid] = AllScreenValue
}
}
/*
// else if screenvalue.Scr_sortid == 2222 {
// //委员 报到 非报到 列席是否可以报到 报到 未报到
// //报到界面是否跳转 //发言界面是否跳转 //表决界面是否跳转
// for m := 0; m < len(ALLAPinfo); m++ {
// // if _, exists := MPerIDSeatUnit[ALLAPinfo[m].Id]; exists {
// if ALLAPinfo[m].Ap_votepower == 1 && ALLAPinfo[m].Ap_moderator == 0 {
// if _, exists := MPerIDSeatUnit[ALLAPinfo[m].Id]; exists {
// if CurrentScreenSessionStatus > Common.SessionStatus_Reporting {
// if ALLAPinfo[m].AP_CheckState != 1 {
// continue
// }
// }
// //人员分配坐席了
// if MPerIDSeatUnit[ALLAPinfo[m].Id].SoftOnline {
// // fmt.Println(value)
// AllScreenValue["IsShow"] = value.Sfe_jumpshow
// AllScreenValue["IsShowBack"] = value.Sfe_backshow
// if _, ok := MScreenValue[Common.ThisClientPCCurrentPeopleName_ScreenBindingID]; ok {
// MScreenValue[Common.ThisClientPCCurrentPeopleName_ScreenBindingID] = MStIDStaffInfo[ALLAPinfo[m].AP_StaffID].St_Name
// }
// if _, ok := MScreenValue[Common.ThisClientPCCurrentPeopleTip_ScreenBindingID]; ok {
// if ALLAPinfo[m].AP_CheckState == 1 {
// MScreenValue[Common.ThisClientPCCurrentPeopleTip_ScreenBindingID] = "您已报到"
// } else {
// if ReportTempListContins(ALLAPinfo[m].Id) {
// MScreenValue[Common.ThisClientPCCurrentPeopleTip_ScreenBindingID] = "您已报到"
// } else {
// MScreenValue[Common.ThisClientPCCurrentPeopleTip_ScreenBindingID] = "请按报到键报到"
// }
// }
// }
// if _, ok := MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID]; ok {
// if ALLAPinfo[m].IsVote {
// if (Common.TopicType)(CurrentTopic.To_type) == Common.TopicType_Evaluation {
// if AllSysSet["evaluationType"].Sys_value == "2" {
// MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID] = "您已表决"
// } else {
// MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID] = "您已测评"
// }
// // MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID] = "您已测评"
// } else {
// if (Common.VoteSpecies)(CurrentTopic.To_votespecies) == Common.VoteSpecies_MultiVote {
// if _, ok := MPerIDPressNum[ALLAPinfo[m].Id]; ok {
// if MPerIDPressNum[ALLAPinfo[m].Id] == len(CurrentTopicChildTopic) {
// MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID] = "您已全部表决"
// } else {
// MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID] = "您未全部表决"
// }
// } else {
// MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID] = "请按表决键表决"
// }
// } else {
// MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID] = "您已表决"
// }
// }
// } else {
// if (Common.TopicType)(CurrentTopic.To_type) == Common.TopicType_Evaluation {
// if AllSysSet["evaluationType"].Sys_value == "2" {
// MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID] = "请按表决键表决"
// } else {
// MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID] = "请按测评键测评"
// }
// // MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID] = "请按测评键"
// } else {
// MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID] = "请按表决键表决"
// }
// }
// }
// if _, ok := MScreenValue[Common.Checkin_ScreenBindingID]; ok {
// if ALLAPinfo[m].AP_CheckState == 1 {
// MScreenValue[Common.Checkin_ScreenBindingID] = 1
// } else {
// MScreenValue[Common.Checkin_ScreenBindingID] = 0
// }
// }
// if _, ok := MScreenValue[Common.ButtonOne_ScreenBindingID]; ok {
// if ALLAPinfo[m].IsVote {
// MScreenValue[Common.ButtonOne_ScreenBindingID] = 1
// } else {
// MScreenValue[Common.ButtonOne_ScreenBindingID] = 0
// }
// }
// if _, ok := MScreenValue[Common.ButtonTwo_ScreenBindingID]; ok {
// if ALLAPinfo[m].IsVote {
// MScreenValue[Common.ButtonTwo_ScreenBindingID] = 1
// } else {
// MScreenValue[Common.ButtonTwo_ScreenBindingID] = 0
// }
// }
// if _, ok := MScreenValue[Common.ButtonThree_ScreenBindingID]; ok {
// if ALLAPinfo[m].IsVote {
// MScreenValue[Common.ButtonThree_ScreenBindingID] = 1
// } else {
// MScreenValue[Common.ButtonThree_ScreenBindingID] = 0
// }
// }
// if _, ok := MScreenValue[Common.ButtonFour_ScreenBindingID]; ok {
// if ALLAPinfo[m].IsVote {
// MScreenValue[Common.ButtonFour_ScreenBindingID] = 1
// } else {
// MScreenValue[Common.ButtonFour_ScreenBindingID] = 0
// }
// }
// if _, ok := MScreenValue[Common.ButtonFive_ScreenBindingID]; ok {
// if ALLAPinfo[m].IsVote {
// MScreenValue[Common.ButtonFive_ScreenBindingID] = 1
// } else {
// MScreenValue[Common.ButtonFive_ScreenBindingID] = 0
// }
// }
// if _, ok := MScreenValue[Common.TTopic_ScreenBindingID]; ok {
// for kk := 0; kk < len(MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})); kk++ {
// if _, ex := MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk][Common.ButtonOne_ScreenBindingID]; ex {
// delete(MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk], Common.ButtonOne_ScreenBindingID)
// }
// if _, ex := MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk][Common.ButtonTwo_ScreenBindingID]; ex {
// delete(MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk], Common.ButtonTwo_ScreenBindingID)
// }
// if _, ex := MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk][Common.ButtonThree_ScreenBindingID]; ex {
// delete(MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk], Common.ButtonThree_ScreenBindingID)
// }
// if _, ex := MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk][Common.ButtonFour_ScreenBindingID]; ex {
// delete(MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk], Common.ButtonFour_ScreenBindingID)
// }
// if _, ex := MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk][Common.ButtonFive_ScreenBindingID]; ex {
// delete(MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk], Common.ButtonFive_ScreenBindingID)
// }
// if tindex, ex := MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk]["topicindex"]; ex {
// for _, to := range CurrentTopicChildTopic {
// if to.To_num == tindex.(int64) {
// if (Common.VoteMethod)(to.To_votemethod) == Common.VoteMethod_AllowModify || (Common.VoteMethod)(to.To_votemethod) == Common.VoteMethod_NotAllowModify {
// for _, res := range AllVoteKeyResults {
// if MPerIDPerson[res.Perid].IsVote {
// if res.Perid == ALLAPinfo[m].Id {
// if to.To_num == int64(res.Topicindex) {
// if res.Presskey == "1" {
// MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk][Common.ButtonOne_ScreenBindingID] = 2
// }
// if res.Presskey == "2" {
// MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk][Common.ButtonTwo_ScreenBindingID] = 2
// }
// if res.Presskey == "3" {
// MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk][Common.ButtonThree_ScreenBindingID] = 2
// }
// if res.Presskey == "4" {
// MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk][Common.ButtonFour_ScreenBindingID] = 2
// }
// if res.Presskey == "5" {
// MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk][Common.ButtonFive_ScreenBindingID] = 2
// }
// }
// }
// }
// }
// }
// break
// }
// }
// }
// }
// }
// if (Common.VoteMethod)(CurrentTopic.To_votemethod) == Common.VoteMethod_AllowModify || (Common.VoteMethod)(CurrentTopic.To_votemethod) == Common.VoteMethod_NotAllowModify {
// for _, res := range AllVoteKeyResults {
// if ALLAPinfo[m].IsVote {
// if res.Perid == ALLAPinfo[m].Id {
// if res.Presskey == "1" {
// MScreenValue[Common.ButtonOne_ScreenBindingID] = 2
// }
// if res.Presskey == "2" {
// MScreenValue[Common.ButtonTwo_ScreenBindingID] = 2
// }
// if res.Presskey == "3" {
// MScreenValue[Common.ButtonThree_ScreenBindingID] = 2
// }
// if res.Presskey == "4" {
// MScreenValue[Common.ButtonFour_ScreenBindingID] = 2
// }
// if res.Presskey == "5" {
// MScreenValue[Common.ButtonFive_ScreenBindingID] = 2
// }
// }
// }
// }
// }
// if _, ok := MScreenValue[Common.ThisClientPCCurrentPeopleSpeakTip_ScreenBindingID]; ok {
// MScreenValue[Common.ThisClientPCCurrentPeopleSpeakTip_ScreenBindingID] = "请按发言键申请发言"
// for t := 0; t < len(SpeakingPersons); t++ {
// if SpeakingPersons[t].AgPerson.Id == ALLAPinfo[m].Id {
// MScreenValue[Common.ThisClientPCCurrentPeopleSpeakTip_ScreenBindingID] = "正在发言"
// }
// }
// for t := 0; t < len(ApplySpeakPersons); t++ {
// if ApplySpeakPersons[t].AgPerson.Id == ALLAPinfo[m].Id {
// MScreenValue[Common.ThisClientPCCurrentPeopleSpeakTip_ScreenBindingID] = "您已申请发言,请等待发言"
// }
// }
// }
// if CurrentScreenSessionStatus == Common.SessionStatus_StartAppraise || CurrentScreenSessionStatus == Common.SessionStatus_Appraising || CurrentScreenSessionStatus == Common.SessionStatus_StartMuchAppraise || CurrentScreenSessionStatus == Common.SessionStatus_MuchAppraising || CurrentScreenSessionStatus == Common.SessionStatus_StartScoring || CurrentScreenSessionStatus == Common.SessionStatus_Scoring || CurrentScreenSessionStatus == Common.SessionStatus_StartMuchScoring || CurrentScreenSessionStatus == Common.SessionStatus_MuchScoring || CurrentScreenSessionStatus == Common.SessionStatus_StartMuchVote || CurrentScreenSessionStatus == Common.SessionStatus_MuchVoting || CurrentSessionStatus == Common.SessionStatus_StartVote || CurrentSessionStatus == Common.SessionStatus_Voting {
// if AllSysSet["defaultSoftVote"].Sys_value == "1" {
// websocketservers.ServerSendHTMLMobileScreenDataChange(AllScreenValue, ALLAPinfo[m].AP_StaffID)
// } else {
// if !ALLAPinfo[m].IsSoftVote {
// websocketservers.ServerSendHTMLMobileScreenDataChange(AllScreenValue, ALLAPinfo[m].AP_StaffID)
// }
// }
// } else {
// if CurrentSessionStatus == Common.SessionStatus_StartReport || CurrentSessionStatus == Common.SessionStatus_Reporting {
// if AllSysSet["defaultSoftReport"].Sys_value == "1" {
// websocketservers.ServerSendHTMLMobileScreenDataChange(AllScreenValue, ALLAPinfo[m].AP_StaffID)
// } else {
// if !ALLAPinfo[m].IsSoftReport {
// websocketservers.ServerSendHTMLMobileScreenDataChange(AllScreenValue, ALLAPinfo[m].AP_StaffID)
// }
// }
// } else {
// websocketservers.ServerSendHTMLMobileScreenDataChange(AllScreenValue, ALLAPinfo[m].AP_StaffID)
// }
// }
// } else {
// if CurrentScreenSessionStatus > Common.SessionStatus_Reporting {
// if ALLAPinfo[m].AP_CheckState != 1 {
// continue
// }
// }
// //人员没有分配坐席
// // fmt.Println(value)
// AllScreenValue["IsShow"] = value.Sfe_jumpshow
// AllScreenValue["IsShowBack"] = value.Sfe_backshow
// if _, ok := MScreenValue[Common.ThisClientPCCurrentPeopleName_ScreenBindingID]; ok {
// MScreenValue[Common.ThisClientPCCurrentPeopleName_ScreenBindingID] = MStIDStaffInfo[ALLAPinfo[m].AP_StaffID].St_Name
// }
// if _, ok := MScreenValue[Common.ThisClientPCCurrentPeopleTip_ScreenBindingID]; ok {
// if ALLAPinfo[m].AP_CheckState == 1 {
// MScreenValue[Common.ThisClientPCCurrentPeopleTip_ScreenBindingID] = "您已报到"
// } else {
// if ReportTempListContins(ALLAPinfo[m].Id) {
// MScreenValue[Common.ThisClientPCCurrentPeopleTip_ScreenBindingID] = "您已报到"
// } else {
// MScreenValue[Common.ThisClientPCCurrentPeopleTip_ScreenBindingID] = "请按报到键报到"
// }
// }
// }
// if _, ok := MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID]; ok {
// if ALLAPinfo[m].IsVote {
// if (Common.TopicType)(CurrentTopic.To_type) == Common.TopicType_Evaluation {
// if AllSysSet["evaluationType"].Sys_value == "2" {
// MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID] = "您已表决"
// } else {
// MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID] = "您已测评"
// }
// // MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID] = "您已测评"
// } else {
// if (Common.VoteSpecies)(CurrentTopic.To_votespecies) == Common.VoteSpecies_MultiVote {
// if _, ok := MPerIDPressNum[ALLAPinfo[m].Id]; ok {
// if MPerIDPressNum[ALLAPinfo[m].Id] == len(CurrentTopicChildTopic) {
// MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID] = "您已全部表决"
// } else {
// MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID] = "您未全部表决"
// }
// } else {
// MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID] = "请按表决键表决"
// }
// } else {
// MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID] = "您已表决"
// }
// }
// } else {
// if (Common.TopicType)(CurrentTopic.To_type) == Common.TopicType_Evaluation {
// if AllSysSet["evaluationType"].Sys_value == "2" {
// MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID] = "请按表决键表决"
// } else {
// MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID] = "请按测评键测评"
// }
// // MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID] = "请按测评键"
// } else {
// MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID] = "请按表决键表决"
// }
// }
// }
// if _, ok := MScreenValue[Common.Checkin_ScreenBindingID]; ok {
// if ALLAPinfo[m].AP_CheckState == 1 {
// MScreenValue[Common.Checkin_ScreenBindingID] = 1
// } else {
// MScreenValue[Common.Checkin_ScreenBindingID] = 0
// }
// }
// if _, ok := MScreenValue[Common.ButtonOne_ScreenBindingID]; ok {
// if ALLAPinfo[m].IsVote {
// MScreenValue[Common.ButtonOne_ScreenBindingID] = 1
// } else {
// MScreenValue[Common.ButtonOne_ScreenBindingID] = 0
// }
// }
// if _, ok := MScreenValue[Common.ButtonTwo_ScreenBindingID]; ok {
// if ALLAPinfo[m].IsVote {
// MScreenValue[Common.ButtonTwo_ScreenBindingID] = 1
// } else {
// MScreenValue[Common.ButtonTwo_ScreenBindingID] = 0
// }
// }
// if _, ok := MScreenValue[Common.ButtonThree_ScreenBindingID]; ok {
// if ALLAPinfo[m].IsVote {
// MScreenValue[Common.ButtonThree_ScreenBindingID] = 1
// } else {
// MScreenValue[Common.ButtonThree_ScreenBindingID] = 0
// }
// }
// if _, ok := MScreenValue[Common.ButtonFour_ScreenBindingID]; ok {
// if ALLAPinfo[m].IsVote {
// MScreenValue[Common.ButtonFour_ScreenBindingID] = 1
// } else {
// MScreenValue[Common.ButtonFour_ScreenBindingID] = 0
// }
// }
// if _, ok := MScreenValue[Common.ButtonFive_ScreenBindingID]; ok {
// if ALLAPinfo[m].IsVote {
// MScreenValue[Common.ButtonFive_ScreenBindingID] = 1
// } else {
// MScreenValue[Common.ButtonFive_ScreenBindingID] = 0
// }
// }
// if _, ok := MScreenValue[Common.TTopic_ScreenBindingID]; ok {
// for kk := 0; kk < len(MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})); kk++ {
// if _, ex := MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk][Common.ButtonOne_ScreenBindingID]; ex {
// delete(MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk], Common.ButtonOne_ScreenBindingID)
// }
// if _, ex := MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk][Common.ButtonTwo_ScreenBindingID]; ex {
// delete(MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk], Common.ButtonTwo_ScreenBindingID)
// }
// if _, ex := MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk][Common.ButtonThree_ScreenBindingID]; ex {
// delete(MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk], Common.ButtonThree_ScreenBindingID)
// }
// if _, ex := MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk][Common.ButtonFour_ScreenBindingID]; ex {
// delete(MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk], Common.ButtonFour_ScreenBindingID)
// }
// if _, ex := MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk][Common.ButtonFive_ScreenBindingID]; ex {
// delete(MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk], Common.ButtonFive_ScreenBindingID)
// }
// if tindex, ex := MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk]["topicindex"]; ex {
// for _, to := range CurrentTopicChildTopic {
// if to.To_num == tindex.(int64) {
// if (Common.VoteMethod)(to.To_votemethod) == Common.VoteMethod_AllowModify || (Common.VoteMethod)(to.To_votemethod) == Common.VoteMethod_NotAllowModify {
// for _, res := range AllVoteKeyResults {
// if MPerIDPerson[res.Perid].IsVote {
// if res.Perid == ALLAPinfo[m].Id {
// if to.To_num == int64(res.Topicindex) {
// if res.Presskey == "1" {
// MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk][Common.ButtonOne_ScreenBindingID] = 2
// }
// if res.Presskey == "2" {
// MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk][Common.ButtonTwo_ScreenBindingID] = 2
// }
// if res.Presskey == "3" {
// MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk][Common.ButtonThree_ScreenBindingID] = 2
// }
// if res.Presskey == "4" {
// MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk][Common.ButtonFour_ScreenBindingID] = 2
// }
// if res.Presskey == "5" {
// MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk][Common.ButtonFive_ScreenBindingID] = 2
// }
// }
// }
// }
// }
// }
// break
// }
// }
// }
// }
// }
// if (Common.VoteMethod)(CurrentTopic.To_votemethod) == Common.VoteMethod_AllowModify || (Common.VoteMethod)(CurrentTopic.To_votemethod) == Common.VoteMethod_NotAllowModify {
// for _, res := range AllVoteKeyResults {
// if ALLAPinfo[m].IsVote {
// if res.Perid == ALLAPinfo[m].Id {
// if res.Presskey == "1" {
// MScreenValue[Common.ButtonOne_ScreenBindingID] = 2
// }
// if res.Presskey == "2" {
// MScreenValue[Common.ButtonTwo_ScreenBindingID] = 2
// }
// if res.Presskey == "3" {
// MScreenValue[Common.ButtonThree_ScreenBindingID] = 2
// }
// if res.Presskey == "4" {
// MScreenValue[Common.ButtonFour_ScreenBindingID] = 2
// }
// if res.Presskey == "5" {
// MScreenValue[Common.ButtonFive_ScreenBindingID] = 2
// }
// }
// }
// }
// }
// if _, ok := MScreenValue[Common.ThisClientPCCurrentPeopleSpeakTip_ScreenBindingID]; ok {
// MScreenValue[Common.ThisClientPCCurrentPeopleSpeakTip_ScreenBindingID] = "请按发言键申请发言"
// for t := 0; t < len(SpeakingPersons); t++ {
// if SpeakingPersons[t].AgPerson.Id == ALLAPinfo[m].Id {
// MScreenValue[Common.ThisClientPCCurrentPeopleSpeakTip_ScreenBindingID] = "正在发言"
// }
// }
// for t := 0; t < len(ApplySpeakPersons); t++ {
// if ApplySpeakPersons[t].AgPerson.Id == ALLAPinfo[m].Id {
// MScreenValue[Common.ThisClientPCCurrentPeopleSpeakTip_ScreenBindingID] = "您已申请发言,请等待发言"
// }
// }
// }
// if AllSysSet["defaultSoftVote"].Sys_value == "1" {
// websocketservers.ServerSendHTMLMobileScreenDataChange(AllScreenValue, ALLAPinfo[m].AP_StaffID)
// } else {
// if !ALLAPinfo[m].IsSoftVote {
// websocketservers.ServerSendHTMLMobileScreenDataChange(AllScreenValue, ALLAPinfo[m].AP_StaffID)
// }
// }
// }
// }
// }
// // }
// }
// } else if screenvalue.Scr_sortid == 3333 {
// //委员 报到 非报到 列席是否可以报到 报到 未报到
// //报到界面是否跳转 //发言界面是否跳转 //表决界面是否跳转
// for m := 0; m < len(ALLAPinfo); m++ {
// if ALLAPinfo[m].Ap_votepower == 0 {
// // if _, exists := MPerIDSeatUnit[ALLAPinfo[m].Id]; exists {
// // if MPerIDSeatUnit[ALLAPinfo[m].Id].SoftOnline {
// // fmt.Println(value)
// AllScreenValue["IsShow"] = value.Sfe_jumpshow
// AllScreenValue["IsShowBack"] = value.Sfe_backshow
// if _, ok := MScreenValue[Common.ThisClientPCCurrentPeopleName_ScreenBindingID]; ok {
// MScreenValue[Common.ThisClientPCCurrentPeopleName_ScreenBindingID] = MStIDStaffInfo[ALLAPinfo[m].AP_StaffID].St_Name
// }
// if _, ok := MScreenValue[Common.ThisClientPCCurrentPeopleTip_ScreenBindingID]; ok {
// if ALLAPinfo[m].AP_CheckState == 1 {
// MScreenValue[Common.ThisClientPCCurrentPeopleTip_ScreenBindingID] = "您已报到"
// } else {
// if ReportTempListContins(ALLAPinfo[m].Id) {
// MScreenValue[Common.ThisClientPCCurrentPeopleTip_ScreenBindingID] = "您已报到"
// } else {
// MScreenValue[Common.ThisClientPCCurrentPeopleTip_ScreenBindingID] = "请按报到键报到"
// }
// }
// }
// if _, ok := MScreenValue[Common.ThisClientPCCurrentPeopleSpeakTip_ScreenBindingID]; ok {
// MScreenValue[Common.ThisClientPCCurrentPeopleSpeakTip_ScreenBindingID] = "请按发言键申请发言"
// for t := 0; t < len(SpeakingPersons); t++ {
// if SpeakingPersons[t].AgPerson.Id == ALLAPinfo[m].Id {
// MScreenValue[Common.ThisClientPCCurrentPeopleSpeakTip_ScreenBindingID] = "正在发言"
// }
// }
// for t := 0; t < len(ApplySpeakPersons); t++ {
// if ApplySpeakPersons[t].AgPerson.Id == ALLAPinfo[m].Id {
// MScreenValue[Common.ThisClientPCCurrentPeopleSpeakTip_ScreenBindingID] = "您已申请发言,请等待发言"
// }
// }
// }
// websocketservers.ServerSendHTMLMobileScreenDataChange(AllScreenValue, ALLAPinfo[m].AP_StaffID)
// // }
// // }
// }
// }
// for _, seatu := range MSeatIDSeatUnit {
// AllScreenValue["IsShow"] = value.Sfe_jumpshow
// AllScreenValue["IsShowBack"] = value.Sfe_backshow
// websocketservers.ServerSendHTMLMobileScreenDataChange(AllScreenValue, seatu.Id)
// }
// } else if screenvalue.Scr_sortid == 4444 {
// //委员 报到 非报到 列席是否可以报到 报到 未报到
// //报到界面是否跳转 //发言界面是否跳转 //表决界面是否跳转
// for m := 0; m < len(ALLAPinfo); m++ {
// // if _, exists := MPerIDSeatUnit[ALLAPinfo[m].Id]; exists {
// if ALLAPinfo[m].Ap_moderator == 1 {
// if _, exists := MPerIDSeatUnit[ALLAPinfo[m].Id]; exists {
// //人员分配坐席了
// if MPerIDSeatUnit[ALLAPinfo[m].Id].SoftOnline {
// // fmt.Println(value)
// AllScreenValue["IsShow"] = value.Sfe_jumpshow
// AllScreenValue["IsShowBack"] = value.Sfe_backshow
// if _, ok := MScreenValue[Common.ThisClientPCCurrentPeopleName_ScreenBindingID]; ok {
// MScreenValue[Common.ThisClientPCCurrentPeopleName_ScreenBindingID] = MStIDStaffInfo[ALLAPinfo[m].AP_StaffID].St_Name
// }
// if _, ok := MScreenValue[Common.ThisClientPCCurrentPeopleTip_ScreenBindingID]; ok {
// if ALLAPinfo[m].AP_CheckState == 1 {
// MScreenValue[Common.ThisClientPCCurrentPeopleTip_ScreenBindingID] = "您已报到"
// } else {
// if ReportTempListContins(ALLAPinfo[m].Id) {
// MScreenValue[Common.ThisClientPCCurrentPeopleTip_ScreenBindingID] = "您已报到"
// } else {
// MScreenValue[Common.ThisClientPCCurrentPeopleTip_ScreenBindingID] = "请按报到键报到"
// }
// }
// }
// if _, ok := MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID]; ok {
// if ALLAPinfo[m].IsVote {
// if (Common.TopicType)(CurrentTopic.To_type) == Common.TopicType_Evaluation {
// if AllSysSet["evaluationType"].Sys_value == "2" {
// MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID] = "您已表决"
// } else {
// MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID] = "您已测评"
// }
// // MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID] = "您已测评"
// } else {
// if (Common.VoteSpecies)(CurrentTopic.To_votespecies) == Common.VoteSpecies_MultiVote {
// if _, ok := MPerIDPressNum[ALLAPinfo[m].Id]; ok {
// if MPerIDPressNum[ALLAPinfo[m].Id] == len(CurrentTopicChildTopic) {
// MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID] = "您已全部表决"
// } else {
// MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID] = "您未全部表决"
// }
// } else {
// MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID] = "请按表决键表决"
// }
// } else {
// MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID] = "您已表决"
// }
// }
// } else {
// if (Common.TopicType)(CurrentTopic.To_type) == Common.TopicType_Evaluation {
// if AllSysSet["evaluationType"].Sys_value == "2" {
// MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID] = "请按表决键表决"
// } else {
// MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID] = "请按测评键测评"
// }
// // MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID] = "请按测评键"
// } else {
// MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID] = "请按表决键表决"
// }
// }
// }
// if _, ok := MScreenValue[Common.Checkin_ScreenBindingID]; ok {
// if ALLAPinfo[m].AP_CheckState == 1 {
// MScreenValue[Common.Checkin_ScreenBindingID] = 1
// } else {
// MScreenValue[Common.Checkin_ScreenBindingID] = 0
// }
// }
// if _, ok := MScreenValue[Common.ButtonOne_ScreenBindingID]; ok {
// if ALLAPinfo[m].IsVote {
// MScreenValue[Common.ButtonOne_ScreenBindingID] = 1
// } else {
// MScreenValue[Common.ButtonOne_ScreenBindingID] = 0
// }
// }
// if _, ok := MScreenValue[Common.ButtonTwo_ScreenBindingID]; ok {
// if ALLAPinfo[m].IsVote {
// MScreenValue[Common.ButtonTwo_ScreenBindingID] = 1
// } else {
// MScreenValue[Common.ButtonTwo_ScreenBindingID] = 0
// }
// }
// if _, ok := MScreenValue[Common.ButtonThree_ScreenBindingID]; ok {
// if ALLAPinfo[m].IsVote {
// MScreenValue[Common.ButtonThree_ScreenBindingID] = 1
// } else {
// MScreenValue[Common.ButtonThree_ScreenBindingID] = 0
// }
// }
// if _, ok := MScreenValue[Common.ButtonFour_ScreenBindingID]; ok {
// if ALLAPinfo[m].IsVote {
// MScreenValue[Common.ButtonFour_ScreenBindingID] = 1
// } else {
// MScreenValue[Common.ButtonFour_ScreenBindingID] = 0
// }
// }
// if _, ok := MScreenValue[Common.ButtonFive_ScreenBindingID]; ok {
// if ALLAPinfo[m].IsVote {
// MScreenValue[Common.ButtonFive_ScreenBindingID] = 1
// } else {
// MScreenValue[Common.ButtonFive_ScreenBindingID] = 0
// }
// }
// if _, ok := MScreenValue[Common.TTopic_ScreenBindingID]; ok {
// for kk := 0; kk < len(MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})); kk++ {
// if _, ex := MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk][Common.ButtonOne_ScreenBindingID]; ex {
// delete(MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk], Common.ButtonOne_ScreenBindingID)
// }
// if _, ex := MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk][Common.ButtonTwo_ScreenBindingID]; ex {
// delete(MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk], Common.ButtonTwo_ScreenBindingID)
// }
// if _, ex := MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk][Common.ButtonThree_ScreenBindingID]; ex {
// delete(MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk], Common.ButtonThree_ScreenBindingID)
// }
// if _, ex := MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk][Common.ButtonFour_ScreenBindingID]; ex {
// delete(MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk], Common.ButtonFour_ScreenBindingID)
// }
// if _, ex := MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk][Common.ButtonFive_ScreenBindingID]; ex {
// delete(MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk], Common.ButtonFive_ScreenBindingID)
// }
// if tindex, ex := MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk]["topicindex"]; ex {
// for _, to := range CurrentTopicChildTopic {
// if to.To_num == tindex.(int64) {
// if (Common.VoteMethod)(to.To_votemethod) == Common.VoteMethod_AllowModify || (Common.VoteMethod)(to.To_votemethod) == Common.VoteMethod_NotAllowModify {
// for _, res := range AllVoteKeyResults {
// if MPerIDPerson[res.Perid].IsVote {
// if res.Perid == ALLAPinfo[m].Id {
// if to.To_num == int64(res.Topicindex) {
// if res.Presskey == "1" {
// MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk][Common.ButtonOne_ScreenBindingID] = 2
// }
// if res.Presskey == "2" {
// MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk][Common.ButtonTwo_ScreenBindingID] = 2
// }
// if res.Presskey == "3" {
// MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk][Common.ButtonThree_ScreenBindingID] = 2
// }
// if res.Presskey == "4" {
// MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk][Common.ButtonFour_ScreenBindingID] = 2
// }
// if res.Presskey == "5" {
// MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk][Common.ButtonFive_ScreenBindingID] = 2
// }
// }
// }
// }
// }
// }
// break
// }
// }
// }
// }
// }
// if (Common.VoteMethod)(CurrentTopic.To_votemethod) == Common.VoteMethod_AllowModify || (Common.VoteMethod)(CurrentTopic.To_votemethod) == Common.VoteMethod_NotAllowModify {
// for _, res := range AllVoteKeyResults {
// if ALLAPinfo[m].IsVote {
// if res.Perid == ALLAPinfo[m].Id {
// if res.Presskey == "1" {
// MScreenValue[Common.ButtonOne_ScreenBindingID] = 2
// }
// if res.Presskey == "2" {
// MScreenValue[Common.ButtonTwo_ScreenBindingID] = 2
// }
// if res.Presskey == "3" {
// MScreenValue[Common.ButtonThree_ScreenBindingID] = 2
// }
// if res.Presskey == "4" {
// MScreenValue[Common.ButtonFour_ScreenBindingID] = 2
// }
// if res.Presskey == "5" {
// MScreenValue[Common.ButtonFive_ScreenBindingID] = 2
// }
// }
// }
// }
// }
// if _, ok := MScreenValue[Common.ThisClientPCCurrentPeopleSpeakTip_ScreenBindingID]; ok {
// MScreenValue[Common.ThisClientPCCurrentPeopleSpeakTip_ScreenBindingID] = "请按发言键申请发言"
// for t := 0; t < len(SpeakingPersons); t++ {
// if SpeakingPersons[t].AgPerson.Id == ALLAPinfo[m].Id {
// MScreenValue[Common.ThisClientPCCurrentPeopleSpeakTip_ScreenBindingID] = "正在发言"
// }
// }
// for t := 0; t < len(ApplySpeakPersons); t++ {
// if ApplySpeakPersons[t].AgPerson.Id == ALLAPinfo[m].Id {
// MScreenValue[Common.ThisClientPCCurrentPeopleSpeakTip_ScreenBindingID] = "您已申请发言,请等待发言"
// }
// }
// }
// websocketservers.ServerSendHTMLMobileScreenDataChange(AllScreenValue, ALLAPinfo[m].AP_StaffID)
// }
// } else {
// //人员没有分配坐席
// // fmt.Println(value)
// AllScreenValue["IsShow"] = value.Sfe_jumpshow
// AllScreenValue["IsShowBack"] = value.Sfe_backshow
// if _, ok := MScreenValue[Common.ThisClientPCCurrentPeopleName_ScreenBindingID]; ok {
// MScreenValue[Common.ThisClientPCCurrentPeopleName_ScreenBindingID] = MStIDStaffInfo[ALLAPinfo[m].AP_StaffID].St_Name
// }
// if _, ok := MScreenValue[Common.ThisClientPCCurrentPeopleTip_ScreenBindingID]; ok {
// if ALLAPinfo[m].AP_CheckState == 1 {
// MScreenValue[Common.ThisClientPCCurrentPeopleTip_ScreenBindingID] = "您已报到"
// } else {
// if ReportTempListContins(ALLAPinfo[m].Id) {
// MScreenValue[Common.ThisClientPCCurrentPeopleTip_ScreenBindingID] = "您已报到"
// } else {
// MScreenValue[Common.ThisClientPCCurrentPeopleTip_ScreenBindingID] = "请按报到键报到"
// }
// }
// }
// if _, ok := MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID]; ok {
// if ALLAPinfo[m].IsVote {
// if (Common.TopicType)(CurrentTopic.To_type) == Common.TopicType_Evaluation {
// if AllSysSet["evaluationType"].Sys_value == "2" {
// MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID] = "您已表决"
// } else {
// MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID] = "您已测评"
// }
// // MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID] = "您已测评"
// } else {
// if (Common.VoteSpecies)(CurrentTopic.To_votespecies) == Common.VoteSpecies_MultiVote {
// if _, ok := MPerIDPressNum[ALLAPinfo[m].Id]; ok {
// if MPerIDPressNum[ALLAPinfo[m].Id] == len(CurrentTopicChildTopic) {
// MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID] = "您已全部表决"
// } else {
// MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID] = "您未全部表决"
// }
// } else {
// MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID] = "请按表决键表决"
// }
// } else {
// MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID] = "您已表决"
// }
// }
// } else {
// if (Common.TopicType)(CurrentTopic.To_type) == Common.TopicType_Evaluation {
// if AllSysSet["evaluationType"].Sys_value == "2" {
// MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID] = "请按表决键表决"
// } else {
// MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID] = "请按测评键测评"
// }
// // MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID] = "请按测评键"
// } else {
// MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID] = "请按表决键表决"
// }
// }
// }
// if _, ok := MScreenValue[Common.Checkin_ScreenBindingID]; ok {
// if ALLAPinfo[m].AP_CheckState == 1 {
// MScreenValue[Common.Checkin_ScreenBindingID] = 1
// } else {
// MScreenValue[Common.Checkin_ScreenBindingID] = 0
// }
// }
// if _, ok := MScreenValue[Common.ButtonOne_ScreenBindingID]; ok {
// if ALLAPinfo[m].IsVote {
// MScreenValue[Common.ButtonOne_ScreenBindingID] = 1
// } else {
// MScreenValue[Common.ButtonOne_ScreenBindingID] = 0
// }
// }
// if _, ok := MScreenValue[Common.ButtonTwo_ScreenBindingID]; ok {
// if ALLAPinfo[m].IsVote {
// MScreenValue[Common.ButtonTwo_ScreenBindingID] = 1
// } else {
// MScreenValue[Common.ButtonTwo_ScreenBindingID] = 0
// }
// }
// if _, ok := MScreenValue[Common.ButtonThree_ScreenBindingID]; ok {
// if ALLAPinfo[m].IsVote {
// MScreenValue[Common.ButtonThree_ScreenBindingID] = 1
// } else {
// MScreenValue[Common.ButtonThree_ScreenBindingID] = 0
// }
// }
// if _, ok := MScreenValue[Common.ButtonFour_ScreenBindingID]; ok {
// if ALLAPinfo[m].IsVote {
// MScreenValue[Common.ButtonFour_ScreenBindingID] = 1
// } else {
// MScreenValue[Common.ButtonFour_ScreenBindingID] = 0
// }
// }
// if _, ok := MScreenValue[Common.ButtonFive_ScreenBindingID]; ok {
// if ALLAPinfo[m].IsVote {
// MScreenValue[Common.ButtonFive_ScreenBindingID] = 1
// } else {
// MScreenValue[Common.ButtonFive_ScreenBindingID] = 0
// }
// }
// if _, ok := MScreenValue[Common.TTopic_ScreenBindingID]; ok {
// for kk := 0; kk < len(MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})); kk++ {
// if _, ex := MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk][Common.ButtonOne_ScreenBindingID]; ex {
// delete(MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk], Common.ButtonOne_ScreenBindingID)
// }
// if _, ex := MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk][Common.ButtonTwo_ScreenBindingID]; ex {
// delete(MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk], Common.ButtonTwo_ScreenBindingID)
// }
// if _, ex := MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk][Common.ButtonThree_ScreenBindingID]; ex {
// delete(MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk], Common.ButtonThree_ScreenBindingID)
// }
// if _, ex := MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk][Common.ButtonFour_ScreenBindingID]; ex {
// delete(MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk], Common.ButtonFour_ScreenBindingID)
// }
// if _, ex := MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk][Common.ButtonFive_ScreenBindingID]; ex {
// delete(MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk], Common.ButtonFive_ScreenBindingID)
// }
// if tindex, ex := MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk]["topicindex"]; ex {
// for _, to := range CurrentTopicChildTopic {
// if to.To_num == tindex.(int64) {
// if (Common.VoteMethod)(to.To_votemethod) == Common.VoteMethod_AllowModify || (Common.VoteMethod)(to.To_votemethod) == Common.VoteMethod_NotAllowModify {
// for _, res := range AllVoteKeyResults {
// if MPerIDPerson[res.Perid].IsVote {
// if res.Perid == ALLAPinfo[m].Id {
// if to.To_num == int64(res.Topicindex) {
// if res.Presskey == "1" {
// MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk][Common.ButtonOne_ScreenBindingID] = 2
// }
// if res.Presskey == "2" {
// MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk][Common.ButtonTwo_ScreenBindingID] = 2
// }
// if res.Presskey == "3" {
// MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk][Common.ButtonThree_ScreenBindingID] = 2
// }
// if res.Presskey == "4" {
// MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk][Common.ButtonFour_ScreenBindingID] = 2
// }
// if res.Presskey == "5" {
// MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk][Common.ButtonFive_ScreenBindingID] = 2
// }
// }
// }
// }
// }
// }
// break
// }
// }
// }
// }
// }
// if (Common.VoteMethod)(CurrentTopic.To_votemethod) == Common.VoteMethod_AllowModify || (Common.VoteMethod)(CurrentTopic.To_votemethod) == Common.VoteMethod_NotAllowModify {
// for _, res := range AllVoteKeyResults {
// if ALLAPinfo[m].IsVote {
// if res.Perid == ALLAPinfo[m].Id {
// if res.Presskey == "1" {
// MScreenValue[Common.ButtonOne_ScreenBindingID] = 2
// }
// if res.Presskey == "2" {
// MScreenValue[Common.ButtonTwo_ScreenBindingID] = 2
// }
// if res.Presskey == "3" {
// MScreenValue[Common.ButtonThree_ScreenBindingID] = 2
// }
// if res.Presskey == "4" {
// MScreenValue[Common.ButtonFour_ScreenBindingID] = 2
// }
// if res.Presskey == "5" {
// MScreenValue[Common.ButtonFive_ScreenBindingID] = 2
// }
// }
// }
// }
// }
// if _, ok := MScreenValue[Common.ThisClientPCCurrentPeopleSpeakTip_ScreenBindingID]; ok {
// MScreenValue[Common.ThisClientPCCurrentPeopleSpeakTip_ScreenBindingID] = "请按发言键申请发言"
// for t := 0; t < len(SpeakingPersons); t++ {
// if SpeakingPersons[t].AgPerson.Id == ALLAPinfo[m].Id {
// MScreenValue[Common.ThisClientPCCurrentPeopleSpeakTip_ScreenBindingID] = "正在发言"
// }
// }
// for t := 0; t < len(ApplySpeakPersons); t++ {
// if ApplySpeakPersons[t].AgPerson.Id == ALLAPinfo[m].Id {
// MScreenValue[Common.ThisClientPCCurrentPeopleSpeakTip_ScreenBindingID] = "您已申请发言,请等待发言"
// }
// }
// }
// websocketservers.ServerSendHTMLMobileScreenDataChange(AllScreenValue, ALLAPinfo[m].AP_StaffID)
// }
// }
// // }
// }
// }
// }
*/
}
return AllScreenValue
}
// 通知前端切换界面
func OnChangeProcess() {
defer func() {
if err := recover(); err != nil {
log.Println("错误信息OnChangeProcess: ", err)
log.Error("错误信息OnChangeProcess:", err)
}
}()
// screenformeventdao := &Model.TScreenformevent{}
// screenformdao := &Model.TScreenform{}
// tscreen := &Model.TScreen{}
sfeparametermap := make(map[string]interface{})
sfparametermap := make(map[string]interface{})
sparametermap := make(map[string]interface{})
//问题CurrentScreenSessionStatus未赋值
sfeparametermap["sfe_typename"] = CurrentScreenSessionStatus
//问题 GetAllOrder以后通过cpcs获取数据不用查询数据库
//问题 先去掉报错
// screenformeventmap := make([]map[string]interface{}, 0)
screenformeventvalue, _ := GetAllOrder(sfeparametermap)
// screenformeventvalue := screenformeventmap[0][Common.DBRESULT].([]Model.TScreenformevent)
for n := 0; n < len(screenformeventvalue); n++ {
value := screenformeventvalue[n]
sfid := value.Sfe_sf_id
if sfid == "" {
continue
}
if MIDScren[value.Sfe_screenid].Scr_sortid != 5555 {
continue
}
sfparametermap["id"] = sfid
screenformmap := make(map[string]interface{})
screenformmap, _ = Getscreenform(sfparametermap)
// if err == nil {
var MScreenValue map[string]interface{}
MScreenValue = make(map[string]interface{})
var screenformvalue Model.TScreenform
var adev []map[string]interface{}
if len(screenformmap) != 0 {
screenformvalue = screenformmap[Common.DATALIST].(Model.TScreenform)
adev = screenformmap[Common.DBRESULT].([]map[string]interface{})
if value.Sfe_screenid != screenformvalue.Sf_screenid {
fmt.Println("--------")
}
// adev := screenformmap[Common.DBRESULT].([]map[string]interface{})
// screenformvalue.Sf_content=
for _, item := range adev {
// AllEventID = append(AllEventID, item["bindingFieldID"].(string))
// }
// // for i := 0; i < len(adev); i++ {
// // AllEventID = append(AllEventID, devicenode.Device[i].BindingFieldID)
// // }
// for i := 0; i < len(AllEventID); i++ {
switch item["bindingFieldID"].(string) {
case Common.None_ScreenBindingID:
break
case Common.Time_ScreenBindingID:
MScreenValue[Common.Time_ScreenBindingID] = time.Now()
break
case Common.Date_ScreenBindingID:
//通过接口获取cpcd时间
timetype := item["formatPar"].(string)
nowtime := GetNowTimeCPCS()
fmt.Println("当前时间:", timetype+"------"+Common.FormatTimes(nowtime, timetype))
MScreenValue[Common.Date_ScreenBindingID] = Common.FormatTimes(nowtime, timetype)
break
case Common.CompanyName_ScreenBindingID:
MScreenValue[Common.CompanyName_ScreenBindingID] = "北京飞利信科技股份有限公司"
break
case Common.SponsorName_ScreenBindingID:
MScreenValue[Common.SponsorName_ScreenBindingID] = CurrentCongress.Co_HostUnit
break
case Common.SessionMajorTitle_ScreenBindingID:
MScreenValue[Common.SessionMajorTitle_ScreenBindingID] = CurrentAgenda.Ag_Name
break
case Common.SessionLongName_ScreenBindingID:
MScreenValue[Common.SessionLongName_ScreenBindingID] = CurrentCongress.Co_Name + CurrentAgenda.Ag_Name
break
case Common.SessionMinorTitle_ScreenBindingID:
MScreenValue[Common.SessionMinorTitle_ScreenBindingID] = CurrentAgenda.Ag_Content
break
case Common.SessionTitleFormat_ScreenBindingID:
MScreenValue[Common.SessionTitleFormat_ScreenBindingID] = CurrentCongress.Co_Name
break
case Common.CongressType_ScreenBindingID:
//问题MDDictionary通过cpcs获得
MScreenValue[Common.CongressType_ScreenBindingID] = MDDictionary[CurrentAgenda.Ag_Type].Dic_name
break
case Common.PeoplesDueCount_ScreenBindingID:
MScreenValue[Common.PeoplesDueCount_ScreenBindingID] = len(AllPerson)
break
case Common.PeoplesInCount_ScreenBindingID:
var InCount = 0
for j := 0; j < len(AllPerson); j++ {
if AllPerson[j].AP_CheckState == 1 {
InCount++
}
}
MScreenValue[Common.PeoplesInCount_ScreenBindingID] = InCount
break
case Common.PeoplesAbsentCount_ScreenBindingID:
var NotInCount = 0
for j := 0; j < len(AllPerson); j++ {
if AllPerson[j].AP_CheckState != 1 {
NotInCount++
}
}
MScreenValue[Common.PeoplesAbsentCount_ScreenBindingID] = NotInCount
break
case Common.PeoplesRequestedForAbsentCount_ScreenBindingID:
var RequestedCount = 0
for j := 0; j < len(AllPerson); j++ {
if AllPerson[j].AP_Status != "20" && AllPerson[j].AP_CheckState != 1 && AllPerson[j].AP_VotePower == 1 {
RequestedCount++
}
}
MScreenValue[Common.PeoplesRequestedForAbsentCount_ScreenBindingID] = RequestedCount
break
case Common.PeolesUncheckedInCount_ScreenBindingID:
var RequestedCount = 0
for j := 0; j < len(AllPerson); j++ {
if AllPerson[j].AP_CheckState != 1 && AllPerson[j].AP_VotePower == 1 {
RequestedCount++
}
}
MScreenValue[Common.PeolesUncheckedInCount_ScreenBindingID] = RequestedCount
break
case Common.CurrentCheckingPeoplesName_ScreenBindingID:
//问题 Currentreportper未赋值
if Currentreportper != nil {
// 问题 MStIDStaffInfo从cpcs获取
MScreenValue[Common.CurrentCheckingPeoplesName_ScreenBindingID] = MStIDStaffInfo[Currentreportper.AP_StaffID].St_Name
} else {
MScreenValue[Common.CurrentCheckingPeoplesName_ScreenBindingID] = ""
}
break
case Common.CurrentCheckingPeoplesUnit_ScreenBindingID:
if Currentreportper != nil {
MScreenValue[Common.CurrentCheckingPeoplesUnit_ScreenBindingID] = MStIDStaffInfo[Currentreportper.AP_StaffID].St_WorkUnit
} else {
MScreenValue[Common.CurrentCheckingPeoplesUnit_ScreenBindingID] = ""
}
break
case Common.CurrentCheckingPeoplesDangPai_ScreenBindingID:
if Currentreportper != nil {
MScreenValue[Common.CurrentCheckingPeoplesDangPai_ScreenBindingID] = MDDictionary[MStIDStaffInfo[Currentreportper.AP_StaffID].St_PartyID].Dic_name
} else {
MScreenValue[Common.CurrentCheckingPeoplesDangPai_ScreenBindingID] = ""
}
break
case Common.CurrentCheckingPeoplesLevel_ScreenBindingID:
if Currentreportper != nil {
MScreenValue[Common.CurrentCheckingPeoplesLevel_ScreenBindingID] = MStIDStaffInfo[Currentreportper.AP_StaffID].St_Job
} else {
MScreenValue[Common.CurrentCheckingPeoplesLevel_ScreenBindingID] = ""
}
break
case Common.CurrentCheckingPeoplesMinzu_ScreenBindingID:
if Currentreportper != nil {
//问题 MNations从cpcs获取
if MStIDStaffInfo[Currentreportper.AP_StaffID].St_NationID != "" {
MScreenValue[Common.CurrentCheckingPeoplesMinzu_ScreenBindingID] = MNations[MStIDStaffInfo[Currentreportper.AP_StaffID].St_NationID].Nationname
} else {
MScreenValue[Common.CurrentCheckingPeoplesMinzu_ScreenBindingID] = ""
}
} else {
MScreenValue[Common.CurrentCheckingPeoplesMinzu_ScreenBindingID] = ""
}
break
case Common.CurrentCheckingPeoplesGroup_ScreenBindingID:
if Currentreportper != nil {
//问题 MGroups从cpcs获取
MScreenValue[Common.CurrentCheckingPeoplesGroup_ScreenBindingID] = MGroups[MStIDStaffInfo[Currentreportper.AP_StaffID].St_GroupID].Gr_name
} else {
MScreenValue[Common.CurrentCheckingPeoplesGroup_ScreenBindingID] = ""
}
break
case Common.CurrentCheckingPeoplesJiGuan_ScreenBindingID:
MScreenValue[Common.CurrentCheckingPeoplesJiGuan_ScreenBindingID] = ""
break
case Common.CurrentCheckingPeoplesShenFenZheng_ScreenBindingID:
if Currentreportper != nil {
MScreenValue[Common.CurrentCheckingPeoplesShenFenZheng_ScreenBindingID] = MStIDStaffInfo[Currentreportper.AP_StaffID].St_CardNum
} else {
MScreenValue[Common.CurrentCheckingPeoplesShenFenZheng_ScreenBindingID] = ""
}
break
case Common.CurrentCheckingRenYuanLeiXing_ScreenBindingID:
if Currentreportper != nil {
MScreenValue[Common.CurrentCheckingRenYuanLeiXing_ScreenBindingID] = MIDStaffCategory[MStIDStaffInfo[Currentreportper.AP_StaffID].St_CategoryID].Ca_name
} else {
MScreenValue[Common.CurrentCheckingRenYuanLeiXing_ScreenBindingID] = ""
}
break
// case Common.CurrentCheckingPeopleZhengJianLeiXing_ScreenBindingID:
// if Currentreportper!=nil {
// MScreenValue[Common.CurrentCheckingPeopleZhengJianLeiXing_ScreenBindingID]=MDDictionary[Currentreportper.Ap_cardtype].Dic_name
// }else{
// MScreenValue[Common.CurrentCheckingPeopleZhengJianLeiXing_ScreenBindingID]=""
// }
// break;
case Common.PeolesBiaoJuecheckedInPercent_ScreenBindingID:
MScreenValue[Common.PeolesBiaoJuecheckedInPercent_ScreenBindingID] = strconv.Itoa(ArriveNum*100/ShouldNum) + "%"
break
case Common.PeolescheckedInPercent_ScreenBindingID:
var InCount = 0
for j := 0; j < len(ALLAPinfo); j++ {
if ALLAPinfo[j].AP_CheckState == 1 {
InCount++
}
}
MScreenValue[Common.PeolescheckedInPercent_ScreenBindingID] = strconv.Itoa(InCount*100/len(ALLAPinfo)) + "%"
break
case Common.PeoplesCanDueCount_ScreenBindingID:
MScreenValue[Common.PeoplesCanDueCount_ScreenBindingID] = strconv.Itoa(CanChangePersonDueCount)
break
case Common.PeoplesInCanCount_ScreenBindingID:
MScreenValue[Common.PeoplesInCanCount_ScreenBindingID] = strconv.Itoa(CanChangePersonInCount)
break
case Common.PeoplesAbsentCanCount_ScreenBindingID:
MScreenValue[Common.PeoplesAbsentCanCount_ScreenBindingID] = strconv.Itoa(CanChangePersonDueCount - CanChangePersonInCount)
break
case Common.CurrentRefrushCardStatePrompt_ScreenBindingID:
if CurrentPerson != nil {
// if lastTime, exists := LastCardTime[CurrentPerson.AP_StaffInfo.St_ViceCardNum]; exists {
if time.Since(CurrentPerson.AP_CheckInTime) > 5*time.Second {
MScreenValue[Common.CurrentRefrushCardStatePrompt_ScreenBindingID] = "您已重复报到"
} else {
MScreenValue[Common.CurrentRefrushCardStatePrompt_ScreenBindingID] = "您已报到"
}
// }
} else {
MScreenValue[Common.CurrentRefrushCardStatePrompt_ScreenBindingID] = ""
4 weeks ago
}
break
case Common.ThisClientPCInCountOfPerson_ScreenBindingID:
MScreenValue[Common.ThisClientPCInCountOfPerson_ScreenBindingID] = CArriveNum
break
case Common.ThisClientPCInCountOfOfDelegate_ScreenBindingID:
MScreenValue[Common.ThisClientPCInCountOfOfDelegate_ScreenBindingID] = ""
break
case Common.ThisClientPCCurrentPeopleName_ScreenBindingID:
MScreenValue[Common.ThisClientPCCurrentPeopleName_ScreenBindingID] = ""
break
case Common.ThisClientPCCurrentPeopleUnit_ScreenBindingID:
MScreenValue[Common.ThisClientPCCurrentPeopleUnit_ScreenBindingID] = ""
break
case Common.ThisClientPCCurrentPeopleLevel_ScreenBindingID:
MScreenValue[Common.ThisClientPCCurrentPeopleLevel_ScreenBindingID] = ""
break
case Common.ThisClientPCCurrentPeoplePhoto_ScreenBindingID:
MScreenValue[Common.ThisClientPCCurrentPeoplePhoto_ScreenBindingID] = ""
break
case Common.ThisClientPCCurrentPeopleTip_ScreenBindingID:
MScreenValue[Common.ThisClientPCCurrentPeopleTip_ScreenBindingID] = ""
break
case Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID:
MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID] = ""
break
case Common.ThisClientPCCurrentPeopleSpeakTip_ScreenBindingID:
MScreenValue[Common.ThisClientPCCurrentPeopleSpeakTip_ScreenBindingID] = ""
break
case Common.ThisClientPCCurrentPeopleMinzu_ScreenBindingID:
MScreenValue[Common.ThisClientPCCurrentPeopleMinzu_ScreenBindingID] = ""
break
case Common.ThisClientPCCurrentPeopleDangPai_ScreenBindingID:
MScreenValue[Common.ThisClientPCCurrentPeopleDangPai_ScreenBindingID] = ""
break
case Common.ThisClientPCCurrentPeopleGroup_ScreenBindingID:
MScreenValue[Common.ThisClientPCCurrentPeopleGroup_ScreenBindingID] = ""
break
case Common.ThisClientPCCurrentPeopleSeatRow_ScreenBindingID:
MScreenValue[Common.ThisClientPCCurrentPeopleSeatRow_ScreenBindingID] = ""
break
case Common.ThisClientPCCurrentPeopleSeatColumn_ScreenBindingID:
MScreenValue[Common.ThisClientPCCurrentPeopleSeatColumn_ScreenBindingID] = ""
break
case Common.ThisClientPCCurrentPeopleSeatInfo_ScreenBindingID:
MScreenValue[Common.ThisClientPCCurrentPeopleSeatInfo_ScreenBindingID] = ""
break
case Common.ThisClientPCCurrentPeopleSeatArea_ScreenBindingID:
MScreenValue[Common.ThisClientPCCurrentPeopleSeatArea_ScreenBindingID] = ""
break
case Common.ThisClientPCCurrentPeopleMeetingPlace_ScreenBindingID:
MScreenValue[Common.ThisClientPCCurrentPeopleMeetingPlace_ScreenBindingID] = ""
break
case Common.ThisClientPCCurrentPeopleJiGuan_ScreenBindingID:
MScreenValue[Common.ThisClientPCCurrentPeopleJiGuan_ScreenBindingID] = ""
break
case Common.ThisClientPCCurrentPeopleShenFenZheng_ScreenBindingID:
MScreenValue[Common.ThisClientPCCurrentPeopleShenFenZheng_ScreenBindingID] = ""
break
case Common.ThisClientPCCurrentPeopleRenYuanLeiXing_ScreenBindingID:
MScreenValue[Common.ThisClientPCCurrentPeopleRenYuanLeiXing_ScreenBindingID] = ""
break
case Common.ThisClientPCCurrentPeopleZhengJianLeiXing_ScreenBindingID:
MScreenValue[Common.ThisClientPCCurrentPeopleZhengJianLeiXing_ScreenBindingID] = ""
break
case Common.ThisClientPCCurrentPeopleXiWei_ScreenBindingID:
MScreenValue[Common.ThisClientPCCurrentPeopleXiWei_ScreenBindingID] = ""
break
case Common.LocalPeopleTypeCount_ScreenBindingID:
MScreenValue[Common.LocalPeopleTypeCount_ScreenBindingID] = ""
break
case Common.LocalQuanxianPeopleTypeCount_ScreenBindingID:
MScreenValue[Common.LocalQuanxianPeopleTypeCount_ScreenBindingID] = ""
break
case Common.YindaoPeople_ScreenBindingID:
MScreenValue[Common.YindaoPeople_ScreenBindingID] = ShouldNum
break
case Common.PeopleTypeCount_ScreenBindingID:
MScreenValue[Common.PeopleTypeCount_ScreenBindingID] = ""
break
case Common.WeidaoPeople_ScreenBindingID:
MScreenValue[Common.WeidaoPeople_ScreenBindingID] = NoArriveNum
break
case Common.YindaoBiaojuePeople_ScreenBindingID:
MScreenValue[Common.YindaoBiaojuePeople_ScreenBindingID] = ShouldNum
break
case Common.PeopleBiaojueType_ScreenBindingID:
MScreenValue[Common.PeopleBiaojueType_ScreenBindingID] = ArriveNum
break
case Common.WeidaobiaojuePeple_ScreenBindingID:
MScreenValue[Common.WeidaobiaojuePeple_ScreenBindingID] = NoArriveNum
break
case Common.KuoZhan1_ScreenBindingID:
MScreenValue[Common.KuoZhan1_ScreenBindingID] = Currentreportper.AP_Remark
break
case Common.KuoZhan2_ScreenBindingID:
MScreenValue[Common.KuoZhan2_ScreenBindingID] = ""
break
case Common.KuoZhan3_ScreenBindingID:
MScreenValue[Common.KuoZhan3_ScreenBindingID] = ""
break
case Common.YindaoWUBiaojuePeople_ScreenBindingID:
var WuPeopleCount = 0
for j := 0; j < len(AllPerson); j++ {
if AllPerson[j].AP_VotePower != 1 {
WuPeopleCount++
}
}
MScreenValue[Common.YindaoWUBiaojuePeople_ScreenBindingID] = WuPeopleCount
break
case Common.PeopleWUBiaojueType_ScreenBindingID:
var WuArriPeopleCount = 0
for j := 0; j < len(AllPerson); j++ {
if AllPerson[j].AP_VotePower != 1 && AllPerson[j].AP_CheckState == 1 {
WuArriPeopleCount++
}
}
MScreenValue[Common.PeopleWUBiaojueType_ScreenBindingID] = WuArriPeopleCount
break
case Common.WeidaoWUbiaojuePeple_ScreenBindingID:
var WuNotArriPeopleCount = 0
for j := 0; j < len(AllPerson); j++ {
if AllPerson[j].AP_VotePower != 1 && AllPerson[j].AP_CheckState != 1 {
WuNotArriPeopleCount++
}
}
MScreenValue[Common.WeidaoWUbiaojuePeple_ScreenBindingID] = WuNotArriPeopleCount
break
case Common.AnJian1Mingcheng_ScreenBindingID:
MScreenValue[Common.AnJian1Mingcheng_ScreenBindingID] = CurrentTopic.To_buttononename
break
case Common.AnJianValue_ScreenBindingID:
MScreenValue[Common.AnJianValue_ScreenBindingID] = CurrentTopic.To_buttononenum + CurrentTopic.To_buttontwonum + CurrentTopic.To_buttonthreenum + CurrentTopic.To_buttonfournum + CurrentTopic.To_buttonfivenum
break
case Common.AnJian1Value_ScreenBindingID:
MScreenValue[Common.AnJian1Value_ScreenBindingID] = CurrentTopic.To_buttononenum
break
case Common.AnJian2Mingcheng_ScreenBindingID:
MScreenValue[Common.AnJian2Mingcheng_ScreenBindingID] = CurrentTopic.To_buttontwoname
break
case Common.AnJian2Value_ScreenBindingID:
MScreenValue[Common.AnJian2Value_ScreenBindingID] = CurrentTopic.To_buttontwonum
break
case Common.AnJian3Mingcheng_ScreenBindingID:
MScreenValue[Common.AnJian3Mingcheng_ScreenBindingID] = CurrentTopic.To_buttonthreename
break
case Common.AnJian3Value_ScreenBindingID:
MScreenValue[Common.AnJian3Value_ScreenBindingID] = CurrentTopic.To_buttonthreenum
break
case Common.AnJian4Mingcheng_ScreenBindingID:
MScreenValue[Common.AnJian4Mingcheng_ScreenBindingID] = CurrentTopic.To_buttonfourname
break
case Common.AnJian4Value_ScreenBindingID:
MScreenValue[Common.AnJian4Value_ScreenBindingID] = CurrentTopic.To_buttonfournum
break
case Common.AnJian5Mingcheng_ScreenBindingID:
MScreenValue[Common.AnJian5Mingcheng_ScreenBindingID] = CurrentTopic.To_buttonfivename
break
case Common.AnJian5Value_ScreenBindingID:
MScreenValue[Common.AnJian5Value_ScreenBindingID] = CurrentTopic.To_buttonfivenum
break
case Common.WaiverOrUnPushDownCount_ScreenBindingID:
MScreenValue[Common.WaiverOrUnPushDownCount_ScreenBindingID] = CurrentTopic.To_actualnum - CurrentTopic.To_buttonnotnum - CurrentTopic.To_buttontwonum
break
case Common.VoteUndeclareCount_ScreenBindingID:
MScreenValue[Common.VoteUndeclareCount_ScreenBindingID] = CurrentTopic.To_buttonnotnum
break
case Common.UnvoteInformation_ScreenBindingID:
MScreenValue[Common.UnvoteInformation_ScreenBindingID] = "请按表决键表决"
break
case Common.AnJian1Percent_ScreenBindingID:
if CurrentTopic.To_actualnum != 0 {
MScreenValue[Common.AnJian1Percent_ScreenBindingID] = strconv.Itoa(int(CurrentTopic.To_buttononenum*100/CurrentTopic.To_actualnum)) + "%"
}
break
case Common.AnJian2Percent_ScreenBindingID:
if CurrentTopic.To_actualnum != 0 {
MScreenValue[Common.AnJian2Percent_ScreenBindingID] = strconv.Itoa(int(CurrentTopic.To_buttontwonum*100/CurrentTopic.To_actualnum)) + "%"
}
break
case Common.AnJian3Percent_ScreenBindingID:
if CurrentTopic.To_actualnum != 0 {
MScreenValue[Common.AnJian3Percent_ScreenBindingID] = strconv.Itoa(int(CurrentTopic.To_buttonthreenum*100/CurrentTopic.To_actualnum)) + "%"
}
break
case Common.AnJian4Percent_ScreenBindingID:
if CurrentTopic.To_actualnum != 0 {
MScreenValue[Common.AnJian4Percent_ScreenBindingID] = strconv.Itoa(int(CurrentTopic.To_buttonfournum*100/CurrentTopic.To_actualnum)) + "%"
}
break
case Common.AnJian5Percent_ScreenBindingID:
if CurrentTopic.To_actualnum != 0 {
MScreenValue[Common.AnJian5Percent_ScreenBindingID] = strconv.Itoa(int(CurrentTopic.To_buttonfivenum*100/CurrentTopic.To_actualnum)) + "%"
}
break
case Common.UnPushDownPercent_ScreenBindingID:
if CurrentTopic.To_actualnum != 0 {
MScreenValue[Common.UnPushDownPercent_ScreenBindingID] = strconv.Itoa(int(CurrentTopic.To_buttonnotnum*100/CurrentTopic.To_actualnum)) + "%"
}
break
case Common.PushDownPercent_ScreenBindingID:
if CurrentTopic.To_actualnum != 0 {
MScreenValue[Common.PushDownPercent_ScreenBindingID] = strconv.Itoa(int((CurrentTopic.To_buttonnotnum+CurrentTopic.To_buttontwonum+CurrentTopic.To_buttonthreenum+CurrentTopic.To_buttonfournum+CurrentTopic.To_buttonfivenum)*100/CurrentTopic.To_actualnum)) + "%"
}
break
case Common.WaiverOrUnPushDownPercent_ScreenBindingID:
if CurrentTopic.To_actualnum != 0 {
MScreenValue[Common.WaiverOrUnPushDownPercent_ScreenBindingID] = strconv.Itoa(int((CurrentTopic.To_actualnum-CurrentTopic.To_buttonnotnum-CurrentTopic.To_buttontwonum)*100/CurrentTopic.To_actualnum)) + "%"
}
break
case Common.FavourInformation_ScreenBindingID:
var acount int
if AllSysSet["votehalfprompt"].Sys_value == "1" {
acount = ShouldNum
} else {
acount = ArriveNum
}
if float64(CurrentTopic.To_buttononenum)/float64(acount) > 0.5 {
MScreenValue[Common.FavourInformation_ScreenBindingID] = "赞成过半数"
} else {
MScreenValue[Common.FavourInformation_ScreenBindingID] = ""
}
break
case Common.AvgAppraise_ScreenBindingID:
MScreenValue[Common.AvgAppraise_ScreenBindingID] = strconv.FormatFloat(float64(CurrentTopic.To_voteresult*1.0/100), 'f', 2, 32)
break
case Common.ChildTopicAnJian1Mingcheng_ScreenBindingID:
MScreenValue[Common.ChildTopicAnJian1Mingcheng_ScreenBindingID] = CurrentTopicChildTopic[IndexChildTopic].To_buttononename
break
case Common.ChildTopicAnJian1Value_ScreenBindingID:
MScreenValue[Common.ChildTopicAnJian1Value_ScreenBindingID] = CurrentTopicChildTopic[IndexChildTopic].To_buttononenum
break
case Common.ChildTopicAnJian2Mingcheng_ScreenBindingID:
MScreenValue[Common.ChildTopicAnJian2Mingcheng_ScreenBindingID] = CurrentTopicChildTopic[IndexChildTopic].To_buttontwoname
break
case Common.ChildTopicAnJian2Value_ScreenBindingID:
MScreenValue[Common.ChildTopicAnJian2Value_ScreenBindingID] = CurrentTopicChildTopic[IndexChildTopic].To_buttontwonum
break
case Common.ChildTopicAnJian3Mingcheng_ScreenBindingID:
MScreenValue[Common.ChildTopicAnJian3Mingcheng_ScreenBindingID] = CurrentTopicChildTopic[IndexChildTopic].To_buttonthreename
break
case Common.ChildTopicAnJian3Value_ScreenBindingID:
MScreenValue[Common.ChildTopicAnJian3Value_ScreenBindingID] = CurrentTopicChildTopic[IndexChildTopic].To_buttonthreenum
break
case Common.ChildTopicAnJian4Mingcheng_ScreenBindingID:
MScreenValue[Common.ChildTopicAnJian4Mingcheng_ScreenBindingID] = CurrentTopicChildTopic[IndexChildTopic].To_buttonfourname
break
case Common.ChildTopicAnJian4Value_ScreenBindingID:
MScreenValue[Common.ChildTopicAnJian4Value_ScreenBindingID] = CurrentTopicChildTopic[IndexChildTopic].To_buttonfournum
break
case Common.ChildTopicAnJian5Mingcheng_ScreenBindingID:
MScreenValue[Common.ChildTopicAnJian5Mingcheng_ScreenBindingID] = CurrentTopicChildTopic[IndexChildTopic].To_buttonfivename
break
case Common.ChildTopicAnJian5Value_ScreenBindingID:
MScreenValue[Common.ChildTopicAnJian5Value_ScreenBindingID] = CurrentTopicChildTopic[IndexChildTopic].To_buttonfivenum
break
case Common.ChildTopicVoteUndeclareCount_ScreenBindingID:
MScreenValue[Common.ChildTopicVoteUndeclareCount_ScreenBindingID] = CurrentTopicChildTopic[IndexChildTopic].To_buttonnotnum
break
case Common.ChildTopicVoteResultText_ScreenBindingID:
MScreenValue[Common.ChildTopicVoteResultText_ScreenBindingID] = CurrentTopicChildTopic[IndexChildTopic].To_voteresult_CH
break
case Common.ChildTopicAnJian1Percent_ScreenBindingID:
MScreenValue[Common.ChildTopicAnJian1Percent_ScreenBindingID] = strconv.Itoa(int(CurrentTopicChildTopic[IndexChildTopic].To_buttononenum*100/CurrentTopicChildTopic[IndexChildTopic].To_actualnum)) + "%"
break
case Common.ChildTopicAnJian2Percent_ScreenBindingID:
MScreenValue[Common.ChildTopicAnJian2Percent_ScreenBindingID] = strconv.Itoa(int(CurrentTopicChildTopic[IndexChildTopic].To_buttontwonum*100/CurrentTopicChildTopic[IndexChildTopic].To_actualnum)) + "%"
break
case Common.ChildTopicAnJian3Percent_ScreenBindingID:
MScreenValue[Common.ChildTopicAnJian3Percent_ScreenBindingID] = strconv.Itoa(int(CurrentTopicChildTopic[IndexChildTopic].To_buttonthreenum*100/CurrentTopicChildTopic[IndexChildTopic].To_actualnum)) + "%"
break
case Common.ChildTopicUnPushDownPercent_ScreenBindingID:
MScreenValue[Common.ChildTopicUnPushDownPercent_ScreenBindingID] = strconv.Itoa(int(CurrentTopicChildTopic[IndexChildTopic].To_buttonnotnum*100/CurrentTopicChildTopic[IndexChildTopic].To_actualnum)) + "%"
break
case Common.ChildTopicAvgAppraise_ScreenBindingID:
MScreenValue[Common.ChildTopicAvgAppraise_ScreenBindingID] = strconv.FormatFloat(float64(CurrentTopicChildTopic[IndexChildTopic].To_voteresult*1.0/100), 'f', 2, 32)
break
case Common.MuchTopicAllPressNum_ScreenBindingID:
MScreenValue[Common.MuchTopicAllPressNum_ScreenBindingID] = FinishPerson
break
case Common.MuchTopicPartPressNum_ScreenBindingID:
MScreenValue[Common.MuchTopicPartPressNum_ScreenBindingID] = PartFinishPerson
break
case Common.MuchTopicNoPressNum_ScreenBindingID:
MScreenValue[Common.MuchTopicNoPressNum_ScreenBindingID] = NoPressPerson
break
case Common.TopicMajorTitle_ScreenBindingID:
MScreenValue[Common.TopicMajorTitle_ScreenBindingID] = CurrentTopic.To_name
break
case Common.TopicMajorRemark_ScreenBindingID:
MScreenValue[Common.TopicMajorRemark_ScreenBindingID] = CurrentTopic.To_remark
break
case Common.TopicChild_ScreenBindingID:
va, _ := json.Marshal(CurrentTopicChildTopic)
MScreenValue[Common.TopicChild_ScreenBindingID] = string(va)
break
case Common.TopicContent_ScreenBindingID:
var SysValue map[string]interface{}
SysValue = make(map[string]interface{})
SysValue["to_agendahtml"] = CurrentTopic.To_agendahtml
SysValue["to_agendabgcolor"] = screenformvalue.Sf_bgcolor
MScreenValue[Common.TopicMajorRemark_ScreenBindingID] = SysValue
break
case Common.CurrentSubjectContent_ScreenBindingID:
if len(CurrentTopicChildTopic) > 0 {
var SysValue map[string]interface{}
SysValue = make(map[string]interface{})
SysValue["to_agendahtml"] = CurrentTopic.To_agendahtml
SysValue["to_agendabgcolor"] = screenformvalue.Sf_bgcolor
MScreenValue[Common.CurrentSubjectContent_ScreenBindingID] = SysValue
} else {
var SysValue map[string]interface{}
SysValue = make(map[string]interface{})
SysValue["to_agendahtml"] = CurrentTopic.To_agendahtml
SysValue["to_agendabgcolor"] = screenformvalue.Sf_bgcolor
MScreenValue[Common.CurrentSubjectContent_ScreenBindingID] = SysValue
// MScreenValue["to_agendabgcolor"] = CurrentTopic.To_agendabgcolor
}
break
case Common.VoteResultText_ScreenBindingID:
MScreenValue[Common.VoteResultText_ScreenBindingID] = CurrentTopic.To_voteresult_CH
break
case Common.Checkin_ScreenBindingID:
MScreenValue[Common.Checkin_ScreenBindingID] = 0
break
case Common.ButtonOne_ScreenBindingID:
MScreenValue[Common.ButtonOne_ScreenBindingID] = 0
break
case Common.ButtonTwo_ScreenBindingID:
MScreenValue[Common.ButtonTwo_ScreenBindingID] = 0
break
case Common.ButtonThree_ScreenBindingID:
MScreenValue[Common.ButtonThree_ScreenBindingID] = 0
break
case Common.ButtonFour_ScreenBindingID:
MScreenValue[Common.ButtonFour_ScreenBindingID] = 0
break
case Common.ButtonFive_ScreenBindingID:
MScreenValue[Common.ButtonFive_ScreenBindingID] = 0
break
case Common.VoteRestrictTime_ScreenBindingID:
MScreenValue[Common.VoteRestrictTime_ScreenBindingID] = VoteCursorTimer
break
case Common.CurrentSpeakingPeoplesName_ScreenBindingID:
if len(SpeakingPersons) > 0 {
if AllSysSet["isshowchairman"].Sys_value == "1" {
if AllSysSet["showspeakfirstorlast"].Sys_value == "1" {
MScreenValue[Common.CurrentSpeakingPeoplesName_ScreenBindingID] = SpeakingPersons[len(SpeakingPersons)-1].AgPName
} else {
MScreenValue[Common.CurrentSpeakingPeoplesName_ScreenBindingID] = SpeakingPersons[0].AgPName
}
} else {
var pername string
if AllSysSet["showspeakfirstorlast"].Sys_value == "1" {
for j := len(SpeakingPersons) - 1; j >= 0; j-- {
if SpeakingPersons[j].AgPerson.AP_FirstSpeakPower != 1 {
pername = SpeakingPersons[j].AgPName
break
}
}
} else {
for j := 0; j < len(SpeakingPersons); j++ {
if SpeakingPersons[j].AgPerson.AP_FirstSpeakPower != 1 {
pername = SpeakingPersons[j].AgPName
break
}
}
}
MScreenValue[Common.CurrentSpeakingPeoplesName_ScreenBindingID] = pername
}
} else {
MScreenValue[Common.CurrentSpeakingPeoplesName_ScreenBindingID] = ""
}
break
case Common.CurrentSpeakingPeoplesUnit_ScreenBindingID:
if len(SpeakingPersons) > 0 {
if AllSysSet["isshowchairman"].Sys_value == "1" {
if AllSysSet["showspeakfirstorlast"].Sys_value == "1" {
MScreenValue[Common.CurrentSpeakingPeoplesUnit_ScreenBindingID] = MStIDStaffInfo[SpeakingPersons[len(SpeakingPersons)-1].AgPerson.AP_StaffID].St_WorkUnit
} else {
MScreenValue[Common.CurrentSpeakingPeoplesUnit_ScreenBindingID] = MStIDStaffInfo[SpeakingPersons[0].AgPerson.AP_StaffID].St_WorkUnit
}
} else {
var percontent string
if AllSysSet["showspeakfirstorlast"].Sys_value == "1" {
for j := len(SpeakingPersons) - 1; j >= 0; j-- {
if SpeakingPersons[j].AgPerson.AP_FirstSpeakPower != 1 {
percontent = MStIDStaffInfo[SpeakingPersons[j].AgPerson.AP_StaffID].St_WorkUnit
break
}
}
} else {
for j := 0; j < len(SpeakingPersons); j++ {
if SpeakingPersons[j].AgPerson.AP_FirstSpeakPower != 1 {
percontent = MStIDStaffInfo[SpeakingPersons[j].AgPerson.AP_StaffID].St_WorkUnit
break
}
}
}
MScreenValue[Common.CurrentSpeakingPeoplesUnit_ScreenBindingID] = percontent
}
} else {
MScreenValue[Common.CurrentSpeakingPeoplesUnit_ScreenBindingID] = ""
}
break
case Common.CurrentSpeakingPeoplesDangPai_ScreenBindingID:
if len(SpeakingPersons) > 0 {
if AllSysSet["isshowchairman"].Sys_value == "1" {
if AllSysSet["showspeakfirstorlast"].Sys_value == "1" {
MScreenValue[Common.CurrentSpeakingPeoplesDangPai_ScreenBindingID] = MDDictionary[MStIDStaffInfo[SpeakingPersons[len(SpeakingPersons)-1].AgPerson.AP_StaffID].St_PartyID].Dic_name
} else {
MScreenValue[Common.CurrentSpeakingPeoplesDangPai_ScreenBindingID] = MDDictionary[MStIDStaffInfo[SpeakingPersons[0].AgPerson.AP_StaffID].St_PartyID].Dic_name
}
} else {
var percontent string
if AllSysSet["showspeakfirstorlast"].Sys_value == "1" {
for j := len(SpeakingPersons) - 1; j >= 0; j-- {
if SpeakingPersons[j].AgPerson.AP_FirstSpeakPower != 1 {
percontent = MDDictionary[MStIDStaffInfo[SpeakingPersons[j].AgPerson.AP_StaffID].St_PartyID].Dic_name
break
}
}
} else {
for j := 0; j < len(SpeakingPersons); j++ {
if SpeakingPersons[j].AgPerson.AP_FirstSpeakPower != 1 {
percontent = MDDictionary[MStIDStaffInfo[SpeakingPersons[j].AgPerson.AP_StaffID].St_PartyID].Dic_name
break
}
}
}
MScreenValue[Common.CurrentSpeakingPeoplesDangPai_ScreenBindingID] = percontent
}
} else {
MScreenValue[Common.CurrentSpeakingPeoplesDangPai_ScreenBindingID] = ""
}
break
case Common.CurrentSpeakingPeoplesLevel_ScreenBindingID:
if len(SpeakingPersons) > 0 {
if AllSysSet["isshowchairman"].Sys_value == "1" {
if AllSysSet["showspeakfirstorlast"].Sys_value == "1" {
MScreenValue[Common.CurrentSpeakingPeoplesLevel_ScreenBindingID] = MStIDStaffInfo[SpeakingPersons[len(SpeakingPersons)-1].AgPerson.AP_StaffID].St_Job
} else {
MScreenValue[Common.CurrentSpeakingPeoplesLevel_ScreenBindingID] = MStIDStaffInfo[SpeakingPersons[0].AgPerson.AP_StaffID].St_Job
}
} else {
var percontent string
if AllSysSet["showspeakfirstorlast"].Sys_value == "1" {
for j := len(SpeakingPersons) - 1; j >= 0; j-- {
if SpeakingPersons[j].AgPerson.AP_FirstSpeakPower != 1 {
percontent = MStIDStaffInfo[SpeakingPersons[j].AgPerson.AP_StaffID].St_Job
break
}
}
} else {
for j := 0; j < len(SpeakingPersons); j++ {
if SpeakingPersons[j].AgPerson.AP_FirstSpeakPower != 1 {
percontent = MStIDStaffInfo[SpeakingPersons[j].AgPerson.AP_StaffID].St_Job
break
}
}
}
MScreenValue[Common.CurrentSpeakingPeoplesLevel_ScreenBindingID] = percontent
}
} else {
MScreenValue[Common.CurrentSpeakingPeoplesLevel_ScreenBindingID] = ""
}
break
case Common.CurrentSpeakingPeoplesMinzu_ScreenBindingID:
if len(SpeakingPersons) > 0 {
if AllSysSet["isshowchairman"].Sys_value == "1" {
if AllSysSet["showspeakfirstorlast"].Sys_value == "1" {
MScreenValue[Common.CurrentSpeakingPeoplesMinzu_ScreenBindingID] = MNations[MStIDStaffInfo[SpeakingPersons[len(SpeakingPersons)-1].AgPerson.AP_StaffID].St_NationID].Nationname
} else {
MScreenValue[Common.CurrentSpeakingPeoplesMinzu_ScreenBindingID] = MNations[MStIDStaffInfo[SpeakingPersons[0].AgPerson.AP_StaffID].St_NationID].Nationname
}
} else {
var percontent string
if AllSysSet["showspeakfirstorlast"].Sys_value == "1" {
for j := len(SpeakingPersons) - 1; j >= 0; j-- {
if SpeakingPersons[j].AgPerson.AP_FirstSpeakPower != 1 {
percontent = MNations[MStIDStaffInfo[SpeakingPersons[j].AgPerson.AP_StaffID].St_NationID].Nationname
break
}
}
} else {
for j := 0; j < len(SpeakingPersons); j++ {
if SpeakingPersons[j].AgPerson.AP_FirstSpeakPower != 1 {
percontent = MNations[MStIDStaffInfo[SpeakingPersons[j].AgPerson.AP_StaffID].St_NationID].Nationname
break
}
}
}
MScreenValue[Common.CurrentSpeakingPeoplesMinzu_ScreenBindingID] = percontent
}
} else {
MScreenValue[Common.CurrentSpeakingPeoplesMinzu_ScreenBindingID] = ""
}
break
case Common.CurrentSpeakingPeoplesGroup_ScreenBindingID:
if len(SpeakingPersons) > 0 {
if AllSysSet["isshowchairman"].Sys_value == "1" {
if AllSysSet["showspeakfirstorlast"].Sys_value == "1" {
MScreenValue[Common.CurrentSpeakingPeoplesGroup_ScreenBindingID] = MGroups[MStIDStaffInfo[SpeakingPersons[len(SpeakingPersons)-1].AgPerson.AP_StaffID].St_GroupID].Gr_name
} else {
MScreenValue[Common.CurrentSpeakingPeoplesGroup_ScreenBindingID] = MGroups[MStIDStaffInfo[SpeakingPersons[0].AgPerson.AP_StaffID].St_NationID].Gr_name
}
} else {
var percontent string
if AllSysSet["showspeakfirstorlast"].Sys_value == "1" {
for j := len(SpeakingPersons) - 1; j >= 0; j-- {
if SpeakingPersons[j].AgPerson.AP_FirstSpeakPower != 1 {
percontent = MGroups[MStIDStaffInfo[SpeakingPersons[j].AgPerson.AP_StaffID].St_NationID].Gr_name
break
}
}
} else {
for j := 0; j < len(SpeakingPersons); j++ {
if SpeakingPersons[j].AgPerson.AP_FirstSpeakPower != 1 {
percontent = MGroups[MStIDStaffInfo[SpeakingPersons[j].AgPerson.AP_StaffID].St_NationID].Gr_name
break
}
}
}
MScreenValue[Common.CurrentSpeakingPeoplesGroup_ScreenBindingID] = percontent
}
} else {
MScreenValue[Common.CurrentSpeakingPeoplesGroup_ScreenBindingID] = ""
}
break
case Common.CurrentApplySpeakingPeoplesName_ScreenBindingID:
if len(ApplySpeakPersons) > 0 {
MScreenValue[Common.CurrentApplySpeakingPeoplesName_ScreenBindingID] = ApplySpeakPersons[0].AgPName
} else {
MScreenValue[Common.CurrentApplySpeakingPeoplesName_ScreenBindingID] = ""
}
break
case Common.CurrentApplySpeakingPeoplesUnit_ScreenBindingID:
if len(ApplySpeakPersons) > 0 {
MScreenValue[Common.CurrentApplySpeakingPeoplesUnit_ScreenBindingID] = MStIDStaffInfo[ApplySpeakPersons[0].AgPerson.AP_StaffID].St_WorkUnit
} else {
MScreenValue[Common.CurrentApplySpeakingPeoplesUnit_ScreenBindingID] = ""
}
break
case Common.CurrentApplySpeakingPeoplesDangPai_ScreenBindingID:
if len(ApplySpeakPersons) > 0 {
MScreenValue[Common.CurrentApplySpeakingPeoplesDangPai_ScreenBindingID] = MDDictionary[MStIDStaffInfo[ApplySpeakPersons[0].AgPerson.AP_StaffID].St_PartyID].Dic_name
} else {
MScreenValue[Common.CurrentApplySpeakingPeoplesDangPai_ScreenBindingID] = ""
}
break
case Common.CurrentApplySpeakingPeoplesLevel_ScreenBindingID:
if len(ApplySpeakPersons) > 0 {
MScreenValue[Common.CurrentApplySpeakingPeoplesLevel_ScreenBindingID] = MStIDStaffInfo[ApplySpeakPersons[0].AgPerson.AP_StaffID].St_Job
} else {
MScreenValue[Common.CurrentApplySpeakingPeoplesLevel_ScreenBindingID] = ""
}
break
case Common.CurrentApplySpeakingPeoplesMinzu_ScreenBindingID:
if len(ApplySpeakPersons) > 0 {
MScreenValue[Common.CurrentApplySpeakingPeoplesMinzu_ScreenBindingID] = MNations[MStIDStaffInfo[ApplySpeakPersons[0].AgPerson.AP_StaffID].St_NationID].Nationname
} else {
MScreenValue[Common.CurrentApplySpeakingPeoplesMinzu_ScreenBindingID] = ""
}
break
case Common.CurrentApplySpeakingPeoplesGroup_ScreenBindingID:
if len(ApplySpeakPersons) > 0 {
MScreenValue[Common.CurrentApplySpeakingPeoplesGroup_ScreenBindingID] = MGroups[MStIDStaffInfo[ApplySpeakPersons[0].AgPerson.AP_StaffID].St_NationID].Gr_name
} else {
MScreenValue[Common.CurrentApplySpeakingPeoplesGroup_ScreenBindingID] = ""
}
break
case Common.SpeakingRestrictTime_ScreenBindingID:
if len(SpeakingPersons) > 0 {
if AllSysSet["isshowchairman"].Sys_value == "1" {
if AllSysSet["showspeakfirstorlast"].Sys_value == "1" {
if SpeakingPersons[len(SpeakingPersons)-1].AgPerson.AP_FirstSpeakPower == 1 {
MScreenValue[Common.SpeakingRestrictTime_ScreenBindingID] = ""
} else {
MScreenValue[Common.SpeakingRestrictTime_ScreenBindingID] = SpeakingPersons[len(SpeakingPersons)-1].AllowSpeakTime
}
} else {
MScreenValue[Common.SpeakingRestrictTime_ScreenBindingID] = SpeakingPersons[0].AllowSpeakTime
}
} else {
var percontent string
if AllSysSet["showspeakfirstorlast"].Sys_value == "1" {
for j := len(SpeakingPersons) - 1; j >= 0; j-- {
if SpeakingPersons[j].AgPerson.AP_FirstSpeakPower != 1 {
percontent = SpeakingPersons[j].AllowSpeakTime
break
}
}
} else {
for j := 0; j < len(SpeakingPersons); j++ {
if SpeakingPersons[j].AgPerson.AP_FirstSpeakPower != 1 {
percontent = SpeakingPersons[j].AllowSpeakTime
break
}
}
}
MScreenValue[Common.SpeakingRestrictTime_ScreenBindingID] = percontent
}
} else {
MScreenValue[Common.SpeakingRestrictTime_ScreenBindingID] = ""
}
break
case Common.ReportState_ScreenBindingID:
MScreenValue[Common.ReportState_ScreenBindingID] = MDDictionary[CurrentAgenda.Ag_CheckInType].Dic_name
break
case Common.CurrentCheckingPeoplesPhoto_ScreenBindingID:
if Currentreportper != nil {
MScreenValue[Common.CurrentCheckingPeoplesPhoto_ScreenBindingID] = MStIDStaffInfo[Currentreportper.AP_StaffID].St_Image
} else {
MScreenValue[Common.CurrentCheckingPeoplesPhoto_ScreenBindingID] = ""
}
break
case Common.CurrentApplySpeakingPeoplesPhoto_ScreenBindingID:
if len(ApplySpeakPersons) > 0 {
MScreenValue[Common.CurrentApplySpeakingPeoplesPhoto_ScreenBindingID] = MStIDStaffInfo[ApplySpeakPersons[0].AgPerson.AP_StaffID].St_Image
} else {
MScreenValue[Common.CurrentApplySpeakingPeoplesPhoto_ScreenBindingID] = ""
}
break
case Common.CurrentSpeakingPeoplesPhoto_ScreenBindingID:
if len(SpeakingPersons) > 0 {
if AllSysSet["isshowchairman"].Sys_value == "1" {
if AllSysSet["showspeakfirstorlast"].Sys_value == "1" {
MScreenValue[Common.CurrentSpeakingPeoplesPhoto_ScreenBindingID] = MStIDStaffInfo[SpeakingPersons[len(SpeakingPersons)-1].AgPerson.AP_StaffID].St_Image
} else {
MScreenValue[Common.CurrentSpeakingPeoplesPhoto_ScreenBindingID] = MStIDStaffInfo[SpeakingPersons[0].AgPerson.AP_StaffID].St_Image
}
} else {
var percontent string
if AllSysSet["showspeakfirstorlast"].Sys_value == "1" {
for j := len(SpeakingPersons) - 1; j >= 0; j-- {
if SpeakingPersons[j].AgPerson.AP_FirstSpeakPower != 1 {
percontent = MStIDStaffInfo[SpeakingPersons[j].AgPerson.AP_StaffID].St_Image
break
}
}
} else {
for j := 0; j < len(SpeakingPersons); j++ {
if SpeakingPersons[j].AgPerson.AP_FirstSpeakPower != 1 {
percontent = MStIDStaffInfo[SpeakingPersons[j].AgPerson.AP_StaffID].St_Image
break
}
}
}
MScreenValue[Common.CurrentSpeakingPeoplesPhoto_ScreenBindingID] = percontent
}
} else {
MScreenValue[Common.CurrentSpeakingPeoplesPhoto_ScreenBindingID] = ""
}
break
case Common.HasedPhoto_ScreenBindingID:
MScreenValue[Common.HasedPhoto_ScreenBindingID] = "upload/screenfile/huibiao.png"
break
case Common.PeoplesCheckingList_ScreenBindingID:
var allpercontent []map[string]interface{}
var allpersons []Model.T_AgendaPerson
for _, ap := range ALLAPinfo {
allpersons = append(allpersons, ap)
}
rowcount, err := strconv.Atoi(item["rowCount"].(string))
if err != nil {
rowcount = 6
}
colcount, errr := strconv.Atoi(item["colCount"].(string))
if errr != nil {
colcount = 11
}
//showStyle 静态显示还是动态显示 0静态 1动态
if item["showStyle"].(string) == "0" {
if _, ok := item["peopleOrderBy"]; ok {
//排序方式有待研究 目前是编号
if item["peopleOrderBy"].(string) == "" || item["peopleOrderBy"].(string) == "0" {
sort.SliceStable(allpersons, func(i, j int) bool {
return allpersons[i].AP_CodeNum < allpersons[j].AP_CodeNum
})
} else {
sort.SliceStable(allpersons, func(i, j int) bool {
return allpersons[i].AP_CodeNum < allpersons[j].AP_CodeNum
})
}
} else {
sort.SliceStable(allpersons, func(i, j int) bool {
return allpersons[i].AP_CodeNum < allpersons[j].AP_CodeNum
})
}
for d := 0; d < len(allpersons); d++ {
percontent := make(map[string]interface{})
if strings.Contains(item["bindingFieldPeopleType"].(string), MStIDStaffInfo[allpersons[d].AP_StaffID].St_CategoryID) {
percontent["pername"] = MStIDStaffInfo[allpersons[d].AP_StaffID].St_Name
percontent["formid"] = item["id"].(string)
percontent["checkinstatus"] = allpersons[d].AP_CheckState
allpercontent = append(allpercontent, percontent)
}
}
if rowcount*colcount < len(allpercontent) {
allpercontent = allpercontent[0 : rowcount*colcount]
}
} else {
//trendsStyle 动态方式(动态加入0动态减入1 )
if item["trendsStyle"].(string) == "0" {
//排序方式有待研究 目前是报到时间
if item["peopleOrderBy"].(string) == "6" {
sort.SliceStable(allpersons, func(i, j int) bool {
return allpersons[i].AP_CheckInTime.Format("2006-01-02 15:04:05") < allpersons[j].AP_CheckInTime.Format("2006-01-02 15:04:05")
})
} else {
sort.SliceStable(allpersons, func(i, j int) bool {
return allpersons[i].AP_CheckInTime.Format("2006-01-02 15:04:05") > allpersons[j].AP_CheckInTime.Format("2006-01-02 15:04:05")
})
}
for d := 0; d < len(allpersons); d++ {
percontent := make(map[string]interface{})
if strings.Contains(item["bindingFieldPeopleType"].(string), MStIDStaffInfo[allpersons[d].AP_StaffID].St_CategoryID) {
if allpersons[d].AP_CheckState == 1 {
percontent["pername"] = MStIDStaffInfo[allpersons[d].AP_StaffID].St_Name
percontent["checkinstatus"] = allpersons[d].AP_CheckState
percontent["formid"] = item["id"].(string)
allpercontent = append(allpercontent, percontent)
}
}
}
if rowcount*colcount < len(allpercontent) {
if item["peopleOrderBy"].(string) == "6" {
allpercontent = allpercontent[len(allpercontent)-rowcount*colcount:]
} else {
allpercontent = allpercontent[0 : rowcount*colcount]
}
}
} else {
sort.SliceStable(allpersons, func(i, j int) bool {
return allpersons[i].AP_CodeNum < allpersons[j].AP_CodeNum
})
for d := 0; d < len(allpersons); d++ {
if rowcount*colcount <= len(allpercontent) {
break
}
percontent := make(map[string]interface{})
if strings.Contains(item["bindingFieldPeopleType"].(string), MStIDStaffInfo[allpersons[d].AP_StaffID].St_CategoryID) {
if allpersons[d].AP_CheckState != 1 {
percontent["pername"] = MStIDStaffInfo[allpersons[d].AP_StaffID].St_Name
percontent["checkinstatus"] = allpersons[d].AP_CheckState
percontent["formid"] = item["id"].(string)
allpercontent = append(allpercontent, percontent)
}
}
}
if rowcount*colcount < len(allpercontent) {
allpercontent = allpercontent[0 : rowcount*colcount]
}
}
}
// allcontent, _ := json.Marshal(allpercontent)
MScreenValue[Common.PeoplesCheckingList_ScreenBindingID] = allpercontent
break
case Common.PeoplesSpeakingList_ScreenBindingID:
var allpercontent []map[string]interface{}
var allpersons []*Model.SpeakingPerson
for _, ap := range SpeakingPersons {
allpersons = append(allpersons, ap)
}
//排序方式有待研究 目前是发言开始时间
sort.SliceStable(allpersons, func(i, j int) bool {
return allpersons[i].SpeakStartTime.Format("2006-01-02 15:04:05") > allpersons[j].SpeakStartTime.Format("2006-01-02 15:04:05")
})
rowcount, err := strconv.Atoi(item["rowCount"].(string))
if err != nil {
rowcount = 5
}
colcount, errr := strconv.Atoi(item["colCount"].(string))
if errr != nil {
colcount = 1
}
for d := 0; d < rowcount*colcount; d++ {
if d >= len(allpersons) {
break
}
percontent := make(map[string]interface{})
if strings.Contains(item["bindingFieldPeopleType"].(string), MStIDStaffInfo[allpersons[d].AgPerson.AP_StaffID].St_CategoryID) {
if allpersons[d].ShowOnScreen {
percontent["pername"] = MStIDStaffInfo[allpersons[d].AgPerson.AP_StaffID].St_Name
percontent["formid"] = item["id"].(string)
percontent["allowSpeakTime"] = allpersons[d].AllowSpeakTime
percontent["overTimeSecond"] = allpersons[d].OverTimeSecond
percontent["formid"] = item["id"].(string)
allpercontent = append(allpercontent, percontent)
}
}
}
// allcontent, _ := json.Marshal(allpercontent)
MScreenValue[Common.PeoplesSpeakingList_ScreenBindingID] = allpercontent
break
case Common.PeoplesApplySpeakingList_ScreenBindingID:
// var allpercontentAll []map[string]interface{}
// allpercontentAll = make([]map[string]interface{}, 0)
var allpercontent []map[string]interface{}
allpercontent = make([]map[string]interface{}, 0)
var allpersons []*Model.SpeakingPerson
allpersons = make([]*Model.SpeakingPerson, 0)
for _, ap := range ApplySpeakPersons {
allpersons = append(allpersons, ap)
}
//排序方式有待研究 目前是发言开始时间
sort.SliceStable(allpersons, func(i, j int) bool {
return allpersons[i].ApplyTime.Format("2006-01-02 15:04:05") > allpersons[j].ApplyTime.Format("2006-01-02 15:04:05")
})
rowcount, err := strconv.Atoi(item["rowCount"].(string))
if err != nil {
rowcount = 5
}
colcount, errr := strconv.Atoi(item["colCount"].(string))
if errr != nil {
colcount = 1
}
for d := 0; d < len(allpersons); d++ {
percontent := make(map[string]interface{})
if strings.Contains(item["bindingFieldPeopleType"].(string), MStIDStaffInfo[allpersons[d].AgPerson.AP_StaffID].St_CategoryID) {
if allpersons[d].ShowOnScreen {
percontent["pername"] = MStIDStaffInfo[allpersons[d].AgPerson.AP_StaffID].St_Name
percontent["formid"] = item["id"].(string)
if allpersons[d].SpeakTimes > 1 {
percontent["secondTip"] = "二次申请"
} else {
percontent["secondTip"] = ""
}
percontent["perjob"] = MStIDStaffInfo[allpersons[d].AgPerson.AP_StaffID].St_Job
allpercontent = append(allpercontent, percontent)
}
}
}
if rowcount*colcount < len(allpercontent) {
allpercontent = allpercontent[0 : rowcount*colcount]
}
// allcontent, _ := json.Marshal(allpercontent)
// 检查 MScreenValue 是否已存在结果,如果存在则合并结果
if existingContent, ok := MScreenValue[Common.PeoplesApplySpeakingList_ScreenBindingID]; ok {
// 将已有内容转换为 []map[string]interface{}
if existingSlice, valid := existingContent.([]map[string]interface{}); valid {
allpercontent = append(existingSlice, allpercontent...) // 合并两个切片
}
}
// allpercontentAll["id"] = item["id"].(string)
// allpercontentAll["data"] = allpercontent
// allpercontentAll = append(allpercontentAll, allpercontent)
MScreenValue[Common.PeoplesApplySpeakingList_ScreenBindingID] = allpercontent
fmt.Println("申请发言人列表", allpercontent)
break
case Common.PeoplesAlreadySpeakingList_ScreenBindingID:
var allpercontent []map[string]interface{}
allpercontent = make([]map[string]interface{}, 0)
var allpersons []*Model.T_AgendaPerson
allpersons = make([]*Model.T_AgendaPerson, 0)
for _, ap := range SpeakedPersons {
allpersons = append(allpersons, ap)
}
//排序方式有待研究 目前是发言开始时间
sort.SliceStable(allpersons, func(i, j int) bool {
return allpersons[i].AP_CodeNum < allpersons[j].AP_CodeNum
})
rowcount, err := strconv.Atoi(item["rowCount"].(string))
if err != nil {
rowcount = 5
}
colcount, errr := strconv.Atoi(item["colCount"].(string))
if errr != nil {
colcount = 1
}
for d := 0; d < rowcount*colcount; d++ {
if d >= len(allpersons) {
break
}
percontent := make(map[string]interface{})
if strings.Contains(item["bindingFieldPeopleType"].(string), MStIDStaffInfo[allpersons[d].AP_StaffID].St_CategoryID) {
percontent["pername"] = MStIDStaffInfo[allpersons[d].AP_StaffID].St_Name
percontent["perjob"] = MStIDStaffInfo[allpersons[d].AP_StaffID].St_Job
percontent["formid"] = item["id"].(string)
allpercontent = append(allpercontent, percontent)
}
}
// allcontent, _ := json.Marshal(allpercontent)
MScreenValue[Common.PeoplesAlreadySpeakingList_ScreenBindingID] = allpercontent
break
case Common.PeoplesImageList_ScreenBindingID:
if Currentreportper != nil {
rowcount, err := strconv.Atoi(item["rowCount"].(string))
if err != nil {
rowcount = 1
}
colcount, err := strconv.Atoi(item["colCount"].(string))
if err != nil {
colcount = 5
}
maxCount := rowcount * colcount
// 创建新的报到人员信息
newPer := make(map[string]interface{})
newPer["pername"] = MStIDStaffInfo[Currentreportper.AP_StaffID].St_Name
newPer["perimage"] = MStIDStaffInfo[Currentreportper.AP_StaffID].St_Image
newPer["formid"] = item["id"].(string)
// 如果已有数据超过最大数量,移除最旧的一个
if len(Allperpiccontent) >= maxCount {
Allperpiccontent = Allperpiccontent[:maxCount-1]
}
// 将新报到人员插入到数组最前面
Allperpiccontent = append([]map[string]interface{}{newPer}, Allperpiccontent...)
MScreenValue[Common.PeoplesImageList_ScreenBindingID] = Allperpiccontent
}
// var allpercontent []map[string]interface{}
// var allpersons []Model.T_AgendaPerson
// for _, ap := range ALLAPinfo {
// allpersons = append(allpersons, ap)
// }
// //排序方式有待研究 目前是编号
// sort.SliceStable(allpersons, func(i, j int) bool {
// return allpersons[i].AP_CheckInTime.Format("2006-01-02 15:04:05") > allpersons[j].AP_CheckInTime.Format("2006-01-02 15:04:05")
// })
// rowcount, err := strconv.Atoi(item["rowCount"].(string))
// if err != nil {
// rowcount = 1
// }
// colcount, errr := strconv.Atoi(item["colCount"].(string))
// if errr != nil {
// colcount = 5
// }
// for d := 0; d < rowcount*colcount; d++ {
// if d >= len(allpersons) {
// break
// }
// percontent := make(map[string]interface{})
// if strings.Contains(item["bindingFieldPeopleType"].(string), MStIDStaffInfo[allpersons[d].AP_StaffID].St_CategoryID) {
// percontent["pername"] = MStIDStaffInfo[allpersons[d].AP_StaffID].St_Name
// percontent["perimage"] = MStIDStaffInfo[allpersons[d].AP_StaffID].St_Image
// percontent["formid"] = item["id"].(string)
// allpercontent = append(allpercontent, percontent)
// }
// }
// // allcontent, _ := json.Marshal(allpercontent)
// MScreenValue[Common.PeoplesImageList_ScreenBindingID] = allpercontent
break
case Common.PeoplesGroupList_ScreenBindingID:
var allgroupcontent []map[string]interface{}
var allpersons []Model.T_AgendaPerson
for _, ap := range ALLAPinfo {
allpersons = append(allpersons, ap)
}
for _, gro := range MGroups {
groupcontent := make(map[string]interface{})
gshouldnum := 0
garrivenum := 0
gnoarrivenum := 0
for d := 0; d < len(allpersons); d++ {
if MStIDStaffInfo[allpersons[d].AP_StaffID].St_GroupID == gro.Id {
gshouldnum += 1
if allpersons[d].AP_ReportPower == 1 && allpersons[d].AP_VotePower == 1 {
if allpersons[d].AP_CheckState == 1 {
garrivenum += 1
}
}
}
}
gnoarrivenum = gshouldnum - garrivenum
groupcontent["groupname"] = gro.Gr_name
groupcontent["groupshouldnum"] = gshouldnum
groupcontent["grouparrivenum"] = garrivenum
groupcontent["groupnoarrivenum"] = gnoarrivenum
allgroupcontent = append(allgroupcontent, groupcontent)
}
// allcontent, _ := json.Marshal(allgroupcontent)
MScreenValue[Common.PeoplesGroupList_ScreenBindingID] = allgroupcontent
break
//子议题列表
case Common.TTopic_ScreenBindingID:
var allgroupcontent []map[string]interface{}
var mun = "1"
sort.SliceStable(CurrentTopicChildTopic, func(i, j int) bool {
return CurrentTopicChildTopic[i].To_num < CurrentTopicChildTopic[j].To_num
})
var onepagecount int
onepagecount, _ = strconv.Atoi(item["topicNumOnePage"].(string))
for toindex, to := range CurrentTopicChildTopic {
if toindex < onepagecount*IndexPageTopic || toindex >= onepagecount*(IndexPageTopic+1) {
continue
}
tobj := make(map[string]interface{})
if mun == "1" {
if item["keyTopicSelect"] == "true" {
tobj["To_name"] = "议题名称"
}
if item["key1Select"] == "true" {
tobj["key1Select"] = to.To_buttononename
}
if item["key2Select"] == "true" {
tobj["key2Select"] = to.To_buttontwoname
}
if item["key3Select"] == "true" {
tobj["key3Select"] = to.To_buttonthreename
}
if item["keyOtherSelect"] == "true" {
tobj["keyOtherSelect"] = "未按人数"
}
if item["keyResultSelect"] == "true" {
tobj["keyResultSelect"] = "结果"
}
if len(tobj) != 0 {
allgroupcontent = append(allgroupcontent, tobj)
}
tobj = make(map[string]interface{})
mun = "2"
}
if item["keyTopicSelect"] == "true" {
tobj["To_name"] = to.To_name
}
if item["key1Select"] == "true" {
tobj["key1Select"] = to.To_buttononenum
}
if item["key2Select"] == "true" {
tobj["key2Select"] = to.To_buttontwonum
}
if item["key3Select"] == "true" {
tobj["key3Select"] = to.To_buttonthreenum
}
if item["keyOtherSelect"] == "true" {
tobj["keyOtherSelect"] = to.To_buttonnotnum
}
if item["keyResultSelect"] == "true" {
tobj["keyResultSelect"] = to.To_voteresult_CH
}
tobj["topicindex"] = to.To_num
// myresultmap = append(myresultmap, tobj)
if len(tobj) != 0 {
allgroupcontent = append(allgroupcontent, tobj)
}
tobj = make(map[string]interface{})
}
if len(allgroupcontent) != 0 {
MScreenValue[Common.TTopic_ScreenBindingID] = allgroupcontent
}
break
}
//-- 动态列表变量 --
// //本机报到人员列表
// ThisClientPCCheckInArray_ScreenBindingID int = 0x1082
// //按预报到人员姓名拼音
// CheckInOrderByName_ScreenBindingID int = 0x1107
// //按预报到人员证件卡号
// CheckInOrderByCard_ScreenBindingID int = 0x1108
// //按预报到人员的座列号
// CheckInOrderBySeat_ScreenBindingID int = 0x1110
}
}
AllScreenValue := make(map[string]interface{})
screenformvalue.Sf_content = ""
AllScreenValue["ScreenContent"] = Common.StructToMap(screenformvalue)
AllScreenValue["ScreenFromContent"] = adev
AllScreenValue["ScreenData"] = MScreenValue
sparametermap["id"] = value.Sfe_screenid
//问题 先去掉报错
screenvalue, _ := GetOneScreen(sparametermap)
// tscreenresule := make(map[string]interface{})
// screenvalue := tscreenresule[Common.DBRESULT].(Model.TScreen)
if screenvalue.Scr_sortid == 5555 {
if _, ok := MScreenData[screenformvalue.Sf_screenid]; ok {
//报到大屏每隔5秒发送一次数据不变也发送 所以去掉
// if !Common.MapsAreEqual(AllScreenValue, MScreenData[screenformvalue.Sf_screenid]) {
websocketservers.ServerSendHTMLScreenDataChange(AllScreenValue, Common.LoadConfig().CheckInDoor.DoorName)
MScreenData[screenformvalue.Sf_screenid] = AllScreenValue
// }
} else {
websocketservers.ServerSendHTMLScreenDataChange(AllScreenValue, Common.LoadConfig().CheckInDoor.DoorName)
MScreenData[screenformvalue.Sf_screenid] = AllScreenValue
}
}
/*
// else if screenvalue.Scr_sortid == 2222 {
// //委员 报到 非报到 列席是否可以报到 报到 未报到
// //报到界面是否跳转 //发言界面是否跳转 //表决界面是否跳转
// for m := 0; m < len(ALLAPinfo); m++ {
// // if _, exists := MPerIDSeatUnit[ALLAPinfo[m].Id]; exists {
// if ALLAPinfo[m].Ap_votepower == 1 && ALLAPinfo[m].Ap_moderator == 0 {
// if _, exists := MPerIDSeatUnit[ALLAPinfo[m].Id]; exists {
// if CurrentScreenSessionStatus > Common.SessionStatus_Reporting {
// if ALLAPinfo[m].AP_CheckState != 1 {
// continue
// }
// }
// //人员分配坐席了
// if MPerIDSeatUnit[ALLAPinfo[m].Id].SoftOnline {
// // fmt.Println(value)
// AllScreenValue["IsShow"] = value.Sfe_jumpshow
// AllScreenValue["IsShowBack"] = value.Sfe_backshow
// if _, ok := MScreenValue[Common.ThisClientPCCurrentPeopleName_ScreenBindingID]; ok {
// MScreenValue[Common.ThisClientPCCurrentPeopleName_ScreenBindingID] = MStIDStaffInfo[ALLAPinfo[m].AP_StaffID].St_Name
// }
// if _, ok := MScreenValue[Common.ThisClientPCCurrentPeopleTip_ScreenBindingID]; ok {
// if ALLAPinfo[m].AP_CheckState == 1 {
// MScreenValue[Common.ThisClientPCCurrentPeopleTip_ScreenBindingID] = "您已报到"
// } else {
// if ReportTempListContins(ALLAPinfo[m].Id) {
// MScreenValue[Common.ThisClientPCCurrentPeopleTip_ScreenBindingID] = "您已报到"
// } else {
// MScreenValue[Common.ThisClientPCCurrentPeopleTip_ScreenBindingID] = "请按报到键报到"
// }
// }
// }
// if _, ok := MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID]; ok {
// if ALLAPinfo[m].IsVote {
// if (Common.TopicType)(CurrentTopic.To_type) == Common.TopicType_Evaluation {
// if AllSysSet["evaluationType"].Sys_value == "2" {
// MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID] = "您已表决"
// } else {
// MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID] = "您已测评"
// }
// // MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID] = "您已测评"
// } else {
// if (Common.VoteSpecies)(CurrentTopic.To_votespecies) == Common.VoteSpecies_MultiVote {
// if _, ok := MPerIDPressNum[ALLAPinfo[m].Id]; ok {
// if MPerIDPressNum[ALLAPinfo[m].Id] == len(CurrentTopicChildTopic) {
// MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID] = "您已全部表决"
// } else {
// MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID] = "您未全部表决"
// }
// } else {
// MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID] = "请按表决键表决"
// }
// } else {
// MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID] = "您已表决"
// }
// }
// } else {
// if (Common.TopicType)(CurrentTopic.To_type) == Common.TopicType_Evaluation {
// if AllSysSet["evaluationType"].Sys_value == "2" {
// MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID] = "请按表决键表决"
// } else {
// MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID] = "请按测评键测评"
// }
// // MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID] = "请按测评键"
// } else {
// MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID] = "请按表决键表决"
// }
// }
// }
// if _, ok := MScreenValue[Common.Checkin_ScreenBindingID]; ok {
// if ALLAPinfo[m].AP_CheckState == 1 {
// MScreenValue[Common.Checkin_ScreenBindingID] = 1
// } else {
// MScreenValue[Common.Checkin_ScreenBindingID] = 0
// }
// }
// if _, ok := MScreenValue[Common.ButtonOne_ScreenBindingID]; ok {
// if ALLAPinfo[m].IsVote {
// MScreenValue[Common.ButtonOne_ScreenBindingID] = 1
// } else {
// MScreenValue[Common.ButtonOne_ScreenBindingID] = 0
// }
// }
// if _, ok := MScreenValue[Common.ButtonTwo_ScreenBindingID]; ok {
// if ALLAPinfo[m].IsVote {
// MScreenValue[Common.ButtonTwo_ScreenBindingID] = 1
// } else {
// MScreenValue[Common.ButtonTwo_ScreenBindingID] = 0
// }
// }
// if _, ok := MScreenValue[Common.ButtonThree_ScreenBindingID]; ok {
// if ALLAPinfo[m].IsVote {
// MScreenValue[Common.ButtonThree_ScreenBindingID] = 1
// } else {
// MScreenValue[Common.ButtonThree_ScreenBindingID] = 0
// }
// }
// if _, ok := MScreenValue[Common.ButtonFour_ScreenBindingID]; ok {
// if ALLAPinfo[m].IsVote {
// MScreenValue[Common.ButtonFour_ScreenBindingID] = 1
// } else {
// MScreenValue[Common.ButtonFour_ScreenBindingID] = 0
// }
// }
// if _, ok := MScreenValue[Common.ButtonFive_ScreenBindingID]; ok {
// if ALLAPinfo[m].IsVote {
// MScreenValue[Common.ButtonFive_ScreenBindingID] = 1
// } else {
// MScreenValue[Common.ButtonFive_ScreenBindingID] = 0
// }
// }
// if _, ok := MScreenValue[Common.TTopic_ScreenBindingID]; ok {
// for kk := 0; kk < len(MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})); kk++ {
// if _, ex := MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk][Common.ButtonOne_ScreenBindingID]; ex {
// delete(MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk], Common.ButtonOne_ScreenBindingID)
// }
// if _, ex := MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk][Common.ButtonTwo_ScreenBindingID]; ex {
// delete(MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk], Common.ButtonTwo_ScreenBindingID)
// }
// if _, ex := MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk][Common.ButtonThree_ScreenBindingID]; ex {
// delete(MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk], Common.ButtonThree_ScreenBindingID)
// }
// if _, ex := MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk][Common.ButtonFour_ScreenBindingID]; ex {
// delete(MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk], Common.ButtonFour_ScreenBindingID)
// }
// if _, ex := MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk][Common.ButtonFive_ScreenBindingID]; ex {
// delete(MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk], Common.ButtonFive_ScreenBindingID)
// }
// if tindex, ex := MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk]["topicindex"]; ex {
// for _, to := range CurrentTopicChildTopic {
// if to.To_num == tindex.(int64) {
// if (Common.VoteMethod)(to.To_votemethod) == Common.VoteMethod_AllowModify || (Common.VoteMethod)(to.To_votemethod) == Common.VoteMethod_NotAllowModify {
// for _, res := range AllVoteKeyResults {
// if MPerIDPerson[res.Perid].IsVote {
// if res.Perid == ALLAPinfo[m].Id {
// if to.To_num == int64(res.Topicindex) {
// if res.Presskey == "1" {
// MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk][Common.ButtonOne_ScreenBindingID] = 2
// }
// if res.Presskey == "2" {
// MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk][Common.ButtonTwo_ScreenBindingID] = 2
// }
// if res.Presskey == "3" {
// MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk][Common.ButtonThree_ScreenBindingID] = 2
// }
// if res.Presskey == "4" {
// MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk][Common.ButtonFour_ScreenBindingID] = 2
// }
// if res.Presskey == "5" {
// MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk][Common.ButtonFive_ScreenBindingID] = 2
// }
// }
// }
// }
// }
// }
// break
// }
// }
// }
// }
// }
// if (Common.VoteMethod)(CurrentTopic.To_votemethod) == Common.VoteMethod_AllowModify || (Common.VoteMethod)(CurrentTopic.To_votemethod) == Common.VoteMethod_NotAllowModify {
// for _, res := range AllVoteKeyResults {
// if ALLAPinfo[m].IsVote {
// if res.Perid == ALLAPinfo[m].Id {
// if res.Presskey == "1" {
// MScreenValue[Common.ButtonOne_ScreenBindingID] = 2
// }
// if res.Presskey == "2" {
// MScreenValue[Common.ButtonTwo_ScreenBindingID] = 2
// }
// if res.Presskey == "3" {
// MScreenValue[Common.ButtonThree_ScreenBindingID] = 2
// }
// if res.Presskey == "4" {
// MScreenValue[Common.ButtonFour_ScreenBindingID] = 2
// }
// if res.Presskey == "5" {
// MScreenValue[Common.ButtonFive_ScreenBindingID] = 2
// }
// }
// }
// }
// }
// if _, ok := MScreenValue[Common.ThisClientPCCurrentPeopleSpeakTip_ScreenBindingID]; ok {
// MScreenValue[Common.ThisClientPCCurrentPeopleSpeakTip_ScreenBindingID] = "请按发言键申请发言"
// for t := 0; t < len(SpeakingPersons); t++ {
// if SpeakingPersons[t].AgPerson.Id == ALLAPinfo[m].Id {
// MScreenValue[Common.ThisClientPCCurrentPeopleSpeakTip_ScreenBindingID] = "正在发言"
// }
// }
// for t := 0; t < len(ApplySpeakPersons); t++ {
// if ApplySpeakPersons[t].AgPerson.Id == ALLAPinfo[m].Id {
// MScreenValue[Common.ThisClientPCCurrentPeopleSpeakTip_ScreenBindingID] = "您已申请发言,请等待发言"
// }
// }
// }
// if CurrentScreenSessionStatus == Common.SessionStatus_StartAppraise || CurrentScreenSessionStatus == Common.SessionStatus_Appraising || CurrentScreenSessionStatus == Common.SessionStatus_StartMuchAppraise || CurrentScreenSessionStatus == Common.SessionStatus_MuchAppraising || CurrentScreenSessionStatus == Common.SessionStatus_StartScoring || CurrentScreenSessionStatus == Common.SessionStatus_Scoring || CurrentScreenSessionStatus == Common.SessionStatus_StartMuchScoring || CurrentScreenSessionStatus == Common.SessionStatus_MuchScoring || CurrentScreenSessionStatus == Common.SessionStatus_StartMuchVote || CurrentScreenSessionStatus == Common.SessionStatus_MuchVoting || CurrentSessionStatus == Common.SessionStatus_StartVote || CurrentSessionStatus == Common.SessionStatus_Voting {
// if AllSysSet["defaultSoftVote"].Sys_value == "1" {
// websocketservers.ServerSendHTMLMobileScreenDataChange(AllScreenValue, ALLAPinfo[m].AP_StaffID)
// } else {
// if !ALLAPinfo[m].IsSoftVote {
// websocketservers.ServerSendHTMLMobileScreenDataChange(AllScreenValue, ALLAPinfo[m].AP_StaffID)
// }
// }
// } else {
// if CurrentSessionStatus == Common.SessionStatus_StartReport || CurrentSessionStatus == Common.SessionStatus_Reporting {
// if AllSysSet["defaultSoftReport"].Sys_value == "1" {
// websocketservers.ServerSendHTMLMobileScreenDataChange(AllScreenValue, ALLAPinfo[m].AP_StaffID)
// } else {
// if !ALLAPinfo[m].IsSoftReport {
// websocketservers.ServerSendHTMLMobileScreenDataChange(AllScreenValue, ALLAPinfo[m].AP_StaffID)
// }
// }
// } else {
// websocketservers.ServerSendHTMLMobileScreenDataChange(AllScreenValue, ALLAPinfo[m].AP_StaffID)
// }
// }
// } else {
// if CurrentScreenSessionStatus > Common.SessionStatus_Reporting {
// if ALLAPinfo[m].AP_CheckState != 1 {
// continue
// }
// }
// //人员没有分配坐席
// // fmt.Println(value)
// AllScreenValue["IsShow"] = value.Sfe_jumpshow
// AllScreenValue["IsShowBack"] = value.Sfe_backshow
// if _, ok := MScreenValue[Common.ThisClientPCCurrentPeopleName_ScreenBindingID]; ok {
// MScreenValue[Common.ThisClientPCCurrentPeopleName_ScreenBindingID] = MStIDStaffInfo[ALLAPinfo[m].AP_StaffID].St_Name
// }
// if _, ok := MScreenValue[Common.ThisClientPCCurrentPeopleTip_ScreenBindingID]; ok {
// if ALLAPinfo[m].AP_CheckState == 1 {
// MScreenValue[Common.ThisClientPCCurrentPeopleTip_ScreenBindingID] = "您已报到"
// } else {
// if ReportTempListContins(ALLAPinfo[m].Id) {
// MScreenValue[Common.ThisClientPCCurrentPeopleTip_ScreenBindingID] = "您已报到"
// } else {
// MScreenValue[Common.ThisClientPCCurrentPeopleTip_ScreenBindingID] = "请按报到键报到"
// }
// }
// }
// if _, ok := MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID]; ok {
// if ALLAPinfo[m].IsVote {
// if (Common.TopicType)(CurrentTopic.To_type) == Common.TopicType_Evaluation {
// if AllSysSet["evaluationType"].Sys_value == "2" {
// MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID] = "您已表决"
// } else {
// MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID] = "您已测评"
// }
// // MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID] = "您已测评"
// } else {
// if (Common.VoteSpecies)(CurrentTopic.To_votespecies) == Common.VoteSpecies_MultiVote {
// if _, ok := MPerIDPressNum[ALLAPinfo[m].Id]; ok {
// if MPerIDPressNum[ALLAPinfo[m].Id] == len(CurrentTopicChildTopic) {
// MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID] = "您已全部表决"
// } else {
// MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID] = "您未全部表决"
// }
// } else {
// MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID] = "请按表决键表决"
// }
// } else {
// MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID] = "您已表决"
// }
// }
// } else {
// if (Common.TopicType)(CurrentTopic.To_type) == Common.TopicType_Evaluation {
// if AllSysSet["evaluationType"].Sys_value == "2" {
// MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID] = "请按表决键表决"
// } else {
// MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID] = "请按测评键测评"
// }
// // MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID] = "请按测评键"
// } else {
// MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID] = "请按表决键表决"
// }
// }
// }
// if _, ok := MScreenValue[Common.Checkin_ScreenBindingID]; ok {
// if ALLAPinfo[m].AP_CheckState == 1 {
// MScreenValue[Common.Checkin_ScreenBindingID] = 1
// } else {
// MScreenValue[Common.Checkin_ScreenBindingID] = 0
// }
// }
// if _, ok := MScreenValue[Common.ButtonOne_ScreenBindingID]; ok {
// if ALLAPinfo[m].IsVote {
// MScreenValue[Common.ButtonOne_ScreenBindingID] = 1
// } else {
// MScreenValue[Common.ButtonOne_ScreenBindingID] = 0
// }
// }
// if _, ok := MScreenValue[Common.ButtonTwo_ScreenBindingID]; ok {
// if ALLAPinfo[m].IsVote {
// MScreenValue[Common.ButtonTwo_ScreenBindingID] = 1
// } else {
// MScreenValue[Common.ButtonTwo_ScreenBindingID] = 0
// }
// }
// if _, ok := MScreenValue[Common.ButtonThree_ScreenBindingID]; ok {
// if ALLAPinfo[m].IsVote {
// MScreenValue[Common.ButtonThree_ScreenBindingID] = 1
// } else {
// MScreenValue[Common.ButtonThree_ScreenBindingID] = 0
// }
// }
// if _, ok := MScreenValue[Common.ButtonFour_ScreenBindingID]; ok {
// if ALLAPinfo[m].IsVote {
// MScreenValue[Common.ButtonFour_ScreenBindingID] = 1
// } else {
// MScreenValue[Common.ButtonFour_ScreenBindingID] = 0
// }
// }
// if _, ok := MScreenValue[Common.ButtonFive_ScreenBindingID]; ok {
// if ALLAPinfo[m].IsVote {
// MScreenValue[Common.ButtonFive_ScreenBindingID] = 1
// } else {
// MScreenValue[Common.ButtonFive_ScreenBindingID] = 0
// }
// }
// if _, ok := MScreenValue[Common.TTopic_ScreenBindingID]; ok {
// for kk := 0; kk < len(MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})); kk++ {
// if _, ex := MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk][Common.ButtonOne_ScreenBindingID]; ex {
// delete(MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk], Common.ButtonOne_ScreenBindingID)
// }
// if _, ex := MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk][Common.ButtonTwo_ScreenBindingID]; ex {
// delete(MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk], Common.ButtonTwo_ScreenBindingID)
// }
// if _, ex := MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk][Common.ButtonThree_ScreenBindingID]; ex {
// delete(MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk], Common.ButtonThree_ScreenBindingID)
// }
// if _, ex := MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk][Common.ButtonFour_ScreenBindingID]; ex {
// delete(MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk], Common.ButtonFour_ScreenBindingID)
// }
// if _, ex := MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk][Common.ButtonFive_ScreenBindingID]; ex {
// delete(MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk], Common.ButtonFive_ScreenBindingID)
// }
// if tindex, ex := MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk]["topicindex"]; ex {
// for _, to := range CurrentTopicChildTopic {
// if to.To_num == tindex.(int64) {
// if (Common.VoteMethod)(to.To_votemethod) == Common.VoteMethod_AllowModify || (Common.VoteMethod)(to.To_votemethod) == Common.VoteMethod_NotAllowModify {
// for _, res := range AllVoteKeyResults {
// if MPerIDPerson[res.Perid].IsVote {
// if res.Perid == ALLAPinfo[m].Id {
// if to.To_num == int64(res.Topicindex) {
// if res.Presskey == "1" {
// MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk][Common.ButtonOne_ScreenBindingID] = 2
// }
// if res.Presskey == "2" {
// MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk][Common.ButtonTwo_ScreenBindingID] = 2
// }
// if res.Presskey == "3" {
// MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk][Common.ButtonThree_ScreenBindingID] = 2
// }
// if res.Presskey == "4" {
// MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk][Common.ButtonFour_ScreenBindingID] = 2
// }
// if res.Presskey == "5" {
// MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk][Common.ButtonFive_ScreenBindingID] = 2
// }
// }
// }
// }
// }
// }
// break
// }
// }
// }
// }
// }
// if (Common.VoteMethod)(CurrentTopic.To_votemethod) == Common.VoteMethod_AllowModify || (Common.VoteMethod)(CurrentTopic.To_votemethod) == Common.VoteMethod_NotAllowModify {
// for _, res := range AllVoteKeyResults {
// if ALLAPinfo[m].IsVote {
// if res.Perid == ALLAPinfo[m].Id {
// if res.Presskey == "1" {
// MScreenValue[Common.ButtonOne_ScreenBindingID] = 2
// }
// if res.Presskey == "2" {
// MScreenValue[Common.ButtonTwo_ScreenBindingID] = 2
// }
// if res.Presskey == "3" {
// MScreenValue[Common.ButtonThree_ScreenBindingID] = 2
// }
// if res.Presskey == "4" {
// MScreenValue[Common.ButtonFour_ScreenBindingID] = 2
// }
// if res.Presskey == "5" {
// MScreenValue[Common.ButtonFive_ScreenBindingID] = 2
// }
// }
// }
// }
// }
// if _, ok := MScreenValue[Common.ThisClientPCCurrentPeopleSpeakTip_ScreenBindingID]; ok {
// MScreenValue[Common.ThisClientPCCurrentPeopleSpeakTip_ScreenBindingID] = "请按发言键申请发言"
// for t := 0; t < len(SpeakingPersons); t++ {
// if SpeakingPersons[t].AgPerson.Id == ALLAPinfo[m].Id {
// MScreenValue[Common.ThisClientPCCurrentPeopleSpeakTip_ScreenBindingID] = "正在发言"
// }
// }
// for t := 0; t < len(ApplySpeakPersons); t++ {
// if ApplySpeakPersons[t].AgPerson.Id == ALLAPinfo[m].Id {
// MScreenValue[Common.ThisClientPCCurrentPeopleSpeakTip_ScreenBindingID] = "您已申请发言,请等待发言"
// }
// }
// }
// if AllSysSet["defaultSoftVote"].Sys_value == "1" {
// websocketservers.ServerSendHTMLMobileScreenDataChange(AllScreenValue, ALLAPinfo[m].AP_StaffID)
// } else {
// if !ALLAPinfo[m].IsSoftVote {
// websocketservers.ServerSendHTMLMobileScreenDataChange(AllScreenValue, ALLAPinfo[m].AP_StaffID)
// }
// }
// }
// }
// }
// // }
// }
// } else if screenvalue.Scr_sortid == 3333 {
// //委员 报到 非报到 列席是否可以报到 报到 未报到
// //报到界面是否跳转 //发言界面是否跳转 //表决界面是否跳转
// for m := 0; m < len(ALLAPinfo); m++ {
// if ALLAPinfo[m].Ap_votepower == 0 {
// // if _, exists := MPerIDSeatUnit[ALLAPinfo[m].Id]; exists {
// // if MPerIDSeatUnit[ALLAPinfo[m].Id].SoftOnline {
// // fmt.Println(value)
// AllScreenValue["IsShow"] = value.Sfe_jumpshow
// AllScreenValue["IsShowBack"] = value.Sfe_backshow
// if _, ok := MScreenValue[Common.ThisClientPCCurrentPeopleName_ScreenBindingID]; ok {
// MScreenValue[Common.ThisClientPCCurrentPeopleName_ScreenBindingID] = MStIDStaffInfo[ALLAPinfo[m].AP_StaffID].St_Name
// }
// if _, ok := MScreenValue[Common.ThisClientPCCurrentPeopleTip_ScreenBindingID]; ok {
// if ALLAPinfo[m].AP_CheckState == 1 {
// MScreenValue[Common.ThisClientPCCurrentPeopleTip_ScreenBindingID] = "您已报到"
// } else {
// if ReportTempListContins(ALLAPinfo[m].Id) {
// MScreenValue[Common.ThisClientPCCurrentPeopleTip_ScreenBindingID] = "您已报到"
// } else {
// MScreenValue[Common.ThisClientPCCurrentPeopleTip_ScreenBindingID] = "请按报到键报到"
// }
// }
// }
// if _, ok := MScreenValue[Common.ThisClientPCCurrentPeopleSpeakTip_ScreenBindingID]; ok {
// MScreenValue[Common.ThisClientPCCurrentPeopleSpeakTip_ScreenBindingID] = "请按发言键申请发言"
// for t := 0; t < len(SpeakingPersons); t++ {
// if SpeakingPersons[t].AgPerson.Id == ALLAPinfo[m].Id {
// MScreenValue[Common.ThisClientPCCurrentPeopleSpeakTip_ScreenBindingID] = "正在发言"
// }
// }
// for t := 0; t < len(ApplySpeakPersons); t++ {
// if ApplySpeakPersons[t].AgPerson.Id == ALLAPinfo[m].Id {
// MScreenValue[Common.ThisClientPCCurrentPeopleSpeakTip_ScreenBindingID] = "您已申请发言,请等待发言"
// }
// }
// }
// websocketservers.ServerSendHTMLMobileScreenDataChange(AllScreenValue, ALLAPinfo[m].AP_StaffID)
// // }
// // }
// }
// }
// for _, seatu := range MSeatIDSeatUnit {
// AllScreenValue["IsShow"] = value.Sfe_jumpshow
// AllScreenValue["IsShowBack"] = value.Sfe_backshow
// websocketservers.ServerSendHTMLMobileScreenDataChange(AllScreenValue, seatu.Id)
// }
// } else if screenvalue.Scr_sortid == 4444 {
// //委员 报到 非报到 列席是否可以报到 报到 未报到
// //报到界面是否跳转 //发言界面是否跳转 //表决界面是否跳转
// for m := 0; m < len(ALLAPinfo); m++ {
// // if _, exists := MPerIDSeatUnit[ALLAPinfo[m].Id]; exists {
// if ALLAPinfo[m].Ap_moderator == 1 {
// if _, exists := MPerIDSeatUnit[ALLAPinfo[m].Id]; exists {
// //人员分配坐席了
// if MPerIDSeatUnit[ALLAPinfo[m].Id].SoftOnline {
// // fmt.Println(value)
// AllScreenValue["IsShow"] = value.Sfe_jumpshow
// AllScreenValue["IsShowBack"] = value.Sfe_backshow
// if _, ok := MScreenValue[Common.ThisClientPCCurrentPeopleName_ScreenBindingID]; ok {
// MScreenValue[Common.ThisClientPCCurrentPeopleName_ScreenBindingID] = MStIDStaffInfo[ALLAPinfo[m].AP_StaffID].St_Name
// }
// if _, ok := MScreenValue[Common.ThisClientPCCurrentPeopleTip_ScreenBindingID]; ok {
// if ALLAPinfo[m].AP_CheckState == 1 {
// MScreenValue[Common.ThisClientPCCurrentPeopleTip_ScreenBindingID] = "您已报到"
// } else {
// if ReportTempListContins(ALLAPinfo[m].Id) {
// MScreenValue[Common.ThisClientPCCurrentPeopleTip_ScreenBindingID] = "您已报到"
// } else {
// MScreenValue[Common.ThisClientPCCurrentPeopleTip_ScreenBindingID] = "请按报到键报到"
// }
// }
// }
// if _, ok := MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID]; ok {
// if ALLAPinfo[m].IsVote {
// if (Common.TopicType)(CurrentTopic.To_type) == Common.TopicType_Evaluation {
// if AllSysSet["evaluationType"].Sys_value == "2" {
// MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID] = "您已表决"
// } else {
// MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID] = "您已测评"
// }
// // MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID] = "您已测评"
// } else {
// if (Common.VoteSpecies)(CurrentTopic.To_votespecies) == Common.VoteSpecies_MultiVote {
// if _, ok := MPerIDPressNum[ALLAPinfo[m].Id]; ok {
// if MPerIDPressNum[ALLAPinfo[m].Id] == len(CurrentTopicChildTopic) {
// MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID] = "您已全部表决"
// } else {
// MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID] = "您未全部表决"
// }
// } else {
// MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID] = "请按表决键表决"
// }
// } else {
// MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID] = "您已表决"
// }
// }
// } else {
// if (Common.TopicType)(CurrentTopic.To_type) == Common.TopicType_Evaluation {
// if AllSysSet["evaluationType"].Sys_value == "2" {
// MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID] = "请按表决键表决"
// } else {
// MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID] = "请按测评键测评"
// }
// // MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID] = "请按测评键"
// } else {
// MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID] = "请按表决键表决"
// }
// }
// }
// if _, ok := MScreenValue[Common.Checkin_ScreenBindingID]; ok {
// if ALLAPinfo[m].AP_CheckState == 1 {
// MScreenValue[Common.Checkin_ScreenBindingID] = 1
// } else {
// MScreenValue[Common.Checkin_ScreenBindingID] = 0
// }
// }
// if _, ok := MScreenValue[Common.ButtonOne_ScreenBindingID]; ok {
// if ALLAPinfo[m].IsVote {
// MScreenValue[Common.ButtonOne_ScreenBindingID] = 1
// } else {
// MScreenValue[Common.ButtonOne_ScreenBindingID] = 0
// }
// }
// if _, ok := MScreenValue[Common.ButtonTwo_ScreenBindingID]; ok {
// if ALLAPinfo[m].IsVote {
// MScreenValue[Common.ButtonTwo_ScreenBindingID] = 1
// } else {
// MScreenValue[Common.ButtonTwo_ScreenBindingID] = 0
// }
// }
// if _, ok := MScreenValue[Common.ButtonThree_ScreenBindingID]; ok {
// if ALLAPinfo[m].IsVote {
// MScreenValue[Common.ButtonThree_ScreenBindingID] = 1
// } else {
// MScreenValue[Common.ButtonThree_ScreenBindingID] = 0
// }
// }
// if _, ok := MScreenValue[Common.ButtonFour_ScreenBindingID]; ok {
// if ALLAPinfo[m].IsVote {
// MScreenValue[Common.ButtonFour_ScreenBindingID] = 1
// } else {
// MScreenValue[Common.ButtonFour_ScreenBindingID] = 0
// }
// }
// if _, ok := MScreenValue[Common.ButtonFive_ScreenBindingID]; ok {
// if ALLAPinfo[m].IsVote {
// MScreenValue[Common.ButtonFive_ScreenBindingID] = 1
// } else {
// MScreenValue[Common.ButtonFive_ScreenBindingID] = 0
// }
// }
// if _, ok := MScreenValue[Common.TTopic_ScreenBindingID]; ok {
// for kk := 0; kk < len(MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})); kk++ {
// if _, ex := MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk][Common.ButtonOne_ScreenBindingID]; ex {
// delete(MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk], Common.ButtonOne_ScreenBindingID)
// }
// if _, ex := MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk][Common.ButtonTwo_ScreenBindingID]; ex {
// delete(MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk], Common.ButtonTwo_ScreenBindingID)
// }
// if _, ex := MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk][Common.ButtonThree_ScreenBindingID]; ex {
// delete(MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk], Common.ButtonThree_ScreenBindingID)
// }
// if _, ex := MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk][Common.ButtonFour_ScreenBindingID]; ex {
// delete(MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk], Common.ButtonFour_ScreenBindingID)
// }
// if _, ex := MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk][Common.ButtonFive_ScreenBindingID]; ex {
// delete(MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk], Common.ButtonFive_ScreenBindingID)
// }
// if tindex, ex := MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk]["topicindex"]; ex {
// for _, to := range CurrentTopicChildTopic {
// if to.To_num == tindex.(int64) {
// if (Common.VoteMethod)(to.To_votemethod) == Common.VoteMethod_AllowModify || (Common.VoteMethod)(to.To_votemethod) == Common.VoteMethod_NotAllowModify {
// for _, res := range AllVoteKeyResults {
// if MPerIDPerson[res.Perid].IsVote {
// if res.Perid == ALLAPinfo[m].Id {
// if to.To_num == int64(res.Topicindex) {
// if res.Presskey == "1" {
// MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk][Common.ButtonOne_ScreenBindingID] = 2
// }
// if res.Presskey == "2" {
// MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk][Common.ButtonTwo_ScreenBindingID] = 2
// }
// if res.Presskey == "3" {
// MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk][Common.ButtonThree_ScreenBindingID] = 2
// }
// if res.Presskey == "4" {
// MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk][Common.ButtonFour_ScreenBindingID] = 2
// }
// if res.Presskey == "5" {
// MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk][Common.ButtonFive_ScreenBindingID] = 2
// }
// }
// }
// }
// }
// }
// break
// }
// }
// }
// }
// }
// if (Common.VoteMethod)(CurrentTopic.To_votemethod) == Common.VoteMethod_AllowModify || (Common.VoteMethod)(CurrentTopic.To_votemethod) == Common.VoteMethod_NotAllowModify {
// for _, res := range AllVoteKeyResults {
// if ALLAPinfo[m].IsVote {
// if res.Perid == ALLAPinfo[m].Id {
// if res.Presskey == "1" {
// MScreenValue[Common.ButtonOne_ScreenBindingID] = 2
// }
// if res.Presskey == "2" {
// MScreenValue[Common.ButtonTwo_ScreenBindingID] = 2
// }
// if res.Presskey == "3" {
// MScreenValue[Common.ButtonThree_ScreenBindingID] = 2
// }
// if res.Presskey == "4" {
// MScreenValue[Common.ButtonFour_ScreenBindingID] = 2
// }
// if res.Presskey == "5" {
// MScreenValue[Common.ButtonFive_ScreenBindingID] = 2
// }
// }
// }
// }
// }
// if _, ok := MScreenValue[Common.ThisClientPCCurrentPeopleSpeakTip_ScreenBindingID]; ok {
// MScreenValue[Common.ThisClientPCCurrentPeopleSpeakTip_ScreenBindingID] = "请按发言键申请发言"
// for t := 0; t < len(SpeakingPersons); t++ {
// if SpeakingPersons[t].AgPerson.Id == ALLAPinfo[m].Id {
// MScreenValue[Common.ThisClientPCCurrentPeopleSpeakTip_ScreenBindingID] = "正在发言"
// }
// }
// for t := 0; t < len(ApplySpeakPersons); t++ {
// if ApplySpeakPersons[t].AgPerson.Id == ALLAPinfo[m].Id {
// MScreenValue[Common.ThisClientPCCurrentPeopleSpeakTip_ScreenBindingID] = "您已申请发言,请等待发言"
// }
// }
// }
// websocketservers.ServerSendHTMLMobileScreenDataChange(AllScreenValue, ALLAPinfo[m].AP_StaffID)
// }
// } else {
// //人员没有分配坐席
// // fmt.Println(value)
// AllScreenValue["IsShow"] = value.Sfe_jumpshow
// AllScreenValue["IsShowBack"] = value.Sfe_backshow
// if _, ok := MScreenValue[Common.ThisClientPCCurrentPeopleName_ScreenBindingID]; ok {
// MScreenValue[Common.ThisClientPCCurrentPeopleName_ScreenBindingID] = MStIDStaffInfo[ALLAPinfo[m].AP_StaffID].St_Name
// }
// if _, ok := MScreenValue[Common.ThisClientPCCurrentPeopleTip_ScreenBindingID]; ok {
// if ALLAPinfo[m].AP_CheckState == 1 {
// MScreenValue[Common.ThisClientPCCurrentPeopleTip_ScreenBindingID] = "您已报到"
// } else {
// if ReportTempListContins(ALLAPinfo[m].Id) {
// MScreenValue[Common.ThisClientPCCurrentPeopleTip_ScreenBindingID] = "您已报到"
// } else {
// MScreenValue[Common.ThisClientPCCurrentPeopleTip_ScreenBindingID] = "请按报到键报到"
// }
// }
// }
// if _, ok := MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID]; ok {
// if ALLAPinfo[m].IsVote {
// if (Common.TopicType)(CurrentTopic.To_type) == Common.TopicType_Evaluation {
// if AllSysSet["evaluationType"].Sys_value == "2" {
// MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID] = "您已表决"
// } else {
// MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID] = "您已测评"
// }
// // MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID] = "您已测评"
// } else {
// if (Common.VoteSpecies)(CurrentTopic.To_votespecies) == Common.VoteSpecies_MultiVote {
// if _, ok := MPerIDPressNum[ALLAPinfo[m].Id]; ok {
// if MPerIDPressNum[ALLAPinfo[m].Id] == len(CurrentTopicChildTopic) {
// MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID] = "您已全部表决"
// } else {
// MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID] = "您未全部表决"
// }
// } else {
// MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID] = "请按表决键表决"
// }
// } else {
// MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID] = "您已表决"
// }
// }
// } else {
// if (Common.TopicType)(CurrentTopic.To_type) == Common.TopicType_Evaluation {
// if AllSysSet["evaluationType"].Sys_value == "2" {
// MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID] = "请按表决键表决"
// } else {
// MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID] = "请按测评键测评"
// }
// // MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID] = "请按测评键"
// } else {
// MScreenValue[Common.ThisClientPCCurrentPeopleVoteTip_ScreenBindingID] = "请按表决键表决"
// }
// }
// }
// if _, ok := MScreenValue[Common.Checkin_ScreenBindingID]; ok {
// if ALLAPinfo[m].AP_CheckState == 1 {
// MScreenValue[Common.Checkin_ScreenBindingID] = 1
// } else {
// MScreenValue[Common.Checkin_ScreenBindingID] = 0
// }
// }
// if _, ok := MScreenValue[Common.ButtonOne_ScreenBindingID]; ok {
// if ALLAPinfo[m].IsVote {
// MScreenValue[Common.ButtonOne_ScreenBindingID] = 1
// } else {
// MScreenValue[Common.ButtonOne_ScreenBindingID] = 0
// }
// }
// if _, ok := MScreenValue[Common.ButtonTwo_ScreenBindingID]; ok {
// if ALLAPinfo[m].IsVote {
// MScreenValue[Common.ButtonTwo_ScreenBindingID] = 1
// } else {
// MScreenValue[Common.ButtonTwo_ScreenBindingID] = 0
// }
// }
// if _, ok := MScreenValue[Common.ButtonThree_ScreenBindingID]; ok {
// if ALLAPinfo[m].IsVote {
// MScreenValue[Common.ButtonThree_ScreenBindingID] = 1
// } else {
// MScreenValue[Common.ButtonThree_ScreenBindingID] = 0
// }
// }
// if _, ok := MScreenValue[Common.ButtonFour_ScreenBindingID]; ok {
// if ALLAPinfo[m].IsVote {
// MScreenValue[Common.ButtonFour_ScreenBindingID] = 1
// } else {
// MScreenValue[Common.ButtonFour_ScreenBindingID] = 0
// }
// }
// if _, ok := MScreenValue[Common.ButtonFive_ScreenBindingID]; ok {
// if ALLAPinfo[m].IsVote {
// MScreenValue[Common.ButtonFive_ScreenBindingID] = 1
// } else {
// MScreenValue[Common.ButtonFive_ScreenBindingID] = 0
// }
// }
// if _, ok := MScreenValue[Common.TTopic_ScreenBindingID]; ok {
// for kk := 0; kk < len(MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})); kk++ {
// if _, ex := MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk][Common.ButtonOne_ScreenBindingID]; ex {
// delete(MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk], Common.ButtonOne_ScreenBindingID)
// }
// if _, ex := MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk][Common.ButtonTwo_ScreenBindingID]; ex {
// delete(MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk], Common.ButtonTwo_ScreenBindingID)
// }
// if _, ex := MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk][Common.ButtonThree_ScreenBindingID]; ex {
// delete(MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk], Common.ButtonThree_ScreenBindingID)
// }
// if _, ex := MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk][Common.ButtonFour_ScreenBindingID]; ex {
// delete(MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk], Common.ButtonFour_ScreenBindingID)
// }
// if _, ex := MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk][Common.ButtonFive_ScreenBindingID]; ex {
// delete(MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk], Common.ButtonFive_ScreenBindingID)
// }
// if tindex, ex := MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk]["topicindex"]; ex {
// for _, to := range CurrentTopicChildTopic {
// if to.To_num == tindex.(int64) {
// if (Common.VoteMethod)(to.To_votemethod) == Common.VoteMethod_AllowModify || (Common.VoteMethod)(to.To_votemethod) == Common.VoteMethod_NotAllowModify {
// for _, res := range AllVoteKeyResults {
// if MPerIDPerson[res.Perid].IsVote {
// if res.Perid == ALLAPinfo[m].Id {
// if to.To_num == int64(res.Topicindex) {
// if res.Presskey == "1" {
// MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk][Common.ButtonOne_ScreenBindingID] = 2
// }
// if res.Presskey == "2" {
// MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk][Common.ButtonTwo_ScreenBindingID] = 2
// }
// if res.Presskey == "3" {
// MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk][Common.ButtonThree_ScreenBindingID] = 2
// }
// if res.Presskey == "4" {
// MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk][Common.ButtonFour_ScreenBindingID] = 2
// }
// if res.Presskey == "5" {
// MScreenValue[Common.TTopic_ScreenBindingID].([]map[string]interface{})[kk][Common.ButtonFive_ScreenBindingID] = 2
// }
// }
// }
// }
// }
// }
// break
// }
// }
// }
// }
// }
// if (Common.VoteMethod)(CurrentTopic.To_votemethod) == Common.VoteMethod_AllowModify || (Common.VoteMethod)(CurrentTopic.To_votemethod) == Common.VoteMethod_NotAllowModify {
// for _, res := range AllVoteKeyResults {
// if ALLAPinfo[m].IsVote {
// if res.Perid == ALLAPinfo[m].Id {
// if res.Presskey == "1" {
// MScreenValue[Common.ButtonOne_ScreenBindingID] = 2
// }
// if res.Presskey == "2" {
// MScreenValue[Common.ButtonTwo_ScreenBindingID] = 2
// }
// if res.Presskey == "3" {
// MScreenValue[Common.ButtonThree_ScreenBindingID] = 2
// }
// if res.Presskey == "4" {
// MScreenValue[Common.ButtonFour_ScreenBindingID] = 2
// }
// if res.Presskey == "5" {
// MScreenValue[Common.ButtonFive_ScreenBindingID] = 2
// }
// }
// }
// }
// }
// if _, ok := MScreenValue[Common.ThisClientPCCurrentPeopleSpeakTip_ScreenBindingID]; ok {
// MScreenValue[Common.ThisClientPCCurrentPeopleSpeakTip_ScreenBindingID] = "请按发言键申请发言"
// for t := 0; t < len(SpeakingPersons); t++ {
// if SpeakingPersons[t].AgPerson.Id == ALLAPinfo[m].Id {
// MScreenValue[Common.ThisClientPCCurrentPeopleSpeakTip_ScreenBindingID] = "正在发言"
// }
// }
// for t := 0; t < len(ApplySpeakPersons); t++ {
// if ApplySpeakPersons[t].AgPerson.Id == ALLAPinfo[m].Id {
// MScreenValue[Common.ThisClientPCCurrentPeopleSpeakTip_ScreenBindingID] = "您已申请发言,请等待发言"
// }
// }
// }
// websocketservers.ServerSendHTMLMobileScreenDataChange(AllScreenValue, ALLAPinfo[m].AP_StaffID)
// }
// }
// // }
// }
// }
// }
*/
}
}
func GetNowTimeCPCS() time.Time {
defer func() {
if r := recover(); r != nil {
log.Error("GetNowTimeCPCS:", r)
}
}()
4 days ago
targetIP := Common.GetAvailableEndpoint()
if targetIP == "" {
log.Error("所有IP均不可达")
log.Println("所有IP均不可达")
return time.Time{}
}
4 weeks ago
// 示例:发送 JSON 数据
4 days ago
url := "http://" + targetIP + ":9800/vhwcapi/v1/web/api/service/congresscontrol/getnowtime"
4 weeks ago
jsonData := `{}`
body, statusCode, err := Common.SendPostRequest(url, jsonData, "application/json")
if err != nil {
log.Fatalf("请求错误: %v", err)
}
fmt.Printf("响应状态码: %d\n响应体: %s\n", statusCode, body)
var responses map[string]interface{}
err = json.Unmarshal([]byte(body), &responses)
if err != nil {
log.Fatalf("JSON 解析失败: %v", err)
}
listBytes, err := json.Marshal(responses["list"])
if err != nil {
log.Fatalf("List字段序列化失败: %v", err)
}
var timeStr string
err = json.Unmarshal(listBytes, &timeStr)
if err != nil {
log.Fatalf("JSON 解析失败: %v", err)
}
response, err := time.Parse("2006-01-02 15:04:05", timeStr)
return response
}
func GetAllOrder(parametermap map[string]interface{}) (resultlistmap []Model.TScreenformevent, err error) {
defer func() {
if r := recover(); r != nil {
log.Error("GetAllOrder:", r)
}
}()
if AllScreenFormEvent != nil {
for _, item := range AllScreenFormEvent {
if item.Sfe_typename == strconv.Itoa(int(parametermap["sfe_typename"].(Common.SessionStatus))) {
resultlistmap = append(resultlistmap, item)
}
}
}
return resultlistmap, err
}
func GetOneScreen(parametermap map[string]interface{}) (resultlistmap Model.TScreen, err error) {
defer func() {
if r := recover(); r != nil {
log.Error("GetOneScreen:", r)
}
}()
if AllScren != nil {
for _, item := range AllScren {
if item.Id == parametermap["id"].(string) {
resultlistmap = item
}
}
}
return resultlistmap, err
}
type Device struct {
XMLName xml.Name `xml:"DesignerItems"`
// Version string `xml:"version,attr"`
Device []DeviceNode `xml:"DesignerItem"`
// Description string `xml:",innerxml"`
}
type Sfbgcolor struct {
Value string `xml:",innerxml"`
}
type DeviceNode struct {
XMLName xml.Name `xml:"DesignerItem"`
Left float64 `xml:"Left"`
Top float64 `xml:"Top"`
Width float64 `xml:"Width"`
Height float64 `xml:"Height"`
DeviceID string `xml:"DeviceID"`
ZIndex string `xml:"zIndex"`
IsGroup string `xml:"IsGroup"`
ParentID string `xml:"ParentID"`
DeviceContent string `xml:"DeviceContent"`
ResourceMode string `xml:"ResourceMode"`
BindingFieldID string `xml:"BindingFieldID"`
BindingFieldPeopleType string `xml:"BindingFieldPeopleType"`
SystemParContent string `xml:"SystemParContent"`
FormatParContent string `xml:"FormatParContent"`
ContentAutoSize string `xml:"ContentAutoSize"`
Text string `xml:"Text"`
FontFamily string `xml:"FontFamily"`
FontStyle string `xml:"FontStyle"`
FontWeight string `xml:"FontWeight"`
FontSize string `xml:"FontSize"`
Foreground string `xml:"Foreground"`
Background string `xml:"Background"`
Padding string `xml:"Padding"`
TextAlignment string `xml:"TextAlignment"`
TextTrimming string `xml:"TextTrimming"`
TextWrapping string `xml:"TextWrapping"`
Margin string `xml:"Margin"`
HorizontalAlignment string `xml:"HorizontalAlignment"`
VerticalAlignment string `xml:"VerticalAlignment"`
Effect string `xml:"Effect"`
IsHitTestVisible string `xml:"IsHitTestVisible"`
Stretch string `xml:"Stretch"`
FullScreen string `xml:"FullScreen"`
ImagePath string `xml:"ImagePath"`
Component_type string `xml:"Component_type"`
VideoSource string `xml:"VideoSource"`
ScaleValue string `xml:"ScaleValue"`
CurrntTopic string `xml:"CurrntTopic"`
TxtContent string `xml:"TxtContent"`
MoveSpeed string `xml:"MoveSpeed"`
Backgrounds string `xml:"Backgrounds"`
RowCount string `xml:"RowCount"`
ColCount string `xml:"ColCount"`
LineStyle string `xml:"LineStyle"`
ShowGridLines string `xml:"ShowGridLines"`
LineWidth string `xml:"LineWidth"`
LineColor string `xml:"LineColor"`
IsShowText string `xml:"IsShowText"`
PeopleStyle string `xml:"PeopleStyle"`
TextShowLocation string `xml:"TextShowLocation"`
ShowGroupHeadColumn string `xml:"ShowGroupHeadColumn"`
GroupHeadColumnColor string `xml:"GroupHeadColumnColor"`
GroupHeadColumnFontName string `xml:"GroupHeadColumnFontName"`
GroupHeadColumnFontSize string `xml:"GroupHeadColumnFontSize"`
GroupHeadColumnFontStyle string `xml:"GroupHeadColumnFontStyle"`
KeyTopicSelect string `xml:"KeyTopicSelect"`
Key1Select string `xml:"Key1Select"`
Key2Select string `xml:"Key2Select"`
Key3Select string `xml:"Key3Select"`
Button1 string `xml:"Button1"`
Button2 string `xml:"Button2"`
Button3 string `xml:"Button3"`
KeyOtherSelect string `xml:"KeyOtherSelect"`
KeyResultSelect string `xml:"KeyResultSelect"`
TopicPercent string `xml:"TopicPercent"`
TopicNumOnePage string `xml:"TopicNumOnePage"`
FormatPar string `xml:"FormatPar"`
Stroke string `xml:"Stroke"`
StrokeThickness string `xml:"StrokeThickness"`
ColorChangeStyle string `xml:"ColorChangeStyle"`
ShowStyle string `xml:"ShowStyle"`
TrendsStyle string `xml:"TrendsStyle"`
PeoplesStyle string `xml:"PeoplesStyle"`
ForegroundChange string `xml:"ForegroundChange"`
IsShowSpeakSecend string `xml:"IsShowSpeakSecend"`
IsShowAskSecend string `xml:"IsShowAskSecend"`
IsShowPersonWork string `xml:"IsShowPersonWork"`
PeopleOrderBy string `xml:"PeopleOrderBy"`
RowMin string `xml:"RowMin"`
RowMax string `xml:"RowMax"`
ColMin string `xml:"ColMin"`
ColMax string `xml:"ColMax"`
TextDirection string `xml:"TextDirection"`
TextItemWidth string `xml:"TextItemWidth"`
ID string `xml:"ID"`
// DeviceDate string `xml:"deviceDate"`
}
func Getscreenform(parametermap map[string]interface{}) (resultmap map[string]interface{}, err error) {
defer func() {
if r := recover(); r != nil {
log.Error("Getscreenform:", r)
}
}()
tempTScreenform := Model.TScreenform{}
var myresultmaps []map[string]interface{}
myresultmaps = make([]map[string]interface{}, 0)
var myresultmap map[string]interface{}
myresultmap = make(map[string]interface{})
if AllScrenForm != nil {
for _, item := range AllScrenForm {
if item.Id == parametermap["id"].(string) {
tempTScreenform = item
}
}
relist := String2Bytes(tempTScreenform.Sf_content)
var v Device
errs := xml.Unmarshal(relist, &v)
if errs != nil {
fmt.Printf("error: %v", errs)
return
}
// fmt.Printf("XMLName: %#v\n", v.XMLName)
// fmt.Printf("Name: %q\n", v.Device)
// var oneScreen jsonScreen
// var allScreen []jsonScreen
for _, value := range v.Device {
var resultmaps map[string]interface{}
resultmaps = make(map[string]interface{})
if tempTScreenform.Id != "" {
resultmaps["id"] = value.ID
}
resultmaps["left"] = value.Left
resultmaps["top"] = value.Top
resultmaps["width"] = value.Width
resultmaps["height"] = value.Height
if value.DeviceID != "" {
resultmaps["deviceID"] = value.DeviceID
// oneScreen.DeviceID = value.DeviceID
}
if value.ZIndex != "" {
resultmaps["zIndex"] = value.ZIndex
// oneScreen.DevicezIndex = value.DevicezIndex
}
if value.IsGroup != "" {
resultmaps["isGroup"] = value.IsGroup
// oneScreen.DeviceIsGroup = value.DeviceIsGroup
}
if value.ParentID != "" {
resultmaps["parentID"] = value.ParentID
// oneScreen.DeviceParentID = value.DeviceParentID
}
if value.DeviceContent != "" {
resultmaps["deviceContent"] = value.DeviceContent
// oneScreen.DeviceContent = value.DeviceContent
}
if value.ResourceMode != "" {
resultmaps["resourceMode"] = value.ResourceMode
// oneScreen.ResourceMode = value.ResourceMode
}
if value.BindingFieldID != "" {
resultmaps["bindingFieldID"] = value.BindingFieldID
// oneScreen.BindingFieldID = value.BindingFieldID
}
if value.BindingFieldPeopleType != "" {
resultmaps["bindingFieldPeopleType"] = value.BindingFieldPeopleType
// oneScreen.BindingFieldPeopleType = value.BindingFieldPeopleType
}
if value.SystemParContent != "" {
resultmaps["systemParContent"] = value.SystemParContent
// oneScreen.SystemParContent = value.SystemParContent
}
if value.FormatParContent != "" {
resultmaps["formatParContent"] = value.FormatParContent
// oneScreen.FormatParContent = value.FormatParContent
}
if value.ContentAutoSize != "" {
resultmaps["contentAutoSize"] = value.ContentAutoSize
// oneScreen.ContentAutoSize = value.ContentAutoSize
}
if value.Text != "" {
resultmaps["text"] = value.Text
// oneScreen.Text = value.Text
}
if value.FontFamily != "" {
resultmaps["fontFamily"] = value.FontFamily
// oneScreen.FontFamily = value.FontFamily
}
if value.FontStyle != "" {
resultmaps["fontStyle"] = value.FontStyle
// oneScreen.FontStyle = value.FontStyle
}
if value.FontWeight != "" {
resultmaps["fontWeight"] = value.FontWeight
// oneScreen.FontWeight = value.FontWeight
}
if value.FontSize != "" {
resultmaps["fontSize"] = value.FontSize
// oneScreen.FontSize = value.FontSize
}
if value.Foreground != "" {
resultmaps["foreground"] = value.Foreground
// oneScreen.Foreground = value.Foreground
}
if value.Background != "" {
resultmaps["background"] = value.Background
// oneScreen.Background = value.Background
}
if value.Padding != "" {
resultmaps["padding"] = value.Padding
// oneScreen.Padding = value.Padding
}
if value.TextAlignment != "" {
resultmaps["textAlignment"] = value.TextAlignment
// oneScreen.TextAlignment = value.TextAlignment
}
if value.TextWrapping != "" {
resultmaps["textWrapping"] = value.TextWrapping
// oneScreen.TextWrapping = value.TextWrapping
}
if value.Margin != "" {
resultmaps["margin"] = value.Margin
// oneScreen.Margin = value.Margin
}
if value.HorizontalAlignment != "" {
resultmaps["horizontalAlignment"] = value.HorizontalAlignment
// oneScreen.HorizontalAlignment = value.HorizontalAlignment
}
if value.VerticalAlignment != "" {
resultmaps["verticalAlignment"] = value.VerticalAlignment
// oneScreen.VerticalAlignment = value.VerticalAlignment
}
if value.Effect != "" {
resultmaps["effect"] = value.Effect
// oneScreen.Effect = value.Effect
}
if value.IsHitTestVisible != "" {
resultmaps["isHitTestVisible"] = value.IsHitTestVisible
// oneScreen.IsHitTestVisible = value.IsHitTestVisible
}
if value.Stretch != "" {
resultmaps["stretch"] = value.Stretch
// oneScreen.Stretch = value.Stretch
}
if value.FullScreen != "" {
resultmaps["fullScreen"] = value.FullScreen
// oneScreen.FullScreen = value.FullScreen
}
if value.ImagePath != "" {
resultmaps["imagePath"] = value.ImagePath
// oneScreen.ImagePath = value.ImagePath
}
if value.Component_type != "" {
resultmaps["component_type"] = value.Component_type
// oneScreen.Component_type = value.Component_type
}
if value.VideoSource != "" {
resultmaps["videoSource"] = value.VideoSource
// oneScreen.VideoSource = value.VideoSource
}
if value.ScaleValue != "" {
resultmaps["scaleValue"] = value.ScaleValue
// oneScreen.ScaleValue = value.ScaleValue
}
if value.CurrntTopic != "" {
resultmaps["currntTopic"] = value.CurrntTopic
// oneScreen.CurrntTopic = value.CurrntTopic
}
if value.TxtContent != "" {
resultmaps["txtContent"] = value.TxtContent
// oneScreen.TxtContent = value.TxtContent
}
if value.MoveSpeed != "" {
resultmaps["moveSpeed"] = value.MoveSpeed
// oneScreen.MoveSpeed = value.MoveSpeed
}
if value.Backgrounds != "" {
resultmaps["backgrounds"] = value.Backgrounds
// oneScreen.Backgrounds = value.Backgrounds
}
if value.RowCount != "" {
resultmaps["rowCount"] = value.RowCount
// oneScreen.RowCount = value.RowCount
}
if value.ColCount != "" {
resultmaps["colCount"] = value.ColCount
// oneScreen.ColCount = value.ColCount
}
if value.LineStyle != "" {
resultmaps["lineStyle"] = value.LineStyle
// oneScreen.LineStyle = value.LineStyle
}
if value.ShowGridLines != "" {
resultmaps["showGridLines"] = value.ShowGridLines
// oneScreen.ShowGridLines = value.ShowGridLines
}
if value.LineWidth != "" {
resultmaps["lineWidth"] = value.LineWidth
// oneScreen.LineWidth = value.LineWidth
}
if value.LineColor != "" {
resultmaps["lineColor"] = value.LineColor
// oneScreen.LineColor = value.LineColor
}
if value.IsShowText != "" {
resultmaps["isShowText"] = value.IsShowText
// oneScreen.IsShowText = value.IsShowText
}
if value.PeopleStyle != "" {
resultmaps["peopleStyle"] = value.PeopleStyle
// oneScreen.PeopleStyle = value.PeopleStyle
}
if value.TextShowLocation != "" {
resultmaps["textShowLocation"] = value.TextShowLocation
// oneScreen.TextShowLocation = value.TextShowLocation
}
if value.ShowGroupHeadColumn != "" {
resultmaps["showGroupHeadColumn"] = value.ShowGroupHeadColumn
// oneScreen.ShowGroupHeadColumn = value.ShowGroupHeadColumn
}
if value.GroupHeadColumnColor != "" {
resultmaps["groupHeadColumnColor"] = value.GroupHeadColumnColor
// oneScreen.GroupHeadColumnColor = value.GroupHeadColumnColor
}
if value.GroupHeadColumnFontName != "" {
resultmaps["groupHeadColumnFontName"] = value.GroupHeadColumnFontName
// oneScreen.GroupHeadColumnFontName = value.GroupHeadColumnFontName
}
if value.GroupHeadColumnFontSize != "" {
resultmaps["groupHeadColumnFontSize"] = value.GroupHeadColumnFontSize
// oneScreen.GroupHeadColumnFontSize = value.GroupHeadColumnFontSize
}
if value.GroupHeadColumnFontStyle != "" {
resultmaps["groupHeadColumnFontStyle"] = value.GroupHeadColumnFontStyle
// oneScreen.GroupHeadColumnFontStyle = value.GroupHeadColumnFontStyle
}
if value.KeyTopicSelect != "" {
resultmaps["keyTopicSelect"] = value.KeyTopicSelect
}
if value.Key1Select != "" {
resultmaps["key1Select"] = value.Key1Select
}
if value.Key2Select != "" {
resultmaps["key2Select"] = value.Key2Select
}
if value.Key3Select != "" {
resultmaps["key3Select"] = value.Key3Select
}
if value.Button1 != "" {
resultmaps["button1"] = value.Button1
}
if value.Button2 != "" {
resultmaps["button2"] = value.Button2
}
if value.Button3 != "" {
resultmaps["button3"] = value.Button3
}
if value.KeyOtherSelect != "" {
resultmaps["keyOtherSelect"] = value.KeyOtherSelect
}
if value.KeyResultSelect != "" {
resultmaps["keyResultSelect"] = value.KeyResultSelect
}
if value.TopicPercent != "" {
resultmaps["topicPercent"] = value.TopicPercent
}
if value.TopicNumOnePage != "" {
resultmaps["topicNumOnePage"] = value.TopicNumOnePage
}
if value.FormatPar != "" {
resultmaps["formatPar"] = value.FormatPar
}
if value.Stroke != "" {
resultmaps["stroke"] = value.Stroke
}
if value.StrokeThickness != "" {
resultmaps["strokeThickness"] = value.StrokeThickness
}
if value.ColorChangeStyle != "" {
resultmaps["colorChangeStyle"] = value.ColorChangeStyle
}
if value.ShowStyle != "" {
resultmaps["showStyle"] = value.ShowStyle
}
if value.TrendsStyle != "" {
resultmaps["trendsStyle"] = value.TrendsStyle
}
if value.PeoplesStyle != "" {
resultmaps["peoplesStyle"] = value.PeoplesStyle
}
if value.ForegroundChange != "" {
resultmaps["foregroundChange"] = value.ForegroundChange
}
if value.IsShowSpeakSecend != "" {
resultmaps["isShowSpeakSecend"] = value.IsShowSpeakSecend
}
if value.IsShowAskSecend != "" {
resultmaps["isShowAskSecend"] = value.IsShowAskSecend
}
if value.IsShowPersonWork != "" {
resultmaps["isShowPersonWork"] = value.IsShowPersonWork
}
if value.PeopleOrderBy != "" {
resultmaps["peopleOrderBy"] = value.PeopleOrderBy
}
if value.RowMin != "" {
resultmaps["rowMin"] = value.RowMin
}
if value.RowMax != "" {
resultmaps["rowMax"] = value.RowMax
}
if value.ColMin != "" {
resultmaps["colMin"] = value.ColMin
}
if value.ColMax != "" {
resultmaps["colMax"] = value.ColMax
}
if value.TextDirection != "" {
resultmaps["textDirection"] = value.TextDirection
}
if value.TextItemWidth != "" {
resultmaps["textItemWidth"] = value.TextItemWidth
}
if value.TextTrimming != "" {
resultmaps["textTrimming"] = value.TextTrimming
}
resultmaps["systemParContent"] = value.SystemParContent
myresultmaps = append(myresultmaps, resultmaps)
// allScreen = append(allScreen, oneScreen)
}
// jsonData, err := json.Marshal(allScreen)
// if err != nil {
// fmt.Println(err)
// os.Exit(1)
// }
myresultmap[Common.DBRESULT] = myresultmaps
myresultmap[Common.DATALIST] = tempTScreenform
}
return myresultmap, err
}
func String2Bytes(s string) []byte {
defer func() {
if r := recover(); r != nil {
log.Error("String2Bytes:", r)
}
}()
sh := (*reflect.StringHeader)(unsafe.Pointer(&s))
bh := reflect.SliceHeader{
Data: sh.Data,
Len: sh.Len,
Cap: sh.Len,
}
return *(*[]byte)(unsafe.Pointer(&bh))
}