【正文】
.%id39。Competitor%.%id39。contact.%id39。account.%id39。%ID39。 在模板中,除了填寫系統(tǒng)變量獲取數(shù)據(jù)庫中信息以外,還可以使用Excel自己的函數(shù)實現(xiàn)一些實用的功能,比如字段值的運算,當(dāng)前日期等。這時如果想在訂單的打印模板中打印車輛管理對象中的創(chuàng)建人屬性,變量寫法是:. CreatedBy說明:使用查詢語句先找出車輛管理對象的屬性名(本例中是“car”根據(jù)實際情況指定對象名)select * from dd_dict_str where org_id = 1 and lang_id = 2 and not label like 39。本例中,找到的名稱是 把兩次查詢得到的名稱拼在一起,如下. CreatedBy 將此變量應(yīng)用到訂單的打印模板中就可以打印出引用的車輛屬性。and not like 39。and not like 39。and not like 39。and not like 39。and not like 39。and not like 39。and not like 39。and not like 39。and not like 39。and not like 39。and not like 39。and not like 39。and not like 39。and not like 39。and not like 39。and not like 39。and not like 39。and not like 39。and not like 39。and not like 39。and not like 39。and not like 39。and not like 39。and not like 39。and not like 39。and not like 39。本例中,找到的車輛創(chuàng)建人變量是 Car. CreatedBy使用查詢語句找出訂單中“車輛”的屬性名select * from dd_dict_str where org_id = 1 and not label like 39。表頭變量格式:{系統(tǒng)變量}子表變量格式:={系統(tǒng)變量}如上圖所示,根據(jù)用戶實際需要配置模板的布局顯示,各字段所需變量可從數(shù)據(jù)庫中查詢,查詢語句見查詢語句。%ID39。查詢語句由于系統(tǒng)會存在若干自定義字段,因此打印模板所需字段要在數(shù)據(jù)庫中查詢。lead.%id39。campaign.%id39。CmptProd%.%id39。Cmpt