123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221 |
- @model EMIS.ViewModel.StudentManage.StudentProfile.StudentView
- @using EMIS.Web.Controls;
- @using Bowin.Web.Controls.Mvc;
- @{
- ViewBag.Title = "CheckEdit";
- List<EMIS.ViewModel.StudentManage.InfoCenter.EditFeildView> editFeildViewList = ViewBag.EditFeildViews;
- List<string> typeNameList = ViewBag.TypeNames;
- //班级信息
- ComboGridOptions cgopClassmajor = new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "ClassmajorID",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new LinkButtonColumn { FieldName="No", HeaderText="班级编号", Width=0.2, Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Width=0.35, Align=AlignStyle.Center }
- },
- PageSize = 5,
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Classmajor/List"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- }
- };
-
- var controls = new Dictionary<string, KeyValuePair<MvcHtmlString, MvcHtmlString>>();
- controls.Add("PhotoUrl", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.PhotoUrl), MvcHtmlString.Create("<div id=\"prvid\"><img src=" + Model.PhotoUrlStr
- + " width=150 height=154 /></div><div><input id=\"files\" name=\"PhotoUrl\" type=\"file\" onchange=\"previewImage(this, 'prvid')\" multiple=\"multiple\"/>")));
- controls.Add("LoginID", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.LoginID), Html.TextBoxFor(x => x.LoginID)));
- controls.Add("Name", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.Name), Html.TextBoxFor(x => x.Name)));
- controls.Add("SexID", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.SexID), Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Sex, (x => x.SexID))));
- controls.Add("BirthDate", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.BirthDate), Html.TextBoxFor(x => x.BirthDate, new TextBoxOptions() { TextBoxType = TextBoxType.Date })));
- controls.Add("NationID", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.NationID), Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Nation, (x => x.NationID))));
- controls.Add("PoliticsID", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.PoliticsID), Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Politics, (x => x.PoliticsID))));
- controls.Add("StudentType", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.StudentType), Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_STUDENTTYPE, (x => x.StudentType))));
- controls.Add("CertificatesType", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.CertificatesType), Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_CertificatesType, (x => x.CertificatesType))));
- controls.Add("IDNumber", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.IDNumber), @Html.TextBoxFor(x => x.IDNumber)));
- controls.Add("InSchoolStatusID", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.InSchoolStatusID), Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_InschoolStatus, (x => x.InSchoolStatusID))));
- controls.Add("StudentStatus", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.StudentStatus), Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_StudentStatus, (x => x.StudentStatus))));
- controls.Add("ClassmajorID", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.ClassmajorID), Html.ComboGridFor(x => x.ClassmajorID, cgopClassmajor)));
- controls.Add("UsedName", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.UsedName), Html.TextBoxFor(x => x.UsedName)));
- controls.Add("DirectorName", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.DirectorName), Html.TextBoxFor(x => x.DirectorName)));
- controls.Add("LiteracyLevelID", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.LiteracyLevelID), Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_LiteracyLevel, (x => x.LiteracyLevelID))));
- controls.Add("CultureModelID", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.CultureModelID), Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_CULTUREMODEL, (x => x.CultureModelID))));
- controls.Add("Country", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.Country), Html.TextBoxFor(x => x.Country)));
- controls.Add("Place", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.Place), Html.TextBoxFor(x => x.Place)));
- controls.Add("BornPlace", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.BornPlace), Html.TextBoxFor(x => x.BornPlace)));
- controls.Add("HealthStateID", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.HealthStateID), Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_HealthState, (x => x.HealthStateID))));
- controls.Add("BloodGroup", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.BloodGroup), Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_BLOODGROUP, (x => x.BloodGroup))));
- controls.Add("Specialty", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.Specialty), Html.TextBoxFor(x => x.Specialty)));
- controls.Add("Height", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.Height), Html.TextBoxFor(x => x.Height)));
- controls.Add("Weight", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.Weight), Html.TextBoxFor(x => x.Weight)));
- controls.Add("IsDreamProject", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.IsDreamProject), Html.CheckBoxFor(x => x.IsDreamProject)));
- controls.Add("Email", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.Email), Html.TextBoxFor(x => x.Email)));
- controls.Add("Mobile", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.Mobile), Html.TextBoxFor(x => x.Mobile)));
- controls.Add("Telephone", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.Telephone), Html.TextBoxFor(x => x.Telephone)));
- controls.Add("ZIPCode", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.ZIPCode), Html.TextBoxFor(x => x.ZIPCode)));
- controls.Add("WeChatNum", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.WeChatNum), Html.TextBoxFor(x => x.WeChatNum)));
- controls.Add("QQ", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.QQ), Html.TextBoxFor(x => x.QQ)));
- controls.Add("HomeAddress", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.HomeAddress), Html.TextBoxFor(x => x.HomeAddress)));
- controls.Add("WorkUnit", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.WorkUnit), Html.TextBoxFor(x => x.WorkUnit)));
- controls.Add("Address", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.Address), Html.TextBoxFor(x => x.Address)));
- controls.Add("Dormitory", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.Dormitory), Html.TextBoxFor(x => x.Dormitory)));
- controls.Add("Recipient", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.Recipient), Html.TextBoxFor(x => x.Recipient)));
- controls.Add("BankName", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.BankName), Html.TextBoxFor(x => x.BankName)));
- controls.Add("CardNo", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.CardNo), Html.TextBoxFor(x => x.CardNo)));
- controls.Add("ExamineeNum", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.ExamineeNum), Html.TextBoxFor(x => x.ExamineeNum)));
- controls.Add("AdmissionTicketNo", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.AdmissionTicketNo), Html.TextBoxFor(x => x.AdmissionTicketNo)));
- controls.Add("ExamineeType", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.ExamineeType), Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_EXAMINEETYPE, (x => x.ExamineeType))));
- controls.Add("EntranceDate", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.EntranceDate), Html.TextBoxFor(x => x.EntranceDate, new TextBoxOptions() { TextBoxType = TextBoxType.Date })));
- controls.Add("Score", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.Score), Html.TextBoxFor(x => x.Score)));
- controls.Add("EntranceWayID", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.EntranceWayID), Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_EntranceWay, (x => x.EntranceWayID))));
- controls.Add("FeaturesID", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.FeaturesID), Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Features, (x => x.FeaturesID))));
- controls.Add("TerritorialID", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.TerritorialID), Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Province, (x => x.TerritorialID))));
- controls.Add("Area", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.Area), Html.TextBoxFor(x => x.Area)));
- controls.Add("Career", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.Career), Html.TextBoxFor(x => x.Career)));
- controls.Add("Remark", new KeyValuePair<MvcHtmlString, MvcHtmlString>(Html.LabelFor(x => x.Remark), Html.TextBoxFor(x => x.Remark)));
- }
- @section scripts{
- <script src="~/Scripts/Business/StudentWeb/InfoCenter/PersonalInfoCheckEdit.js" type="text/javascript"></script>
- <script type="text/javascript">
- </script>
- }
- <style type="text/css">
- /*.table{
- width: 100%;
- border-collapse:collapse;
- border-spacing:0;
- }
- .fixedThead{
- display: block;
- width: 100%;
- text-align: center;
- }
- .scrollTbody{
- display: block;
- height: 450px;
- overflow: auto;
- width: 100%;
- }
- .table td,.table th {
- width: 200px;
- border-bottom: none;
- border-left: none;
- border-right: 1px solid #CCC;
- border-top: 1px solid #DDD;
- padding: 2px 3px 3px 4px
- }
- .table tr{
- border-left: 1px solid #EB8;
- border-bottom: 1px solid #B74;
- }
- thead.fixedThead tr th:last-child {
- color:#FF0000;
- width: 200px;
- }
- td{
- word-wrap:break-word;
- word-break:break-all;
- }*/
- .popupWindowContent {
- top: 30px;
- }
- </style>
- <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
- @using (Ajax.BeginForm(new AjaxOptions
- {
- OnSuccess = "EMISFunction.FormSuccess",
- OnBegin = "EMISFunction.FormSubmit",
- OnComplete = "EMISFunction.FormComplete" }))
- {
- <div class="p_title">
- <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;"></div>
- <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Confirm")</div>
- </div>
- <div class="search_list">
- @Html.HiddenFor(x => x.UserID)
- <table class ="table" id="checkEdit">
- @*<thead class="fixedThead">
- <tr>
- <th>
- 列名
- </th>
- <th>
- 修改前
- </th>
- <th>
- 修改后
- </th>
- <th>
- 校对状态
- </th>
- </tr>
- </thead>*@
- <tbody class="scrollTbody">
- <tr>
- <td style="color: red;">
- @Html.LabelFor(x => x.PhotoUrl):
- </td>
- <td>
- <img src="@Model.PhotoUrlStr" id="imgPhotoSource" width="80" height="100" />
- </td>
- <td>
- <img src="@Model.PhotoUrlStr" id="imgPhotoContrast" width="80" height="100" />
- </td>
- <td style="color: red;width: 100px;">
- @Html.DisplayName(EMIS.ViewModel.CacheManage.IdNameExt.GetName(EMIS.ViewModel.DictionaryItem.CF_CheckingType, (int)EMIS.ViewModel.CF_CheckingType.Close))
- </td>
- </tr>
- @foreach (var typeName in typeNameList)
- {
- foreach (var editFeildView in editFeildViewList.Where(q => q.TypeName == typeName).OrderBy(q => q.OrderNo))
- {
- <tr>
- <td style="color: red;">
- @if (controls.Keys.Contains(editFeildView.ColumnFeild))
- {
- @controls[editFeildView.ColumnFeild].Key
- }
- <span style="float: right;">:</span>
- </td>
- <td>
- @if (!editFeildView.ColumnName.Contains("PhotoUrl"))
- {
- @Html.Display(editFeildView.ColumnName)
- }
- else
- {
- @MvcHtmlString.Create("<div><img src=\"" + Model.PhotoUrlStr + "\" width=150 height=154 /></div>")
- }
- </td>
- <td>
- @if (editFeildView.IsEdit && controls.Keys.Contains(editFeildView.ColumnFeild))
- {
- @controls[editFeildView.ColumnFeild].Value
- }
- else if (editFeildView.ColumnName == "PhotoUrl")
- {
- @MvcHtmlString.Create("<div><img src=\"" + Model.PhotoUrlStr + "\" width=150 height=154 /></div>")
- }
- else
- {
- @Html.Display(editFeildView.ColumnName)
- }
- </td>
- <td style="color: red;width: 100px;">
- @Html.DisplayName(editFeildView.CheckingTypeName)
- </td>
- </tr>
- }
- }
- </tbody>
- </table>
- </div>
- }
- </div>
|