a
    g?                     @   s   d dl mZ G dd dejZG dd dejZG dd dejZG dd	 d	ejZG d
d dejZG dd dejZG dd dejZ	G dd dejZ
G dd dejZG dd dejZdS )    )modelsc                   @   s   e Zd ZejddZejddddZejddZ	ejddddZ
ejddd	Zejd
dZejddZejddZejddddZejddZejddZG dd dZdS )Extraactr   default   T
max_lengthnullblankd      Yr   r      r   auto_now_add   c                   @   s8   e Zd ZdZejdgddejdgddgZdZdZd	S )
zExtraact.Meta)serialnocino	data_fromr   Zcino_idx_extraactfieldsnamecreate_modifyZextraact_create_modifyr   Z	ExtraactsN)	__name__
__module____qualname__unique_togetherr   Indexindexesverbose_nameverbose_name_plural r$   r$   9E:\Server_2_sachin\app\JRP\backend_erp\temp\bhc_models.pyMeta   s   r&   N)r   r   r   r   SmallIntegerFieldr   	CharFieldcase_noBigIntegerFieldactssectiondisplayr   party_notypeamdDateTimeFieldr   r   r&   r$   r$   r$   r%   r      s   r   c                   @   s   e Zd Ze ZejddddZejdddZ	ejddddZ
ejddddZejddZejddddZejdddZejdddZejdddZejd	dZG d
d dZdd ZdS )PartyExtraactr   Tr   r	   r
   r   r   r   r      c                   @   s   e Zd ZdZdZdZdS )zPartyExtraact.Metar   zParty ExtraactzParty ExtraactsN)r   r   r   r   r"   r#   r$   r$   r$   r%   r&   )   s   r&   c                 C   s   | j  d| j S Nz - )r   r   selfr$   r$   r%   __str__/   s    zPartyExtraact.__str__N)r   r   r   r   r'   r   r(   r)   r*   r+   r,   r-   r   r0   r1   r   r.   r/   r   r&   r8   r$   r$   r$   r%   r2      s   r2   c                   @   s  e Zd ZejdddZejdddZejdddZejddddZ	ejddddZ
ejdddZejdddZejdddZejddddZejddddZejdddZejdddZejdddZejddddZejddddZejddddZG dd	 d	Zd
d ZdS )AdvocateTr3   r   r   r   r   r   c                   @   s   e Zd ZdZdZdS )zAdvocate.Metar9   Z	AdvocatesN)r   r   r   r"   r#   r$   r$   r$   r%   r&   E   s   r&   c                 C   s   | j  d| j S r5   )r   advr6   r$   r$   r%   r8   J   s    zAdvocate.__str__N)r   r   r   r   IntegerFieldZcasedetails_idpet_resZ
pet_res_nor(   Zadv_coder:   Z	adv_cd_yrusercoder1   ent_dtr-   Zremark	DateFieldZ	from_dateZto_dateZent_dt_advocatefil_noZladvr   r&   r8   r$   r$   r$   r%   r9   2   s$   r9   c                   @   s  e Zd ZejdddZejddddZejddddZejddddZ	ejddddZ
ejddddZejddddZejdddZejdddZejdddZejdddZejdddZejdddZejddddZejdddZejdddZejddddZejdddZejdddZejdddZejdddZejdddZejdddZ ejddddZ!ejddddZ"ejddddZ#ejddddZ$ejddddZ%ejd	dddZ&ejddddZ'ejddddZ(ejd
dddZ)ejd
dddZ*ejdddZ+ejdddZ,ejdddZ-ejdddZ.ejdddZ/ejd	dddZ0ejddddZ1ejdddZ2ejdddZ3ejddZ4ejdddZ5ejdddZ6G dd dZ7dd Z8dS )CasedetailsTr3      r   r      r   r   r      r   c                   @   sV   e Zd Zejdgddejdgddejdgddejdgd	dejd
gddgZdS )zCasedetails.MetabnoZbench_indx_1r   r@   Zcino_index_1
fil_casenoZindex_fil_caseno_1fil_casetypeZindex_fil_casetype_1fil_caseyearZindex_fil_caseyear_1Nr   r   r   r   r    r!   r$   r$   r$   r%   r&   }   s   r&   c                 C   s   | j  S N)r   r6   r$   r$   r%   r8      s    zCasedetails.__str__N)9r   r   r   r   r;   rF   r(   Zpet_nameZres_nameZpet_advZres_advZpetadvenZ
petadvenyrrE   districtr1   Zfil_dtZ
case_pagesr=   ZdacodeZconn_key	TextFieldZ	lastorderZ	listorderZscanstatr?   Ztentative_cl_dtr'   ZdelinkZentry_date_rowZadmittedrG   rH   Z
pet_name_hZ
res_name_hZ	pet_adv_hZ	res_adv_hr@   Z	filing_noZresadvenZ
resadvenyrZpet_adv_typeZres_adv_typeZpet_cntZres_cntZregcase_typeZreg_noZreg_yearZregistration_noZc_statusZentry_date_civil_tZentry_date_civil_t_ar   court_noZreg_dtr&   r8   r$   r$   r$   r%   rA   M   s^   
rA   c                   @   s  e Zd Ze ZejddZejddddZejddddZ	ejddddZ
ejddddZejddZejddddZejddddZejd	dddZejddd
Zejddd
Zejddd
ZejddddZejdddddZejddd
Zejddd
Zejd	ddZejddZejddddZejddddZejddddZejddd
Zejddd
Zej e!dddZ"ejddddZ#ejddd
Z$ejddddZ%ejddd
Z&ejddd
Z'ejd	ddddZ(ejddddZ)ejddddZ*e Z+G dd dZ,dd Z-dS )Partyr   r   rD   Tr   r   rB   )r	   r
   r   r   r3   2   0)r   r	   r
   r   Pr      ZParty_casedetailsrelated_namer
   Nr   r   r	   r
   r   c                   @   sL   e Zd ZejdgdejdgdejdgdejdgdejdgdgZdS )z
Party.Metacasedetailsr   r<   pflagsr_no	sr_no_lrsNrI   r$   r$   r$   r%   r&      s   r&   c                 C   s   | j r| j S t| jS rJ   )	partynamestridr6   r$   r$   r%   r8      s    zParty.__str__N).r   r   r   r   r;   r<   rZ   r(   Zind_depZ	partysuffr\   ZsonofZauthcodeZprfhnameageZsexrL   Zaddr1Zaddr2ZpinemailZmobiler=   r1   r>   rY   Zdeptcoder[   staterK   ZtalukaZvillage
ForeignKeyrA   rW   Z
prfhname_hZ	address_hZpartyname_hZ
lrs_remarkcountryZlegal_heirsr@   r   Zaddress_typer&   r8   r$   r$   r$   r%   rN      sH   
rN   c                   @   s  e Zd ZejedddZejedejdZ	ej
ddddZej
ddddZej
ddddZej
d	dddZej
d
dddZej
ddddZejddZejdddZej
ddddZejdddZej
ddddZejdddZejdddZej
ddddZG dd dZdd ZdS )PartyExtraInfoZPECDTrS   rN   )rT   	on_deletec   r   r      
   r   )auto_nowr3      r   rR   c                   @   s4   e Zd ZejdgdejdgdejdgdgZdS )zPartyExtraInfo.MetarW   rX   r^   partyNrI   r$   r$   r$   r%   r&      s   r&   c                 C   s
   t | jS rJ   )r]   r^   r6   r$   r$   r%   r8      s    zPartyExtraInfo.__str__N)r   r   r   r   rb   rA   rW   rN   CASCADErk   r(   ZnationalityphoneZfaxZ
passportnoZpannophr1   r   r'   Zcaste_idZ	adhaar_nor?   Zdobr@   r;   r.   r/   r   r&   r8   r$   r$   r$   r%   rd      s$   rd   c                   @   s  e Zd Ze Ze ZejdddZe	 Z
ejddddZej	dddZejddddZe ZejddddZejddddZejdddZe ZejddddZejddddZejddddZejdddZejddddZejdddZdd	 Zd
S )JudgeTTr3   r   r      r      c                 C   s
   t | jS rJ   )r]   
judge_coder6   r$   r$   r%   r8      s    zJudgeT.__str__N)r   r   r   r   r;   rM   r'   rr   Z	desg_coder?   Zfrom_dtr(   ZinchargeZto_dtZcourtfilingZnoprefixr-   jocodeZsuccessor_courtZjudge_priorityZnotify_court_idZ
link_courtr0   r1   r   Zest_code_srcZcreate_modify_sacr8   r$   r$   r$   r%   ro      s&   ro   c                   @   s
  e Zd ZejddddZejdddZejddddZej	dddZ
ejdddZejddddZejddZejddZejd	dddZejd
dddZejdddZej	dddZej	dddZejddddZejddddZejddZG dd dZdd ZdS )Restorerevoker   Tr   r3   rO   r   r   r	   r
   r      rB   r   r   r   c                   @   s(   e Zd ZejdgdejdgdgZdS )zRestorerevoke.Metar)   rX   rM   NrI   r$   r$   r$   r%   r&     s   r&   c                 C   s
   t | jS rJ   )r]   Zsrnor6   r$   r$   r%   r8   	  s    zRestorerevoke.__str__N)r   r   r   r   r(   r)   r?   	datefieldZdatetyperL   Zorder_remarkZtodays_dater;   rM   r'   Zgoshwara_noZdisp_naturers   ZhashkeyZ	next_dateZpresentZlpresentr   r0   r1   r   r&   r8   r$   r$   r$   r%   rt      s$   rt   c                   @   s  e Zd ZejddZejddZejddddZejddddZ	ejd	d
dddZ
ejddddZejdddZejdddZejdddZejddddZejddddZejddddZejd	d
dddZejddddZejdddZejdddZejdddZejddddZejddddZejddddZejdddZejdddZejdddZejdddZ ejddddZ!ejddZ"ej#dddZ$ejdddZ%ejddddZ&ejd	dddZ'G dd dZ(dd Z)dS )Disposer   r   r      Tr   r   ru   rR   rP   rV   r3   rB   r   rD   r   i,  c                   @   s(   e Zd ZejdgdejdgdgZdS )zDispose.Metar   rX   r@   NrI   r$   r$   r$   r%   r&   ,  s   r&   c                 C   s   | j S rJ   )r@   r6   r$   r$   r%   r8   3  s    zDispose.__str__N)*r   r   r   r   r(   r   r@   Z	add_filnor;   monthZdispjudyearr?   Zord_dtZdisp_dtZ	disp_typeZdisp_remZ	disp_statZbenchZjud1Zjud2Zjud3Zjud4Zjud5ZcamntZcrtstatsider=   r1   r>   rL   ZjorderZrj_dtswZentry_date_dispr*   Zcase_detail_idZentry_date_sacZcitation_nors   r&   r8   r$   r$   r$   r%   rx     s@   rx   c                   @   s   e Zd ZejddddZejdddZejddddZej	dddZ
ejdddZejddddZejdddZej	dddZej	dddZejddddZejddddZejddddZG dd	 d	Zd
d ZdS )ActMainry   Tr   r3   rB   r   rR   c                   @   s   e Zd ZejdgdgZdS )zActMain.Metar@   rX   NrI   r$   r$   r$   r%   r&   C  s   r&   c                 C   s   | j r| j S t| jS rJ   )r@   r]   id_act_main_sr6   r$   r$   r%   r8   I  s    zActMain.__str__N)r   r   r   r   r(   r@   r;   Zactr,   r1   Zentdtuserr-   r   Zent_dt_act_mainZ
ent_dt_sacZsectionnameZsubsectionnameZ
newsectionr&   r8   r$   r$   r$   r%   r~   5  s   r~   N)	django.dbr   Modelr   r2   r9   rA   rN   rd   ro   rt   rx   r~   r$   r$   r$   r%   <module>   s   =1)