纽威
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

64 lines
2.3 KiB

  1. 
  2. @{
  3. ViewBag.Title = "Index";
  4. Layout = "~/Views/Shared/_Form.cshtml";
  5. }
  6. <script>
  7. var DNIDList = $.request("ids");
  8. debugger;
  9. var WorkPoints = '@NFine.Code.OperatorProvider.Provider.GetCurrent().Location'
  10. $(function () {
  11. $("#minPackQty").keyup(function () {
  12. $(this).val($(this).val().replace(/[^0-9.]/g, ''));
  13. }).bind("paste", function () { //CTR+V事件处理
  14. $(this).val($(this).val().replace(/[^0-9.]/g, ''));
  15. }).css("ime-mode", "disabled"); //CSS设置输入法不可用
  16. $("#thisCreateQty").keyup(function () {
  17. $(this).val($(this).val().replace(/[^0-9.]/g, ''));
  18. }).bind("paste", function () { //CTR+V事件处理
  19. $(this).val($(this).val().replace(/[^0-9.]/g, ''));
  20. }).css("ime-mode", "disabled"); //CSS设置输入法不可用
  21. $("#cretePageCount").keyup(function () {
  22. $(this).val($(this).val().replace(/[^0-9.]/g, ''));
  23. }).bind("paste", function () { //CTR+V事件处理
  24. $(this).val($(this).val().replace(/[^0-9.]/g, ''));
  25. }).css("ime-mode", "disabled"); //CSS设置输入法不可用
  26. });
  27. function submitForm() {
  28. debugger;
  29. if (!$('#form1').formValid()) {
  30. return false;
  31. }
  32. $.submitForm({
  33. url: "/WMS/WMSCreateItemLot/BatchStockIN?ids=" + DNIDList + "&BinCode=" + $("#BinCode").val(),
  34. param: {
  35. keyValue: JSON.stringify(obj)
  36. },
  37. success: function (data) {
  38. if (data.state == "success") {
  39. $.modalMsg(data.message, data.state);
  40. } else {
  41. $.modalAlert(data.message, data.state);
  42. }
  43. $.currentWindow().$("#gridList").trigger("reloadGrid");
  44. }
  45. })
  46. }
  47. </script>
  48. <form id="form1">
  49. <div style="padding-top: 20px; margin-right: 20px;">
  50. <table class="form">
  51. <tr>
  52. <th class="formTitle">库位编码</th>
  53. <td class="formValue">
  54. <input id="BinCode" name="BinCode" type="text" class="form-control " />
  55. <input id="Enable" name="Enable" type="text" style="display:none" />
  56. </td>
  57. </tr>
  58. </table>
  59. </div>
  60. </form>