示例#1
0
        public static StringBuilder GetMain(string _page, string _id)
        {
            StringBuilder _str = new StringBuilder();
            Dictionary <string, object> _valueDataRecorded = SCHUtil.SetValueDataRecorded(_page, _id, null);
            string _titleTH    = String.Empty;
            string _titleEN    = String.Empty;
            string _background = String.Empty;

            if (_page.Equals(SCHUtil.PAGE_SCHOLARSHIP_ADD))
            {
                _titleTH    = "เพิ่ม";
                _titleEN    = "Add";
                _background = "green";
            }

            if (_page.Equals(SCHUtil.PAGE_SCHOLARSHIP_UPDATE))
            {
                _titleTH    = "แก้ไข";
                _titleEN    = "Edit";
                _background = "orange";
            }

            _str.AppendLine("<div class='paddingTop10'>");
            _str.AppendLine(GetValue(_valueDataRecorded).ToString());
            _str.AppendFormat(" <div class='ui form {0} inverted segment'>", _background);
            _str.AppendLine("       <div class='ui left floated header'>");
            _str.AppendFormat("         <span class='lang lang-th f9 font-th regular white'>{0}ทุน</span>", _titleTH);
            _str.AppendFormat("         <span class='lang lang-en f9 font-en regular white'>{0} Scholarship</span>", _titleEN);
            _str.AppendLine("       </div>");
            _str.AppendLine("       <div class='ui right floated header'>");
            _str.AppendLine("           <i class='close icon link font-th regular white btnclose'></i>");
            _str.AppendLine("       </div>");
            _str.AppendLine("       <div class='ui header'></div>");
            _str.AppendLine("       <div class='paddingTop5 panel-bodys'>");
            _str.AppendLine("           <div class='ui inverted dividing header'></div>");
            _str.AppendLine("           <div class='panel-body'>");
            _str.AppendLine("               <div class='two fields'>");
            _str.AppendLine("                   <div class='field'>");
            _str.AppendLine("                       <label>");
            _str.AppendLine("                           <span class='lang lang-th f10 font-th regular white'>ชื่อทุนภาษาไทย</span>");
            _str.AppendLine("                           <span class='lang lang-en f10 font-en regular white'>Scholarship Thai Name</span>");
            _str.AppendLine("                       </label>");
            _str.AppendFormat("                     <input id='{0}-scholarshipsnameth' type='text' placeholder='' placeholderth='' placeholderen='' value='' />", _idContent);
            _str.AppendLine("                   </div>");
            _str.AppendLine("                   <div class='field'>");
            _str.AppendLine("                       <label>");
            _str.AppendLine("                           <span class='lang lang-th f10 font-th regular white'>ชื่อทุนภาษาอังกฤษ</span>");
            _str.AppendLine("                           <span class='lang lang-en f10 font-en regular white'>Scholarship English Name</span>");
            _str.AppendLine("                       </label>");
            _str.AppendFormat("                     <input id='{0}-scholarshipsnameen' type='text' placeholder='' placeholderth='' placeholderen='' value='' />", _idContent);
            _str.AppendLine("                   </div>");
            _str.AppendLine("               </div>");
            _str.AppendLine("               <div class='two fields'>");
            _str.AppendLine("                   <div class='field'>");
            _str.AppendLine("                       <label>");
            _str.AppendLine("                           <span class='lang lang-th f10 font-th regular white'>ประเภททุน</span>");
            _str.AppendLine("                           <span class='lang lang-en f10 font-en regular white'>Type Scholarship</span>");
            _str.AppendLine("                       </label>");
            _str.AppendLine(SCHUI.DDLScholarshipsType(_idContent + "-scholarshipstype").ToString());
            _str.AppendLine("                   </div>");
            _str.AppendLine("                   <div class='field'>");
            _str.AppendLine("                       <label>");
            _str.AppendLine("                           <span class='lang lang-th f10 font-th regular white'>เจ้าของทุน</span>");
            _str.AppendLine("                           <span class='lang lang-en f10 font-en regular white'>Scholarship Owner</span>");
            _str.AppendLine("                       </label>");
            _str.AppendFormat("                     <input id='{0}-owner' type='text' maxlength='255' placeholder=''  placeholderth='' placeholderen='' value='' />", _idContent);
            _str.AppendLine("                   </div>");
            _str.AppendLine("               </div>");
            _str.AppendLine("               <div class='field'>");
            _str.AppendFormat("                 <div class='ui button fluid inverted {0}' id='{1}-btnsave' data-options='{2}' alt='{3}'>", _background, _idContent, _id, _page);
            _str.AppendFormat("                     <i class='icon save font-th regular white'></i>");
            _str.AppendLine("                       <span class='lang lang-th f9 font-th regular white'>บันทึก</span>");
            _str.AppendLine("                       <span class='lang lang-en f9 font-en regular white'>Save</span>");
            _str.AppendLine("                   </div>");
            _str.AppendLine("               </div>");
            _str.AppendLine("           </div>");
            _str.AppendLine("       </div>");
            _str.AppendLine("   </div>");
            _str.AppendLine("</div>");

            return(_str);
        }
        public static StringBuilder GetMain(string _id)
        {
            StringBuilder _str = new StringBuilder();
            Dictionary <string, object> _paramSearch       = new Dictionary <string, object>();
            Dictionary <string, object> _valueDataRecorded = new Dictionary <string, object>();
            Dictionary <string, object> _dataRecorded      = new Dictionary <string, object>();
            string _studentCode      = String.Empty;
            string _fullNameTH       = String.Empty;
            string _fullNameEN       = String.Empty;
            string _facultyNameTH    = String.Empty;
            string _facultyNameEN    = String.Empty;
            string _programNameTH    = String.Empty;
            string _programNameEN    = String.Empty;
            string _statusTypeNameTH = String.Empty;
            string _statusTypeNameEN = String.Empty;

            string[] _valueArray = _id.Split('|');

            _paramSearch.Clear();
            _paramSearch.Add("PersonId", _valueArray[0]);
            _paramSearch.Add("ScholarshipsYear", _valueArray[1]);
            _paramSearch.Add("Semester", _valueArray[2]);
            _paramSearch.Add("ScholarshipsId", _valueArray[3]);

            _valueDataRecorded = SCHUtil.SetValueDataRecorded(SCHUtil.PAGE_IMPORTREGISTERSCHOLARSHIPSTUDENTCV_MAIN, "", _paramSearch);
            _dataRecorded      = (_valueDataRecorded != null ? (Dictionary <string, object>)_valueDataRecorded["DataRecorded" + SCHUtil.SUBJECT_IMPORTREGISTERSCHOLARSHIPSTUDENTCV] : null);

            _studentCode      = _dataRecorded["StudentCode"].ToString();
            _fullNameTH       = SCHUtil.GetFullName(_dataRecorded["TitleInitialsTH"].ToString(), _dataRecorded["TitleFullNameTH"].ToString(), _dataRecorded["FirstName"].ToString(), _dataRecorded["MiddleName"].ToString(), _dataRecorded["LastName"].ToString());
            _fullNameEN       = SCHUtil.GetFullName(_dataRecorded["TitleInitialsEN"].ToString(), _dataRecorded["TitleFullNameEN"].ToString(), _dataRecorded["FirstNameEN"].ToString(), _dataRecorded["MiddleNameEN"].ToString(), _dataRecorded["LastNameEN"].ToString()).ToUpper();
            _facultyNameTH    = _dataRecorded["FacultyNameTH"].ToString();
            _facultyNameEN    = _dataRecorded["FacultyNameEN"].ToString();
            _programNameTH    = _dataRecorded["ProgramNameTH"].ToString();
            _programNameEN    = _dataRecorded["ProgramNameEN"].ToString();
            _statusTypeNameTH = _dataRecorded["StatusTypeNameTH"].ToString();
            _statusTypeNameEN = _dataRecorded["StatusTypeNameEN"].ToString();

            _str.AppendLine(GetValue(_valueDataRecorded).ToString());
            _str.AppendLine("<div class='ui form'>");
            _str.AppendLine("   <div class='ui right aligned header'>");
            _str.AppendLine("       <i class='close icon link font-th regular black btnclose'></i>");
            _str.AppendLine("   </div>");
            _str.AppendLine("</div>");
            _str.AppendLine("<div class='view paddingTop5'>");
            _str.AppendLine("   <div class='iform'>");
            _str.AppendLine("       <div class='iform-row'>");
            _str.AppendLine("           <div class='col1 iform-col'>");
            _str.AppendLine("               <div class='avatar profilepicture'>");
            _str.AppendLine("                   <div class='watermark'></div>");
            _str.AppendLine("                   <img />");
            _str.AppendLine("               </div>");
            _str.AppendLine("           </div>");
            _str.AppendLine("           <div class='col2 iform-col'>");
            _str.AppendLine("               <div class='iform'>");
            _str.AppendLine("                   <div class='iform-row'>");
            _str.AppendLine("                       <div class='col21 iform-col label-col left aligned'>");
            _str.AppendLine("                           <span class='lang lang-th f10 font-th regular black'>รหัสนักศึกษา</span>");
            _str.AppendLine("                           <span class='lang lang-en f10 font-en regular black'>Student ID</span>");
            _str.AppendLine("                       </div>");
            _str.AppendLine("                       <div class='col22 iform-col input-col left aligned'>");
            _str.AppendFormat("                         <span class='lang lang-th f10 font-th regular blue'>{0}</span>", _studentCode);
            _str.AppendFormat("                         <span class='lang lang-en f10 font-en regular blue'>{0}</span>", _studentCode);
            _str.AppendLine("                       </div>");
            _str.AppendLine("                   </div>");
            _str.AppendLine("                   <div class='iform-row'>");
            _str.AppendLine("                       <div class='col21 iform-col label-col left aligned'>");
            _str.AppendLine("                           <span class='lang lang-th f10 font-th regular black'>ชื่อ - สกุล</span>");
            _str.AppendLine("                           <span class='lang lang-en f10 font-en regular black'>Full Name</span>");
            _str.AppendLine("                       </div>");
            _str.AppendLine("                       <div class='col22 iform-col input-col left aligned'>");
            _str.AppendFormat("                         <span class='lang lang-th f10 font-th regular blue'>{0}</span>", _fullNameTH);
            _str.AppendFormat("                         <span class='lang lang-en f10 font-en regular blue'>{0}</span>", _fullNameEN);
            _str.AppendLine("                       </div>");
            _str.AppendLine("                   </div>");
            _str.AppendLine("                   <div class='iform-row'>");
            _str.AppendLine("                       <div class='col21 iform-col label-col left aligned'>");
            _str.AppendLine("                           <span class='lang lang-th f10 font-th regular black'>คณะ</span>");
            _str.AppendLine("                           <span class='lang lang-en f10 font-en regular black'>Faculty</span>");
            _str.AppendLine("                       </div>");
            _str.AppendLine("                       <div class='col22 iform-col input-col left aligned'>");
            _str.AppendFormat("                         <span class='lang lang-th f10 font-th regular blue'>{0}</span>", _facultyNameTH);
            _str.AppendFormat("                         <span class='lang lang-en f10 font-en regular blue'>{0}</span>", _facultyNameEN);
            _str.AppendLine("                       </div>");
            _str.AppendLine("                   </div>");
            _str.AppendLine("                   <div class='iform-row'>");
            _str.AppendLine("                       <div class='col21 iform-col label-col left aligned'>");
            _str.AppendLine("                           <span class='lang lang-th f10 font-th regular black'>หลักสูตร</span>");
            _str.AppendLine("                           <span class='lang lang-en f10 font-en regular black'>Program</span>");
            _str.AppendLine("                       </div>");
            _str.AppendLine("                       <div class='col22 iform-col input-col left aligned'>");
            _str.AppendFormat("                         <span class='lang lang-th f10 font-th regular blue'>{0}</span>", _programNameTH);
            _str.AppendFormat("                         <span class='lang lang-en f10 font-en regular blue'>{0}</span>", _programNameEN);
            _str.AppendLine("                       </div>");
            _str.AppendLine("                   </div>");
            _str.AppendLine("                   <div class='iform-row'>");
            _str.AppendLine("                       <div class='col21 iform-col label-col left aligned'>");
            _str.AppendLine("                           <span class='lang lang-th f10 font-th regular black'>สถานภาพ</span>");
            _str.AppendLine("                           <span class='lang lang-en f10 font-en regular black'>Student Status</span>");
            _str.AppendLine("                       </div>");
            _str.AppendLine("                       <div class='col22 iform-col input-col left aligned'>");
            _str.AppendFormat("                         <span class='lang lang-th f10 font-th regular blue'>{0}</span>", _statusTypeNameTH);
            _str.AppendFormat("                         <span class='lang lang-en f10 font-en regular blue'>{0}</span>", _statusTypeNameEN);
            _str.AppendLine("                       </div>");
            _str.AppendLine("                   </div>");
            _str.AppendLine("                   <div class='iform-row'>");
            _str.AppendLine("                       <div class='col21 iform-col label-col left aligned'>");
            _str.AppendLine("                           <span class='lang lang-th f10 font-th regular black'>ทุน</span>");
            _str.AppendLine("                           <span class='lang lang-en f10 font-en regular black'>Scholarship</span>");
            _str.AppendLine("                       </div>");
            _str.AppendLine("                       <div class='col22 iform-col input-col left aligned'>");
            _str.AppendLine("                           <span class='lang lang-th f10 font-th regular blue'></span><span class='lang lang-th f10 font-th regular blue opacity05'></span>");
            _str.AppendLine("                           <span class='lang lang-en f10 font-en regular blue'></span><span class='lang lang-en f10 font-en regular blue opacity05'></span>");
            _str.AppendLine("                       </div>");
            _str.AppendLine("                   </div>");
            _str.AppendLine("                   <div class='iform-row'>");
            _str.AppendLine("                       <div class='col21 iform-col label-col left aligned'>");
            _str.AppendLine("                           <span class='lang lang-th f10 font-th regular black'>สมัครรับทุนเมื่อ</span>");
            _str.AppendLine("                           <span class='lang lang-en f10 font-en regular black'>Regerter When</span>");
            _str.AppendLine("                       </div>");
            _str.AppendLine("                       <div class='col22 iform-col input-col left aligned'>");
            _str.AppendLine("                           <span class='lang lang-th f10 font-th regular blue'></span>");
            _str.AppendLine("                           <span class='lang lang-en f10 font-en regular blue'></span>");
            _str.AppendLine("                       </div>");
            _str.AppendLine("                   </div>");
            _str.AppendLine("                   <div class='iform-row'>");
            _str.AppendLine("                       <div class='col21 iform-col label-col left aligned'>");
            _str.AppendLine("                           <span class='lang lang-th f10 font-th regular black'>หมายเหตุ</span>");
            _str.AppendLine("                           <span class='lang lang-en f10 font-en regular black'>Remark</span>");
            _str.AppendLine("                       </div>");
            _str.AppendLine("                       <div class='col22 iform-col input-col left aligned'>");
            _str.AppendLine("                           <span class='lang lang-th f10 font-th regular blue'></span>");
            _str.AppendLine("                           <span class='lang lang-en f10 font-en regular blue'></span>");
            _str.AppendLine("                       </div>");
            _str.AppendLine("                   </div>");
            _str.AppendLine("               </div>");
            _str.AppendLine("           </div>");
            _str.AppendLine("       </div>");
            _str.AppendLine("   </div>");
            _str.AppendLine("</div>");

            return(_str);
        }
        public static StringBuilder GetMain(string _id)
        {
            Dictionary <string, object> _loginResult = SCHUtil.GetInfoLogin("", "");
            StringBuilder _str = new StringBuilder();
            Dictionary <string, object> _paramSearch       = new Dictionary <string, object>();
            Dictionary <string, object> _valueDataRecorded = SCHUtil.SetValueDataRecorded(SCHUtil.PAGE_REGISTERSCHOLARSHIPSTUDENTCV_MAIN, _id, null);
            Dictionary <string, object> _dataRecorded      = (_valueDataRecorded != null ? (Dictionary <string, object>)_valueDataRecorded["DataRecorded" + SCHUtil.SUBJECT_REGISTERSCHOLARSHIPSTUDENTCV] : null);
            string _username         = _loginResult["Username"].ToString();
            string _userlevel        = _loginResult["Userlevel"].ToString();
            string _systemGroup      = _loginResult["SystemGroup"].ToString();
            string _studentCode      = _dataRecorded["StudentCode"].ToString();
            string _fullNameTH       = SCHUtil.GetFullName(_dataRecorded["TitleInitialsTH"].ToString(), _dataRecorded["TitleFullNameTH"].ToString(), _dataRecorded["FirstName"].ToString(), _dataRecorded["MiddleName"].ToString(), _dataRecorded["LastName"].ToString());
            string _fullNameEN       = SCHUtil.GetFullName(_dataRecorded["TitleInitialsEN"].ToString(), _dataRecorded["TitleFullNameEN"].ToString(), _dataRecorded["FirstNameEN"].ToString(), _dataRecorded["MiddleNameEN"].ToString(), _dataRecorded["LastNameEN"].ToString()).ToUpper();
            string _facultyNameTH    = _dataRecorded["FacultyNameTH"].ToString();
            string _facultyNameEN    = _dataRecorded["FacultyNameEN"].ToString();
            string _programNameTH    = _dataRecorded["ProgramNameTH"].ToString();
            string _programNameEN    = _dataRecorded["ProgramNameEN"].ToString();
            string _statusTypeNameTH = _dataRecorded["StatusTypeNameTH"].ToString();
            string _statusTypeNameEN = _dataRecorded["StatusTypeNameEN"].ToString();
            string _row = String.Empty;
            string _scholarshipsNameTH = String.Empty;
            string _scholarshipsNameEN = String.Empty;
            string _responsibleAgency  = String.Empty;
            string _registerDate       = String.Empty;
            string _scholarshipsYear   = String.Empty;
            string _semester           = String.Empty;

            _str.AppendLine(GetValue(_valueDataRecorded).ToString());
            _str.AppendLine("<div class='ui form'>");
            _str.AppendLine("   <div class='ui right aligned header'>");
            _str.AppendLine("       <i class='close icon link font-th regular black btnclose'></i>");
            _str.AppendLine("   </div>");
            _str.AppendLine("</div>");
            _str.AppendLine("<div class='view paddingTop5'>");
            _str.AppendLine("   <div class='iform'>");
            _str.AppendLine("       <div class='iform-row'>");
            _str.AppendLine("           <div class='col1 iform-col'>");
            _str.AppendLine("               <div class='avatar profilepicture'>");
            _str.AppendLine("                   <div class='watermark'></div>");
            _str.AppendLine("                   <img />");
            _str.AppendLine("               </div>");
            _str.AppendLine("           </div>");
            _str.AppendLine("           <div class='col2 iform-col'>");
            _str.AppendLine("               <div class='iform'>");
            _str.AppendLine("                   <div class='iform-row'>");
            _str.AppendLine("                       <div class='col21 iform-col label-col left aligned'>");
            _str.AppendLine("                           <span class='lang lang-th f10 font-th regular black'>รหัสนักศึกษา</span>");
            _str.AppendLine("                           <span class='lang lang-en f10 font-en regular black'>Student ID</span>");
            _str.AppendLine("                       </div>");
            _str.AppendLine("                       <div class='col22 iform-col input-col left aligned'>");
            _str.AppendFormat("                         <span class='lang lang-th f10 font-th regular blue'>{0}</span>", _studentCode);
            _str.AppendFormat("                         <span class='lang lang-en f10 font-en regular blue'>{0}</span>", _studentCode);
            _str.AppendLine("                       </div>");
            _str.AppendLine("                   </div>");
            _str.AppendLine("                   <div class='iform-row'>");
            _str.AppendLine("                       <div class='col21 iform-col label-col left aligned'>");
            _str.AppendLine("                           <span class='lang lang-th f10 font-th regular black'>ชื่อ - สกุล</span>");
            _str.AppendLine("                           <span class='lang lang-en f10 font-en regular black'>Full Name</span>");
            _str.AppendLine("                       </div>");
            _str.AppendLine("                       <div class='col22 iform-col input-col left aligned'>");
            _str.AppendFormat("                         <span class='lang lang-th f10 font-th regular blue'>{0}</span>", _fullNameTH);
            _str.AppendFormat("                         <span class='lang lang-en f10 font-en regular blue'>{0}</span>", _fullNameEN);
            _str.AppendLine("                       </div>");
            _str.AppendLine("                   </div>");
            _str.AppendLine("                   <div class='iform-row'>");
            _str.AppendLine("                       <div class='col21 iform-col label-col left aligned'>");
            _str.AppendLine("                           <span class='lang lang-th f10 font-th regular black'>คณะ</span>");
            _str.AppendLine("                           <span class='lang lang-en f10 font-en regular black'>Faculty</span>");
            _str.AppendLine("                       </div>");
            _str.AppendLine("                       <div class='col22 iform-col input-col left aligned'>");
            _str.AppendFormat("                         <span class='lang lang-th f10 font-th regular blue'>{0}</span>", _facultyNameTH);
            _str.AppendFormat("                         <span class='lang lang-en f10 font-en regular blue'>{0}</span>", _facultyNameEN);
            _str.AppendLine("                       </div>");
            _str.AppendLine("                   </div>");
            _str.AppendLine("                   <div class='iform-row'>");
            _str.AppendLine("                       <div class='col21 iform-col label-col left aligned'>");
            _str.AppendLine("                           <span class='lang lang-th f10 font-th regular black'>หลักสูตร</span>");
            _str.AppendLine("                           <span class='lang lang-en f10 font-en regular black'>Program</span>");
            _str.AppendLine("                       </div>");
            _str.AppendLine("                       <div class='col22 iform-col input-col left aligned'>");
            _str.AppendFormat("                         <span class='lang lang-th f10 font-th regular blue'>{0}</span>", _programNameTH);
            _str.AppendFormat("                         <span class='lang lang-en f10 font-en regular blue'>{0}</span>", _programNameEN);
            _str.AppendLine("                       </div>");
            _str.AppendLine("                   </div>");
            _str.AppendLine("                   <div class='iform-row'>");
            _str.AppendLine("                       <div class='col21 iform-col label-col left aligned'>");
            _str.AppendLine("                           <span class='lang lang-th f10 font-th regular black'>ทุน</span>");
            _str.AppendLine("                           <span class='lang lang-en f10 font-en regular black'>Scholarship</span>");
            _str.AppendLine("                       </div>");
            _str.AppendLine("                       <div class='col22 iform-col input-col left aligned'>");
            _str.AppendLine("                           <div class='info-list'>");
            _str.AppendLine("                               <ul>");

            _paramSearch.Clear();
            _paramSearch.Add("Keyword", _studentCode);

            DataSet _ds1 = SCHDB.GetListTranStudentManageScholarship(_username, _userlevel, _systemGroup, _paramSearch);

            foreach (DataRow _dr1 in _ds1.Tables[0].Rows)
            {
                _row = _dr1["rowNum"].ToString();
                _scholarshipsNameTH = _dr1["scholarshipsNameTH"].ToString();
                _scholarshipsNameEN = (!String.IsNullOrEmpty(_dr1["scholarshipsNameEN"].ToString()) ? _dr1["scholarshipsNameEN"].ToString() : (!String.IsNullOrEmpty(_scholarshipsNameTH) ? _scholarshipsNameTH : ""));
                _responsibleAgency  = _dr1["responsibleAgency"].ToString();
                _registerDate       = (!String.IsNullOrEmpty(_dr1["registerDate"].ToString()) ? DateTime.Parse(_dr1["registerDate"].ToString()).ToString("dd/MM/yyyy") : "");
                _scholarshipsYear   = _dr1["scholarshipsYear"].ToString();
                _semester           = _dr1["semester"].ToString();

                _str.AppendLine("                               <li class='blue'>");
                _str.AppendFormat("                                 <span class='lang lang-th f10 font-th regular blue'>{0}</span><span class='lang lang-th f10 font-th regular blue opacity05'>{1}</span><span class='lang lang-th f10 font-th regular blue'> ( {2} - {3} / {4} )</span>", _scholarshipsNameTH, (!String.IsNullOrEmpty(_responsibleAgency) ? (" - " + _responsibleAgency) : ""), _registerDate, _scholarshipsYear, _semester);
                _str.AppendFormat("                                 <span class='lang lang-en f10 font-en regular blue'>{0}</span><span class='lang lang-en f10 font-en regular blue opacity05'>{1}</span><span class='lang lang-en f10 font-en regular blue'> ( {2} - {3} / {4} )</span>", _scholarshipsNameEN, (!String.IsNullOrEmpty(_responsibleAgency) ? (" - " + _responsibleAgency) : ""), _registerDate, _scholarshipsYear, _semester);
                _str.AppendLine("                               </li>");
            }

            _ds1.Dispose();

            _str.AppendLine("                               </ul>");
            _str.AppendLine("                           </div>");
            _str.AppendLine("                       </div>");
            _str.AppendLine("                   </div>");
            _str.AppendLine("                   <div class='iform-row'>");
            _str.AppendLine("                       <div class='col21 iform-col label-col left aligned'>");
            _str.AppendLine("                           <span class='lang lang-th f10 font-th regular black'>สถานภาพ</span>");
            _str.AppendLine("                           <span class='lang lang-en f10 font-en regular black'>Student Status</span>");
            _str.AppendLine("                       </div>");
            _str.AppendLine("                       <div class='col22 iform-col input-col left aligned'>");
            _str.AppendFormat("                         <span class='lang lang-th f10 font-th regular blue'>{0}</span>", _statusTypeNameTH);
            _str.AppendFormat("                         <span class='lang lang-en f10 font-en regular blue'>{0}</span>", _statusTypeNameEN);
            _str.AppendLine("                       </div>");
            _str.AppendLine("                   </div>");
            _str.AppendLine("               </div>");
            _str.AppendLine("               <div class='iform'>");
            _str.AppendLine("                   <div class='iform-row'>");
            _str.AppendLine("                       <div class='iform-col'>");
            _str.AppendLine("                           <div class='ui segment list-grade'>");
            _str.AppendLine("                               <div class='ui middle aligned divided list'>");
            _str.AppendLine("                                   <div class='item'>");
            _str.AppendLine("                                       <div class='content'>");
            _str.AppendLine("                                           <div class='col1 list-col left floated left aligned header'>");
            _str.AppendLine("                                               <span class='lang lang-th f9 font-th regular black'>ภาคการศึกษา</span>");
            _str.AppendLine("                                               <span class='lang lang-en f9 font-en regular black'>Semester</span>");
            _str.AppendLine("                                           </div>");
            _str.AppendLine("                                           <div class='col2 list-col left aligned header'>");
            _str.AppendLine("                                               <span class='lang lang-th f9 font-th regular black'>เกรดเฉลี่ย</span>");
            _str.AppendLine("                                               <span class='lang lang-en f9 font-en regular black'>GPA</span>");
            _str.AppendLine("                                           </div>");
            _str.AppendLine("                                       </div>");
            _str.AppendLine("                                   </div>");

            DataSet _ds2 = SCHDB.GetStudentGPA(_dataRecorded["StudentCode"].ToString());

            foreach (DataRow _dr2 in _ds2.Tables[0].Rows)
            {
                _str.AppendLine("                               <div class='item'>");
                _str.AppendLine("                                   <div class='col1 list-col left floated left aligned content'>");
                _str.AppendFormat("                                     <span class='lang lang-th f10 font-th regular black'>{0}</span>", _dr2["sem"].ToString());
                _str.AppendFormat("                                     <span class='lang lang-en f10 font-en regular black'>{0}</span>", _dr2["sem"].ToString());
                _str.AppendLine("                                   </div>");
                _str.AppendLine("                                   <div class='col2 list-col left aligned content'>");
                _str.AppendFormat("                                     <span class='lang lang-th f10 font-th regular black'>{0}</span>", _dr2["cGPA"].ToString());
                _str.AppendFormat("                                     <span class='lang lang-en f10 font-en regular black'>{0}</span>", _dr2["cGPA"].ToString());
                _str.AppendLine("                                   </div>");
                _str.AppendLine("                               </div>");
            }

            _ds2.Dispose();

            _str.AppendLine("                               </div>");
            _str.AppendLine("                           </div>");
            _str.AppendLine("                       </div>");
            _str.AppendLine("                   </div>");
            _str.AppendLine("               </div>");
            _str.AppendLine("           </div>");
            _str.AppendLine("       </div>");
            _str.AppendLine("   </div>");
            _str.AppendLine("</div>");

            return(_str);
        }