123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497 |
- @model EMIS.ViewModel.Students.StudentsView
- @using EMIS.Web.Controls;
- @using Bowin.Web.Controls.Mvc;
- @{
- ViewBag.Title = "Edit";
- var isAddNew = (Request["userIds"] ?? "") == "";
- if (Request["type"] == "copyAdd")
- {
- isAddNew = true;
- }
- ComboGridOptions cgopStudentcharge = new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "ClassmajorID",
- OnSelect = "QueryClassmajorComboGrid",
- //IsEnabled = isAddNew,
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="No", HeaderText="班级编号", Align=AlignStyle.Center, Width=0.12 },
- new BoundFieldColumn { FieldName="Name", HeaderText="班级名称", Align=AlignStyle.Center, Width=0.3 },
- //new BoundFieldColumn { FieldName="yearID", HeaderText="年级", Align=AlignStyle.Center, Width=0.1 },
- new BoundFieldColumn { FieldName="LearnSystem", HeaderText="学制", Align=AlignStyle.Center, Width=0.06 },
- new BoundFieldColumn { FieldName="EducationName", HeaderText=EMIS.Utility.RSL.Get("EducationID"), Align=AlignStyle.Center, Width=0.1 },
- new BoundFieldColumn { FieldName="LearningformName", HeaderText="学习形式", Align=AlignStyle.Center, Width=0.15 }
- //new BoundFieldColumn { FieldName="GraduatingSemesterCode", HeaderText="毕业学年学期", Align=AlignStyle.Center }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Classmajor/List"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- }
- };
- ComboGridOptions cgopCollege = new ComboGridOptions
- {
- TextField = "Name",
- ValueField = "CollegeID",
- //OnSelect = "queryCollege",
- Name = "CollegeDropdown",
- ID = "CollegeDropdown",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- //new LinkButtonColumn { FieldName="No", HeaderText=@EMIS.Utility.RSL.Get("CollegeCode"), Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="Name", HeaderText=@EMIS.Utility.RSL.Get("CollegeName"), Align=AlignStyle.Center }
- },
- //OnLoadSuccessFun = "queryClass",
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/College/ListOnlyCollege"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- }
- };
- ComboGridOptions cgopStandard = new ComboGridOptions
- {
- TextField = "StandardName",
- ValueField = "StandardID",
- //OnSelect = "queryStandard",
- Name = "StandardDictionaryDropDown",
- ID = "StandardDictionaryDropDown",
- GridOptions = new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new BoundFieldColumn { FieldName="StandardName", HeaderText="专业名称", Align=AlignStyle.Center }
- },
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Grademajor/GrademajorBindComboGridOptions"),
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- }
- };
- }
- <style type="text/css">
- .universitytable
- {
- width: 100%;
- border: 0px none;
- }
-
- .universitytable tr
- {
- min-height: 30px;
- }
-
- .a4
- {
- width: 600px;
- color: Red;
- }
- </style>
- <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
- @using (Html.BeginForm("Edit", "Students", new { MNU = Request["MNU"], WindowID = Request["WindowID"] }, FormMethod.Post, new { enctype = "multipart/form-data" }))
- {
- <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;">
- @if(Request["isView"] != "1")
- {
- @Html.ContextMenuBar("Edit")
- }
- </div>
- </div>
- <div class="search_list">
- @Html.HiddenFor(x => x.UserID)
- @Html.HiddenFor(x => x.PlanningGraduateDateStr)
- @Html.HiddenFor(x=>x.GradeMajorID)
- @if(isAddNew==false)
- {
- @Html.HiddenFor(x=>x.LoginID)
- }
- <table cellpadding="0" cellspacing="0" class="universitytable">
- @*<tr>
- <td colspan="4">
- <span class="a4">个人信息</span>
- </td>
- </tr>*@
- <tr>
- <td>@Html.LabelFor(x => x.IDNumber):
- </td>
- <td>@Html.TextBoxFor(x => x.IDNumber, new TextBoxOptions() {IsEnabled = isAddNew })
- @Html.HiddenFor(x => x.IDNumber)
- </td>
- <td rowspan="4">@Html.LabelFor(x => x.PhotoUrl):
- </td>
- <td rowspan="4">
- <div>
- <img src="@Model.PhotoUrl" width="90" height="100" />
- </div>
- <div>
- @Html.SingleUploaderFor(x => x.PhotoUrl, new Dictionary<string, object> { { "style", "width:150px;" },
- { "accept", "*.jpg;*.jpeg;*.png;*.bmp" } })<br />
- <b style="color:red">照片要求:照片为近期、正面、免冠、白底彩色证件照,JPG格式,照片大小为50-200K(此照片用于制作证书)</b>
- </div>
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.UserName):
- </td>
- <td>
- @*@Html.TextBoxFor(x => x.UserName, new TextBoxOptions() {IsEnabled = isAddNew })*@
- @Html.TextBoxFor(x => x.UserName)
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.Sex):
- </td>
- <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Sex, (x => x.Sex))
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.StudentType):
- </td>
- <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_STUDENTTYPE, (x => x.StudentType))
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.CertificatesType):
- </td>
- <td colspan="3">@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_CertificatesType, (x => x.CertificatesType))
- </td>
- @*<td>@Html.LabelFor(x => x.IDNumber):
- </td>
- <td>@Html.TextBoxFor(x => x.IDNumber)
- </td>*@
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.CollegeName):
- </td>
- <td>
- @Html.ComboGridFor(x => x.CollegeID, cgopCollege)
- </td>
- <td>@Html.LabelFor(x => x.StandardName):
- </td>
- <td>@Html.ComboGridFor(x => x.StandardID, cgopStandard)
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.ClassMajorID):
- </td>
- <td>
- @Html.ComboGridFor(x => x.ClassMajorID, cgopStudentcharge)
- </td>
- <td>@Html.LabelFor(x => x.EnteringSchoolYearID):
- </td>
- <td>@Html.DropdownListFor(x => x.EnteringSchoolYearID, new DropdownListOptions { ItemSourceUrl = "~/SchoolYear/DropDown", TextField = "Text", ValueField = "Value", })
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.InSchoolStatusID):
- </td>
- <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_InschoolStatus, (x => x.InSchoolStatusID))
- </td>
- <td>@Html.LabelFor(x => x.StudentStatus):
- </td>
- <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_STUDENTSTATUS, (x => x.StudentStatus))
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.Email):
- </td>
- <td>@Html.TextBoxFor(x => x.Email)
- </td>
- <td>@Html.LabelFor(x => x.Mobile):
- </td>
- <td>@Html.TextBoxFor(x => x.Mobile)
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.StudentNo):
- </td>
- <td>@Html.TextBoxFor(x => x.StudentNo)
- </td>
- <td>@Html.LabelFor(x => x.GraduateCardNo):
- </td>
- <td>@Html.TextBoxFor(x => x.GraduateCardNo)
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.PlanningGraduateDate):
- </td>
- <td>@Html.TextBoxFor(x => x.PlanningGraduateDate, new TextBoxOptions() { TextBoxType = TextBoxType.yyyyMMdd, IsEnabled = false })
- </td>
- <td>@Html.LabelFor(x=>x.GraduateDate):
- </td>
- <td>@Html.TextBoxFor(x => x.GraduateDate, new TextBoxOptions() { TextBoxType = TextBoxType.Date, IsEnabled=false })
- </td>
-
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.IsDreamProject):
- </td>
- <td>@Html.CheckBoxFor(x=>x.IsDreamProject)
- </td>
- <td>@Html.LabelFor(x => x.ReplaceGraduateNo):
- </td>
- <td>@Html.TextBoxFor(x => x.ReplaceGraduateNo)
- </td>
- </tr>
- <tr>
- <td colspan="4">
- <span class="a4">学生扩展信息</span>
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.UsedName):
- </td>
- <td>@Html.TextBoxFor(x => x.UsedName)
- </td>
- <td>@Html.LabelFor(x => x.DirectorName):
- </td>
- <td>@Html.TextBoxFor(x => x.DirectorName)
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.BirthDate):
- </td>
- <td>@Html.TextBoxFor(x => x.BirthDate, new TextBoxOptions() { TextBoxType = TextBoxType.Date })
- </td>
- <td>@Html.LabelFor(x => x.Country):
- </td>
- <td>@Html.TextBoxFor(x => x.Country)
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.Politics):
- </td>
- <td>@Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Politics, (x => x.Politics), DropdownListBindType.PleaseSelect)
- </td>
- <td>@Html.LabelFor(x => x.Nation):
- </td>
- <td>@Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Nation, (x => x.Nation), DropdownListBindType.PleaseSelect)
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.Place):
- </td>
- <td>@Html.TextBoxFor(x => x.Place)
- </td>
- <td>@Html.LabelFor(x => x.Healthy):
- </td>
- <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_HealthState, (x => x.Healthy))
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.BloodGroup):
- </td>
- <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_BLOODGROUP, (x => x.BloodGroup))
- </td>
- <td>@Html.LabelFor(x => x.Specialty):
- </td>
- <td>@Html.TextBoxFor(x => x.Specialty)
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.Height):
- </td>
- <td>@Html.TextBoxFor(x => x.Height)
- </td>
- <td>@Html.LabelFor(x => x.Weight):
- </td>
- <td>@Html.TextBoxFor(x => x.Weight)
- </td>
- </tr>
- <tr>
- <td colspan="4">
- <span class="a4">高考招生信息</span>
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.ExamineeNum):
- </td>
- <td>@Html.TextBoxFor(x => x.ExamineeNum)
- </td>
- <td>@Html.LabelFor(x => x.EntranceDate):
- </td>
- <td>@Html.TextBoxFor(x => x.EntranceDate, new TextBoxOptions() { TextBoxType = TextBoxType.Date })
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.CultureModel):
- </td>
- <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_CULTUREMODEL, (x => x.CultureModel))
- </td>
- <td>@Html.LabelFor(x => x.ExamineeType):
- </td>
- <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_EXAMINEETYPE, (x => x.ExamineeType))
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.EntranceWay):
- </td>
- <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_EntranceWay, (x => x.EntranceWay))
- </td>
- <td>@Html.LabelFor(x => x.Features):
- </td>
- <td>@Html.DictionaryDropDownListFor(EMIS.ViewModel.DictionaryItem.CF_Features, (x => x.Features))
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.Territorial):
- </td>
- <td>@Html.DictionaryComboGridFor(EMIS.ViewModel.DictionaryItem.CF_Province, (x => x.Territorial), DropdownListBindType.PleaseSelect)
- </td>
- <td>@Html.LabelFor(x => x.Placebirth):
- </td>
- <td>@Html.TextBoxFor(x => x.Placebirth)
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.Area):
- </td>
- <td>@Html.TextBoxFor(x => x.Area)
- </td>
- <td>@Html.LabelFor(x => x.Score):
- </td>
- <td>@Html.TextBoxFor(x => x.Score)
- </td>
- </tr>
- <tr>
- <td colspan="4">
- <span class="a4">学生缴费信息</span>
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.CardNo):
- </td>
- <td>@Html.TextBoxFor(x => x.CardNo)
- </td>
- <td>@Html.LabelFor(x => x.BankName):
- </td>
- <td>@Html.TextBoxFor(x => x.BankName)
- </td>
- </tr>
- <tr>
- <td colspan="4">
- <span class="a4">学生联系信息</span>
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.Telephone):
- </td>
- <td>@Html.TextBoxFor(x => x.Telephone)
- </td>
- <td>@Html.LabelFor(x => x.QQ):
- </td>
- <td>@Html.TextBoxFor(x => x.QQ)
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.MicroMsgNo):
- </td>
- <td>@Html.TextBoxFor(x => x.MicroMsgNo)
- </td>
- <td>@Html.LabelFor(x => x.ZipCode):
- </td>
- <td>@Html.TextBoxFor(x => x.ZipCode)
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.Address):
- </td>
- <td>@Html.TextBoxFor(x => x.Address)
- </td>
- <td>@Html.LabelFor(x => x.WorkUnit):
- </td>
- <td>@Html.TextBoxFor(x => x.WorkUnit)
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.HomeAddress):
- </td>
- <td>@Html.TextBoxFor(x => x.HomeAddress)
- </td>
- <td>@Html.LabelFor(x => x.Recipient):
- </td>
- <td>@Html.TextBoxFor(x => x.Recipient)
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.Dormitory):
- </td>
- <td>@Html.TextBoxFor(x => x.Dormitory)
- </td>
- <td>
- </td>
- <td>
- </td>
- </tr>
- @if (Request["isView"] == "1")
- {
- <tr>
- <td colspan="4">
- <span class="a4">学生异动信息</span>
- </td>
- </tr>
- <tr>
- <td colspan="4">
- <div style="width: 100%; height: 100px; overflow: scroll; scrollbar-arrow-color:#ffffff; scrollbar-highlight-color:#ffffff; scrollbar-3dlight-color:#70807d; scrollbar-shadow-color:#ffffff; scrollbar-darkshadow-color:#70807d; scrollbar-track-color:#ffffff">
- @Html.DataGrid(new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
-
- new CheckBoxFieldColumn{ HeaderText="", FieldName="EntityID"},
- new LinkButtonColumn { FieldName="SchoolyearCode", HeaderText="异动学期", Align=AlignStyle.Center, Handle="edit",Width=0.05 },
- //new BoundFieldColumn { FieldName="LoginID", HeaderText="学号", Align=AlignStyle.Center,Width=0.045 },
- //new BoundFieldColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center ,OverflowLength=6,Width=0.02 },
- new BoundFieldColumn { FieldName="DifferentDynamicTypeName", HeaderText="异动类型", Align=AlignStyle.Center,Width=0.025 },
- new BoundFieldColumn { FieldName="Reason", HeaderText="异动原因", Align=AlignStyle.Center, OverflowLength=6,Width=0.025, IsHidden=true },
- //new BoundFieldColumn { FieldName="ReasonName", HeaderText="异动原因", Align=AlignStyle.Center, OverflowLength=6,Width=0.025 },
- //new BoundFieldColumn { FieldName="StandardName", HeaderText="异动前专业", Align=AlignStyle.Center },
- //new BoundFieldColumn { FieldName="ClassmajorName", HeaderText="异动前班级", Align=AlignStyle.Center,OverflowLength=13 },
- //new BoundFieldColumn { FieldName="AfterStandardName", HeaderText="异动后专业", Align=AlignStyle.Center },
- new BoundFieldColumn { FieldName="AfterClassmajorName", HeaderText="异动后班级", Align=AlignStyle.Center,OverflowLength=13 },
- new BoundFieldColumn { FieldName="EntityCreateTime", HeaderText="异动日期",Align=AlignStyle.Center,Formatter= Formatter.OnlyYearMonthDay,Width=0.04 },
- //new BoundFieldColumn { FieldName="ReportStatusName", HeaderText="注册状态", Align=AlignStyle.Center,Width=0.03 },
- },
- PageSize=3,
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/DifferentDynamicResult/StudentDifferentDynamicApplyInfo?userID=" + Model.UserID),
- ID = "dgList",
- IsPagination = true,
- IsShowRowNumbers = true,
- IsSingleSelect = false
- })
- </div>
- </td>
- </tr>
- }
- <tr>
- <td>@Html.LabelFor(x => x.Career):
- </td>
- <td colspan="3">@Html.TextAreaFor(x => x.Career, new Dictionary<string, object> { { "style", "width:85%" } })
- </td>
- </tr>
- <tr>
- <td>@Html.LabelFor(x => x.Remarks):
- </td>
- <td colspan="3">@Html.TextAreaFor(x => x.Remarks, new Dictionary<string, object> { { "style", "width:85%" } })
- </td>
- </tr>
- </table>
- </div>
- }
- </div>
- @section scripts{
- <script src="~/Scripts/Business/Studentfile/StudentEdit.js" type="text/javascript"></script>
- }
|