Beispiel #1
0
        /// <summary>
        /// 返回查询结果
        /// </summary>
        /// <param name="checkfunc"></param>
        /// <returns></returns>
        public ActionResult Select(string checkfunc)
        {
            var result = new CheckflowManage();

            result.checkfunc = checkfunc == "null" ? "" : checkfunc;
            this.GetCmp <Store>("storedata").LoadData(result.checkflows);
            return(this.Direct());
        }
Beispiel #2
0
        public ActionResult Delete(string selection)
        {
            CheckflowManage manage = new CheckflowManage();
            JArray          src    = JArray.Parse(selection);

            V_CH_Checkfuncflow[] roles = new V_CH_Checkfuncflow[src.Count];
            foreach (var item in src)
            {
                roles[src.IndexOf(item)] = JSON.Deserialize <V_CH_Checkfuncflow>(src[src.IndexOf(item)].ToString());
            }
            for (int i = 0; i < roles.Count(); i++)
            {
                db.P_CH_DeleteCheckFlows(roles[i].ID);
                manage.checkfunc = roles[i].CheckfuncID;
            }
            //更新前台数据
            this.GetCmp <Store>("storedata").LoadData(manage.checkflows.ToList());
            return(this.Direct());
        }
Beispiel #3
0
        public ActionResult Index()
        {
            var result = new CheckflowManage();

            return(View(result));
        }