12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- @using Bowin.Web.Controls.Mvc;
- @using EMIS.Entities;
- @using EMIS.Web.Controls;
- @{
- ViewBag.Title = "StudentFamily";
- }
- @section scripts{
- <script src="../../Scripts/Business/Studentfile/StudentFamily.js" type="text/javascript"></script>
- }
- <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
- @Html.Position()
- <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("List")</div>
- </div>
- <div class="search_list">
- @using (Ajax.BeginForm("SaveStudentFamily", "Students", new AjaxOptions
- {
- OnSuccess = "EMISFunction.FormSuccess",
- OnBegin = "EMISFunction.FormSubmit",
- OnComplete = "EMISFunction.FormComplete"
- }))
- {
- @Html.DataGrid(new DataGridOptions
- {
- Columns = new List<DataGridColumn>()
- {
- new TextBoxColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center,Width=0.15 },
- new TextBoxColumn { FieldName="Relation", HeaderText="关系", Align=AlignStyle.Center,Width=0.1 },
- new TextBoxColumn { FieldName="Age", HeaderText="年龄", Validator=new OnlyNumberValidator() { Required = false }, Align=AlignStyle.Center,Width=0.1 },
- new DictionaryDropdownListColumn { DictionaryType=EMIS.ViewModel.DictionaryItem.CF_Politics, FieldName="Politics", HeaderText="政治面貌", Align=AlignStyle.Center,Width=0.15 },
- new TextBoxColumn { FieldName="Unit", HeaderText="工作单位", Align=AlignStyle.Center,Width=0.25 },
- new TextBoxColumn { FieldName="PhoneNumber", HeaderText="联系电话", Align=AlignStyle.Center,Width=0.2 }
- },
- IsPostBack = true,
- IsCheckOnSelect = true,
- DataSourceUrl = Url.Content("~/Students/StudentFamilyList"),
- ID = "dgStudentFamilyList",
- IsPagination = false,
- IsShowRowNumbers = true,
- IsSingleSelect = false,
- IsAutoHeight = false,
- })
- }
- </div>
- </div>
|