ddd_tv_sandmail.srd 7.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. $PBExportHeader$ddd_tv_sandmail.srd
  2. release 9;
  3. datawindow(units=0 timer_interval=0 color=1073741824 processing=1 HTMLDW=no print.printername="" print.documentname="" print.orientation = 0 print.margin.left = 110 print.margin.right = 110 print.margin.top = 96 print.margin.bottom = 96 print.paper.source = 0 print.paper.size = 0 print.canusedefaultprinter=yes print.prompt=no print.buttons=no print.preview.buttons=no print.cliptext=no print.overrideprintjob=no print.collate=yes hidegrayline=no grid.lines=0 )
  4. header(height=92 color="536870912" )
  5. summary(height=0 color="536870912" )
  6. footer(height=0 color="536870912" )
  7. detail(height=104 color="536870912" )
  8. table(column=(type=long updatewhereclause=yes name=groupid dbname="GroupID" )
  9. column=(type=long updatewhereclause=yes name=reltype dbname="reltype" )
  10. column=(type=long updatewhereclause=yes name=relid dbname="u_email_rep.relid" )
  11. column=(type=char(255) updatewhereclause=yes name=mailname dbname="u_email_rep.mailname" )
  12. column=(type=char(255) updatewhereclause=yes name=mailaddress dbname="u_email_rep.mailaddress" )
  13. column=(type=char(50) updatewhereclause=yes name=dscrp dbname="dscrp" )
  14. retrieve="SELECT 0 AS GroupID, 0 AS reltype, repID AS relid, mailname, mailaddress, '' as dscrp
  15. FROM u_email_rep
  16. WHERE (empid = :arg_empid) OR
  17. (empid = 0) AND (reptype = 1)
  18. UNION
  19. SELECT 1 AS GroupID, 1 AS reltype, cusid AS relid, cuscode AS mailname, email AS mailaddress , name as dscrp
  20. FROM u_cust
  21. WHERE (inuse = 1) AND (cusareaid IN (:arg_cusareaid)) AND (RTRIM(LTRIM(email)) <> '')
  22. UNION
  23. SELECT 1 AS GroupID, 4 AS reltype, u_cust_rep.repid AS relid, RTRIM(LTRIM(u_cust_1.cuscode)) + '-' + RTRIM(LTRIM(u_cust_rep.repname)) AS mailname,
  24. u_cust_rep.email AS mailaddress, '' as dscrp
  25. FROM u_cust AS u_cust_1 INNER JOIN
  26. u_cust_rep ON u_cust_1.cusid = u_cust_rep.cusid AND u_cust_1.cusid = u_cust_rep.cusid
  27. WHERE (u_cust_1.inuse = 1) AND (u_cust_1.cusareaid IN (:arg_cusareaid)) AND (RTRIM(LTRIM(u_cust_rep.email)) <> '')
  28. UNION
  29. SELECT 2 AS GroupID, 2 AS reltype, sptid AS relid, sptcode AS mailname, email AS mailaddress, name as dscrp
  30. FROM u_spt
  31. WHERE (inuse = 1) AND (spttypeid IN (:arg_spttypeid_arr)) AND (RTRIM(LTRIM(email)) <> '')
  32. UNION
  33. SELECT 2 AS GroupID, 5 AS reltype, u_spt_rep.repid AS relid, RTRIM(LTRIM(u_spt_1.sptcode)) + '-' + RTRIM(LTRIM(u_spt_rep.repname)) AS mailname,
  34. u_spt_rep.email AS mailaddress, '' as dscrp
  35. FROM u_spt AS u_spt_1 INNER JOIN
  36. u_spt_rep ON u_spt_1.sptid = u_spt_rep.sptid AND u_spt_1.sptid = u_spt_rep.sptid
  37. WHERE (u_spt_1.inuse = 1) AND (u_spt_1.spttypeid IN (:arg_spttypeid_arr)) AND (RTRIM(LTRIM(u_spt_rep.email)) <> '')
  38. ORDER BY GroupID, mailname" arguments=(("arg_empid", number),("arg_cusareaid", numberlist),("arg_spttypeid_arr", numberlist)) )
  39. text(band=header alignment="2" text="Groupid" border="0" color="33554432" x="9" y="8" height="76" width="384" html.valueishtml="0" name=groupid_t visible="1" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
  40. text(band=header alignment="2" text="Reltype" border="0" color="33554432" x="402" y="8" height="76" width="384" html.valueishtml="0" name=reltype_t visible="1" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
  41. text(band=header alignment="2" text="Relid" border="0" color="33554432" x="795" y="8" height="76" width="384" html.valueishtml="0" name=relid_t visible="1" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
  42. text(band=header alignment="2" text="Mailname" border="0" color="33554432" x="1189" y="8" height="76" width="1632" html.valueishtml="0" name=mailname_t visible="1" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
  43. text(band=header alignment="2" text="Mailaddress" border="0" color="33554432" x="2830" y="8" height="76" width="3232" html.valueishtml="0" name=mailaddress_t visible="1" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
  44. text(band=header alignment="0" text="Dscrp" border="0" color="33554432" x="6071" y="4" height="76" width="1591" html.valueishtml="0" name=dscrp_t visible="1" font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="1073741824" )
  45. column(band=detail id=1 alignment="1" tabsequence=32766 border="0" color="33554432" x="9" y="8" height="88" width="384" format="[general]" html.valueishtml="0" name=groupid visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
  46. column(band=detail id=2 alignment="1" tabsequence=32766 border="0" color="33554432" x="402" y="8" height="88" width="384" format="[general]" html.valueishtml="0" name=reltype visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
  47. column(band=detail id=3 alignment="1" tabsequence=32766 border="0" color="33554432" x="795" y="8" height="88" width="384" format="[general]" html.valueishtml="0" name=relid visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
  48. column(band=detail id=4 alignment="0" tabsequence=32766 border="0" color="33554432" x="1189" y="8" height="88" width="1632" format="[general]" html.valueishtml="0" name=mailname visible="1" edit.limit=50 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
  49. column(band=detail id=5 alignment="0" tabsequence=32766 border="0" color="33554432" x="2830" y="8" height="88" width="3232" format="[general]" html.valueishtml="0" name=mailaddress visible="1" edit.limit=100 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
  50. column(band=detail id=6 alignment="0" tabsequence=32766 border="0" color="33554432" x="6071" y="0" height="76" width="1591" format="[general]" html.valueishtml="0" name=dscrp visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=no edit.imemode=0 font.face="Arial" font.height="-12" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
  51. htmltable(border="1" )
  52. htmlgen(clientevents="1" clientvalidation="1" clientcomputedfields="1" clientformatting="0" clientscriptable="0" generatejavascript="1" encodeselflinkargs="1" netscapelayers="0" )
  53. export.xml(headgroups="1" includewhitespace="0" metadatatype=0 savemetadata=0 )
  54. import.xml()
  55. export.pdf(method=0 distill.custompostscript="0" xslfop.print="0" )