예제 #1
0
        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));
        }
예제 #2
0
        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));
        }
예제 #3
0
        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));
        }