




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認(rèn)領(lǐng)
文檔簡介
1、用友TurboCRM打印模板制作講明V2.0變動記錄日期變更內(nèi)容操作人2009-6-25增加引用對象屬性的取值方法李鵬1、保存格式CRM6.0的打印模板文件保存格式為 *.xlsx 即Excel2007的默認(rèn)保存格式2、編寫格式打印模板能夠輸出CRM系統(tǒng)對象查看頁面的主表信息(包括表頭和子表)。表頭變量格式:#系統(tǒng)變量子表變量格式:#=系統(tǒng)變量如上圖所示,依照用戶實際需要配置模板的布局顯示,各字段所需變量可從數(shù)據(jù)庫中查詢,查詢語句見HYPERLINK l _4、查詢語句4、查詢語句。 在模板中,除了填寫系統(tǒng)變量獵取數(shù)據(jù)庫中信息以外,還能夠使用Excel自己的函數(shù)實現(xiàn)一些有用的功能,比如字段值的
2、運算,當(dāng)前日期等。在子表里,需要使用#=BEGIN 和 #=END 來括住子表信息,如圖示。#=BEGIN子表字段信息#=END3、引用對象的字段取值舉例講明:系統(tǒng)中創(chuàng)建了自定義對象“車輛治理”對象名是“car”,在訂單中創(chuàng)建了引用字段“車輛”字段名是“cheliang”并引用“車輛治理”對象。這時假如想在訂單的打印模板中打印車輛治理對象中的創(chuàng)建人屬性,變量寫法是:Contract.cheliang. CreatedBy講明:1、使用查詢語句先找出車輛治理對象的屬性名(本例中是“car”依照實際情況指定對象名)select * from dd_dict_str where org_id = 1
3、 and lang_id = 2 and not label like %ID and dict_name like Car.%本例中,找到的車輛創(chuàng)建人變量是 Car. CreatedBy2、使用查詢語句找出訂單中“車輛”的屬性名select * from dd_dict_str where org_id = 1 and not label like %ID and lang_id = 2 and dict_name like contract.%本例中,找到的名稱是 Contract.cheliang3、把兩次查詢得到的名稱拼在一起,如下Contract.cheliang. CreatedB
4、y 將此變量應(yīng)用到訂單的打印模板中就能夠打印出引用的車輛屬性。4、查詢語句由于系統(tǒng)會存在若干自定義字段,因此打印模板所需字段要在數(shù)據(jù)庫中查詢。-客戶字段select a.attr_name as 客戶字段,d.label as 中文標(biāo)簽 from dd_attribute ainner join dd_dict_str d on a.attr_name = d.dict_namewhere _id = 1 and _id = 1and d.lang_id = 2and a.attr_name like account.%and not a.attr_name like ac
5、count.%id-線索字段select a.attr_name as 線索字段,d.label as 中文標(biāo)簽 from dd_attribute ainner join dd_dict_str d on a.attr_name = d.dict_namewhere _id = 1 and _id = 1and d.lang_id = 2and a.attr_name like lead.%and not a.attr_name like lead.%id-聯(lián)系人字段select a.attr_name as 聯(lián)系人字段,d.label as 中文標(biāo)簽 from dd_a
6、ttribute ainner join dd_dict_str d on a.attr_name = d.dict_namewhere _id = 1 and _id = 1and d.lang_id = 2and a.attr_name like contact.%and not a.attr_name like contact.%id-市場活動字段select a.attr_name as 市場活動字段,d.label as 中文標(biāo)簽 from dd_attribute ainner join dd_dict_str d on a.attr_name = d.dict
7、_namewhere _id = 1 and _id = 1and d.lang_id = 2and a.attr_name like campaign.%and not a.attr_name like campaign.%id-競爭對手字段select a.attr_name as 競爭對手字段,d.label as 中文標(biāo)簽 from dd_attribute ainner join dd_dict_str d on a.attr_name = d.dict_namewhere _id = 1 and _id = 1and d.lang_id =
8、2and a.attr_name like Competitor.%and not a.attr_name like Competitor%.%id-競爭產(chǎn)品字段select a.attr_name as 競爭產(chǎn)品字段,d.label as 中文標(biāo)簽 from dd_attribute ainner join dd_dict_str d on a.attr_name = d.dict_namewhere _id = 1 and _id = 1and d.lang_id = 2and a.attr_name like CmptProd.%and not a.attr_name
9、 like CmptProd%.%id-競爭訂單字段select a.attr_name as 競爭訂單字段,d.label as 中文標(biāo)簽 from dd_attribute ainner join dd_dict_str d on a.attr_name = d.dict_namewhere _id = 1 and _id = 1and d.lang_id = 2and a.attr_name like CmptCntrt.%and not a.attr_name like CmptCntrt%.%id-競爭訂單子表字段select a.attr_name as 競爭訂
10、單子表字段,d.label as 中文標(biāo)簽 from dd_attribute ainner join dd_dict_str d on a.attr_name = d.dict_namewhere _id = 1 and _id = 1and d.lang_id = 2and a.attr_name like CmptCntrtitem.%and not a.attr_name like CmptCntrtitem%.%id-銷售機會字段select a.attr_name as 銷售機會字段,d.label as 中文標(biāo)簽 from dd_attribute ainne
11、r join dd_dict_str d on a.attr_name = d.dict_namewhere _id = 1 and _id = 1and d.lang_id = 2and a.attr_name like opportunity.%and not a.attr_name like opportunity%.%id-銷售機會子表字段select a.attr_name as 銷售機會子表字段,d.label as 中文標(biāo)簽 from dd_attribute ainner join dd_dict_str d on a.attr_name = d.dict_
12、namewhere _id = 1 and _id = 1and d.lang_id = 2and a.attr_name like opportunityitem.%and not a.attr_name like opportunityitem%.%id-報價單主表字段select a.attr_name as 報價單字段,d.label as 中文標(biāo)簽 from dd_attribute ainner join dd_dict_str d on a.attr_name = d.dict_namewhere _id = 1 and _id = 1an
13、d d.lang_id = 2and a.attr_name like quote.%and not a.attr_name like quote.%id-報價單子表字段select a.attr_name as 報價單子表字段,d.label as 中文標(biāo)簽 from dd_attribute ainner join dd_dict_str d on a.attr_name = d.dict_namewhere _id = 1 and _id = 1and d.lang_id = 2and a.attr_name like quoteitem.%and not a.att
14、r_name like quoteitem.%id-訂單主表字段select a.attr_name as 訂單字段,d.label as 中文標(biāo)簽 from dd_attribute ainner join dd_dict_str d on a.attr_name = d.dict_namewhere _id = 1 and _id = 1and d.lang_id = 2and a.attr_name like contract.%and not a.attr_name like contract.%id-訂單子表字段select a.attr_name as 訂單字段
15、,d.label as 中文標(biāo)簽 from dd_attribute ainner join dd_dict_str d on a.attr_name = d.dict_namewhere _id = 1 and _id = 1and d.lang_id = 2and a.attr_name like contractitem.%and not a.attr_name like contractitem.%id-預(yù)收字段select a.attr_name as 訂單字段,d.label as 中文標(biāo)簽 from dd_attribute ainner join dd_di
16、ct_str d on a.attr_name = d.dict_namewhere _id = 1 and _id = 1and d.lang_id = 2and a.attr_name like beforetake.%and not a.attr_name like beforetake.%id-收款字段select a.attr_name as 收款字段,d.label as 中文標(biāo)簽 from dd_attribute ainner join dd_dict_str d on a.attr_name = d.dict_namewhere _id = 1
17、and _id = 1and d.lang_id = 2and a.attr_name like payment.%and not a.attr_name like payment.%id-收款子表字段select a.attr_name as 收款子表字段,d.label as 中文標(biāo)簽 from dd_attribute ainner join dd_dict_str d on a.attr_name = d.dict_namewhere _id = 1 and _id = 1and d.lang_id = 2and a.attr_name like paym
18、entitem.%and not a.attr_name like paymentitem.%id-交付字段select a.attr_name as 交付字段,d.label as 中文標(biāo)簽 from dd_attribute ainner join dd_dict_str d on a.attr_name = d.dict_namewhere _id = 1 and _id = 1and d.lang_id = 2and a.attr_name like inventory.%and not a.attr_name like inventory.%id-交付子表字段se
19、lect a.attr_name as 交付子表字段,d.label as 中文標(biāo)簽 from dd_attribute ainner join dd_dict_str d on a.attr_name = d.dict_namewhere _id = 1 and _id = 1and d.lang_id = 2and a.attr_name like inventoryitem.%and not a.attr_name like inventoryitem.%id-發(fā)票字段select a.attr_name as 發(fā)票字段,d.label as 中文標(biāo)簽 from dd
20、_attribute ainner join dd_dict_str d on a.attr_name = d.dict_namewhere _id = 1 and _id = 1and d.lang_id = 2and a.attr_name like invoice.%and not a.attr_name like invoice.%id-發(fā)票子表字段select a.attr_name as 發(fā)票子表字段,d.label as 中文標(biāo)簽 from dd_attribute ainner join dd_dict_str d on a.attr_name = d.di
21、ct_namewhere _id = 1 and _id = 1and d.lang_id = 2and a.attr_name like invoiceitem.%and not a.attr_name like invoiceitem.%id-服務(wù)打算select a.attr_name as 服務(wù)打算字段,d.label as 中文標(biāo)簽 from dd_attribute ainner join dd_dict_str d on a.attr_name = d.dict_namewhere _id = 1 and _id = 1and d.lang
22、_id = 2and a.attr_name like serviceplan.%and not a.attr_name like serviceplan.%id-服務(wù)請求select a.attr_name as 服務(wù)請求字段,d.label as 中文標(biāo)簽 from dd_attribute ainner join dd_dict_str d on a.attr_name = d.dict_namewhere _id = 1 and _id = 1and d.lang_id = 2and a.attr_name like servicerequest.%and not a.attr_name like servicerequest.%i
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 郵政分揀設(shè)備性能測試與評價考核試卷
- 木片加工車間數(shù)字化管理考核試卷
- 學(xué)習(xí)數(shù)據(jù)庫開發(fā)中的樣例數(shù)據(jù)創(chuàng)建策略試題及答案
- 功耗優(yōu)化在嵌入式中的實踐試題及答案
- 數(shù)據(jù)庫設(shè)計中的關(guān)鍵考察點試題及答案
- 公路工程交通管理最佳實踐試題及答案
- 廠區(qū)小區(qū)住宿管理制度
- 宿舍物業(yè)維修管理制度
- 封閉現(xiàn)場紀(jì)律管理制度
- 計算機二級MySQL函數(shù)應(yīng)用試題及答案
- 建設(shè)工程法規(guī)考試題真題及答案
- 深圳市住房公積金管理中心員額人員招聘真題2024
- 2025年全國國家版圖知識競賽題庫及答案
- 《創(chuàng)傷失血性休克中國急診專家共識(2023)》解讀課件
- MOOC 數(shù)字邏輯電路實驗-東南大學(xué) 中國大學(xué)慕課答案
- 入團志愿書(2016版本)(可編輯打印標(biāo)準(zhǔn)A4) (1)
- 小升初個人簡歷表
- 監(jiān)控系統(tǒng)工程量清單2
- 財務(wù)部門內(nèi)部管理制度-1
- 模擬電子技術(shù)基本概念復(fù)習(xí)題及答案
- 福建省事業(yè)單位工作人員登記表
評論
0/150
提交評論