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G dd dej	ZdS )    )serializers)gettext_lazy)OutdoorEmployeeSchedule)util_serializersc               @   s   e Zd Zejdd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G dd dZdS )!OutdoorEmployeeScheduleSerializerzschedule_planner.schedule_nameT)source
allow_nullZreport_column_empCodezemployee.emp_code)labelr   Zreport_column_firstNamezemployee.first_name)r	   r   r   Z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   c               @   s   e Zd ZeZdZdS )z&OutdoorEmployeeScheduleSerializer.Meta__all__N)__name__
__module____qualname__r   modelfields r   r   RG:\easytimepro\master/mysite/att\api\serializers\outdoorempschedule_serializers.pyMeta   s   r   N)r   r   r   r   Z	CharFieldZschedule_name_Zemp_codeZ
first_name	last_nameZgenderZ	dept_codeZ	dept_nameZposition_codeZposition_nameZatt_dater   r   r   r   r   r   
   s$   
r   c               @   s   e Zd ZG dd dZdS )'OutdoorEmployeeScheduleCreateSerializerc               @   s   e Zd ZeZdZdS )z,OutdoorEmployeeScheduleCreateSerializer.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 )%OutdoorEmployeeScheduleEditSerializerc               @   s   e Zd ZeZdZdS )z*OutdoorEmployeeScheduleEditSerializer.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 )'OutdoorEmployeeScheduleActionSerializerc               @   s   e Zd ZeZdZdS )z,OutdoorEmployeeScheduleActionSerializer.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   c               @   s   e Zd ZG dd dZdS )'OutdoorEmployeeScheduleExportSerializerc               @   s   e Zd ZeZdZdS )z,OutdoorEmployeeScheduleExportSerializer.Metar   N)r   r   r   r   r   r   r   r   r   r   r   5   s   r   N)r   r   r   r   r   r   r   r   r   4   s   r   N)Zrest_frameworkr   Zdjango.utils.translationr   r   Zmysite.att.modelsr   Zmysite.staff.api.serializersr   ZModelSerializerr   r   r   ZObjectActionSerializerr   r   r   r   r   r   <module>   s   