o
    ۷h *                     @   sf   G d d dZ G dd dZG dd dZG dd dZG dd	 d	ZG d
d dZG dd dZdS )c                   @   s   e Zd ZdZdZdZdZdZdZdZ	dZ
dZdZdZdZdZdZdZdZdZdd Zdd Zdd Zdd	 Zd
d Zdd Zdd Zdd Zdd Zdd Zdd Zdd Zdd Z dd Z!dd Z"d d! Z#d"d# Z$d$d% Z%dS )&PayrollComponentRequestNc                 C   sN  d|v r	|d | _ d|v r|d | _d|v r|d | _d|v r$|d | _d|v r-|d | _d|v r6|d | _d|v r?|d | _d|v rR|d d	krO|d | _nd
| _d|v r[|d | _d|v rd|d | _	d|v rm|d | _
d|v rv|d | _d|v r|d | _d|v r|d | _d|v r|d | _d|v r|d | _d|v r|d | _d S d S )Nidcodenamestatusallowance_type
pf_includeis_deduction
percentage         payrollcomp_idtype	from_dateto_date
gradelevel
is_defaultcat_id	subcat_idglno)r   r   r   r   r   r   r   r	   r   r   r   r   r   r   r   r   r   selfprm_obj r   I/var/www/FinalPayroll/payrollservice/data/request/payrollmasterrequest.py__init__   sJ   














z PayrollComponentRequest.__init__c                 C      | j S Nr   r   r   r   r   get_id<      zPayrollComponentRequest.get_idc                 C   r   r   )r   r   r   r   r   get_code?   r    z PayrollComponentRequest.get_codec                 C   r   r   r   r   r   r   r   get_nameB   r    z PayrollComponentRequest.get_namec                 C   r   r   r   r   r   r   r   
get_statusE   r    z"PayrollComponentRequest.get_statusc                 C   r   r   )r   r   r   r   r   get_allowance_typeH   r    z*PayrollComponentRequest.get_allowance_typec                 C   r   r   )r   r   r   r   r   get_pf_includeK   r    z&PayrollComponentRequest.get_pf_includec                 C   r   r   )r   r   r   r   r   get_is_deductionN   r    z(PayrollComponentRequest.get_is_deductionc                 C   r   r   r	   r   r   r   r   get_percentageQ   r    z&PayrollComponentRequest.get_percentagec                 C   r   r   r   r   r   r   r   get_payrollcomp_idT   r    z*PayrollComponentRequest.get_payrollcomp_idc                 C   r   r   r   r   r   r   r   get_typeW   r    z PayrollComponentRequest.get_typec                 C   r   r   r   r   r   r   r   get_from_dateZ   r    z%PayrollComponentRequest.get_from_datec                 C   r   r   r   r   r   r   r   get_to_date]   r    z#PayrollComponentRequest.get_to_datec                 C   r   r   )r   r   r   r   r   get_gradelevel`   r    z&PayrollComponentRequest.get_gradelevelc                 C   r   r   )r   r   r   r   r   get_is_defaultc   r    z&PayrollComponentRequest.get_is_defaultc                 C   r   r   r   r   r   r   r   
get_cat_idf   r    z"PayrollComponentRequest.get_cat_idc                 C   r   r   r   r   r   r   r   get_subcat_idi   r    z%PayrollComponentRequest.get_subcat_idc                 C   r   r   r   r   r   r   r   get_glnol   r    z PayrollComponentRequest.get_glno)&__name__
__module____qualname__r   r   r   r   r   r   r   r	   r   r   r   r   r   r   r   r   r   r   r   r!   r#   r%   r&   r'   r(   r*   r,   r.   r0   r2   r3   r4   r6   r8   r:   r   r   r   r   r      sH    'r   c                   @   s   e Zd ZdZdZdZdZdZdZdZ	dZ
dZdZdZdd Zdd Zdd Zdd	 Zd
d Zdd Zdd Zdd Zdd Zdd Zdd Zdd ZdS )CompanyContributionRequestNc                 C   s  d|v r	|d | _ d|v r|d | _d|v r%|d dkr"|d | _nd| _d|v r.|d | _d|v r7|d | _d|v r@|d | _d	|v rS|d	 dkrP|d	 | _nd| _d
|v r\|d
 | _d|v re|d | _d|v rt|d dkrt|d | _	d|v r|d dkr|d | _
d S d| _
d S d S )Nr   r   r	   r
   r   r   effective_fromeffective_toamountr   r   r   
sal_amount)r   r   r	   r   r?   r@   rA   r   r   r   rB   r   r   r   r   r   |   s<   








z#CompanyContributionRequest.__init__c                 C   r   r   r   r   r   r   r   r      r    z!CompanyContributionRequest.get_idc                 C   r   r   r"   r   r   r   r   r#      r    z#CompanyContributionRequest.get_namec                 C   r   r   r)   r   r   r   r   r*      r    z)CompanyContributionRequest.get_percentagec                 C   r   r   r$   r   r   r   r   r%      r    z%CompanyContributionRequest.get_statusc                 C   r   r   )r?   r   r   r   r   get_effective_from   r    z-CompanyContributionRequest.get_effective_fromc                 C   r   r   )r@   r   r   r   r   get_effective_to   r    z+CompanyContributionRequest.get_effective_toc                 C   r   r   rA   r   r   r   r   
get_amount   r    z%CompanyContributionRequest.get_amountc                 C   r   r   r5   r   r   r   r   r6      r    z%CompanyContributionRequest.get_cat_idc                 C   r   r   r7   r   r   r   r   r8      r    z(CompanyContributionRequest.get_subcat_idc                 C   r   r   r9   r   r   r   r   r:      r    z#CompanyContributionRequest.get_glnoc                 C   r   r   rB   r   r   r   r   get_sal_amount   r    z)CompanyContributionRequest.get_sal_amount)r;   r<   r=   r   r   r	   r?   r@   r   rA   r   r   r   rB   r   r   r#   r*   r%   rC   rD   rF   r6   r8   r:   rH   r   r   r   r   r>   o   s0    &r>   c                   @   s   e Zd ZdZdZdZdZdZdZdZ	dZ
dZdZdd Zdd Zdd Zdd	 Zd
d Zdd Zdd Zdd Zdd Zdd Zdd ZdS )EmpPFStructureRequestNc                 C   s  d|v r	|d | _ d|v r|d | _d|v r%|d dkr"|d | _nd| _d|v r.|d | _d|v r7|d | _d|v rJ|d dkrG|d | _nd| _d	|v rS|d	 | _d
|v r\|d
 | _d|v rk|d dkrk|d | _d|v r|d dkr||d | _	d S d| _	d S d S )Nr   r   r	   r
   r   r   is_standardrA   r   r   r   rB   )
r   r   r	   r   rJ   rA   r   r   r   rB   r   r   r   r   r      s8   







zEmpPFStructureRequest.__init__c                 C   r   r   r   r   r   r   r   r      r    zEmpPFStructureRequest.get_idc                 C   r   r   r"   r   r   r   r   r#      r    zEmpPFStructureRequest.get_namec                 C   r   r   r)   r   r   r   r   r*      r    z$EmpPFStructureRequest.get_percentagec                 C   r   r   r$   r   r   r   r   r%      r    z EmpPFStructureRequest.get_statusc                 C   r   r   )rJ   r   r   r   r   get_is_standard   r    z%EmpPFStructureRequest.get_is_standardc                 C   r   r   rE   r   r   r   r   rF      r    z EmpPFStructureRequest.get_amountc                 C   r   r   r5   r   r   r   r   r6     r    z EmpPFStructureRequest.get_cat_idc                 C   r   r   r7   r   r   r   r   r8     r    z#EmpPFStructureRequest.get_subcat_idc                 C   r   r   r9   r   r   r   r   r:   	  r    zEmpPFStructureRequest.get_glnoc                 C   r   r   rG   r   r   r   r   rH     r    z$EmpPFStructureRequest.get_sal_amount)r;   r<   r=   r   r   r	   rJ   r   rA   r   r   r   rB   r   r   r#   r*   r%   rK   rF   r6   r8   r:   rH   r   r   r   r   rI      s,    "rI   c                   @   sP   e Zd ZdZdZdZdZdZdd Zdd Z	dd Z
dd	 Zd
d Zdd ZdS )PayrollDeductionRequestNc                 C   sb   d|v r	|d | _ d|v r|d | _d|v r|d | _d|v r$|d | _d|v r/|d | _d S d S )Nr   r   r   r   r   )r   r   r   r   r   )r   pdr_objr   r   r   r     s   



z PayrollDeductionRequest.__init__c                 C   r   r   r   r   r   r   r   r   "  r    zPayrollDeductionRequest.get_idc                 C   r   r   r+   r   r   r   r   r,   %  r    z*PayrollDeductionRequest.get_payrollcomp_idc                 C   r   r   r-   r   r   r   r   r.   (  r    z PayrollDeductionRequest.get_typec                 C   r   r   r/   r   r   r   r   r0   +  r    z%PayrollDeductionRequest.get_from_datec                 C   r   r   r1   r   r   r   r   r2   .  r    z#PayrollDeductionRequest.get_to_date)r;   r<   r=   r   r   r   r   r   r   r   r,   r.   r0   r2   r   r   r   r   rL     s    rL   c                   @   D   e Zd ZdZdZdZdZdd Zdd Zdd Z	dd	 Z
d
d ZdS )ComponentTypeRequestNc                 C   s   d|v r	|d | _ d|v r|d | _d|v r&|d dkr"|d | _nd| _nd|vr-d| _d|v rC|d dkr>|d | _d S d| _d S d S )Nr   r   r	   r
   r   
percenatgecategory)r   r   r	   rQ   )r   ctr_objr   r   r   r   8  s   


zComponentTypeRequest.__init__c                 C   r   r   r   r   r   r   r   r   M  r    zComponentTypeRequest.get_idc                 C   r   r   r"   r   r   r   r   r#   P  r    zComponentTypeRequest.get_namec                 C   r   r   r)   r   r   r   r   r*   S  r    z#ComponentTypeRequest.get_percentagec                 C   r   r   )rQ   r   r   r   r   get_categoryV  r    z!ComponentTypeRequest.get_category)r;   r<   r=   r   r   r	   rQ   r   r   r#   r*   rS   r   r   r   r   rO   2  s    rO   c                   @   rN   )PaycomponentFlagmasterRequestNc                 C   sP   d|v r	|d | _ d|v r|d | _d|v r|d | _d|v r&|d | _d S d S )Nr   map_idref_idref_type)r   rU   rV   rW   )r   pfr_objr   r   r   r   a  s   


z&PaycomponentFlagmasterRequest.__init__c                 C   r   r   r   r   r   r   r   r   l  r    z$PaycomponentFlagmasterRequest.get_idc                 C   r   r   )rU   r   r   r   r   
get_map_ido  r    z(PaycomponentFlagmasterRequest.get_map_idc                 C   r   r   )rV   r   r   r   r   
get_ref_idr  r    z(PaycomponentFlagmasterRequest.get_ref_idc                 C   r   r   )rW   r   r   r   r   get_ref_typeu  r    z*PaycomponentFlagmasterRequest.get_ref_type)r;   r<   r=   r   rU   rV   rW   r   r   rY   rZ   r[   r   r   r   r   rT   [  s    rT   c                   @   s\   e Zd ZdZdZdZdZdZdZdd Z	dd Z
dd Zdd	 Zd
d Zdd Zdd ZdS )SegmentMasterRequestNc                 C   s   d|v r	|d | _ d|v r|d | _d|v r|d | _d|v r$|d | _d|v r7|d dkr4|d | _nd| _d|v rH|d dkrJ|d | _d S d S d S )	Nr   r   component_typer   r	   r
   r   r   )r   r   r]   r   r	   r   )r   smr_objr   r   r   r     s"   



zSegmentMasterRequest.__init__c                 C   r   r   r   r   r   r   r   r     r    zSegmentMasterRequest.get_idc                 C   r   r   r"   r   r   r   r   r#     r    zSegmentMasterRequest.get_namec                 C   r   r   )r]   r   r   r   r   get_component_type  r    z'SegmentMasterRequest.get_component_typec                 C   r   r   r-   r   r   r   r   r.     r    zSegmentMasterRequest.get_typec                 C   r   r   r)   r   r   r   r   r*     r    z#SegmentMasterRequest.get_percentagec                 C   r   r   r9   r   r   r   r   r:     r    zSegmentMasterRequest.get_glno)r;   r<   r=   r   r   r]   r   r	   r   r   r   r#   r_   r.   r*   r:   r   r   r   r   r\   y  s    r\   N)r   r>   rI   rL   rO   rT   r\   r   r   r   r   <module>   s    nTL#)