s`Zc@sddklZddklZddkTdeifdYZdeifdYZdeifd YZd eifd YZ d eifd YZ deifdYZ deifdYZ deifdYZ deifdYZdeifdYZdZdZdeifdYZdeifdYZdeifdYZd Zd!eifd"YZd#S($i(tmodels(tUser(t*t DependenciacBsceZeidddddZeidddddZdZd d d YZd ZRS( tClavet max_lengthi2t help_texts"Ingrese la clave de la DependenciatNombreis#Ingrese el nombre de la DependenciacCs|id|iS(Ns - (tnombretclave(tself((s9/opt/public_html/Apolo_test/seguimiento_oficios/models.pyt __unicode__ stMetacBs#eZddgZdZdgZRS(RR R(t__name__t __module__torderingtverbose_name_pluraltunique_together(((s9/opt/public_html/Apolo_test/seguimiento_oficios/models.pyR s cOsxDdgD]9}t||t}|ot|||iq q WxDdgD]9}t||t}|ot|||iqQqQWtt|i||dS(NR R(tgetattrtFalsetsetattrtuppert capitalizetsuperRtsave(R targstkwargst field_nametval((s9/opt/public_html/Apolo_test/seguimiento_oficios/models.pyRs  (( R RRt CharFieldR RR R R(((s9/opt/public_html/Apolo_test/seguimiento_oficios/models.pyRs  t DireccioncBs{eZeieZeidddddZeidddddZdZ d Z d d d YZ d Z RS(RRi2Rs!Ingrese la clave de la DirecciónRids"Ingrese el nombre de la DireccióncCs d|iS(Nu%s(R(R ((s9/opt/public_html/Apolo_test/seguimiento_oficios/models.pyR &scCs4dig}|iiD]}||iq~S(Ns (tjointusuariotalltusername(R t_[1]ts((s9/opt/public_html/Apolo_test/seguimiento_oficios/models.pytusuarios)sR cBs)eZdddgZdZddgZRS(t dependenciaRR R(R RRRR(((s9/opt/public_html/Apolo_test/seguimiento_oficios/models.pyR +scOsxDdgD]9}t||t}|ot|||iq q WxDdgD]9}t||t}|ot|||iqQqQWtt|i||dS(NR R(RRRRRRRR(R RRRR((s9/opt/public_html/Apolo_test/seguimiento_oficios/models.pyR/s  (( R RRt ForeignKeyRR&RR RR R%R R(((s9/opt/public_html/Apolo_test/seguimiento_oficios/models.pyRs  t TipoDocumentocBs?eZeidddddZdZdddYZRS( RRi2RsIngrese el tipo de documentocCs|iS(N(R(R ((s9/opt/public_html/Apolo_test/seguimiento_oficios/models.pyR >sR cBseZdgZdZRS(RsTipo de Documento(R RRR(((s9/opt/public_html/Apolo_test/seguimiento_oficios/models.pyR @s ((R RRRRR R (((s9/opt/public_html/Apolo_test/seguimiento_oficios/models.pyR(:s tPuestoscBsHeZeidddddZdZdd dYZdZRS( tPuestoRidRsIngrese el nombre del puestocCs|iS(N(R(R ((s9/opt/public_html/Apolo_test/seguimiento_oficios/models.pyR HsR cBs&eZdgZdZdZdgZRS(RR*R)(R RRt verbose_nameRR(((s9/opt/public_html/Apolo_test/seguimiento_oficios/models.pyR Js cOsxDdgD]9}t||t}|ot|||iq q WxDdgD]9}t||t}|ot|||iqQqQWtt|i||dS(NtR(RRRRRRR)R(R RRRR((s9/opt/public_html/Apolo_test/seguimiento_oficios/models.pyRQs  ((R RRRRR R R(((s9/opt/public_html/Apolo_test/seguimiento_oficios/models.pyR)Ds tEstatuscBseZeidddddZeidddddZeiddddd Zeid eZ ei e dd Z d Z d ddYZdZRS(RRi2RsIngrese la clave del estatusRsIngrese el nombre del estatustcoloriscolor de identificaciontdefaultR,cCs|iS(N(R(R ((s9/opt/public_html/Apolo_test/seguimiento_oficios/models.pyR dsR cBs&eZddgZdZddgZRS(RR R-ttipo_documento(R RRRR(((s9/opt/public_html/Apolo_test/seguimiento_oficios/models.pyR fs cOsxDdgD]9}t||t}|ot|||iq q WxDdgD]9}t||t}|ot|||iqQqQWtt|i||dS(NR R(RRRRRRR-R(R RRRR((s9/opt/public_html/Apolo_test/seguimiento_oficios/models.pyRks  ((R RRRR RR.t BooleanFieldtTruetactivoR'R(R0R R R(((s9/opt/public_html/Apolo_test/seguimiento_oficios/models.pyR-\s tTituloscBsceZeidddddZeidddddZdZdd d YZd ZRS( t monogramaRi2Rs+Ingrese siglas de identificacion del tituloRsIngrese el titulocCs|iS(N(R(R ((s9/opt/public_html/Apolo_test/seguimiento_oficios/models.pyR zsR cBs eZddgZdZdZRS(RR5tTituloR4(R RRR+R(((s9/opt/public_html/Apolo_test/seguimiento_oficios/models.pyR |s cOsxDdgD]9}t||t}|ot|||iq q WxGddgD]9}t||t}|ot|||iqTqTWtt|i||dS(NR,R5R(RRRRRRR4R(R RRRR((s9/opt/public_html/Apolo_test/seguimiento_oficios/models.pyRs  (( R RRRR5RR R R(((s9/opt/public_html/Apolo_test/seguimiento_oficios/models.pyR4vs  tNoDependenciascBsHeZeidddddZdZdd dYZdZRS( RRi2Rs$Ingrese nombre del lugar donde vienecCs|iS(N(R(R ((s9/opt/public_html/Apolo_test/seguimiento_oficios/models.pyR sR cBs&eZdgZdZdZdgZRS(Rt Procedencia(R RRR+RR(((s9/opt/public_html/Apolo_test/seguimiento_oficios/models.pyR s cOsxDdgD]9}t||t}|ot|||iq q WxDdgD]9}t||t}|ot|||iqQqQWtt|i||dS(NR,R(RRRRRRR7R(R RRRR((s9/opt/public_html/Apolo_test/seguimiento_oficios/models.pyRs  ((R RRRRR R R(((s9/opt/public_html/Apolo_test/seguimiento_oficios/models.pyR7s tPersonascBs eZeidddddZeidddddZeidddddZeied e d e Z eie d e d e Z eie d e d e Zeied e d e d d Zeied e d e Zd ZdddYZdZRS(RRi2RsIngrese su nombresApellido PaternosIngrese su apellido paternosApellido MaternosIngrese su apellido maternotblanktnullt related_nametdependencia_personacCsG|idjo d}nd|ii}d|i|i|i|fS(NR,s - u %s %s, %s %s(ttitulotNoneR5tapellidopaternotapellidomaternoR(R tmg((s9/opt/public_html/Apolo_test/seguimiento_oficios/models.pyR s R cBs5eZdddgZdZddddddgZRS(R@RARR9tpuestoR>t direccion(R RRRR(((s9/opt/public_html/Apolo_test/seguimiento_oficios/models.pyR scOsxDdgD]9}t||t}|ot|||iq q WxJdddgD]9}t||t}|ot|||iqWqWWtt|i||dS(NR,RR@RA(RRRRRRR9R(R RRRR((s9/opt/public_html/Apolo_test/seguimiento_oficios/models.pyRs ((R RRRRR@RAR'R)R2RCR4R>RRDRR&R7tempresaR R R(((s9/opt/public_html/Apolo_test/seguimiento_oficios/models.pyR9s! t tipo_usuariocBsPeZeidddddZeidddddZdZdZRS( RRi2RsIngrese la clave del usuarioRsIngrese su nombrecCs|iS(N(R(R ((s9/opt/public_html/Apolo_test/seguimiento_oficios/models.pyR scOsxDdgD]9}t||t}|ot|||iq q WxDdgD]9}t||t}|ot|||iqQqQWtt|i||dS(NR,R(RRRRRRRFR(R RRRR((s9/opt/public_html/Apolo_test/seguimiento_oficios/models.pyRs  (R RRRR RR R(((s9/opt/public_html/Apolo_test/seguimiento_oficios/models.pyRFs tPerfilcBsxeZeieZeieZeiede de Z eie de de Z dZ dddYZRS(R;R:cCs |iiS(N(R R"(R ((s9/opt/public_html/Apolo_test/seguimiento_oficios/models.pyR sR cBseZddgZdZRS(R&R tPerfiles(R RRR(((s9/opt/public_html/Apolo_test/seguimiento_oficios/models.pyR s ((R RRR'RFttipoRR RR2RDRR&R R (((s9/opt/public_html/Apolo_test/seguimiento_oficios/models.pyRGs  cCs#tiidi}|d7}|S(Nt folio_internoi(trecepcion_oficiotobjectstlatestRJ(tr((s9/opt/public_html/Apolo_test/seguimiento_oficios/models.pytultimo_folio_internos cCstiiddiS(NR tT(R-RLtgettid(((s9/opt/public_html/Apolo_test/seguimiento_oficios/models.pytestatus_en_tramitesRKc Bs"eZeiddddddeZeiddddeiZ ei ddd dd Z ei d dddeiZ ei d dd ddZeiedddedeZei ddd ddZei dddddZeiddeddZeieZeiedddeZei ddddedeZeideddZei ddd dddedeZeid dd!dd dddedeZ eideZ!ei"d"dededd#Z#d$Z$d%d(d&YZ%d'Z&RS()sNúmero de folio internoRiFRs-Ingrese el numero de folio de control internoR/sFecha de recepciónsFecha del oficiosNúmero de Oficioi2s9Ingrese el numero de oficio, dependencia/consecutivo/añosfecha del oficiotfirmaisNombre de quien firma el oficioR+sDependencia enviaR;R:RsDependencia origentAsuntoisIngrese el asunto del oficiosIncluye anexoss"Marque si el oficio incluye anexosR,sEspecifique otro estadoids Marque si se responde con oficiosRespondemos con oficio númerosPIngrese el numero de oficio, dependencia/consecutivo/año con el que se respondetelaboracion_oficios%Recibimos respuesta al oficio númerot Observacioness1Escriba aquí si desea agregar alguna ObservacioncCs d|iS(Nu%s(RJ(R ((s9/opt/public_html/Apolo_test/seguimiento_oficios/models.pyR sR cBs)eZdgZdZddddgZRS(s-folio_internosOficios (recepción)RJt no_oficiotdependencia_enviatasunto(R RRRR(((s9/opt/public_html/Apolo_test/seguimiento_oficios/models.pyR s cOsxMddddgD]9}t||t}|ot|||iqqWxAgD]9}t||t}|ot|||iqWqWWti|_tt |i ||dS(NRXRZRTRY( RRRRRtdatetimetnowtfecha_ultima_modificacionRRKR(R RRRR((s9/opt/public_html/Apolo_test/seguimiento_oficios/models.pyRs(('R RRt IntegerFieldRORJt DateTimeFieldR[R\t fecha_capturaRRXt DateFieldt fecha_oficioRTR'RR2R&RYRZR1RtanexoRtcapturaR-RStestatust otro_estatustresponde_con_oficiotno_oficio_respuestat no_oficio_respuesta_contestacionR3t TextFieldt observacionesR R R(((s9/opt/public_html/Apolo_test/seguimiento_oficios/models.pyRKs(!!!!!'-! tasignacion_oficiocBseZeieZeiedddedeZei dddddZ ei d dddd Z ei d d e idd Zeidd e idedeZeiddededdZeieZeid eZdZdddYZdZRS(R+sDirección recibeR;R:s DirecciónRiRsDirección a la que se envíasRecibiósRecibió oficiosfecha del asignaciónR/sFecha del asignacionsfecha del tramiteRWs1Escriba aquí si desea agregar alguna ObservacioncCs d|iS(Nu%s(RJ(R ((s9/opt/public_html/Apolo_test/seguimiento_oficios/models.pyR !sR cBs&eZddgZdZddgZRS(RJtfecha_asignacionsOficios (asignación)RD(R RRRR(((s9/opt/public_html/Apolo_test/seguimiento_oficios/models.pyR $s c OsxDdgD]9}t||t}|ot|||iq q WxJdddgD]9}t||t}|ot|||iqWqWWti|_tt |i ||t d|i d|i i d|id|i}|i dS( NRXRZtdireccion_recibetrecibetoficioReR Rk(RRRRRR[R\R]RRlRtbitacora_oficioRJRetasignaRk(R RRRRtb((s9/opt/public_html/Apolo_test/seguimiento_oficios/models.pyR*s 0((R RRR'RKRJRR2RDRRnRoR_R[R\RmRat fecha_tramiteRjRkRRrR1R3R R R(((s9/opt/public_html/Apolo_test/seguimiento_oficios/models.pyRls!!'! RqcBseZeideZeieZeie Z eie Z ei ddededdZdZdZdd d YZRS( t auto_now_addRWR:R;Rs1Escriba aquí si desea agregar alguna ObservacioncCs |iiS(N(RpRX(R ((s9/opt/public_html/Apolo_test/seguimiento_oficios/models.pyR BscCs4dig}|iiD]}||iq~S(Ns, (RtoficiosR!RZ(R R#R$((s9/opt/public_html/Apolo_test/seguimiento_oficios/models.pyRvEsR cBseZdgZdZdZRS(tfechatBitacorasOficios (bitacora)(R RRR+R(((s9/opt/public_html/Apolo_test/seguimiento_oficios/models.pyR Hs ((R RRR_R2RwR'RKRpR-ReRR RjRkR RvR (((s9/opt/public_html/Apolo_test/seguimiento_oficios/models.pyRq:s!  cCsy2tiidtiidi}|d7}Wntj o}d}nX|}|djod|}n|djod|}n|djod|}n|djod|}nd |ti i f}|S( NR&RXii s0%sidii'sSA/%s/%s( RVRLtfiltertpR&RMRRt ExceptionR[R\tyear(RNtetc((s9/opt/public_html/Apolo_test/seguimiento_oficios/models.pytultimo_no_oficioMs $     RVc BseZeiddddddeZeieddded eZ eid dd dd Z ei d dd de i Zeiddd ddZeidddddZeidd ededdZeieddZeidddd edeZeiddd ddZeieZeiddeZeideZeiddeddZeideddZeie dddddd ded eZ!d!Z"d"d%d#YZ#d$Z$RS(&sNúmero de OficioRi2Rs+Ingrese el número de oficio, SA/00000/añoR/R+RR;R:sDependencia destinoisfecha del oficiosFecha del oficiosa quien va dirigidos%Persona a quien va dirigido el oficioRUisIngrese el asunto del oficioRWs2Escriba aquí si desea agregar alguna ObservaciónsSeleccione un estadosEspecifique otro estadoidsResponsable del oficios+Dirección o persona responsable del oficiosfecha de capturaRus!espera respuesta del destinatarios$Marque si el oficio espera respuestas'Marque si el oficio responde a un foliosNúmero de folio que respondes1Seleccione el número de folio al que se respondecCs|iS(N(RX(R ((s9/opt/public_html/Apolo_test/seguimiento_oficios/models.pyR wsR cBs#eZdgZdZddgZRS(s -no_oficiosOficios (elaboración)RRRX(R RRRR(((s9/opt/public_html/Apolo_test/seguimiento_oficios/models.pyR zs cOsxDdgD]9}t||t}|ot|||iq q WxJdddgD]9}t||t}|ot|||iqWqWWti|_tt |i ||dS(NRXRZRYt destinatario( RRRRRR[R\R]RRVR(R RRRR((s9/opt/public_html/Apolo_test/seguimiento_oficios/models.pyRs ((%R RRRRRXR'RR2R&RYRaR[R\RbRRZRjRkR-ReRftdireccion_responsableRR R_R`R1R3Rtespera_respuestatresponde_al_folioRKRhR R R(((s9/opt/public_html/Apolo_test/seguimiento_oficios/models.pyRVas&!!!!!- N(t django.dbRtdjango.contrib.auth.modelsRR[tModelRRR(R)R-R4R7R9RFRGRORSRKRlRqRRV(((s9/opt/public_html/Apolo_test/seguimiento_oficios/models.pyts&  !  .%