12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- using LeaRun.Application.Busines.InstallManage;
- using LeaRun.Application.Entity.InstallManage;
- using LeaRun.Util;
- using LeaRun.Util.WebControl;
- using Newtonsoft.Json;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Web;
- using System.Web.Mvc;
- namespace LeaRun.Application.Web.Areas.InstallManage.Controllers
- {
- public class MasterVerifyController : MvcControllerBase
- {
- private InstallDudgetBLL installDudgetbll = new InstallDudgetBLL();
- private InstallApplyBLL InstallApplybll = new InstallApplyBLL();
- //
- // GET: /InstallManage/MasterVerify/
- public ActionResult Index()
- {
- return View();
- }
- public ActionResult Form()
- {
- return View();
- }
- public ActionResult GetListJson(string startTime, string endTime, String type, Pagination pagination)
- {
- InstallApplyEntity entity = new InstallApplyEntity();
- if (type == null)
- {
- entity.SurveyType = 1;
- entity.budgetType = 1;
- entity.MasterVerifyType = 0;
- }
- else
- {
- entity.SurveyType = 1;
- entity.budgetType = 1;
- entity.MasterVerifyType = int.Parse(type);
- }
- if (!string.IsNullOrEmpty(startTime) && !string.IsNullOrEmpty(endTime))
- {
- var data = InstallApplybll.getInstallApplyList(startTime, endTime, pagination, entity);
- var watch = CommonHelper.TimerStart();
- var JsonData = new
- {
- rows = JsonConvert.DeserializeObject(data),
- total = pagination.total,
- page = pagination.page,
- records = pagination.records,
- costtime = CommonHelper.TimerEnd(watch)
- };
- return Content(JsonData.ToJson());
- }
- else
- {
- entity.SurveyType = 1;
- entity.budgetType = 1;
- entity.MasterVerifyType = 0;
- var data = InstallApplybll.getInstallApplyList(startTime, endTime, pagination, entity);
- var watch = CommonHelper.TimerStart();
- var JsonData = new
- {
- rows = JsonConvert.DeserializeObject(data),
- total = pagination.total,
- page = pagination.page,
- records = pagination.records,
- costtime = CommonHelper.TimerEnd(watch)
- };
- return Content(JsonData.ToJson());
- }
- return Content("");
- }
- public ActionResult VerityForm(String applyId)
- {
- InstallApplybll.MasterVerify(applyId);
- return Success("审核通过");
- }
- }
- }
|