ó qeQc@síddlmZmZmZmZddlmZddlmZddl m Z m Z ddl Z edZ edZeƒZdZdZd „Zd „Zdd lmZmZdd lmZmZd „Zd„Zdd„ZdS(iÿÿÿÿ(tSimpleDocTemplatet ParagraphtSpacertBaseDocTemplate(tgetSampleStyleSheet(tdefaultPageSize(tinchtcmNiitcCs=tddƒ}d}d||dƒ|0j?|0j@g g}-|.d)}.|/|0j>}/qW|-dddddddd:t4d9j=|/ƒƒddg g}-||-d;ˆd<ˆd=ˆd>ˆd>ˆd?ˆd=ˆd?ˆd=ˆd@ˆdˆg dAd)ƒ}2d*|2_A|dBdRdSdCfdDdTdUdE|!jBfdFdVdWdE|!jBfd'dXdYdHfd'dZd[dHfd'd\d]dHfgƒ}3|2j5|3ƒ|(j3|2ƒ|t4| ƒ|)dƒ} |(j3| ƒ|(j3|d)d)ˆƒƒddId| dgddddJdgdddddgd| d|dgdddddgg}4||4d+ˆdCˆd+ˆdCˆd+ˆgdAd)ƒ}2|2j5|d'd^d_dHfd'd`dadHfdKdbdcd)|!jBfdKddded)|!jBfgƒƒ|(j3|2ƒ|%jC|(dL|&dM|'ƒdS(fNtpkt resguardo_ids%d-%m-%YséRecibo para uso, los bienes descritos y de hago responsable de su custodia y de dar aviso en 5 dias habiles a mi jefe inmediato al Departamento de control de inventario en caso de extravio, cambio de adscripcion o baja de los mismos.Riÿÿÿÿ(tcanvas(t TA_JUSTIFYtTA_RIGHTtTA_LEFTt TA_CENTER(tA4tlettert landscape(RRRtImagetTablet TableStyle(RtParagraphStyle(tmmRR(tcolors(tStringIO(t XPreformatted(tsettingstpagesizet rightMarginit leftMargint topMargint bottomMargincsŽ|jƒ|jdddddƒ|jddƒ|jtdtd tƒ|jd d ƒ|jd ˆd ˆd|jƒ|j ƒdS(Nsstatic/imagenes/sa_logo.jpgii+i‚i8s Times-Boldig@ils Times-Romani igÐ?s Pagina %d( t saveStatet drawImagetsetFonttdrawCentredStringt PAGE_WIDTHt PAGE_HEIGHTtTitlet drawStringtpaget restoreState(R%R(RR(s)C:\pyProyectos\bienes\resguardos\views.pyt myFirstPageXs "csi|jƒ|jdddddƒ|jddƒ|jdˆd ˆd |jtfƒ|jƒdS( Nsstatic/imagenes/sa_logo.jpgii+i‚i8s Times-Romani igÐ?s Page %d %s(R;R<R=RBRCtpageinfoRD(R%R(RR(s)C:\pyProyectos\bienes\resguardos\views.pyt myLaterPagesas  (tnamet Justificadot alignmenttCentradot Helveticai isLRESGUARDO INDIVIDUAL DE MOVILIARIO, EQUIPO DE OFICINA Y OTROS BIENES MUEBLESs Folio: sRss Dependencia: sUnidad: tALIGNiitLEFTitRIGHTt sNum.t DescripciontMarcatModelotSerietFacturat InventariotFechatImportetEstadot Observacioness ${:15,.2f}sTotal:gÍÌÌÌÌÌì?iig @gø?gš™™™™™ñ?t repeatRowstFONTSIZEitBOXgà?tGRIDi tCENTERt ResponsablesVo. Bo.t LINEABOVEt onFirstPaget onLaterPages(ii(ii(ii(ii(ii(iÿÿÿÿiÿÿÿÿ(ii(iÿÿÿÿiÿÿÿÿ(ii(iÿÿÿÿiÿÿÿÿ(ii(i i(ii(iiÿÿÿÿ(ii(i iÿÿÿÿ(ii(iiÿÿÿÿ(ii(iiÿÿÿÿ(ii(ii(ii(ii(DRtobjectstgetRtalltfiltertfoliotvo_botpersonatunidadt dependenciatnombret responsabletfecha_registrotstrftimetreportlab.pdfgenR%treportlab.lib.enumsR&R'R(R)treportlab.lib.pagesizesR*R+R,treportlab.platypusRRRR-R.R/treportlab.lib.stylesRR0treportlab.lib.unitsR1RRt reportlab.libR2t cStringIOR3R4t django.confR5taddRJtfontNametfontSizeRtstrtsetStylet fecha_facturat descripciontmarcatmodelotserietfacturat inventariotformattimportetestadot observacionesthAligntblacktbuild(5RRR tdatostdetalleRhRlRktdependenciaResponsabletunidadResponsabletfechatlegalRntresponsablevoboPuestoRitresponsablevoboR%R&R'R(R)R*R+R,RRRR-R.R/RR0R1R2R3R4R5RRERGt OutlinePDFRRKt subEncabezadotttdatatnumttotaltlineatlfechattableThatSplitsOverPagesttblStylet responsables((RRs)C:\pyProyectos\bienes\resguardos\views.pyR 4s®    ".        !!   *  R =b    8  i‡cCsbddl}|jddƒ}|jdƒ}d}x(|D] }||j||ƒd7}q:W|S(s• since reportlab doesn't provide a way to keep the
 of what ever
        is entered in the html textarea. This is manual way to text wrap. 
    iÿÿÿÿNs
Rs
(ttextwraptreplacetsplittfill(tvaluetendwidthR t	new_valuet
new_valuestresulttline((s)C:\pyProyectos\bienes\resguardos\views.pytpreformat_html_textareaØs
(RtRRRRRuRtreportlab.rl_configRRvRRtlocaleR@R?RRARFRRtdjango.httpRRtresguardos.modelsRRR"R Rª(((s)C:\pyProyectos\bienes\resguardos\views.pyts "

				
	
	¤