商誉值需要财务数据,请先下载数据:菜单--系统--专业财务数据--开始下载。
源码
{商誉值--------}
商誉数值:=FINVALUE(35)/100000000;{亿}
净资产:=FINANCE(19)/100000000,NODRAW;{亿}
雷区:商誉数值/净资产*100,COLORWHITE,NODRAW;{大于30为高风险,低于30为低风险}
DRAWRECTREL(220,580,0,510,IF(雷区<30,RGB(200,0,0),RGB(0,0,255)));
DRAWTEXT_FIX(1,0.01,0.52,0,'商誉雷区:'),COLOR00FFFF;
DRAWTEXT_FIX(1,0.09,0.52,0,STRCAT(STRCAT(CON2STR(商誉数值,2),'亿 '),IF(雷区>30,'●高风险','低风险'))),COLORWHITE;