示例#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));
            }
        }
示例#2
0
        /// <summary>
        /// 更新渠道联系人
        /// </summary>
        /// <param name="id"></param>
        /// <param name="lxr"></param>
        /// <param name="lxdh"></param>
        /// <returns></returns>
        public JsonResult UpdateQudaoLxr(int id, string lxr, string lxdh)
        {
            int i = new QuDaoJbxxService().UpdateYyQudao(lxr, lxdh, id);

            if (i > 0)
            {
                return(Json(new { flag = true, msg = "" }, JsonRequestBehavior.AllowGet));
            }
            else
            {
                return(Json(new { flag = false, msg = "更新失败" }, JsonRequestBehavior.AllowGet));
            }
        }
示例#3
0
        /// <summary>
        /// 更新渠道状态
        /// </summary>
        /// <param name="id"></param>
        /// <param name="sfqy"></param>
        /// <returns></returns>
        public JsonResult UpdateQudaoSfqy(int id, int sfqy)
        {
            int i = new QuDaoJbxxService().UpdateYyQudaoStatus(sfqy, id);

            if (i > 0)
            {
                return(Json(new { flag = true, msg = "" }, JsonRequestBehavior.AllowGet));
            }
            else
            {
                return(Json(new { flag = false, msg = "更新失败" }, JsonRequestBehavior.AllowGet));
            }
        }
示例#4
0
        /// <summary>
        /// 渠道订单
        /// </summary>
        /// <param name="page"></param>
        /// <param name="sfqy"></param>
        /// <param name="qdbh"></param>
        /// <param name="tcmc"></param>
        /// <returns></returns>
        public ActionResult Order(int page = 1, string qdbh = "", string ddstart = "", string ddend = "", string yystart = "", string yyend = "", string xm = "", string dh = "", string tczt = "", string tcmc = "")
        {
            XtJgbModel jgModel = new Service.XtjgbService().GetJg(GLYadmin.YYID);;

            ViewBag.Jg = jgModel;

            int       count = 0;
            Hashtable ht    = new Hashtable();

            ht.Add("yybh", GLYadmin.YYID);
            ht.Add("ddly", "0");
            ht.Add("qdbh", qdbh);
            ht.Add("ddstart", ddstart);
            ht.Add("ddend", ddend);
            ht.Add("yystart", yystart);
            ht.Add("yyend", yyend);
            ht.Add("dh", dh);
            ht.Add("xm", xm);
            ht.Add("tczt", tczt);
            ht.Add("tcmc", tcmc);
            List <DdjbxxModel> list = new Service.DdyymxbService().OrderYyQdList(ht, page, PageSize, ref count);
            int recordCount         = count;//总记录数

            ViewBag.Zdbz  = jgModel.zdbz;
            ViewBag.Pager = PagingNewHelper.ShowFPageForBootstrapAdmin(page, PageSize, count);//生成分页条
            if (Request.IsAjaxRequest())
            {
                return(PartialView("OrderPart", list));
            }
            else
            {
                List <QuDaoJbxx>     liQd = new QuDaoJbxxService().GetYyQudao(GLYadmin.YYID, "");
                List <KeyValueModel> li   = new List <KeyValueModel>();
                foreach (QuDaoJbxx model in liQd)
                {
                    li.Add(new KeyValueModel()
                    {
                        key = model.Bh.ToString(), values = model.Mc
                    });
                }

                ViewBag.QdList = li;
            }
            return(View(list));
        }
示例#5
0
        /// <summary>
        /// 渠道套餐
        /// </summary>
        /// <returns></returns>
        public ActionResult Tc(int page = 1, string sfqy = "", string qdbh = "", string tcmc = "")
        {
            int       count = 0;
            Hashtable ht    = new Hashtable();

            ht.Add("yybh", GLYadmin.YYID);
            ht.Add("tcmc", tcmc);
            ht.Add("sfqy", sfqy);
            ht.Add("qdbh", qdbh);
            ht.Add("tclx", "2");
            List <XttcbModel> list = new XttcbService().GetYyQdTcNew(ht, page, PageSize, ref count);

            ViewBag.Pager = PagingNewHelper.ShowFPageForBootstrapAdmin(page, PageSize, count);//生成分页条
            if (Request.IsAjaxRequest())
            {
                return(PartialView("TcPart", list));
            }
            else
            {
                List <QuDaoJbxx> liQd = new QuDaoJbxxService().GetYyQudao(GLYadmin.YYID, "");

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

                ViewBag.QdList = li;
            }

            XtJgbModel jgModel = new Service.XtjgbService().GetJg(GLYadmin.YYID);

            ViewBag.Zdbz = jgModel.zdbz;
            return(View(list));
        }