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.
281 lines
8.1 KiB
281 lines
8.1 KiB
using NFine.Application;
|
|
using NFine.Application.ProductManage;
|
|
using NFine.Application.SRM;
|
|
using NFine.Code;
|
|
using NFine.Data.Extensions;
|
|
using NFine.Domain.Entity.ProductManage;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Data;
|
|
using System.Data.SqlClient;
|
|
using System.IO;
|
|
using System.Linq;
|
|
using System.Threading;
|
|
using System.Web;
|
|
using System.Web.Mvc;
|
|
|
|
namespace NFine.Web.Areas.SRM.Controllers
|
|
{
|
|
public class BicDoc_BidResultController : ControllerBase
|
|
{
|
|
|
|
BicDoc_BidResultApp App = new BicDoc_BidResultApp();
|
|
// GET: SRM/BicDoc_BidResult
|
|
public ActionResult BidResult()
|
|
{
|
|
return View();
|
|
}
|
|
|
|
public ActionResult BidResultAdd()
|
|
{
|
|
return View();
|
|
}
|
|
|
|
public ActionResult BidResultDetail()
|
|
{
|
|
return View();
|
|
}
|
|
|
|
public ActionResult BidCourse()
|
|
{
|
|
return View();
|
|
}
|
|
|
|
public ActionResult BidCourseAdd()
|
|
{
|
|
return View();
|
|
}
|
|
|
|
public ActionResult BidCourseDetail()
|
|
{
|
|
return View();
|
|
}
|
|
|
|
public ActionResult BidCourseSearch()
|
|
{
|
|
return View();
|
|
}
|
|
|
|
public ActionResult BidCourseHistory()
|
|
{
|
|
return View();
|
|
}
|
|
public ActionResult BidCourseZSum()
|
|
{
|
|
return View();
|
|
}
|
|
|
|
[HttpGet]
|
|
[HandlerAjaxOnly]
|
|
public ActionResult GetSubGridJsonResult(Pagination pagination, string BidCode,string WorkPoint)
|
|
{
|
|
DataTable ListData = App.GetSubGridJsonResult(BidCode, WorkPoint, ref pagination);
|
|
var JsonData = new
|
|
{
|
|
total = pagination.total,
|
|
page = pagination.page,
|
|
records = pagination.records,
|
|
rows = ListData,
|
|
};
|
|
return Content(JsonData.ToJson());
|
|
}
|
|
|
|
|
|
[HttpGet]
|
|
[HandlerAjaxOnly]
|
|
public ActionResult GetSubGridJson(Pagination pagination, string BidCode)
|
|
{
|
|
DataTable ListData = App.GetSubGridJson(BidCode, ref pagination);
|
|
var JsonData = new
|
|
{
|
|
total = pagination.total,
|
|
page = pagination.page,
|
|
records = pagination.records,
|
|
rows = ListData,
|
|
};
|
|
return Content(JsonData.ToJson());
|
|
}
|
|
|
|
[HttpGet]
|
|
[HandlerAjaxOnly]
|
|
public ActionResult GetICSBidDocInfo(string BidCode, string WorkPoint)
|
|
{
|
|
DataTable ListData = App.GetICSBidDocInfo(BidCode, WorkPoint);
|
|
var JsonData = new
|
|
{
|
|
rows = ListData,
|
|
};
|
|
return Content(JsonData.ToJson());
|
|
}
|
|
|
|
|
|
[HttpGet]
|
|
[HandlerAjaxOnly]
|
|
public ActionResult GetGrid(Pagination pagination, string queryJson)
|
|
{
|
|
DataTable ListData = App.GetGrid(queryJson, ref pagination);
|
|
var JsonData = new
|
|
{
|
|
total = pagination.total,
|
|
page = pagination.page,
|
|
records = pagination.records,
|
|
rows = ListData,
|
|
};
|
|
return Content(JsonData.ToJson());
|
|
}
|
|
|
|
|
|
[HttpGet]
|
|
[HandlerAjaxOnly]
|
|
public ActionResult GetGridCourse(Pagination pagination, string queryJson)
|
|
{
|
|
DataTable ListData = App.GetGridCourse(queryJson, ref pagination);
|
|
var JsonData = new
|
|
{
|
|
total = pagination.total,
|
|
page = pagination.page,
|
|
records = pagination.records,
|
|
rows = ListData,
|
|
};
|
|
return Content(JsonData.ToJson());
|
|
}
|
|
|
|
|
|
|
|
|
|
[HttpGet]
|
|
[HandlerAjaxOnly]
|
|
public ActionResult GetSubGridJsonCourse(Pagination pagination, string BidCode, string WorkPoint)
|
|
{
|
|
DataTable ListData = App.GetSubGridJsonCourse(BidCode, WorkPoint, ref pagination);
|
|
var JsonData = new
|
|
{
|
|
total = pagination.total,
|
|
page = pagination.page,
|
|
records = pagination.records,
|
|
rows = ListData,
|
|
};
|
|
return Content(JsonData.ToJson());
|
|
}
|
|
|
|
|
|
|
|
[HttpGet]
|
|
[HandlerAjaxOnly]
|
|
public ActionResult GetBidCourseInfo(string BidCode, string WorkPoint,string ID)
|
|
{
|
|
DataTable ListData = App.GetBidCourseInfo(BidCode, WorkPoint,ID);
|
|
var JsonData = new
|
|
{
|
|
rows = ListData,
|
|
};
|
|
return Content(JsonData.ToJson());
|
|
}
|
|
|
|
|
|
[HttpGet]
|
|
[HandlerAjaxOnly]
|
|
public ActionResult GetSubGridJsonCourseInfo(Pagination pagination, string BidCode, string WorkPoint,string ID)
|
|
{
|
|
DataTable ListData = App.GetSubGridJsonCourseInfo(BidCode, WorkPoint,ID, ref pagination);
|
|
var JsonData = new
|
|
{
|
|
total = pagination.total,
|
|
page = pagination.page,
|
|
records = pagination.records,
|
|
rows = ListData,
|
|
};
|
|
return Content(JsonData.ToJson());
|
|
}
|
|
|
|
//[HttpGet]
|
|
//[HandlerAjaxOnly]
|
|
//public ActionResult BidCourseHistoryInfo(string BidCode, string WorkPoint, string InfoID,string BDID)
|
|
//{
|
|
// DataTable ListData = App.BidCourseHistoryInfo(BidCode, WorkPoint, InfoID, BDID);
|
|
// var JsonData = new
|
|
// {
|
|
// rows = ListData,
|
|
// };
|
|
// return Content(JsonData.ToJson());
|
|
//}
|
|
|
|
[HttpGet]
|
|
[HandlerAjaxOnly]
|
|
public ActionResult BidResultINVENTORY(Pagination pagination, string BidCode,string WorkPoint)
|
|
{
|
|
DataTable ListData = App.BidResultINVENTORY(BidCode, WorkPoint, ref pagination);
|
|
var JsonData = new
|
|
{
|
|
total = pagination.total,
|
|
page = pagination.page,
|
|
records = pagination.records,
|
|
rows = ListData,
|
|
};
|
|
return Content(JsonData.ToJson());
|
|
}
|
|
|
|
|
|
[HttpGet]
|
|
[HandlerAjaxOnly]
|
|
public ActionResult BidResultVendor(Pagination pagination, string BidCode, string WorkPoint)
|
|
{
|
|
DataTable ListData = App.BidResultVendor(BidCode, WorkPoint, ref pagination);
|
|
var JsonData = new
|
|
{
|
|
total = pagination.total,
|
|
page = pagination.page,
|
|
records = pagination.records,
|
|
rows = ListData,
|
|
};
|
|
return Content(JsonData.ToJson());
|
|
}
|
|
|
|
[HttpGet]
|
|
[HandlerAjaxOnly]
|
|
public ActionResult BidCourseHistoryInfoCahrs(string BidCode, string WorkPoint, string ID, string InvCode)
|
|
{
|
|
DataTable ListData = App.BidCourseHistoryInfoCahrs(BidCode, WorkPoint, ID, InvCode);
|
|
string ss = ListData.ToJson();
|
|
return Content(ListData.ToJson());
|
|
|
|
}
|
|
[HttpGet]
|
|
[HandlerAjaxOnly]
|
|
public ActionResult BidCourseHistoryInfoInvCode(string BidCode, string WorkPoint, string ID)
|
|
{
|
|
DataTable ListData = App.BidCourseHistoryInfoInvCode(BidCode, WorkPoint, ID);
|
|
return Content(ListData.ToJson());
|
|
}
|
|
|
|
|
|
|
|
[HttpGet]
|
|
[HandlerAjaxOnly]
|
|
public ActionResult BidCourseHistoryInfo(Pagination pagination, string BidCode, string WorkPoint, string InfoID, string BDID)
|
|
{
|
|
DataTable ListData = App.BidCourseHistoryInfo(BidCode, WorkPoint, InfoID, BDID,ref pagination);
|
|
var JsonData = new
|
|
{
|
|
total = pagination.total,
|
|
page = pagination.page,
|
|
records = pagination.records,
|
|
rows = ListData,
|
|
};
|
|
return Content(JsonData.ToJson());
|
|
}
|
|
|
|
|
|
|
|
[HttpPost]
|
|
public void ExportAll(string BidCode, string BeginDate, string EndDate, string selShow)
|
|
{
|
|
DataTable dt = App.ExportAll(BidCode, BeginDate, EndDate, selShow);
|
|
AsposeCell.Export(dt);
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|