StudentFamily.cshtml 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. @using Bowin.Web.Controls.Mvc;
  2. @using EMIS.Entities;
  3. @using EMIS.Web.Controls;
  4. @{
  5. ViewBag.Title = "StudentFamily";
  6. }
  7. @section scripts{
  8. <script src="../../Scripts/Business/Studentfile/StudentFamily.js" type="text/javascript"></script>
  9. }
  10. <div class="easyui-panel" data-options="border:false,fit:true" style="position: relative;">
  11. @Html.Position()
  12. <div class="p_title">
  13. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  14. 家庭成员
  15. </div>
  16. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("List")</div>
  17. </div>
  18. <div class="search_list">
  19. @using (Ajax.BeginForm("SaveStudentFamily", "Students", new AjaxOptions
  20. {
  21. OnSuccess = "EMISFunction.FormSuccess",
  22. OnBegin = "EMISFunction.FormSubmit",
  23. OnComplete = "EMISFunction.FormComplete"
  24. }))
  25. {
  26. @Html.DataGrid(new DataGridOptions
  27. {
  28. Columns = new List<DataGridColumn>()
  29. {
  30. new TextBoxColumn { FieldName="Name", HeaderText="姓名", Align=AlignStyle.Center,Width=0.15 },
  31. new TextBoxColumn { FieldName="Relation", HeaderText="关系", Align=AlignStyle.Center,Width=0.1 },
  32. new TextBoxColumn { FieldName="Age", HeaderText="年龄", Validator=new OnlyNumberValidator() { Required = false }, Align=AlignStyle.Center,Width=0.1 },
  33. new DictionaryDropdownListColumn { DictionaryType=EMIS.ViewModel.DictionaryItem.CF_Politics, FieldName="Politics", HeaderText="政治面貌", Align=AlignStyle.Center,Width=0.15 },
  34. new TextBoxColumn { FieldName="Unit", HeaderText="工作单位", Align=AlignStyle.Center,Width=0.25 },
  35. new TextBoxColumn { FieldName="PhoneNumber", HeaderText="联系电话", Align=AlignStyle.Center,Width=0.2 }
  36. },
  37. IsPostBack = true,
  38. IsCheckOnSelect = true,
  39. DataSourceUrl = Url.Content("~/Students/StudentFamilyList"),
  40. ID = "dgStudentFamilyList",
  41. IsPagination = false,
  42. IsShowRowNumbers = true,
  43. IsSingleSelect = false,
  44. IsAutoHeight = false,
  45. })
  46. }
  47. </div>
  48. </div>