PrintGDCX.cshtml 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. @using EMIS.Web.Controls;
  2. @using Bowin.Web.Controls.Mvc;
  3. @{
  4. ViewBag.Title = "Print";
  5. var url = ViewBag.Url;
  6. }
  7. @section header {
  8. <style type="text/css" media="print">
  9. .noprint {
  10. display: none;
  11. }
  12. </style>
  13. }
  14. @section scripts{
  15. <script type="text/javascript" src="~/Scripts/Business/StudentFeeManage/PrintGDCX.js"></script>
  16. }
  17. <div class="easyui-panel noprint" data-options="border:false,fit:true" style="position: relative;">
  18. @using (Ajax.BeginForm(new AjaxOptions { OnSuccess = "EMISFunction.FormSuccess", OnBegin = "EMISFunction.FormSubmit", OnComplete = "EMISFunction.FormComplete" }))
  19. {
  20. <div class="p_title">
  21. <div style="float: left; margin-left: 10px; line-height: 30px; font-size: 12px;">
  22. </div>
  23. <div style="margin-right: 10px; line-height: 30px; font-size: 12px;">@Html.ContextMenuBar("Print")</div>
  24. </div>
  25. <div class="search_list">
  26. <table cellpadding="0" cellspacing="0">
  27. <tr>
  28. <td>
  29. @Html.Label("确认单号:")
  30. </td>
  31. <td>
  32. @Html.TextBox(new TextBoxOptions { ID = "txtConfirmNo", Name = "txtConfirmNo" }, new Dictionary<string, string> { { "data-condition", "dgStudentFeeDetailList" } })
  33. </td>
  34. <td>
  35. @Html.Label("总金额:")
  36. </td>
  37. <td>
  38. <span id="txtTotal"></span>
  39. @*@Html.TextBox(new TextBoxOptions { ID = "txtTotal", Name = "txtTotal", IsEnabled = false }, new Dictionary<string, string> { { "style", "color:red" } })*@
  40. </td>
  41. </tr>
  42. <tr>
  43. <td>
  44. @Html.Label("明细:")
  45. </td>
  46. <td colspan="3">
  47. @Html.DataGrid(new DataGridOptions
  48. {
  49. Columns = new List<DataGridColumn>()
  50. {
  51. new BoundFieldColumn { FieldName="ExaminationTypeName", HeaderText="考试类型", Align=AlignStyle.Center, Width=150 },
  52. new BoundFieldColumn { FieldName="ExaminationProjectName", HeaderText="项目名称", Align=AlignStyle.Center, Width=200 },
  53. new BoundFieldColumn { FieldName="UserName", HeaderText="姓名", Align=AlignStyle.Center, Width=70 },
  54. new BoundFieldColumn { FieldName="SexName", HeaderText="性别", Align=AlignStyle.Center, Width=40 },
  55. new BoundFieldColumn { FieldName="IDNumber", HeaderText="证件号码", Align=AlignStyle.Center, Width=150 },
  56. new BoundFieldColumn { FieldName="FeeTypeName", HeaderText="报名项目", Align=AlignStyle.Center, Width=100 },
  57. new BoundFieldColumn { FieldName="Fee", HeaderText="应交金额", Align=AlignStyle.Center, CustomFormatFun="CMSFunction.DataTableFormatter.TwoDigit", Width=80 }
  58. },
  59. IsAutoLoad = false,
  60. IsCheckOnSelect = true,
  61. DataSourceUrl = Url.Content("~/StudentFee/StudentFeeDetail"),
  62. ID = "dgStudentFeeDetailList",
  63. IsPagination = true,
  64. IsShowRowNumbers = true,
  65. IsSingleSelect = false
  66. })
  67. </td>
  68. </tr>
  69. </table>
  70. </div>
  71. }
  72. </div>
  73. <iframe id="frmPrintDetail" width="0" height="0"></iframe>