多類別基礎資料的使用方法
1 增加控件:多類別基礎資料、多類別基礎資料列表;
2 設置屬性參數;
3 然後在數據庫中新建兩個視圖:v_Fjczlbill、v_Fjczlbill_L
4 兩個試圖的sql語句分別為:
v_Fjczlbill:
SELECT FID fitemid, 'MMC_IntegralRule' fformid, FNUMBER fnumber, FID fmasterid, 0 fcreateorgid, 0 fuseorgid,
FDOCUMENTSTATUS fdocumentstatus, FFORBIDSTATUS fforbidstatus, FCREATORID fcreatorid,
FMODIFIERID fmodifierid, FCREATEDATE fcreatedate, FMODIFYDATE fmodifydate
FROM T_MMC_INTEGRALRULE
UNION
SELECT FID fitemid, 'MMC_IntegralEcgRule' fformid, FNUMBER fnumber, FID fmasterid, 0 fcreateorgid, 0 fuseorgid,
FDOCUMENTSTATUS fdocumentstatus, FFORBIDSTATUS fforbidstatus, FCREATORID fcreatorid,
FMODIFIERID fmodifierid, FCREATEDATE fcreatedate, FMODIFYDATE fmodifydate
FROM T_MMC_INTEGRALECGRULE
v_Fjczlbill_L:
SELECT FPKID, FID fitemid, FLOCALEID, FNAME fname, ' ' fdescription
FROM T_MMC_INTEGRALRULE_L
UNION
SELECT FPKID, FID fitemid, FLOCALEID, FNAME fname, ' ' fdescription
FROM T_MMC_INTEGRALECGRULE_L
多類別基礎資料的使用方法