public static Dictionary <string, object> SetValueDataRecorded(string _page, string _id) { Dictionary <string, object> _valueDataRecordedResult = new Dictionary <string, object>(); Dictionary <string, object> _dataRecorded = new Dictionary <string, object>(); DataSet _ds = new DataSet(); if (_page.Equals(PAGE_DOWNLOADREGISTRATIONFORMSTUDENTRECORDS_MAIN)) { _ds = HCSDB.GetHCSStudentRecords(_id); } if (_ds.Tables.Count > 0) { if (_page.Equals(PAGE_DOWNLOADREGISTRATIONFORMSTUDENTRECORDS_MAIN)) { _dataRecorded = HCSStaffDownloadRegistrationFormUtil.StudentRecordsUtil.SetValueDataRecorded(_dataRecorded, _ds); } } _ds.Dispose(); if (_page.Equals(PAGE_DOWNLOADREGISTRATIONFORMSTUDENTRECORDS_MAIN)) { _valueDataRecordedResult.Add(("DataRecorded" + SUBJECT_SECTION_DOWNLOADREGISTRATIONFORMSTUDENTRECORDS), _dataRecorded); } return(_valueDataRecordedResult); }
public static Dictionary <string, object> GetInfoLogin(string _page, string _id) { Dictionary <string, object> _finServiceLoginResult = FinServiceLogin.GetFinServiceLogin(FinServiceLogin.USERTYPE_STUDENT, "e-Profile"); Dictionary <string, object> _loginResult = new Dictionary <string, object>(); int _systemError = Util.DBUtil.ChkSystemPermissionStudent(_finServiceLoginResult); int _cookieError = 0; int _userError = 0; string _personId = _finServiceLoginResult["PersonID"].ToString(); string _studentId = _finServiceLoginResult["StudentID"].ToString(); if (_systemError.Equals(0)) { _systemError = (!String.IsNullOrEmpty(_personId) ? (HCSDB.GetHCSStudentRecords(_personId).Tables[0].Rows.Count > 0 ? 0 : 6) : 6); } switch (_systemError) { case 1: _cookieError = 1; break; case 2: _userError = 1; break; case 6: _userError = 2; break; case 3: _userError = 4; break; case 4: _userError = 5; break; case 5: _userError = 6; break; } _loginResult.Add("CookieError", _cookieError.ToString()); _loginResult.Add("UserError", _userError.ToString()); _loginResult.Add("PersonId", _personId); _loginResult.Add("StudentId", _studentId); return(_loginResult); }