Exemplo n.º 1
0
        private void Del()
        {
            string code = HttpContext.Current.Request["id"].ToString();
            FunctionFactory bll = new FunctionFactory();

            HttpContext.Current.Response.Write(bll.Del(code));
        }
Exemplo n.º 2
0
 private void GetDepTree()
 {
     string parentID = string.Empty;
     parentID = HttpContext.Current.Request["parentID"].ToString();
     FunctionFactory bll = new FunctionFactory();
     string json = bll.GetFunctionTree(parentID);
     HttpContext.Current.Response.Write(json);
 }
Exemplo n.º 3
0
        private void GetMagList()
        {
            string sql = "";
            int iStart = 0;
            try
            {
                iStart = int.Parse(HttpContext.Current.Request["pageIndex"].ToString()) * int.Parse(HttpContext.Current.Request["pageSize"].ToString());
            }
            catch { }
            int iLimit = 20;
            try
            {
                iLimit = int.Parse(HttpContext.Current.Request["pageSize"].ToString());
            }
            catch { }

            string funName = string.Empty;
            try
            {
                funName = HttpContext.Current.Request["funName"].ToString();
            }
            catch
            { }
            if (!string.IsNullOrEmpty(funName))
            {
                sql += "and funName like '%" + funName + "%' ";
            }
            string IsEnable = string.Empty;
            try
            {
                IsEnable = HttpContext.Current.Request["IsEnable"].ToString();
            }
            catch
            { }
            if (!string.IsNullOrEmpty(IsEnable))
            {
                sql += "and IsEnable = '" + IsEnable + "' ";
            }

            FunctionFactory bll = new FunctionFactory();
            HttpContext.Current.Response.Write(bll.GetMagList(sql, iStart, iLimit));
        }
Exemplo n.º 4
0
        private void SaveFunInfo()
        {
            string json = string.Empty;
            try
            {
                json = HttpContext.Current.Request["json"].ToString();
            }
            catch { }
            if (string.IsNullOrEmpty(json))
            {
                HttpContext.Current.Response.Write(JsonMessage.FailString("参数丢失!"));
                return;
            }

            Sys_Function table = JsonHelper.DeserializeData<Sys_Function>(json);
            FunctionFactory bll = new FunctionFactory();
            HttpContext.Current.Response.Write(bll.SaveFunInfo(table));
        }
Exemplo n.º 5
0
 private void GetParentFun4Eidt()
 {
     FunctionFactory bll = new FunctionFactory();
     string json = bll.GetParentFun4Eidt();
     HttpContext.Current.Response.Write(json);
 }
Exemplo n.º 6
0
        private void GetModules()
        {
            FunctionFactory bll = new FunctionFactory();

            string json = bll.GetModeules();
            HttpContext.Current.Response.Write(json);
        }