B
    HDb
                 @   s   d dl mZ 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G dd dej
ZG dd de	jZdS )    )serializers)EmployeeCertification)Employee)Certification)util_serializersc               @   s   e Zd ZG dd dZdS )CertificationSerializerc               @   s   e Zd ZeZdZdS )zCertificationSerializer.Meta__all__N)__name__
__module____qualname__r   modelfields r   r   [G:\easytimepro\master/mysite/personnel\api\serializers\employeecertification_serializers.pyMeta   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 )EmployeeSerializerc               @   s   e Zd ZeZddddgZdS )zEmployeeSerializer.Metaidemp_code
first_name	last_nameN)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               @   sf   e Zd Ze 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G dd	 d	Zd
S )EmployeeCertificationSerializerzemployee.emp_codeT)source
allow_nullzemployee.first_namezemployee.last_namezcertification.cert_nameZget_email_alert_displayc            
   @   s(   e Zd ZeZddddddddd	d
g
ZdS )z$EmployeeCertificationSerializer.Metar   r   r   r   certification	cert_name	expire_onemail_alertbefore	file_nameN)r	   r
   r   r   r   r   r   r   r   r   r   %   s   r   N)r	   r
   r   r   r   r   	CharFieldr   r   r   r   r   r   r   r   r   r   r      s   r   c               @   s6   e Zd ZejdddZejdddZG dd dZdS )%EmployeeCertificationExportSerializerzemployee.emp_codeT)r   r   zcertification.cert_namec               @   s"   e Zd ZeZdddddddgZdS )	z*EmployeeCertificationExportSerializer.Metar   employeer   r   r   r   r   N)r	   r
   r   r   r   r   r   r   r   r   r   2   s   r   N)r	   r
   r   r   r   r!   r   r   r   r   r   r   r    ,   s
   r    c               @   s   e Zd ZG dd dZdS )%EmployeeCertificationCreateSerializerc               @   s"   e Zd ZeZdddddddgZdS )	z*EmployeeCertificationCreateSerializer.Metar   r!   r   r   r   r   r   N)r	   r
   r   r   r   r   r   r   r   r   r   ;   s   r   N)r	   r
   r   r   r   r   r   r   r"   9   s   r"   c               @   s   e Zd ZG dd dZdS )#EmployeeCertificationEditSerializerc               @   s8   e Zd ZeZdddddddgZddd	ddd	d
ZdS )z(EmployeeCertificationEditSerializer.Metar   r!   r   r   r   r   r   F)requiredr   )r!   r   N)r	   r
   r   r   r   r   Zextra_kwargsr   r   r   r   r   C   s
   r   N)r	   r
   r   r   r   r   r   r   r#   A   s   r#   c               @   s   e Zd ZG dd dZdS )%EmployeeCertificationActionSerializerc               @   s   e Zd ZeZdZdS )z*EmployeeCertificationActionSerializer.Meta))deleter&   N)r	   r
   r   r   r   Zaction_type_choicesr   r   r   r   r   O   s   r   N)r	   r
   r   r   r   r   r   r   r%   M   s   r%   N)Zrest_frameworkr   Z4mysite.personnel.models.model_employee_certificationr   Z&mysite.personnel.models.model_employeer   Z+mysite.personnel.models.model_certificationr   Z mysite.personnel.api.serializersr   ZModelSerializerr   r   r   r    r"   r#   ZObjectActionSerializerr%   r   r   r   r   <module>   s   