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.
50 lines
1.2 KiB
50 lines
1.2 KiB
using NFine.Application.SRM;
|
|
using NFine.Code;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Data;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using System.Web.Mvc;
|
|
|
|
namespace NFine.Web.Areas.SRM.Controllers
|
|
{
|
|
public class SORRFQController : Controller
|
|
{
|
|
|
|
// GET: SRM/SORRFQ
|
|
RFQManagerApp app = new RFQManagerApp();
|
|
public ActionResult Index()
|
|
{
|
|
return View();
|
|
}
|
|
|
|
public ActionResult GetGridJson(Pagination pagination, String JSON)
|
|
{
|
|
DataTable table = app.GetGridJson(JSON, ref pagination);
|
|
var JsonData = new
|
|
{
|
|
total = pagination.total,
|
|
page = pagination.page,
|
|
records = pagination.records,
|
|
rows = table
|
|
};
|
|
return Content(JsonData.ToJson());
|
|
|
|
}
|
|
public ActionResult Publish(string json) {
|
|
return Content(app.Publish(json));
|
|
|
|
}
|
|
public ActionResult Close(string json)
|
|
{
|
|
return Content(app.Close(json));
|
|
|
|
}
|
|
public ActionResult DELETE(string json)
|
|
{
|
|
return Content(app.delete(json));
|
|
|
|
}
|
|
}
|
|
}
|