Esempio n. 1
0
        /// <summary>
        /// 营收报表
        /// </summary>
        /// <param name="start"></param>
        /// <param name="end"></param>
        /// <returns></returns>
        public ActionResult YsList(string start = "", string end = "")
        {
            Service.ReportQdService sr = new ReportQdService();
            if (Request.IsAjaxRequest())
            {
                List <Model.Dto.ReportQd.YyYsReport> li = sr.ReporYyYsList(start, end, GLYadmin.YYID);
                return(PartialView("YsPartList", li));
            }
            else
            {
                List <Model.Dto.ReportQd.YyYsReport> li = sr.ReporYyYsList(DateTime.Now.AddDays(-30).ToString("yyyy-MM-dd"), DateTime.Now.ToString("yyyy-MM-dd"), GLYadmin.YYID);
                ViewBag.Yye30 = sr.Get30Yye(GLYadmin.YYID);
                ViewBag.Yye   = sr.GetdrYye(GLYadmin.YYID);
                ViewBag.Yyedy = sr.GetdyYye(GLYadmin.YYID);

                List <QuDaoJbxx> liQd = new QuDaoJbxxService().GetYyQudao(GLYadmin.YYID, "");

                List <KeyValueModel> liQdReturn = new List <KeyValueModel>();
                foreach (QuDaoJbxx model in liQd)
                {
                    liQdReturn.Add(new KeyValueModel()
                    {
                        key = model.Bh.ToString(), values = model.Mc
                    });
                }

                ViewBag.QdList = liQdReturn;

                return(View(li));
            }
        }
Esempio n. 2
0
        public JsonResult Ys(int qdId = 0)
        {
            Service.ReportQdService sr = new ReportQdService();
            string Yye30 = sr.Get30Yye(GLYadmin.YYID, qdId);
            string Yye   = sr.GetdrYye(GLYadmin.YYID, qdId);
            string Yyedy = sr.GetdyYye(GLYadmin.YYID, qdId);


            return(Json(new { flag = true, Yye30 = Yye30, Yye = Yye, Yyedy = Yyedy }, JsonRequestBehavior.AllowGet));
        }