Example #1
0
        public ActionResult Index(string orgId, int?beginMo, int?endMo,
                                  string nsrsbm, string nsrmc,
                                  int isSenior = 0, int pageIndex = 1, int pageSize = 20)
        {
            if (string.IsNullOrEmpty(orgId))
            {
                orgId = SetViewBagOrgData();
            }
            else
            {
                SetViewBagOrgData(orgId);
            }

            if (beginMo == null)
            {
                beginMo = int.Parse(DateTime.Now.ToString("yyyyMM"));
            }
            if (endMo == null)
            {
                endMo = int.Parse(DateTime.Now.ToString("yyyyMM"));
            }

            ViewBag.BeginTime = beginMo.ToString().Insert(4, "-");
            ViewBag.EndTime   = endMo.ToString().Insert(4, "-");
            ViewBag.IsSenior  = isSenior;
            ViewBag.Nsrsbm    = nsrsbm;
            ViewBag.Nsrmc     = nsrmc;

            var list = SYS_CURRYWHIST_DAL.GetMergeList(orgId, beginMo.GetValueOrDefault(), endMo.GetValueOrDefault(),
                                                       nsrsbm, nsrmc, pageIndex, pageSize);

            return(View(list));
        }
Example #2
0
        public ActionResult Details(string id)
        {
            try
            {
                var model = SYS_CURRYWHIST_DAL.GetOne(id);

                return(View(model));
            }
            catch (Exception ex)
            {
                LogHelper.ErrorLog("查看出错", ex);
                return(RedirectToAction("Error", "Home"));
            }
        }
Example #3
0
        public ActionResult DetailList(string orgId, string nsrsbm, int?beginMo, int?endMo, int pageIndex = 1, int pageSize = 20)
        {
            if (beginMo == null)
            {
                beginMo = int.Parse(DateTime.Now.ToString("yyyyMM"));
            }
            if (endMo == null)
            {
                endMo = int.Parse(DateTime.Now.ToString("yyyyMM"));
            }

            var list = SYS_CURRYWHIST_DAL.GetMergeDetailList(orgId, nsrsbm, beginMo.GetValueOrDefault(),
                                                             endMo.GetValueOrDefault(), pageIndex, pageSize);

            return(View(list));
        }
Example #4
0
        public ActionResult Index(string orgId, int pageIndex = 1, int pageSize = 20)
        {
            var list = SYS_CURRYWHIST_DAL.GetSameCityDealPager(orgId, pageIndex, pageSize);

            return(View(list));
        }