Index.cshtml 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. @{
  2. ViewBag.Title = "模板列表";
  3. Layout = "~/Views/Shared/_Index.cshtml";
  4. }
  5. <script>
  6. $(function () {
  7. resize();
  8. })
  9. function resize() {
  10. $('#pageayout').height($(window).height() - 20);
  11. $(window).resize(function (e) {
  12. window.setTimeout(function () {
  13. $('#pageayout').height($(window).height() - 20);
  14. }, 200);
  15. e.stopPropagation();
  16. });
  17. }
  18. //在线开发(单表)
  19. function btn_singletable() {
  20. dialogOpen({
  21. id: "Form",
  22. title: '在线代码生成器 并自动创建代码',
  23. url: '/GeneratorManage/SingleTable/CodeBuilder',
  24. width: "1100px",
  25. height: "700px",
  26. btn: null
  27. });
  28. }
  29. //在线开发(多表)
  30. function btn_multitable() {
  31. dialogOpen({
  32. id: "Form",
  33. title: '在线代码生成器 并自动创建代码',
  34. url: '/GeneratorManage/MultiTable/CodeBuilder',
  35. width: "1100px",
  36. height: "700px",
  37. btn: null
  38. });
  39. }
  40. function btn_multitable_view() {
  41. top.tablist.newTab({ id: '148670a4-2315-4622-9114-3fe7c58b875b', title: '主从表演示', closed: true, icon: "fa fa-diamond", url: top.contentPath + '/DemoManage/OfficeRk/OfficeRkIndex' });
  42. }
  43. function btn_singletable_view() {
  44. top.tablist.newTab({ id: '148670a4-2315-4622-9114-3fe7c5aa', title: '单表演示', closed: true, icon: "fa fa-venus", url: top.contentPath + '/BaseManage/student/studentIndex' });
  45. }
  46. </script>
  47. <div id="pageayout" class="border" style="background: #fff; overflow: auto;">
  48. <div style="margin: 20px;">
  49. <div class="cover-box">
  50. <div class="cover-img">
  51. <i class="fa fa-television" style="font-size: 130px; color: #666666;margin-top:20px;"></i>
  52. </div>
  53. <div class="cover-info">
  54. <h4>单表开发模板(A)</h4>
  55. <small>单表开发功能。</small>
  56. </div>
  57. <div class="cover-button">
  58. <a class="btn btn-default" onclick="btn_singletable_view()"><i class="fa fa-eye"></i>&nbsp;效果</a>
  59. <a class="btn btn-default" onclick="btn_singletable()"><i class="fa fa-bug"></i>&nbsp;开发</a>
  60. </div>
  61. </div>
  62. <div class="cover-box">
  63. <div class="cover-img">
  64. <i class="fa fa-gears" style="font-size: 130px; color: #666666;margin-top:20px;"></i>
  65. </div>
  66. <div class="cover-info">
  67. <h4>主从表开发模板(B)</h4>
  68. <small>类似订单、有表头信息、有明细信息</small>
  69. </div>
  70. <div class="cover-button">
  71. <a class="btn btn-default"onclick="btn_multitable_view()"><i class="fa fa-eye"></i>&nbsp;效果</a>
  72. <a class="btn btn-default" onclick="btn_multitable()"><i class="fa fa-bug"></i>&nbsp;开发</a>
  73. </div>
  74. </div>
  75. </div>
  76. </div>