PDF :: ReportWriter :: DataSource.

PDF :: ReportWriter :: DataSource´Â (MMH) µ¥ÀÌÅÍ ¼Ò½º¸¦ ³ªÅ¸³»´Â PDF :: ReportWriter Ŭ·¡½ºÀÔ´Ï´Ù.
Áö±Ý ´Ù¿î·Îµå

PDF :: ReportWriter :: DataSource. ¼øÀ§ ¹× ¿ä¾à

±¤°í

  • Rating:
  • ƯÇã:
  • Perl Artistic License
  • °¡°Ý:
  • FREE
  • °Ô½ÃÀÚ À̸§:
  • Cosimo Streppone
  • °Ô½ÃÀÚ À¥»çÀÌÆ®:
  • http://search.cpan.org/~dkasak/PDF-ReportWriter-1.5/lib/PDF/ReportWriter/Datasource.pm

PDF :: ReportWriter :: DataSource. ű×


PDF :: ReportWriter :: DataSource. ¼³¸í

PDF :: ReportWriter :: DataSource´Â (MMH) µ¥ÀÌÅÍ ¼Ò½º¸¦ ³ªÅ¸³»´Â PDF :: ReportWriter Ŭ·¡½ºÀÔ´Ï´Ù. PDF :: ReportWriter :: DataSource´Â (MMH) µ¥ÀÌÅÍ ¼Ò½º¸¦ ³ªÅ¸³»´Â PDF :: ReportWriter Ŭ·¡½ºÀÔ´Ï´Ù. ¸ðµç DataSource Ŭ·¡½º´Â º¸°í¼­¿¡¼­ »ç¿ëÇÒ µ¥ÀÌÅ͸¦ ÃßÃâÇϱâ À§ÇØ ÇÊ¿äÇÑ ¸ðµç Á¤º¸¸¦ Á¦°øÇÕ´Ï´Ù. ÀÎÅÍÆäÀ̽º´Â ºÐ¸íÈ÷ ¼­ºê Ŭ·¡½º·Î °úºÎÇÏ µÉ ¼ö ÀÖÀ¸¹Ç·Î ¿©·¯ °¡Áö ¹æ¹ýÀ¸·Î ±¸¼ºµË´Ï´Ù. °¡Àå Áß¿äÇÑ °ÍÀº get_data () ¸Þ¼­µåÀÔ´Ï´Ù.ÀÌ Å¬·¡½º´Â °úºÎÇÏ°¡ °É¸®Áö ¾Ê¾Æ¾ßÇÏ´Â ¹æ½ÄÀ¸·Î ¼³°èµÇ¾úÀ¸¹Ç·Î ¿ÏÀüÈ÷ ´Ù¸¥ ¹æ½ÄÀ¸·Î º¸°í¼­¿¡ ´ëÇÑ µ¥ÀÌÅ͸¦ Á¦°øÇÏ´Â ´ëü Ŭ·¡½º¸¦ Á¦°øÇÕ´Ï´Ù.ÀÌ °³³äÀÇ ¿¹´Â PDF :: Report :: DataSource :: dbi class.usageThere´Â ÇÊ¿äÇÒ ¶§ PDF :: ReportWriter :: Report °´Ã¼°¡ ÀÚµ¿À¸·Î·ÎµåÇÏ°í ÀÚµ¿À¸·Î È£ÃâÇϱ⠶§¹®¿¡ÀÌ Å¬·¡½º¿¡ ´ëÇÑ »ç¿ëÀÌ ¾ø½À´Ï´Ù. »ç¿ë¹ýÀÇ ¿¹¸¦ ½ÇÁ¦·Î ¿øÇÏ´Â °æ¿ì ´ÙÀ½Àº ´ÙÀ½°ú °°½À´Ï´Ù. # dataSource °³Ã¼ ¸¸µé±â My $ my_ds = pdf :: reportwriter :: datasource-> new ({type => dbi ', dsn => dbi : pg : dbname) = PDFRWTEST ', USER =>'Postgres ', Pass =>'Postgres ',}); $ my_ds-> get_data (); methodsNew (¿É¼Ç) »õ PDF :: ReportWriter :: DataSource °´Ã¼¸¦ ÀÛ¼ºÇÕ´Ï´Ù. ¿É¼ÇÀº Çؽà ÂüÁ¶ÀÔ´Ï´Ù. ±×°ÍÀÇ À¯ÀÏÇÑ Çʼö Å°´Â ¿Ã¹Ù¸¥ ÇÏÀ§ Ŭ·¡½º À̸§ (¿¹ : dbi)À» ½Äº°ÇÏ´Â À¯ÇüÀÔ´Ï´Ù. ¸ðµç ÇÏÀ§ Ŭ·¡½º´Â ¸ðµç °ÍÀ» ¿¹»ó´ë·Î ÀÛ¾÷ ÇÒ ¼ö ÀÖµµ·Ï Àü´Þ ÇؾßÇÏ´Â ÀÚü ¿É¼ÇÀ» °¡Áú ¼ö ÀÖ½À´Ï´Ù. DataSource Ŭ·¡½ºÀÇ ÀϹÝÀûÀÎ »ç¿ëÀº new () »ý¼ºÀÚ°¡ ¾Æ´Ï¶ó XML º¸°í¼­ Á¤ÀǸ¦ ÅëÇØ ÀÌ·ç¾îÁöÁö ¾Ê½À´Ï´Ù. µ¥ÀÌÅÍ ¼½¼Ç¿¡¼­ XML º¸°í¼­¿¡¼­ ´ÙÀ½ ÄÚµå Á¶°¢À» Æ÷ÇÔÇÏ¿© ÇÊ¿äÇÑ °´Ã¼¸¦ ÀÚµ¿À¸·Î »ý¼ºÇÏ°í ´ÙÀ½°ú °°ÀÌ »ç¿ëÇÕ´Ï´Ù. ... ... dbi dbi : pg : dbname = °èÁ¤ postgres postgres * °í°´ÀÇ ¼±Åà * id =? ChopBlanks> 1 ... ... get_data ()¸¦ »ç¿ëÇؾßÇÕ´Ï´Ù. ¸ðµç ½ÇÁ¦ µ¥ÀÌÅÍ ·¹Äڵ尡 º¸°í¼­¿¡ ´ëÇÑ ±â·ÏÀ»ÇÕ´Ï´Ù. ´ç½ÅÀº ´ç½ÅÀÌ ¿øÇÏ´Â ¹«¾ùÀ̵ç ÇÒ ¼ö ÀÖ½À´Ï´Ù. ÀϹÝÀûÀÎ »ç¿ëÀº DBI µ¥ÀÌÅÍ ¼Ò½º¿¡ ¿¬°áÇÏ°í SELECTALL_ARRAYREF ()ÀÇ °á°ú¸¦ ¹ÝȯÇÏ´Â °ÍÀÔ´Ï´Ù. PDF :: ReportWriter :: DataSource :: DBI´Â ÀÌ°ÍÀ» ¼öÇàÇÏ´Â ½ÇÁ¦ Äڵ忡 ´ëÇؼ­´ÂÀ̸¦ È®ÀÎÇϽʽÿÀ. ±âº» ±¸ÇöÀº ·¹Äڵ尡 ¹ÝȯµÇÁö ¾Ê½À´Ï´Ù. º¸°í¼­¿¡ DataSource°¡ Á¤ÀǵǾî ÀÖÁö ¾ÊÀ¸¸é render_report () ¸Þ¼­µå¿¡ ¼±ÅÃÀû Data_Records ¸Å°³ º¯¼ö¸¦ Á÷Á¢ Á¦°ø ÇÒ ¼ö ÀÖ½À´Ï´Ù. PDF :: ReportWriter :: Render_Report ()¸¦ ÂüÁ¶ÇϽʽÿÀ. process_data () DataSource°¡ ¹Ýȯ ÇÑ ¿ø½Ã µ¥ÀÌÅ͸¦ Ãß°¡·Î ó¸®ÇÏ·Á¸é Get_Data ()°¡ ÀÚµ¿À¸·Î È£ÃâµË´Ï´Ù. get_data () ¸Þ¼Òµå¸¦ ´Ù½Ã ÀÛ¼ºÇÏÁö ¾Ê°í Ŭ·¡½º¸¦ ½±°Ô °úºÎÇϽÃÅ°´Â °ÍÀ» Çã¿ëÇÏ´Â °ÍÀÌ Àǹ̰¡ ÀÖ½À´Ï´Ù. ¿¹ : ±âº» Database.Default ±¸Çö¿¡¼­ Áö¿øµÇÁö ¾Ê´Â »ç¿ëÀÚ Á¤ÀÇ Çü½ÄÀ¸·Î ¸ðµç ³¯Â¥¸¦ »ç¿ëÀÚ Á¤ÀÇ Çü½ÄÀ¸·Î º¯È¯ÇÏ´Â °ÍÀº Nothing.RePlace_Input_Values ()¸¦ »ç¿ëÇÏ¿© ÀÚ¸® Ç¥½ÃÀÚ¸¦ ¹Ù²Ü ¼ö ÀÖ½À´Ï´Ù. PDF :: ReportWriter :: DataSource :: DBI¸¦ È®ÀÎÇϽʽÿÀ. ¿ä±¸ »çÇ× : ¡¤ Perl.


PDF :: ReportWriter :: DataSource. °ü·Ã ¼ÒÇÁÆ®¿þ¾î