GetMonthModule.cshtml 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. 
  2. @{
  3. ViewData["TitleController"] = "配置管理";
  4. ViewData["TitleAction"] = "月机种管理";
  5. ViewData["TitleActionDescription"] = "配置月机种计划";
  6. ViewData["Title"] = "月机种管理";
  7. }
  8. @section header{
  9. <link href="~/lib/bootstrap-table/bootstrap-table.min.css" rel="stylesheet" />
  10. }
  11. <div class="row">
  12. <div class="col-md-11">
  13. <div class="box box-primary">
  14. <div class="box-header" style="padding-left: 0px;">
  15. <div class="col-md-1">
  16. <select class="form-control" id="selectMark">
  17. <option value="2F">2F</option>
  18. <option value="1F">1F</option>
  19. <option value="FPL">FPL</option>
  20. </select>
  21. </div>
  22. <div class="col-md-2">
  23. <select class="form-control" id="selectYear">
  24. @for (int i = 2023; i <= DateTime.Now.Year + 1; i++)
  25. {
  26. <option value=@i>@i 年</option>
  27. }
  28. </select>
  29. </div>
  30. <div class="col-md-1">
  31. <select class="form-control" id="selectMonth">
  32. @for (int i = 1; i <= 12; i++)
  33. {
  34. <option value=@i>@i 月</option>
  35. }
  36. </select>
  37. </div>
  38. <div class="col-md-1">
  39. </div>
  40. <div class="col-md-2">
  41. <div class="btn-group">
  42. <button class="btn btn-block btn-primary" onclick="modelCreate()">
  43. <i class="fa fa-plus"></i> 新增
  44. </button>
  45. </div>
  46. </div>
  47. </div>
  48. <div class="box-body">
  49. <div class="col-md-3">
  50. <div class="col-sm-6">
  51. <span class="info-box-text">计划产能合计:</span>
  52. <span class="info-box-number" id="planTotal">0<small>pcs</small></span>
  53. </div>
  54. <div class="col-md-6">
  55. <span class="info-box-text">上月差异合计:</span>
  56. <span class="info-box-number" id="lastTotal">0<small>pcs</small></span>
  57. </div>
  58. </div>
  59. <table id="table" class="table table-hover"></table>
  60. </div>
  61. </div>
  62. </div>
  63. </div>
  64. <div class="modal fade" id="modal_month_module_add" tabindex="-1" role="dialog" aria-labelledby="modal_month_module_add_label" data-backdrop="static">
  65. <div class="modal-dialog" role="document" style="width:60%">
  66. <div class="modal-content">
  67. <div class="modal-header">
  68. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  69. <h4 class="modal-title">配置月机种计划</h4>
  70. </div>
  71. <div class="modal-body">
  72. <form id="form" role="form" action="" class="form-horizontal">
  73. <input id="Id" name="Id" value="" type="hidden" />
  74. <div class="form-group">
  75. <label for="ModuleType" class="col-sm-2 control-label">制成</label>
  76. <div class="col-sm-9">
  77. <input type="text" id="mark" name="mark"
  78. data-msg-required="制成" placeholder="例:2F EPD"
  79. class="form-control" data-rule-required="true" value="" disabled />
  80. </div>
  81. </div>
  82. <div class="form-group">
  83. <label for="ModuleType" class="col-sm-2 control-label">年月</label>
  84. <div class="col-sm-2">
  85. <input type="text" id="year" name="year"
  86. data-msg-required="年" placeholder="例:2023"
  87. class="form-control" data-rule-required="true" value="" disabled />
  88. </div>
  89. <div class="col-sm-1">
  90. <input type="text" id="month" name="month"
  91. data-msg-required="月" placeholder="例:1"
  92. class="form-control" data-rule-required="true" value="" disabled />
  93. </div>
  94. </div>
  95. <div class="form-group">
  96. <label for="ModuleType" class="col-sm-2 control-label">机种</label>
  97. <div class="col-sm-9">
  98. <input id="ModuleType" type="text" name="ModuleType"
  99. data-msg-required="必须填写机种" placeholder="例:EL097ER1"
  100. class="form-control" data-rule-required="true" value="EL097ER1" />
  101. </div>
  102. </div>
  103. <div class="form-group">
  104. <label for="PlanCapacity" class="col-sm-2 control-label">计划</label>
  105. <div class="col-sm-9">
  106. <input id="PlanCapacity" name="PlanCapacity" type="text"
  107. data-msg-required="必须填写计划产能" placeholder="例:2000000"
  108. data-rule-required="true" class="form-control" value="2000000" />
  109. </div>
  110. </div>
  111. <div class="form-group">
  112. <label for="LastModuleCapacity" class="col-sm-2 control-label">上月差异</label>
  113. <div class="col-sm-9">
  114. <input type="text" id="LastModuleCapacity" name="LastModuleCapacity"
  115. data-msg-required="必须填上月差异产能" placeholder="例:0"
  116. class="form-control" data-rule-required="true" value="0" />
  117. </div>
  118. </div>
  119. <div class="form-group">
  120. <label class="col-sm-2 control-label">差异说明</label>
  121. <div class="col-sm-9">
  122. <textarea id="remark" class="form-control" rows="3" placeholder="..."></textarea>
  123. </div>
  124. </div>
  125. </form>
  126. </div>
  127. <div class="modal-footer">
  128. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  129. <button type="button" data-loading-text="正在处理..." onclick="saveMonthModule()" class="btn btn-primary">保存</button>
  130. </div>
  131. </div>
  132. </div>
  133. </div>
  134. @section footer{
  135. <script src="~/lib/bootstrap-table/bootstrap-table.min.js"></script>
  136. <script src="~/lib/bootstrap-table/locale/bootstrap-table-zh-cn.min.js"></script>
  137. <script src="~/js/home/monthModule.js" asp-append-version="true"></script>
  138. }