/// <summary> /// 取得各校之相關基本資料(社團/學生) /// </summary> public Dictionary <string, AcrossRecord> SchoolClubDetail(List <LoginSchool> LoginSchoolList) { Dictionary <string, AcrossRecord> AcrossDic = new Dictionary <string, AcrossRecord>(); foreach (LoginSchool login in LoginSchoolList) { Connection me = new Connection(); me.Connect(login.School_Name, tool._contract, FISCA.Authentication.DSAServices.PassportToken); me = me.AsContract(tool._contract); //取得 - 學年度/學期 //目前系統中有參與記錄的學生 & 是否鎖定 Dictionary <string, OnlineSCJoin> StudentSCJoinDic = RunService.GetSCJoinStudent(me, _SchoolYear.ToString(), _Semester.ToString()); AcrossRecord ar = new AcrossRecord(); ar.School = login.School_Name; ar.SchoolRemake = login.Remark; //取得可選社之學生 //年級/班級/座號/姓名/科別 //StudentSCJoinDic - 是否有社團參與記錄 //StudentPresidentDic - 是否有'前期'社長副/社長記錄 ar.StudentDic = GetStuentList(me, StudentSCJoinDic); //取得預設(學年度,學期)學校之社團記錄 ar.ClubDic = RunService.GetClubList(me, _SchoolYear.ToString(), _Semester.ToString()); if (!AcrossDic.ContainsKey(login.School_Name)) { AcrossDic.Add(login.School_Name, ar); } } return(AcrossDic); }
/// <summary> /// 取得各校之相關基本資料(社團/學生/志願序) /// </summary> static public Dictionary <string, AcrossRecord> SchoolClubDetail(List <LoginSchool> LoginSchoolList) { Dictionary <string, AcrossRecord> AcrossDic = new Dictionary <string, AcrossRecord>(); if (FISCA.Authentication.DSAServices.PassportToken != null) { foreach (LoginSchool login in LoginSchoolList) { Connection me = new Connection(); me.Connect(login.School_Name, _contract, FISCA.Authentication.DSAServices.PassportToken); me = me.AsContract(_contract); //取得本學年度/學期 //目前系統中有參與記錄的學生 & 是否鎖定 Dictionary <string, OnlineSCJoin> StudentSCJoinDic = RunService.GetDefSCJoinStudent(me); //取得指定學年度學期的社長副社長清單 Dictionary <string, OnlinePresident> StudentPresidentDic = RunService.GetDefPresident(me); AcrossRecord ar = new AcrossRecord(); ar.School = login.School_Name; ar.SchoolRemake = login.Remark; //取得可選社之學生 //年級/班級/座號/姓名/科別 //StudentSCJoinDic - 是否有社團參與記錄 //StudentPresidentDic - 是否有'前期'社長副/社長記錄 ar.StudentDic = RunService.GetStuentList(me, StudentSCJoinDic, StudentPresidentDic); //取得預設(學年度,學期)學校之社團記錄 ar.ClubDic = RunService.GetDefClubList(me); //取得學生之選填志願內容 ar.VolunteerList = RunService.GetDefVolunteer(me, login); if (!AcrossDic.ContainsKey(login.School_Name)) { AcrossDic.Add(login.School_Name, ar); } } } return(AcrossDic); }