纽威
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.

84 lines
2.0 KiB

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. using NFine.Application.WMS;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Data;
  5. using System.IO;
  6. using System.Linq;
  7. using System.Web;
  8. using System.Web.Mvc;
  9. using NFine.Code;
  10. using System.Data.SqlClient;
  11. using NFine.Data.Extensions;
  12. using System.Data.OleDb;
  13. using System.Configuration;
  14. using ICS.Application.Entity;
  15. using System.Text;
  16. using NFine.Repository;
  17. using System.Data.Common;
  18. using NFine.Domain._03_Entity.SRM;
  19. using System.Net;
  20. using Newtonsoft.Json.Linq;
  21. using Newtonsoft.Json;
  22. using NFine.Domain._03_Entity.WMS;
  23. namespace NFine.Web.Areas.WMS.Controllers
  24. {
  25. public class DeleteReceiptsController : ControllerBase
  26. {
  27. // GET: WMS/PickMaterial
  28. WMSDeleteReceipts App = new WMSDeleteReceipts();
  29. public ActionResult ICSDeleteReceipts()
  30. {
  31. return View();
  32. }
  33. //删除单据
  34. [HttpPost]
  35. [HandlerAjaxOnly]
  36. //[ValidateAntiForgeryToken]
  37. public ActionResult DeleteReceipts(string codes,string type)
  38. {
  39. try
  40. {
  41. int i = App.DeleteReceipt(codes,type);
  42. if (i > 0)
  43. {
  44. return Success("删除成功!");
  45. }
  46. else
  47. {
  48. return Error("删除失败!");
  49. }
  50. }
  51. catch (Exception ex)
  52. {
  53. return Error(ex.Message);
  54. }
  55. }
  56. //验证单据
  57. [HttpPost]
  58. [HandlerAjaxOnly]
  59. //[ValidateAntiForgeryToken]
  60. public ActionResult CheckReceipts(string codes, string type)
  61. {
  62. try
  63. {
  64. string msg = App.CheckReceipt(codes, type);
  65. if (!msg.IsEmpty())
  66. {
  67. return Error(msg);
  68. }
  69. else
  70. {
  71. return Success("");
  72. }
  73. }
  74. catch (Exception ex)
  75. {
  76. return Error(ex.Message);
  77. }
  78. }
  79. }
  80. }