public static void GetDictionarys(Gdxj xj) { ClassDict = GetData(xj, new GetGeneralDictClass(xj.GdxjUser.organ.organCode)); Country = GetData(xj, new GetDictClass(SendDataSetting.CountryID)); CertificateType = GetData(xj, new GetDictClass(SendDataSetting.CertificateType)); GATQ = GetData(xj, new GetDictClass(SendDataSetting.GATQ)); ZXSKJ = GetData(xj, new GetDictClass(SendDataSetting.ZXSKJ)); HKXZ = GetData(xj, new GetDictClass(SendDataSetting.HKXZ)); YesOrNo = GetData(xj, new GetDictClass(SendDataSetting.YesOrNo)); LSET = GetData(xj, new GetDictClass(SendDataSetting.LSET)); XB = GetData(xj, new GetDictClass(SendDataSetting.XB)); MZ = GetData(xj, new GetDictClass(SendDataSetting.MZ)); schoolName = xj.GdxjUser.organ.organName; schoolInfo = GetSchoolInfo(xj, xj.GdxjUser.organ.organCode); }
private static ReceiveSchoolInfoClass GetSchoolInfo(Gdxj xj, string schoolID) { ReceiveSchoolInfoClass result = new ReceiveSchoolInfoClass(); GetSchoolInfoClass gsic = new GetSchoolInfoClass(schoolID); try { AjaxCommand.Send.ContextCommandParams ccp = new AjaxCommand.Send.ContextCommandParams() { @params = gsic }; string json = JsonConvert.SerializeObject(ccp, Formatting.Indented); string html = RequestHelper.GetByPostJsonWithCsrf(setting.url.QuerySchoolInfoUrl, json, ref xj.GdxjCookie.cookie, Csrf.GetCsrfToken(), setting.url.QueryGradeRefererUrl); result = JsonConvert.DeserializeObject <ReceiveSchoolInfoClass>(html); } catch (Exception e) { throw (e); } return(result); }