예제 #1
0
        /// <summary>
        /// 组合项目
        /// </summary>
        /// <returns></returns>
        public ActionResult Zhxm(int page = 1, string sfqy = "", string sxrs = "", string mc = "")
        {
            int       count = 0;
            Hashtable ht    = new Hashtable();

            ht.Add("yybh", GLYadmin.YYID);
            if (!string.IsNullOrEmpty(sfqy))
            {
                ht.Add("sfqy", sfqy);
            }
            if (!string.IsNullOrEmpty(sxrs))
            {
                ht.Add("sxrs", sxrs);
            }
            if (!string.IsNullOrEmpty(mc))
            {
                ht.Add("mc", mc);
            }
            var list        = new Service.XtzhxmService().GetZhxmList(ht, page, PageSize, ref count);
            int recordCount = count;                                                                 //总记录数

            ViewBag.Pager = PagingNewHelper.ShowFPageForBootstrapAdmin(page, PageSize, recordCount); //生成分页条
            XtJgbModel jgModel = new Service.XtjgbService().GetJg(GLYadmin.YYID);

            ViewBag.Zdbz = jgModel.zdbz;
            if (Request.IsAjaxRequest())
            {
                return(PartialView("ZhxmPart", list));
            }

            return(View(list));
        }
예제 #2
0
        /// <summary>
        /// 预约进度表
        /// </summary>
        /// <param name="page"></param>
        /// <param name="dwbh"></param>
        /// <param name="pqstart"></param>
        /// <param name="pqend"></param>
        /// <returns></returns>
        public ActionResult YyJdb(int page = 1, string dwbh = "", string pqstart = "", string pqend = "")
        {
            ReportQyService rs = new ReportQyService();

            ViewBag.jsyrs = rs.GetHomejryrs(GLYadmin.YYID, 1);        //首页今日预约人数
            List <string> jsList = rs.GetHometjzryyjd(GLYadmin.YYID); //今日预约总进度

            ViewBag.jsyyzjd   = jsList[0];
            ViewBag.jsyyzjdsz = jsList[1];
            //今日到检总进度
            List <string> jsDjList = rs.GetHometjdjzjd(GLYadmin.YYID);

            ViewBag.jsDjzjd   = jsDjList[0];
            ViewBag.jsDjzjdsz = jsDjList[1];

            QyyyService      qs          = new QyyyService();
            int              count       = 0;
            List <QyyyModel> list        = qs.GetQyygjbxxList(GLYadmin.YYID, dwbh, pqstart, pqend, page, PageSize, ref count);
            int              recordCount = count;                                              //总记录数

            ViewBag.Pager = PagingNewHelper.ShowFPageForBootstrapAdmin(page, PageSize, count); //生成分页条
            if (Request.IsAjaxRequest())
            {
                return(PartialView("YyJdbPart", list));
            }
            else
            {
                List <KeyValueModel> liQy = new QyjbxxService().GetqyList(GLYadmin.YYID);
                ViewBag.QyList = liQy;
            }
            return(View(list));
        }
예제 #3
0
        public ActionResult Index(string jsmc = "", int page = 1)
        {
            int count = 0;
            var list  = jsglbService.JsList(jsmc, GLYadmin.YYID, 0, 1, page, PageSize, ref count);

            if (list != null && list.Count > 0)
            {
                ViewBag.Pager = PagingNewHelper.ShowFPageForBootstrapAdmin(page, PageSize, count);//生成分页条
            }
            if (Request.IsAjaxRequest())
            {
                return(PartialView("JsPart", list));
            }
            return(View(list));
        }
        public ActionResult Index(string bqmc = "", int page = 1)
        {
            int count = 0;
            var list  = wjbqService.GetList(bqmc, page, PageSize, ref count);

            if (list != null && list.Count > 0)
            {
                ViewBag.Pager = PagingNewHelper.ShowFPageForBootstrapAdmin(page, 15, count);//生成分页条
            }
            if (Request.IsAjaxRequest())
            {
                return(PartialView("BqPart", list));
            }
            return(View(list));
        }
예제 #5
0
        public ActionResult Index(string mc = "", string cjrq = "", int page = 1)
        {
            int count = 0;
            var list  = xtzhbService.GetList(mc, cjrq, GLYadmin.YYID, page, PageSize, ref count);

            if (list != null && list.Count > 0)
            {
                ViewBag.Pager = PagingNewHelper.ShowFPageForBootstrapAdmin(page, PageSize, count);//生成分页条
            }
            ViewBag.Jsid = new JsglbService().GetJsList(GLYadmin.YYID, 1);
            if (Request.IsAjaxRequest())
            {
                return(PartialView("XtzhPart", list));
            }
            return(View(list));
        }
        public ActionResult Index(string tcmc = "", string tcbh = "", int page = 1)
        {
            int count = 0;
            var list  = wjtcService.GetList(tcbh, tcmc, GLYadmin.YYID, page, PageSize, ref count);

            if (list != null && list.Count > 0)
            {
                ViewBag.Pager = PagingNewHelper.ShowFPageForBootstrapAdmin(page, 15, count);//生成分页条
            }
            if (Request.IsAjaxRequest())
            {
                return(PartialView("TcPart", list));
            }

            ViewBag.Yybh = GLYadmin.YYID;
            return(View(list));
        }
예제 #7
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));
        }
        public ActionResult QyJs(int page = 1, string dwbh = "", string pqstart = "", string pqend = "")
        {
            QyyyService      qs          = new QyyyService();
            int              count       = 0;
            List <QyyyModel> list        = qs.GetQyygjbxxList(GLYadmin.YYID, dwbh, pqstart, pqend, page, PageSize, ref count);
            int              recordCount = count;                                              //总记录数

            ViewBag.Pager = PagingNewHelper.ShowFPageForBootstrapAdmin(page, PageSize, count); //生成分页条
            if (Request.IsAjaxRequest())
            {
                return(PartialView("QyJsPart", list));
            }
            else
            {
                List <KeyValueModel> liQy = new QyjbxxService().GetqyList(GLYadmin.YYID);
                ViewBag.QyList = liQy;
            }
            return(View(list));
        }
예제 #9
0
        /// <summary>
        /// 查询代理商列表
        /// </summary>
        /// <param name="rows"></param>
        /// <param name="page"></param>
        /// <param name="maxpages"></param>
        /// <param name="agentname"></param>
        /// <returns></returns>
        public DataTable GetAgentList(int rows, int page, int maxpages, string agentname)
        {
            Agent agentBll = new Agent();
            Dictionary <string, string>  queryStr = new Dictionary <string, string>();
            IDictionary <string, object> result;

            if (agentname != null && !string.IsNullOrEmpty(agentname))
            {
                queryStr.Add("AGENT_NAME", agentname);
            }
            result        = agentBll.QueryAgent(rows, page, queryStr);
            ViewBag.Pager = PagingNewHelper.ShowFPageForBootstrapAdmin(page, PageSize, int.Parse(result["totalRow"].ToString()));//生成分页条
            DataTable dataTable = result["table"] as DataTable;

            for (int i = 0; i < dataTable.Rows.Count; i++)
            {
                dataTable.Rows[i]["AGENT_NO"] = ((i + 1) + (rows * (page - 1)));
            }
            return(dataTable);
        }
예제 #10
0
        public ActionResult Index(string jgmc = "", int wjzt = -1, int page = 1)
        {
            int count = 0;
            var list  = wjjgService.GetList(jgmc, wjzt, page, PageSize, ref count);

            if (list != null && list.Count > 0)
            {
                ViewBag.Pager = PagingNewHelper.ShowFPageForBootstrapAdmin(page, 15, count);//生成分页条
            }
            if (Request.IsAjaxRequest())
            {
                return(PartialView("JgPart", list));
            }

            //机构选项
            var jgxx = wjjgService.GetJgSelect();

            ViewBag.Jgxx = jgxx;
            return(View(list));
        }
예제 #11
0
        public ActionResult Index(string jsmc = "", int page = 1)
        {
            int count = 0;
            var list  = new JsglbService().JsList(jsmc, GLYadmin.YYID, 0, 1, page, PageSize, ref count);

            if (list != null && list.Count > 0)
            {
                ViewBag.Pager = PagingNewHelper.ShowFPageForBootstrapAdmin(page, PageSize, count);//生成分页条
            }
            List <XtMenuModel> li = new JsqxService().GetAllMenu(1);

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

            ViewBag.LstMenu = li;

            if (Request.IsAjaxRequest())
            {
                return(PartialView("JsqxPart", list));
            }
            return(View(list));
        }
예제 #12
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));
        }
예제 #13
0
        /// <summary>
        /// 列表
        /// </summary>
        /// <param name="qybh"></param>
        /// <param name="type">1,渠道,0企业(其实渠道也是企业的)</param>
        /// <param name="page"></param>
        /// <returns></returns>
        public ActionResult List(string qybh = "", int type = 0, int page = 1)
        {
            int            count = 0;
            List <dynamic> list  = pqqyszService.GetPageList(page, PageSize, ref count, GLYadmin.YYID, qybh, type);

            ViewBag.Pager = PagingNewHelper.ShowFPageForBootstrapAdmin(page, PageSize, count);//生成分页条
            if (Request.IsAjaxRequest())
            {
                return(PartialView("ListPart", list));
            }
            else
            {
                if (type == 0)
                {
                    ViewBag.QyList = qyjbxxService.GetqyList(GLYadmin.YYID);
                }
                else
                {
                    ViewBag.QyList = qyjbxxService.GetqyqdList(GLYadmin.YYID);
                }
            }
            ViewBag.type = type;
            return(View(list));
        }