B
    b	                 @   s|   d dl mZ d dlmZ d dlmZ 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dS )    )serializers)gettext_lazy)LeaveSettings)util_serializersc               @   s   e Zd ZejedddZejeddddZejedd	ddZejed
dddZ	ejeddddZ
ejeddddZejeddddZejeddddZejdddZejdddZejdeddddZG dd dZdS )LeavedetailsSerializerZreport_column_empCodezemployee.emp_code)labelsourceZreport_column_firstNamezemployee.first_nameT)r   r   
allow_nullZreport_column_lastNamezemployee.last_nameZreport_column_genderzemployee.get_gender_displayZdepartment_field_codezemployee.department.dept_codeZemployee_field_departmentzemployee.department.dept_nameZposition_field_codezemployee.position.position_codeZemployee_field_positionzemployee.position.position_name )defaultr	   Zget_allotment_type)r   r	   Zget_leave_availedZreport_leave_availed)r   r   r   r	   c               @   s   e Zd ZeZdZdS )zLeavedetailsSerializer.Meta__all__N)__name__
__module____qualname__r   modelfields r   r   LG:\easytimepro\master/mysite/att\api\serializers\leavedetails_serializers.pyMeta   s   r   N)r   r   r   r   Z	CharField_Zemp_codeZ
first_name	last_nameZgenderZ	dept_codeZ	dept_nameZposition_codeZposition_nameZatt_dateZallotment_typeZleave_availedr   r   r   r   r   r   
   s&   r   c               @   s   e Zd ZG dd dZdS )LeavedetailsCreateSerializerc               @   s   e Zd ZeZdZdS )z!LeavedetailsCreateSerializer.Metar   N)r   r   r   r   r   r   r   r   r   r   r   #   s   r   N)r   r   r   r   r   r   r   r   r   "   s   r   c               @   s   e Zd ZG dd dZdS )LeavedetailsEditSerializerc               @   s   e Zd ZeZdZdS )zLeavedetailsEditSerializer.Metar   N)r   r   r   r   r   r   r   r   r   r   r   )   s   r   N)r   r   r   r   r   r   r   r   r   (   s   r   c               @   s   e Zd ZG dd dZdS )LeavedetailsActionSerializerc               @   s   e Zd ZeZdZdS )z!LeavedetailsActionSerializer.Meta))deleter   N)r   r   r   r   r   Zaction_type_choicesr   r   r   r   r   /   s   r   N)r   r   r   r   r   r   r   r   r   .   s   r   N)Zrest_frameworkr   Zdjango.utils.translationr   r   Z%mysite.att.models.model_leavesettingsr   Zmysite.staff.api.serializersr   ZModelSerializerr   r   r   ZObjectActionSerializerr   r   r   r   r   <module>   s   