Esempio n. 1
0
        public void SearchSync(string query)
        {
            if (string.IsNullOrEmpty(query))
            {
                Search.Clear();
                return;
            }

            var queries = LocaleHelper.GetQuery(query);

            var contacts = CacheService.GetContacts().OfType <TLUser>().Where(x => x.IsLike(queries, StringComparison.OrdinalIgnoreCase)).ToList();

            if (query.Equals(_searchQuery))
            {
                if (Search.Count > 1)
                {
                    Search.RemoveAt(1);
                }
                if (Search.Count > 0)
                {
                    Search.RemoveAt(0);
                }
                //if (contacts.Count > 0) Search.Add(new KeyedList<string, TLObject>(null, contacts));
                Search.Add(new KeyedList <string, TLObject>(null, contacts));
            }
        }
Esempio n. 2
0
        //Invocing/Home/invoicing_order_sell_orderlist_return_list
        public IActionResult invoicing_order_sell_orderlist_return_list(string reportId, string Params)
        {
            if (!reportId.HasValue())
            {
                return(RedirectToAction("invoicing_order_sell_orderlist_return_list",
                                        new
                {
                    reportId = "erp.invoicing.RR4.销售订单退货",
                    Params = "单据编号;订单类型;销售单编号;客户名称;业务日期;业务员;销售类型;订单折扣率(%);折扣金额;当前状态;订金",
                    pageIndex = 1,
                    perCount = 10
                }));
            }

            Search.Add("单据编号");
            Search.Add("订单类型");
            Search.Add("销售单编号");
            Search.Add("客户名称");
            Search.Add("业务日期");
            Search.Add("业务员");
            Search.Add("销售类型");
            Search.Add("订单折扣率(%)");
            Search.Add("折扣金额");
            Search.Add("当前状态");
            Search.Add("订金");
            InitReport("销售订单退货", "#", "", true, "erp.invoicing");
            return(ReportJson());
        }
Esempio n. 3
0
        //Invocing/Home/customer_list
        public IActionResult customer_list(string reportId, string Params)
        {
            if (!reportId.HasValue())
            {
                return(RedirectToAction("customer_list",
                                        new
                {
                    reportId = "erp.invoicing.RHR.客户信息设置",
                    Params = "客户编码;客户名称;联系人;电话;电子邮件;客户分类;发票类型;区域;地址",
                    pageIndex = 1,
                    perCount = 10
                }));
            }

            Search.Add("客户编码");
            Search.Add("客户名称");
            Search.Add("联系人");
            Search.Add("电话");
            Search.Add("电子邮件");
            Search.Add("客户分类");
            Search.Add("发票类型");
            Search.Add("区域");
            Search.Add("地址");
            InitReport("客户信息设置", "/Invocing/Home/customer_add", "", true, "erp.invoicing");
            return(ReportJson());
        }
Esempio n. 4
0
        //Invocing/Home/in_out_order_record_item_return_check_list
        public IActionResult in_out_order_record_item_return_check_list(string reportId, string Params, string id)
        {
            if (!reportId.HasValue())
            {
                return(RedirectToAction("in_out_order_record_item_return_check_list",
                                        new
                {
                    reportId = "erp.invoicing.RLG.审核退货入库单明细",
                    Params = "仓库id;商品编号;商品名称;商品单价;折扣率;出库数量",
                    pageIndex = 1,
                    perCount = 10,
                    id = id
                }));
            }

            Search.Add("");
            Search.Add("仓库id");
            Search.Add("商品编号");
            Search.Add("商品名称");
            Search.Add("商品单价");
            Search.Add("折扣率");
            Search.Add("出库数量");
            Search.Add("审核通过", FormControlType.Button, "ok()");
            Search.Add("审核不通过", FormControlType.Button, "notok()");
            SetFixedParam(id, ";;;;;");
            InitReport("退货入库单明细", "#", "", true, "erp.invoicing");
            return(ReportJson());
        }
Esempio n. 5
0
        //Invocing/Home/product_combine_detail_list
        public IActionResult product_combine_detail_list(string reportId, string Params, string id)
        {
            if (!reportId.HasValue())
            {
                return(RedirectToAction("product_combine_detail_list",
                                        new
                {
                    reportId = "erp.invoicing.R3S.product_combine_detail",
                    Params = "货号;商品名称;组合数量;零售价;批发价;参考进价",
                    pageIndex = 1,
                    perCount = 10,
                    id = id
                }));
            }

            Search.Add("货号");
            Search.Add("商品名称");
            Search.Add("组合数量");
            Search.Add("零售价");
            Search.Add("批发价");
            Search.Add("参考进价");
            SetFixedParam(id, ";;;;;");
            InitReport("组合商品明细", "/Invocing/Home/product_combine_detail_add?id=" + id, "", true, "erp.invoicing");
            return(ReportJson());
        }
Esempio n. 6
0
        //Invocing/Home/invoicing_order_item_in_list
        public IActionResult invoicing_order_item_in_list(string reportId, string Params, string id)
        {
            if (!reportId.HasValue())
            {
                return(RedirectToAction("invoicing_order_item_in_list",
                                        new
                {
                    reportId = "erp.invoicing.R55.销售订单退货入库明细",
                    Params = "商品编号;商品名称;商品单价;订购数量;订单金额;折扣率;折扣金额;应付总额",
                    pageIndex = 1,
                    perCount = 10,
                    id = id
                }));
            }

            Search.Add("商品编号");
            Search.Add("商品名称");
            Search.Add("商品单价");
            Search.Add("订购数量");
            Search.Add("订单金额");
            Search.Add("折扣率");
            Search.Add("折扣金额");
            Search.Add("应付总额");
            Search.Add("全部出库", FormControlType.Button, "out_all()");

            SetFixedParam(id, ";;;;;;;");
            InitReport("销售订单退货入库明细", "", "", true, "erp.invoicing");
            return(ReportJson());
        }
Esempio n. 7
0
 // GET: /F2Demo/ReportDemo
 public ActionResult ReportDemo(string ReportID, string Params, int pageIndex = 1, int perCount = 10)
 {
     if (!ReportID.HasValue())
     {
         return(RedirectToAction("ReportDemo",
                                 new { ReportID = "demo", Params = Params.IsFixedParam(), pageIndex = 1, perCount = 10 }));
     }
     Search.Add("在控制器中调用 Search.Add(测试提示, FormControlType.Tip); 可以显示我", FormControlType.Tip);
     Search.Add("点击去百度", FormControlType.Button, "http://baidu.com");
     Search.Add("用户id");
     Search.Add("性别", new List <DropDownListItem>()
     {
         new DropDownListItem()
         {
             text = "男", value = "1"
         },
         new DropDownListItem()
         {
             text = "女", value = "2"
         }
     });
     Search.Add("注册时间", FormControlType.DateTime);
     Search.Add("日志", FormControlType.TextArea,
                "我是日志我是日志我是日志我是日志我是日志我是日志我是日志我是日志我是日志我是日志我是日志我是日志我是日志我是日志我是日志我是日志我是日志我是日志我是日志我是日志我是日志我是日志我是日志我是日志我是日志我是日志我是日志我是日志我是日志我是日志我是日志我是日志我是日志我是日志我是日志我是日志我是日志我是日志我是日志我是日志我是日志我是日志我是日志我是日志我是日志我是日志我是日志我是日志我是日志我是日志我是日志我是日志我是日志我是日志我是日志我是日志我是日志我是日志我是日志我是日志我是日志我是日志我是日志我是日志我是日志我是日志我是日志我是日志我是日志我是日志我是日志我是日志我是日志我是日志我是日志我是日志我是日志我是日志我是日志我是日志我是日志我是日志我是日志我是日志我是日志我是日志我是日志");
     Search.Add("注册时间2", FormControlType.DateTime, "2017-08-06 17:47");
     InitReport("ReportDemo(后端分页)", "#", "", true, "Qx.System");
     return(View());
 }
Esempio n. 8
0
        //Invocing/Home/in_out_return_order_record_list
        public IActionResult in_out_return_order_record_list(string reportId, string Params, string id)
        {
            if (!reportId.HasValue())
            {
                return(RedirectToAction("in_out_return_order_record_list",
                                        new
                {
                    reportId = "erp.invoicing.RL8.销售退货单列表",
                    Params = "单据编号;拣货人;发货单号;出库数量;操作日期;审核日期;当前状态",
                    pageIndex = 1,
                    perCount = 10,
                    id = id
                }));
            }

            Search.Add("单据编号");
            Search.Add("拣货人");
            Search.Add("发货单号");
            Search.Add("出库数量");
            Search.Add("操作日期");
            Search.Add("审核日期");
            Search.Add("当前状态");
            SetFixedParam(id, ";;;;;;");
            InitReport("退货记录", "/Invocing/Home/in_out_order_record_add?id=" + id, "", true, "erp.invoicing");
            return(ReportJson());
        }
        public ActionResult RoleMenuList(string ReportID, string Params, int pageIndex = 1, int perCount = 10)
        {
            if (!ReportID.HasValue())
            {
                return(RedirectToAction("RoleMenuList",
                                        new {
                    ReportID = "Permision.v2_分配菜单",
                    Params = Params.IsFixedParam(),    //如果在报表操作列未配置参数FixParam,可在此处调用 IsFixedParam()
                    pageIndex = 1,
                    perCount = 10
                }));
            }
            //注意检测顺序应该在检测ReportID之后
            var rid = Params.GetFixedParam();

            if (!rid.HasValue())
            {
                return(Alert("参数错误"));
            }
            SetFixedParam(rid, Params);
            Search.Add("菜单名称");
            InitReport("分配菜单", "/Permission/Admin2/ChooseMenuList?ReportID=Permision.v2_选择菜单&Params=;&role_id=" + Params, pageIndex, perCount);
            return(ReportView());
            //return View(RoleMenuList_M.ToViewModel(role));
        }
Esempio n. 10
0
        //Invocing/Home/product_deposit_list
        public IActionResult product_deposit_list(string reportId, string Params)
        {
            if (!reportId.HasValue())
            {
                return(RedirectToAction("product_deposit_list",
                                        new
                {
                    reportId = "erp.invoicing.RVJ.押金商品管理",
                    Params = "货号;商品名称;主条码;零售价;批发价;参考进价;产品类别;品牌名称;货商名称",
                    pageIndex = 1,
                    perCount = 10
                }));
            }

            Search.Add("货号");
            Search.Add("商品名称");
            Search.Add("主条码");
            Search.Add("零售价");
            Search.Add("批发价");
            Search.Add("参考进价");
            Search.Add("产品类别");
            Search.Add("品牌名称");
            Search.Add("货商名称");
            InitReport("押金商品设置", "/Invocing/Home/product_deposit_add", "", true, "erp.invoicing");
            return(ReportJson());
        }
Esempio n. 11
0
        //Invocing/Home/in_out_order_record_item_list
        public IActionResult in_out_order_record_item_list(string reportId, string Params, string id, string id2)
        {
            if (!reportId.HasValue())
            {
                return(RedirectToAction("in_out_order_record_item_list",
                                        new
                {
                    reportId = "erp.invoicing.RLG.销售出库单明细",
                    Params = "仓库id;商品编号;商品名称;商品单价;折扣率;出库数量",
                    pageIndex = 1,
                    perCount = 10,
                    id = id,
                    id2 = id2    //销售订单编号
                }));
            }

            Search.Add("仓库id");
            Search.Add("商品编号");
            Search.Add("商品名称");
            Search.Add("商品单价");
            Search.Add("折扣率");
            Search.Add("出库数量");
            Search.Add("确认出库单", FormControlType.Button, "queren()");
            SetFixedParam(id, ";;;;;");
            InitReport("出库单明细", "#", id2, true, "erp.invoicing");
            return(ReportJson());
        }
Esempio n. 12
0
        //Invocing/Home/org_storage_product_list
        public IActionResult org_storage_product_list(string reportId, string Params, string id)
        {
            if (!reportId.HasValue())
            {
                return(RedirectToAction("org_storage_product_list",
                                        new
                {
                    reportId = "erp.invoicing.RK5.仓库产品分布明细",
                    Params = "商品编号;预定数量;借阅数量;在途数量;实际数量;可用余量",
                    pageIndex = 1,
                    perCount = 10,
                    id = id
                }));
            }

            Search.Add("商品编号");
            Search.Add("预定数量");
            Search.Add("借阅数量");
            Search.Add("在途数量");
            Search.Add("实际数量");
            Search.Add("可用余量");
            SetFixedParam(id, ";;;;;;;");
            InitReport("仓库产品分布明细", "#", "", true, "erp.invoicing");
            return(ReportJson());
        }
Esempio n. 13
0
 public Movies(OMDBMovies omdb) : this()
 {
     Message = omdb.Message;
     foreach (Movie m in omdb.Search)
     {
         Search.Add(m);
     }
 }
Esempio n. 14
0
 public Movies(TMDBMovies tmdb) : this()
 {
     Message = tmdb.Message;
     foreach (TMDBMovie m in tmdb.Search)
     {
         IMovie m2 = TMDBMovies.GetMovie(m);
         Search.Add(m2);
     }
 }
Esempio n. 15
0
 public ActionResult Relation_Org_UserChoose(string ReportID, string orgnization_position_id, string Params, int pageIndex = 1, int perCount = 10)
 {
     if (!ReportID.HasValue())
     {
         return(RedirectToAction("Relation_Org_UserChoose", new { ReportID = "ecampus.Twxt.职位对应的职员_选择", orgnization_position_id = orgnization_position_id, Params = ";", pageIndex = 1, perCount = 10 }));
     }
     Search.Add("姓名");
     InitReport("组织机构职员", "#", true, orgnization_position_id);
     return(ReportView());
 }
Esempio n. 16
0
 //Report/Index?ReportID=System&Params=;
 public ActionResult Index(string ReportID, string Params, int pageIndex = 1, int perCount = 10)
 {
     if (!ReportID.HasValue())
     {
         return(RedirectToAction("Index", new { ReportID = "System", Params = ";", pageIndex = 1, perCount = 10 }));
     }
     Search.Add("报表ID");
     InitReport("报表引擎", "/Report/Add", "", true, "Qx.System");
     return(ReportView());
 }
Esempio n. 17
0
 public ActionResult Org_TypeChoose_OneToALL(string ReportID, string Params, string AllParams, int pageIndex = 1, int perCount = 10)
 {
     if (!ReportID.HasValue())
     {
         return(RedirectToAction("Org_TypeChoose_OneToALL", new { AllParams = AllParams, ReportID = "ecampus.Twxt.组织机构类型选择_非根节点使用", Params = ";", pageIndex = 1, perCount = 10 }));
     }
     // InitReport("思想汇报(积极分子)", "#", "", true, "ecampus.join_party");//#添加按钮的路由,“”额外参数,TRUE查询按钮显示,“”
     Search.Add("组织机构类型名称");
     InitReport("组织机构类型选择", "#", true, AllParams);
     return(ReportView());
 }
Esempio n. 18
0
 public ActionResult Org_LevelChoose_Common(string ReportID, string Params, string AllParams, int pageIndex = 1, int perCount = 10)
 {
     if (!ReportID.HasValue())
     {
         return(RedirectToAction("Org_LevelChoose_Common", new { AllParams = AllParams, ReportID = "ecampus.Twxt.选择组织机构级别_公共", Params = ";", pageIndex = 1, perCount = 10 }));
     }
     // InitReport("思想汇报(积极分子)", "#", "", true, "ecampus.join_party");//#添加按钮的路由,“”额外参数,TRUE查询按钮显示,“”
     Search.Add("级别名称");
     InitReport("选择组织机构级别", "#", true, AllParams);
     return(ReportView());
 }
Esempio n. 19
0
 public ActionResult Org_TypeChoose_ThreeEdit(string ReportID, string Params, string orgnization_id, int pageIndex = 1, int perCount = 10)
 {
     if (!ReportID.HasValue())
     {
         return(RedirectToAction("Org_TypeChoose_ThreeEdit", new { orgnization_id = orgnization_id, ReportID = "ecampus.Twxt.组织机构类型选择_levelthreeEdit", Params = ";", pageIndex = 1, perCount = 10 }));
     }
     // InitReport("思想汇报(积极分子)", "#", "", true, "ecampus.join_party");//#添加按钮的路由,“”额外参数,TRUE查询按钮显示,“”
     Search.Add("组织机构类型名称");
     InitReport("组织机构类型选择", "#", true, orgnization_id);
     return(ReportView());
 }
Esempio n. 20
0
 public ActionResult LevelThree(string ReportID, string father_id, string orgnization_id, string Params, int pageIndex = 1, int perCount = 10)
 {
     if (!ReportID.HasValue())
     {
         return(RedirectToAction("LevelThree", new { ReportID = "ecampus.Twxt.LevelThree", father_id = father_id, orgnization_id = orgnization_id, Params = ";", pageIndex = 1, perCount = 10 }));
     }
     Search.Add("组织机构名称");
     SetFixedParam(orgnization_id, ";");
     InitReport("组织机构列表", "/QxJzxt/OrgCRUD/LevelThreeAdd?father_id=" + orgnization_id);
     return(ReportView());
 }
Esempio n. 21
0
 public IActionResult ChooseBanButtonList(string ReportID, string role_id, string Params, int pageIndex = 1, int perCount = 10)
 {
     if (!ReportID.HasValue())
     {
         return(RedirectToAction("ChooseBanButtonList", new { ReportID = "Permision.v2_选择禁用按钮", Params = ";", pageIndex = 1, perCount = 10 }));
     }
     Search.Add("按钮编号");
     InitReport("选择禁用按钮", "#", "role_id=" + role_id, true, "sys.core", "&role_id=" + role_id);
     return(ReportJson());
     //   return View();
 }
Esempio n. 22
0
 public ActionResult Org_WatchChild(string ReportID, string orgnization_id, string Params, int pageIndex = 1, int perCount = 10)
 {
     if (!ReportID.HasValue())
     {
         return(RedirectToAction("Org_WatchChild", new { ReportID = "ecampus.Twxt.Org_该角色能看到的子机构", orgnization_id = orgnization_id, Params = ";", pageIndex = 1, perCount = 10 }));
     }
     Search.Add("组织机构名称");
     SetFixedParam(orgnization_id, ";");
     InitReport("组织机构列表", "/QxJzxt/OrgCRUD/Org_CommonAdd?father_id=" + orgnization_id);
     return(ReportView());
 }
 public ActionResult ChooseRoleList(string ReportID, string user_id, string Params, int pageIndex = 1, int perCount = 10)
 {
     if (!ReportID.HasValue())
     {
         return(RedirectToAction("/Permission/admin2/ChooseRoleList", new { ReportID = "Permision.v2_选择分配角色", Params = ";", pageIndex = 1, perCount = 10 }));
     }
     Search.Add("角色编号");
     Search.Add("角色名称");
     InitReport("选择分配角色", "#", pageIndex, perCount, "&user_id=" + user_id);
     return(ReportView());
     //return View();
 }
 public ActionResult UserList(string ReportID, string Params, int pageIndex = 1, int perCount = 10)
 {
     if (!ReportID.HasValue())
     {
         return(RedirectToAction("UserList", new { ReportID = "Permision.v2_用户列表", Params = ";;", pageIndex = 1, perCount = 10 }));
     }
     Search.Add("用户编号");
     Search.Add("用户名");
     InitReport("用户列表", "/Permission/CRUD2/UserAdd", pageIndex, perCount);
     return(ReportView());
     //return View(UserList_M.ToViewModel(Params));
 }
Esempio n. 25
0
        public IActionResult BanButtonList(string ReportID, string Params, int pageIndex = 1, int perCount = 10)
        {
            if (!ReportID.HasValue())
            {
                return(RedirectToAction("BanButtonList", new { ReportID = "Permision.v2_按钮禁用", Params = Params, pageIndex = 1, perCount = 10 }));
            }
            Search.Add("按钮编号");

            InitReport("按钮禁用", "*r/Permission/admin2/ChooseBanButtonList?ReportID=Permision.v2_选择禁用按钮&Params=;&role_id=" + Params, "", true, "sys.core");
            return(ReportJson());
            //return View(BanButtonList_M.ToViewModel(role));
        }
Esempio n. 26
0
 public IActionResult ChooseRoleList(string ReportID, string Params, string user_id, int pageIndex = 1, int perCount = 10)
 {
     if (!ReportID.HasValue())
     {
         return(ChooseRoleList("Permision.v2_选择分配角色", ";", user_id, 1, 10));
     }
     Search.Add("角色编号");
     Search.Add("角色名称");
     InitReport("选择分配角色", "#", "&user_id=" + user_id, true, "sys.core");
     return(ReportJson());
     //return View();
 }
Esempio n. 27
0
 public IActionResult MenuList(string ReportID, string Params, int pageIndex = 1, int perCount = 10)
 {
     if (!ReportID.HasValue())
     {
         return(RedirectToAction("MenuList", new { ReportID = "Permision.v2_菜单列表", Params = "MRoot" + _FIXED_FLAG, pageIndex = 1, perCount = 10 }));
     }
     Search.Add("菜单编号");
     Search.Add("菜单名称");
     InitReport("菜单列表", "/core/permission/MenuAdd?father_id=" + Params.GetFixedParam(), "", true, "sys.core");
     return(ReportJson());
     //var fathers = _permission.FindFather(Params);
     //return View(MenuList_M.ToViewModel(fathers));
 }
Esempio n. 28
0
        public IActionResult ChooseMenuList(string ReportID, string Params, string role_id, int pageIndex = 1, int perCount = 10)
        {
            if (!ReportID.HasValue())
            {
                return(ChooseMenuList("Permision.v2_选择菜单", ";", role_id, 1, 10));
            }
            Search.Add("菜单编号");
            Search.Add("菜单名称");
            Search.Add("父菜单编号");
            InitReport("选择要分配给角色的菜单", "#", "&role_id=" + role_id, true, "sys.core");
            return(ReportJson());

            //return View();
        }
Esempio n. 29
0
 public IActionResult UserList(string ReportID, string Params, int pageIndex = 1, int perCount = 10)
 {
     if (!ReportID.HasValue())
     {
         return(RedirectToAction("UserList", new { ReportID = "Permision.v2_用户列表", Params = ";;", pageIndex = 1, perCount = 10 }));
     }
     Search.Add("用户编号");
     Search.Add("用户名");
     Search.Add("子系统");
     Search.Add("备注");
     InitReport("用户列表", "/core/permission/UserAdd", "", true, "sys.core");
     return(ReportJson());
     //return View(UserList_M.ToViewModel(Params));
 }
Esempio n. 30
0
        public IActionResult UserRoleList(string ReportID, string Params, string extParams, int pageIndex = 1, int perCount = 10)
        {
            if (!ReportID.HasValue())
            {
                return(RedirectToAction("UserRoleList", new { extParams = Params, ReportID = "Permision.v2_分配角色", Params = ";", pageIndex = 1, perCount = 10 }));
            }
            extParams = Params;
            Search.Add("用户编号");
            SetFixedParam(extParams, ";");

            InitReport("分配角色", "*r/Permission/Admin2/ChooseRoleList?ReportID=Permision.v2_选择分配角色&Params=;&user_id=" + extParams, "", true, "sys.core");
            return(ReportJson());
            //return View(UserRoleList_M.ToViewModel(user));
        }