public ActionResult RequireBidding(String id) { VMRequire Require = new VMRequire(); var list = require.RequireAuditing(id); Require.InsShelftype = list.InsShelftype; Require.InsTonnage = list.InsTonnage; Require.InsTonUnit = list.InsTonUnit; Require.Insplace = list.Insplace; Require.InsStartDate = list.InsStartDate; Require.InsCycle = list.InsCycle; Require.InsCycleUnit = list.InsCycleUnit; Require.InsHeight = list.InsHeight; Require.InsHghUnit = list.InsHghUnit; Require.InsBeamHgh = list.InsBeamHgh; Require.InsStyHghUnit = list.InsStyHghUnit; Require.InsAtticLayer = list.InsAtticLayer; Require.InsForkExtension = list.InsForkExtension; Require.InsStretchCom = list.InsStretchCom; Require.InsMoney = list.InsMoney; Require.InsMoneyCom = list.InsMoneyCom; Require.InsName = list.InsName; Require.InsPhone = list.InsPhone; Require.InsRemark = list.InsRemark; Require.offerlist = JsonConvert.SerializeObject(RequireMapper.Offerlist(require.RequireBidding(id))); Require.count = require.RequiresBidding(id); Require.NowPage = 0; Require.AllPage = Pag.SumPage(Require.count, 10); Require.NewPage = (Require.AllPage == 0) ? 0 : Require.NowPage + 1; return(View(Require)); }
public ActionResult SearchPost(VMRequire search) { VMRequire Require = new VMRequire(); Require.OfferList = RequireMapper.Offerlist(require.RequireBidding(search.InstallID, search.NowPage)); Require.count = require.RequiresBidding(search.InstallID); Require.NowPage = search.NowPage; Require.AllPage = Pag.SumPage(Require.count, 10); Require.NewPage = (Require.AllPage == 0) ? 0 : Require.NowPage + 1; return(Json(Require, JsonRequestBehavior.AllowGet)); }
public ActionResult RequireList(int NowPage = 0) { VMRequireList Result = new VMRequireList(); Result.list = JsonConvert.SerializeObject(RequireMapper.RequireList(Require.RequireList(), Url)); Result.count = Require.RequiresList(); Result.AllPage = Paging.SumPage(Result.count, 10); Result.NowPage = NowPage; Result.NewPage = (Result.AllPage == 0) ? 0 : Result.NowPage + 1; Result.InsShelftypeName = ""; return(View(Result)); }
[HttpPost]//需求管理查询 public ActionResult RequiresList(VMRequireList search) { VMRequireList Result = new VMRequireList(); Result.Installlist = RequireMapper.RequireList(Require.RequireList(search.InsShelftypeName, search.NowPage), Url); Result.count = Require.RequiresList(search.InsShelftypeName); Result.AllPage = Paging.SumPage(Result.count, 10); Result.NowPage = search.NowPage; Result.NewPage = (Result.AllPage == 0) ? 0 : Result.NowPage + 1; Result.InsShelftypeName = ""; return(Json(Result, JsonRequestBehavior.AllowGet)); }
public ActionResult Biding(String OfferID, String InstallID) { VMRequire Result = new VMRequire(); require.RequireBiddingOffer(OfferID, OfferState.Yes); Result.msg = "选择中标单位成功!"; Result.OfferList = RequireMapper.Offerlist(require.RequireBidding(InstallID, 0)); Result.count = require.RequiresBidding(InstallID); Result.NowPage = 0; Result.AllPage = Pag.SumPage(Result.count, 10); Result.NewPage = (Result.AllPage == 0) ? 0 : Result.NowPage + 1; return(Json(Result, JsonRequestBehavior.AllowGet)); }