clothingOnhand-add.jsp 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. <%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  2. <%@include file="/context/mytags.jsp"%>
  3. <!DOCTYPE html>
  4. <html>
  5. <head>
  6. <title>项目服装存量</title>
  7. <t:base type="jquery,easyui,tools,DatePicker"></t:base>
  8. <script type="text/javascript">
  9. //编写自定义JS代码
  10. function btn_ok(){
  11. $("#btnsub").click();
  12. }
  13. function btn_back(){
  14. window.location.href="clothingOnhandController.do?list";
  15. }
  16. function callback(data){
  17. if(data.success){
  18. tip(data.msg);
  19. $('#startdate').val('');
  20. $('#quantity').val('');
  21. }
  22. else{
  23. layer.alert(data.msg);
  24. }
  25. }
  26. </script>
  27. </head>
  28. <body>
  29. <t:formvalid formid="formobj" dialog="false" usePlugin="password" layout="table" action="clothingOnhandController.do?doAdd" tiptype="1" callback="callback" beforeSubmit="setEditable">
  30. <input id="id" name="id" type="hidden" value="${clothingOnhandPage.id }"/>
  31. <table style="width: 600px;" cellpadding="0" cellspacing="1" class="formtable">
  32. <tr>
  33. <td align="right">
  34. <label class="Validform_label">
  35. 领料点名称:
  36. </label>
  37. </td>
  38. <td class="value">
  39. <input id="warehousename" name="warehousename" type="text" style="width: 150px" class="inputxt" readonly="readonly" placeholder="请选择领料点"
  40. datatype="*" ignore="checked" onclick="openWarehouseSelect()"/>
  41. <input id="warehouseid" name="warehouseid" type="hidden" value="">
  42. <a href="#" class="easyui-linkbutton" plain="true" icon="icon-select" id="warehouseSearch" onclick="openWarehouseSelect()">选择</a>
  43. <a href="#" class="easyui-linkbutton" plain="true" icon="icon-clean" id="warehouseRedo" onclick="callbackCleanWarehouse()">清空</a>
  44. </td>
  45. </tr>
  46. <tr>
  47. <td align="right">
  48. <label class="Validform_label">
  49. 服装名称:
  50. </label>
  51. </td>
  52. <td class="value">
  53. <input id="clothingname" name="clothingname" type="text" style="width: 150px" class="inputxt" readonly="readonly" placeholder="请选择服装"
  54. datatype="*" ignore="checked" onclick="openClothingSelect()" />
  55. <input id="clothingid" name="clothingid" type="hidden" value="">
  56. <a href="#" class="easyui-linkbutton" plain="true" icon="icon-select" id="clothingSearch" onclick="openClothingSelect()">选择</a>
  57. <a href="#" class="easyui-linkbutton" plain="true" icon="icon-clean" id="clothingRedo" onclick="callbackCleanClothing()">清空</a>
  58. </td>
  59. </tr>
  60. <tr>
  61. <td align="right">
  62. <label class="Validform_label">
  63. 款式:
  64. </label>
  65. </td>
  66. <td class="value">
  67. <t:dictSelect field="type" type="list" typeGroupCode="clothingtype" readonly="readonly" defaultVal="${clothingOnhandPage.type}" hasLabel="false" title="款式" ></t:dictSelect>
  68. <span class="Validform_checktip"></span>
  69. <label class="Validform_label" style="display: none;">款式</label>
  70. </td>
  71. </tr>
  72. <tr>
  73. <td align="right">
  74. <label class="Validform_label">
  75. 单位:
  76. </label>
  77. </td>
  78. <td class="value">
  79. <t:dictSelect field="unit" type="list" typeGroupCode="metering_calcu_unit" readonly="readonly" defaultVal="${clothingOnhandPage.unit}" hasLabel="false" title="单位" ></t:dictSelect>
  80. <span class="Validform_checktip"></span>
  81. <label class="Validform_label" style="display: none;">单位</label>
  82. </td>
  83. </tr>
  84. <tr>
  85. <td align="right">
  86. <label class="Validform_label">
  87. 数量:
  88. </label>
  89. </td>
  90. <td class="value">
  91. <input id="quantity" name="quantity" type="text" style="width: 150px" class="inputxt" datatype="n" ignore="checked" />
  92. <span class="Validform_checktip"></span>
  93. <label class="Validform_label" style="display: none;">数量</label>
  94. </td>
  95. </tr>
  96. <tr>
  97. <td align="right">
  98. <label class="Validform_label">
  99. 使用状态:
  100. </label>
  101. </td>
  102. <td class="value">
  103. <t:dictSelect field="usingstatus" type="list" datatype="*" typeGroupCode="usingstatus" defaultVal="${clothingOnhandPage.usingstatus}" hasLabel="false" title="使用状态" ></t:dictSelect>
  104. <span class="Validform_checktip"></span>
  105. <label class="Validform_label" style="display: none;">使用状态</label>
  106. </td>
  107. </tr>
  108. <tr>
  109. <td align="right">
  110. <label class="Validform_label">
  111. 启用日期:
  112. </label>
  113. </td>
  114. <td class="value">
  115. <input id="startdate" name="startdate" type="text" style="width: 150px" class="Wdate" onClick="WdatePicker()" ignore="ignore" />
  116. <span class="Validform_checktip"></span>
  117. <label class="Validform_label" style="display: none;">启用日期</label>
  118. </td>
  119. </tr>
  120. <tr>
  121. <td align="right">
  122. <label class="Validform_label">
  123. 预计更换日期:
  124. </label>
  125. </td>
  126. <td class="value">
  127. <input id="exchangedate" name="exchangedate" type="text" style="width: 150px" class="Wdate" readonly="readonly" ignore="ignore" />
  128. <span class="Validform_checktip"></span>
  129. <label class="Validform_label" style="display: none;">预计更换日期</label>
  130. </td>
  131. </tr>
  132. <td height="50px" align="center" colspan="2">
  133. <div style="display:none"><input type="submit" id ="btnsub" value=""/></div>
  134. <a style="margin-left:80px" href="#" class="easyui-linkbutton l-btn" iconcls="icon-le-ok" onclick="btn_ok()">保存并继续</a>
  135. <a href="#" class="easyui-linkbutton l-btn" plain="true" iconcls="icon-le-back" onclick="btn_back()">返回</a>
  136. </td>
  137. <tr>
  138. </tr>
  139. </table>
  140. </t:formvalid>
  141. </body>
  142. <script src = "webpage/cn/com/lzt/clothing/onhand/clothingOnhand.js"></script>