Ejemplo n.º 1
0
        public JsonResult DeleteTableData()
        {
            ResponseResult result = new ResponseResult();
            Logger         logger = LogManager.GetLogger("initlog");

            try
            {
                WXQ.BusinessCore.systemmanage.InitOp op = new WXQ.BusinessCore.systemmanage.InitOp(0);

                result.Data = op.DeleteTableData();
            }
            catch (Exception ex)
            {
                result.Data = ex.Message;

                logger.Info(ex.Message);
            }
            return(Json(result));
        }
Ejemplo n.º 2
0
        public JsonResult CreateRoleDepartment()
        {
            ResponseResult result = new ResponseResult();
            Logger         logger = LogManager.GetLogger("initlog");

            try
            {
                WXQ.BusinessCore.systemmanage.InitOp     op = new WXQ.BusinessCore.systemmanage.InitOp(0);
                System.Collections.Generic.List <string> lt = new System.Collections.Generic.List <string>();
                op.CreateRoleDepartment(ref lt);
                result.Data = lt;
            }
            catch (Exception ex)
            {
                result.Data = ex.Message;

                logger.Info(ex.Message);
            }
            return(Json(result));
        }