|
|
SQL= SELECT Sys_MapData.No, Sys_MapData.FrmType, CASE Sys_MapData.FrmType WHEN 0 THEN '傻瓜表单' WHEN 1 THEN '自由表单' WHEN 8 THEN '开发者表单' WHEN NULL THEN '傻瓜表单' END "FrmTypeText", Sys_MapData.PTable, Sys_MapData.Name,IFNULL(Sys_MapData.FK_FormTree, '01') FK_FormTree, Sys_FormTree_FK_FormTree.Name AS FK_FormTreeText, Sys_MapData.RowOpenModel, CASE Sys_MapData.RowOpenModel WHEN 0 THEN '新窗口打开' WHEN 1 THEN '在本窗口打开' WHEN 2 THEN '弹出窗口打开,关闭后不刷新列表' WHEN 3 THEN '弹出窗口打开,关闭后刷新列表' WHEN NULL THEN '弹出窗口打开,关闭后不刷新列表' END "RowOpenModelText", Sys_MapData.SearchDictOpenType, CASE Sys_MapData.SearchDictOpenType WHEN 0 THEN 'MyDictFrameWork.htm 实体与实体相关功能编辑器' WHEN 1 THEN 'MyDict.htm 实体编辑器' WHEN 2 THEN 'MyBill.htm 单据编辑器' WHEN 9 THEN '自定义URL' WHEN NULL THEN 'MyDictFrameWork.htm 实体与实体相关功能编辑器' END "SearchDictOpenTypeText", IFNULL(Sys_MapData.IsSelectMore,1) IsSelectMore, Sys_MapData.UrlExt, Sys_MapData.PopHeight, Sys_MapData.PopWidth, Sys_MapData.TableCol, CASE Sys_MapData.TableCol WHEN 0 THEN '4列' WHEN 1 THEN '6列' WHEN 2 THEN '上下模式3列' WHEN NULL THEN '4列' END "TableColText", Sys_MapData.EntityEditModel, CASE Sys_MapData.EntityEditModel WHEN 0 THEN '表格' WHEN 1 THEN '行编辑' WHEN NULL THEN '表格' END "EntityEditModelText", Sys_MapData.EntityType, CASE Sys_MapData.EntityType WHEN 0 THEN '独立表单' WHEN 1 THEN '单据' WHEN 2 THEN '编号名称实体' WHEN 3 THEN '树结构实体' WHEN NULL THEN '独立表单' END "EntityTypeText", Sys_MapData.BillNoFormat, Sys_MapData.SortColumns, Sys_MapData.ColorSet, Sys_MapData.RowColorSet, Sys_MapData.FieldSet, Sys_MapData.ForamtFunc, Sys_MapData.Designer, Sys_MapData.DesignerContact, Sys_MapData.DesignerUnit, Sys_MapData.GUID, Sys_MapData.Ver, Sys_MapData.Note, Sys_MapData.Idx, Sys_MapData.AtPara, Sys_MapData.Tag0, Sys_MapData.Tag1, Sys_MapData.Tag2 FROM Sys_MapData LEFT JOIN Sys_FormTree AS Sys_FormTree_FK_FormTree ON Sys_MapData.FK_FormTree=Sys_FormTree_FK_FormTree.No WHERE (1=1) AND Sys_MapData.No=@No Exception=Unknown column 'Sys_MapData.IsSelectMore' in 'field list'
|