示例#1
0
        public void ExportScheme(string code)
        {
            NWFSchemeInfoEntity schemeInfoEntity = nWFSchemeIBLL.GetInfoEntityByCode(code);

            if (schemeInfoEntity != null)
            {
                NWFSchemeEntity schemeEntity      = nWFSchemeIBLL.GetSchemeEntity(schemeInfoEntity.F_SchemeId);
                var             nWFSchemeAuthList = nWFSchemeIBLL.GetAuthList(schemeInfoEntity.F_Id);
                var             jsonData          = new
                {
                    info     = schemeInfoEntity,
                    scheme   = schemeEntity,
                    authList = nWFSchemeAuthList
                };

                string data = jsonData.ToJson();

                FileDownHelper.DownLoadString(data, schemeInfoEntity.F_Name + ".lrscheme");
            }
        }