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.

136 lines
3.1 KiB

6 days ago
  1. using NFine.Code;
  2. using NFine.Data.Extensions;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Data.Common;
  6. using System.Data;
  7. using System.Linq;
  8. using System.Web;
  9. using System.Web.Mvc;
  10. using NFine.Application;
  11. using NFine.Application.SRM;
  12. namespace NFine.Web.Areas.SRM.Controllers
  13. {
  14. public class ICSXBJNewController : Controller
  15. {
  16. RFQManagerApp App=new RFQManagerApp();
  17. // GET: SRM/ICSXBJNew
  18. public ActionResult BJDIndex()
  19. {
  20. return View();
  21. }
  22. public ActionResult BJDList()
  23. {
  24. return View();
  25. }
  26. public ActionResult BJDByZGIndex()
  27. {
  28. return View();
  29. }
  30. public ActionResult BJDVersionList()
  31. {
  32. return View();
  33. }
  34. public ActionResult BJDLookVersiondetails()
  35. {
  36. return View();
  37. }
  38. [HttpGet]
  39. [HandlerAjaxOnly]
  40. public ActionResult GetJson(string RFQCODE)
  41. {
  42. string ListData = App.GetJson(RFQCODE);
  43. var JsonData = new
  44. {
  45. ListData = ListData,
  46. };
  47. return Content(JsonData.ToJson());
  48. }
  49. [HttpGet]
  50. [HandlerAjaxOnly]
  51. public ActionResult GetJsonVersion(string RFQCODE,string Version)
  52. {
  53. string ListData = App.GetJsonVersion(RFQCODE, Version);
  54. var JsonData = new
  55. {
  56. ListData = ListData,
  57. };
  58. return Content(JsonData.ToJson());
  59. }
  60. public ActionResult CGAgree(string json,string result, string rfqno)
  61. {
  62. return Content(App.CGAgree(json, result, rfqno));
  63. }
  64. public ActionResult BZAgree(string json,string Type)
  65. {
  66. return Content(App.BZAgree(json, Type));
  67. }
  68. public ActionResult SaveBZAgree(string result,string rfqno)
  69. {
  70. return Content(App.SaveBZAgree(result, rfqno));
  71. }
  72. public ActionResult BackAgree(string json)
  73. {
  74. return Content(App.BackAgree(json));
  75. }
  76. public ActionResult SaveAgree(string json)
  77. {
  78. return Content(App.SaveAgree(json));
  79. }
  80. [HttpGet]
  81. [HandlerAjaxOnly]
  82. public ActionResult GetVersionList(Pagination pagination, string queryJson)
  83. {
  84. //DataTable ListData = App.GetVendorMail(queryJson, ref pagination);
  85. //var JsonData = new
  86. //{
  87. // total = pagination.total,
  88. // page = pagination.page,
  89. // records = pagination.records,
  90. // rows = ListData,
  91. //};
  92. //return Content(JsonData.ToJson());
  93. DataTable ListData = App.GetVersionList(queryJson, ref pagination);
  94. return Content(ListData.ToJson());
  95. }
  96. /// <summary>
  97. /// 部长撤销提交
  98. /// </summary>
  99. /// <param name="json"></param>
  100. /// <returns></returns>
  101. public ActionResult BZUpdateBJD(string json)
  102. {
  103. return Content(App.BZUpdateBJD(json));
  104. }
  105. }
  106. }