File:company/exappointment.htm
Method:map.get(key,default)
map??get
类型不正确
company/company.xmls
...@tablebListt}
</ul>
</div>
</li>#];
@format1=[#<li value="{*TimeId}" class="{@a}"><div></div><span>{*Datetime}</span></li>#];
@queryc=$query(makeappointment,booth);
@queryb=$query(date,booth);
@queryt=$query(time,booth);
@queryCon=$query(content,exhibi);
@dbsubscribe=$query(subscribe,booth);
@CompanyId=$argv(0);
@ContentId=$argv(1);
@map=@queryc.dataMap(['select top 1 * from {#0} where CompanyId={@CompanyId} and ContentId={@ContentId} order by ContentId desc']);
@queryCon[Title]=@map[Title];
@queryConMap=@queryCon.dataMap(['select top 1 Logo from {#0} where {*Title =}']);
$if(@queryConMap){
@map[Pic]=@queryConMap[Logo];
}
$else{
@map[Pic]=$string;
}
@Exhibitime=$empty;
@EndExhibitime=$empty;
$if(@map[Exhibitime]){
@Exhibitime=$datetime(@map[Exhibitime]).toString(yyyy.MM.dd);
}
$if(@map[EndExhibitime]){
@EndExhibitime=$datetime(@map[EndExhibitime]).toString(MM.dd);
}
@time=$join(@Exhibitime,-,@EndExhibitime);
@map[time]=@time;
//日期
@queryb[ContentId]=...