|
|
|
|
SQL= SELECT No, Name, Alias, FK_MapData, PTable, IFNULL( IsReadonly,0) IsReadonly, IFNULL(IsShowTitle,1) IsShowTitle, IFNULL(IsView,1) IsView, IFNULL(IsInsert,1) IsInsert, IFNULL(IsDelete,1) IsDelete, IFNULL(IsUpdate,1) IsUpdate, IFNULL( IsEnableAthM,0) IsEnableAthM, IFNULL( IsImp,0) IsImp, IFNULL( IsCopyFirstData,0) IsCopyFirstData, InitDBAttrs, WhenOverSize, CASE WhenOverSize WHEN 0 THEN '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' WHEN 1 THEN '<27><><EFBFBD><EFBFBD>˳<EFBFBD><CBB3><EFBFBD><EFBFBD>' WHEN 2 THEN '<27><>ҳ<EFBFBD><D2B3>ʾ' WHEN NULL THEN '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' END "WhenOverSizeText", MobileShowModel, CASE MobileShowModel WHEN 0 THEN '<27><>ҳ<EFBFBD><D2B3><EFBFBD><EFBFBD>ʾģʽ' WHEN 1 THEN '<27>б<EFBFBD>ģʽ' WHEN NULL THEN '<27><>ҳ<EFBFBD><D2B3><EFBFBD><EFBFBD>ʾģʽ' END "MobileShowModelText", MobileShowField, ShowCols, GUID, ImpModel, CASE ImpModel WHEN 0 THEN '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' WHEN 1 THEN '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ģʽ<C4A3><CABD><EFBFBD><EFBFBD>' WHEN 2 THEN '<27><><EFBFBD><EFBFBD>xls<6C>ļ<EFBFBD>ģ<EFBFBD>浼<EFBFBD><E6B5BC>' WHEN NULL THEN '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' END "ImpModelText", ImpSQLInit, ImpSQLSearch, ImpSQLFullOneRow, ImpSQLNames, IFNULL(IsExp,1) IsExp, IFNULL( IsEnableLink,0) IsEnableLink, LinkLabel, ExcType, CASE ExcType WHEN 0 THEN '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' WHEN 1 THEN '<27><><EFBFBD><EFBFBD>' WHEN NULL THEN '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' END "ExcTypeText", LinkTarget, LinkUrl, IFNULL( IsEnableLink2,0) IsEnableLink2, LinkLabel2, ExcType2, CASE ExcType2 WHEN 0 THEN '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' WHEN 1 THEN '<27><><EFBFBD><EFBFBD>' WHEN NULL THEN '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' END "ExcType2Text", LinkTarget2, LinkUrl2, NumOfDtl, IFNULL( H ,350) AS H, ColAutoExp, Model, CASE Model WHEN 0 THEN '<27><>ͨ' WHEN 1 THEN '<27>̶<EFBFBD><CCB6><EFBFBD>' WHEN NULL THEN '<27><>ͨ' END "ModelText", IFNULL( IsEnableGroupField,0) IsEnableGroupField, IFNULL(IsShowSum,1) IsShowSum, IFNULL(IsShowIdx,1) IsShowIdx, FEBD, FilterSQLExp, OrderBySQLExp, IFNULL(IsCopyNDData,1) IsCopyNDData, FK_Node, IFNULL( IsHLDtl,0) IsHLDtl, SubThreadWorker, SubThreadWorkerT, IFNULL( IsEnablePass,0) IsEnablePass, DtlOpenType, CASE DtlOpenType WHEN 0 THEN '<27><><EFBFBD><EFBFBD>Ա' WHEN 1 THEN 'WorkID-<2D><><EFBFBD><EFBFBD>ID' WHEN 2 THEN 'FID-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ID' WHEN 3 THEN 'PWorkID-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>WorkID' WHEN NULL THEN 'WorkID-<2D><><EFBFBD><EFBFBD>ID' END "DtlOpenTypeText" FROM Sys_MapData WHERE (1=1) AND Sys_MapData.No=@No Exception=Unknown column 'Alias' in 'field list'
|