|
|
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 '不处理' WHEN 1 THEN '向下顺增行' WHEN 2 THEN '次页显示' WHEN NULL THEN '不处理' END "WhenOverSizeText", MobileShowModel, CASE MobileShowModel WHEN 0 THEN '新页面显示模式' WHEN 1 THEN '列表模式' WHEN NULL THEN '新页面显示模式' END "MobileShowModelText", MobileShowField, ShowCols, GUID, ImpModel, CASE ImpModel WHEN 0 THEN '不导入' WHEN 1 THEN '按配置模式导入' WHEN 2 THEN '按照xls文件模版导入' WHEN NULL THEN '不导入' END "ImpModelText", ImpSQLInit, ImpSQLSearch, ImpSQLFullOneRow, ImpSQLNames, IFNULL(IsExp,1) IsExp, IFNULL( IsEnableLink,0) IsEnableLink, LinkLabel, ExcType, CASE ExcType WHEN 0 THEN '超链接' WHEN 1 THEN '函数' WHEN NULL THEN '超链接' END "ExcTypeText", LinkTarget, LinkUrl, IFNULL( IsEnableLink2,0) IsEnableLink2, LinkLabel2, ExcType2, CASE ExcType2 WHEN 0 THEN '超链接' WHEN 1 THEN '函数' WHEN NULL THEN '超链接' END "ExcType2Text", LinkTarget2, LinkUrl2, NumOfDtl, IFNULL( H ,350) AS H, ColAutoExp, Model, CASE Model WHEN 0 THEN '普通' WHEN 1 THEN '固定行' WHEN NULL THEN '普通' 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 '操作员' WHEN 1 THEN 'WorkID-流程ID' WHEN 2 THEN 'FID-干流程ID' WHEN 3 THEN 'PWorkID-父流程WorkID' WHEN NULL THEN 'WorkID-流程ID' END "DtlOpenTypeText" FROM Sys_MapData WHERE (1=1) AND Sys_MapData.No=@No Exception=Unknown column 'Alias' in 'field list'
|