zoukankan      html  css  js  c++  java
  • UCML移动端垂直分类控件

    1、注意事项:

    垂直分类查询控件需要包含父字段的树结构数据集,而且必须有根节点。如有需要隐藏首层节点,

    构造数据库视图的时候,判断如果是二级节点,则把PID设置成

    00000000-0000-0000-0000-000000000000
    CREATE view [dbo].[yq_productfiles]
    
    as
        select
        case when len(levelcode)=20 then
        (select cname from ProductClassInfo where ProductClassInfoOID=(select ProductClassInfo_FK from ProductClassInfo where ProductClassInfoOID=(select ProductClassInfo_FK from ProductClassInfo where ProductClassInfoOID =info.ProductClassInfo_FK) )) 
        when len(levelcode)=15 then
        (select cname from ProductClassInfo where ProductClassInfoOID=(select ProductClassInfo_FK from ProductClassInfo where ProductClassInfoOID=info.ProductClassInfo_FK)) 
        when len(levelcode)=10 then
        (select cname from ProductClassInfo where ProductClassInfoOID=info.ProductClassInfo_FK) end
        as fenchang,
        ProductClassInfoOID, ccode, cname, ddate, cmaker, levelcode, picutre, ProductCoding, case when len(levelcode)=10 then '00000000-0000-0000-0000-000000000000' else ProductClassInfo_FK end as 'ProductClassInfo_FK' from ProductClassInfo info where len(levelcode) <>5
    
    GO
  • 相关阅读:
    es6之Promise
    es6之Proxy,Reflect
    js之对象
    Set,Map与Array,Object对比
    es6之数据结构 set,WeakSet,mapWeakMap
    es6之Symbol
    flex布局
    盒子模型,top和margin-top
    POJ1274-The Perfect Stall
    Codeforces 671D. Roads in Yusland 题解
  • 原文地址:https://www.cnblogs.com/zhipeng007/p/9540491.html
Copyright © 2011-2022 走看看