Index.cshtml 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. @{
  2. ViewData["TitleController"] = "配置管理";
  3. ViewData["TitleAction"] = "机种管理";
  4. ViewData["TitleActionDescription"] = "配置机种 产能、理论节拍";
  5. ViewData["Title"] = "机种管理";
  6. }
  7. @section header{
  8. <link href="~/lib/bootstrap-table/bootstrap-table.min.css" rel="stylesheet" />
  9. }
  10. <div class="row">
  11. <div class="col-md-11">
  12. <div class="box box-primary">
  13. <div class="box-header">
  14. <div class="row">
  15. <div class="col-md-3" style="padding-left: 5px">
  16. <input id="keyword" type="text" class="form-control" placeholder="机种名模糊查询 例: EH097">
  17. </div>
  18. <div class="col-md-1">
  19. <div class="btn-group">
  20. <button type="button" class="btn btn-block btn-default" onclick="refreshRecipeTable()">
  21. <i class="fa fa-search"></i> 查询
  22. </button>
  23. </div>
  24. </div>
  25. <div class="col-md-1">
  26. <div class="btn-group">
  27. <button class="btn btn-block btn-primary" onclick="modelCreateRecipe()"><i class="fa fa-plus"></i> 新增</button>
  28. </div>
  29. </div>
  30. </div>
  31. </div>
  32. <div class="box-body">
  33. <table id="recipe_table" class="table table-hover"></table>
  34. </div>
  35. </div>
  36. </div>
  37. </div>
  38. <div class="modal fade" id="modal_recipe_add" tabindex="-1" role="dialog" aria-labelledby="modal_recipe_add_label" data-backdrop="static">
  39. <div class="modal-dialog" role="document" style="width:80%">
  40. <div class="modal-content">
  41. <div class="modal-header">
  42. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  43. <h4 class="modal-title">配置机种 产能、理论节拍</h4>
  44. </div>
  45. <div class="modal-body">
  46. <form id="form" role="form" action="" class="form-horizontal">
  47. <input id="Id" name="Id" value="" type="hidden" />
  48. <div class="form-group">
  49. <label for="ModuleType" class="col-sm-2 control-label">机种</label>
  50. <div class="col-sm-10">
  51. <input id="ModuleType" type="text" name="Name" data-msg-required="必须填写机种" placeholder="例:EH097"
  52. class="form-control" data-rule-required="true" value="" />
  53. </div>
  54. </div>
  55. <div class="form-group">
  56. <label for="Line" class="col-sm-2 control-label">线别</label>
  57. <div class="col-sm-10">
  58. <select id="Line" name="Line" data-msg-required="必须选择线别" data-rule-required="true" class="form-control">
  59. </select>
  60. </div>
  61. </div>
  62. <div class="form-group">
  63. <label for="TheoryCapacity" class="col-sm-2 control-label">理论产能(pcs)</label>
  64. <div class="col-sm-10">
  65. <input type="text" id="TheoryCapacity" name="TheoryCapacity" data-msg-required="必须填写理论产能"
  66. class="form-control"
  67. placeholder="例:13000" data-rule-required="true" value="" />
  68. </div>
  69. </div>
  70. <div class="form-group">
  71. <label for="TheoryTT" class="col-sm-2 control-label">理论节拍(s)</label>
  72. <div class="col-sm-10">
  73. <input type="text" id="TheoryTT" name="TheoryTT" data-msg-required="必须填写理论节拍" class="form-control" placeholder="例:10.67"
  74. data-rule-required="true" value="" />
  75. </div>
  76. </div>
  77. <div class="form-group">
  78. <label for="TheoryRefueledTime" class="col-sm-2 control-label">换料标准(min)</label>
  79. <div class="col-sm-10">
  80. <input type="text" id="TheoryRefueledTime" name="TheoryRefueledTime" data-msg-required="必须填写换料标准" class="form-control" placeholder="例:100"
  81. data-rule-required="true" value="" />
  82. </div>
  83. </div>
  84. </form>
  85. </div>
  86. <div class="modal-footer">
  87. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  88. <button type="button" data-loading-text="正在处理..." onclick="saveRecipe()" class="btn btn-primary">保存</button>
  89. </div>
  90. </div>
  91. </div>
  92. </div>
  93. @section footer{
  94. <script src="~/lib/bootstrap-table/bootstrap-table.min.js"></script>
  95. <script src="~/lib/bootstrap-table/locale/bootstrap-table-zh-cn.min.js"></script>
  96. <script src="~/js/recipe/recipe.js"></script>
  97. }