internal static bool FormatForBuildCreate(Format_DTO_Read dto) { if (dto.FrmDirection != Format_DTO_Read.FormatDirection.UPLOAD.ToString()) { return(false); } if (dto.FrmType != EnumInfo.GetEnumDescription(Format_DTO_Read.FormatType.JSONstat) && dto.FrmType != EnumInfo.GetEnumDescription(Format_DTO_Read.FormatType.PX)) { return(false); } return(true); }
internal static bool FormatForReadPreDataset(Format_DTO_Read dto) { if (dto.FrmDirection != Format_DTO_Read.FormatDirection.DOWNLOAD.ToString()) { return(false); } if (dto.FrmType != EnumInfo.GetEnumDescription(Format_DTO_Read.FormatType.JSONstat) && dto.FrmType != EnumInfo.GetEnumDescription(Format_DTO_Read.FormatType.PX) && dto.FrmType != EnumInfo.GetEnumDescription(Format_DTO_Read.FormatType.CSV) && dto.FrmType != EnumInfo.GetEnumDescription(Format_DTO_Read.FormatType.XLSX)) { return(false); } return(true); }
internal static bool FormatForReadMetadata(Format_DTO_Read dto) { if (dto.FrmDirection != Format_DTO_Read.FormatDirection.DOWNLOAD.ToString()) { return(false); } if (dto.FrmType != EnumInfo.GetEnumDescription(Format_DTO_Read.FormatType.JSONstat)) { return(false); } return(true); }
internal static bool FormatForReadDataset(Format_DTO_Read dto) { if (dto.FrmDirection != Format_DTO_Read.FormatDirection.DOWNLOAD.ToString()) { return(false); } if (dto.FrmType != EnumInfo.GetEnumDescription(Format_DTO_Read.FormatType.JSONstat) && dto.FrmType != EnumInfo.GetEnumDescription(Format_DTO_Read.FormatType.PX) && dto.FrmType != EnumInfo.GetEnumDescription(Format_DTO_Read.FormatType.CSV) && dto.FrmType != EnumInfo.GetEnumDescription(Format_DTO_Read.FormatType.XLSX) && dto.FrmType != EnumInfo.GetEnumDescription(Format_DTO_Read.FormatType.SDMX)) { return(false); } bool exists; using (Format_BSO bso = new Format_BSO(new ADO("defaultConnection"))) { exists = bso.Exists(dto); } return(exists); }