ddd_tv_sandmail_search.srd 8.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. $PBExportHeader$ddd_tv_sandmail_search.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) AND (LOWER(mailname) LIKE LOWER(:arg_parm) OR
  18. LOWER(mailaddress) LIKE LOWER(:arg_parm))
  19. UNION
  20. SELECT 1 AS GroupID, 1 AS reltype, cusid AS relid, cuscode AS mailname, email AS mailaddress, name AS dscrp
  21. FROM u_cust
  22. WHERE (inuse = 1) AND (cusareaid IN (:arg_cusareaid)) AND (RTRIM(LTRIM(email)) <> '') AND (LOWER(cuscode) LIKE LOWER(:arg_parm) OR
  23. LOWER(email) LIKE LOWER(:arg_parm))
  24. UNION
  25. 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,
  26. u_cust_rep.email AS mailaddress, '' AS dscrp
  27. FROM u_cust AS u_cust_1 INNER JOIN
  28. u_cust_rep ON u_cust_1.cusid = u_cust_rep.cusid AND u_cust_1.cusid = u_cust_rep.cusid
  29. WHERE (u_cust_1.inuse = 1) AND (u_cust_1.cusareaid IN (:arg_cusareaid)) AND (RTRIM(LTRIM(u_cust_rep.email)) <> '') AND
  30. (LOWER(RTRIM(LTRIM(u_cust_1.cuscode)) + '-' + RTRIM(LTRIM(u_cust_rep.repname))) LIKE LOWER(:arg_parm) OR
  31. LOWER(u_cust_rep.email) LIKE LOWER(:arg_parm))
  32. UNION
  33. SELECT 2 AS GroupID, 2 AS reltype, sptid AS relid, sptcode AS mailname, email AS mailaddress, name AS dscrp
  34. FROM u_spt
  35. WHERE (inuse = 1) AND (spttypeid IN (:arg_spttypeid_arr)) AND (RTRIM(LTRIM(email)) <> '') AND (LOWER(sptcode) LIKE LOWER(:arg_parm) OR
  36. LOWER(email) LIKE LOWER(:arg_parm))
  37. UNION
  38. 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,
  39. u_spt_rep.email AS mailaddress, '' AS dscrp
  40. FROM u_spt AS u_spt_1 INNER JOIN
  41. u_spt_rep ON u_spt_1.sptid = u_spt_rep.sptid AND u_spt_1.sptid = u_spt_rep.sptid
  42. WHERE (u_spt_1.inuse = 1) AND (u_spt_1.spttypeid IN (:arg_spttypeid_arr)) AND (RTRIM(LTRIM(u_spt_rep.email)) <> '') AND
  43. (LOWER(RTRIM(LTRIM(u_spt_1.sptcode)) + '-' + RTRIM(LTRIM(u_spt_rep.repname))) LIKE LOWER(:arg_parm) OR
  44. LOWER(u_spt_rep.email) LIKE LOWER(:arg_parm))
  45. ORDER BY GroupID, mailname" arguments=(("arg_empid", number),("arg_cusareaid", numberlist),("arg_spttypeid_arr", numberlist),("arg_parm", string)) )
  46. 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" )
  47. 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" )
  48. 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" )
  49. 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" )
  50. 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" )
  51. 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" )
  52. 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" )
  53. 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" )
  54. 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" )
  55. 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" )
  56. 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" )
  57. 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" )
  58. htmltable(border="1" )
  59. htmlgen(clientevents="1" clientvalidation="1" clientcomputedfields="1" clientformatting="0" clientscriptable="0" generatejavascript="1" encodeselflinkargs="1" netscapelayers="0" )
  60. export.xml(headgroups="1" includewhitespace="0" metadatatype=0 savemetadata=0 )
  61. import.xml()
  62. export.pdf(method=0 distill.custompostscript="0" xslfop.print="0" )