B
    า๎b)  ใ               @   s,   d dl mZ d dlmZ dZdZdd ZdS )้    )ฺgettext_lazy)ฺsettingsZArvinZiclockc             C   st  dt ddg dt d| dtdf ddt d	| dtdf dgd
t ddg dt d| dtdf dgd
t ddg dt d| dtdf ddt d| dtdf dgd
t ddg dt d| dtdf ddt d| dtdf ddt d| dtdf ddt d| dtdf ddt d | dtdf dgd
t d!d"g d#t d$| dtd#f dd%t d&| dtd%f dd't d(| dtd'f dgd
t d)d*g tjd+t d,| dd- d.tjd/t d0| dd1 d.d2t d3| dd4 dd5t d6| dd7 dd8t d9| dd: dd;t d<| dd= dd>t d?| dtd>f dgd
t d@dAg dBt dC| dDdgd
gi}x|t|d D ]l\}}dEdFlm} dEdGlm} | dH |ks|dI t dkrึ|}|dI dJkrdKdL |dM D |dM< qW | dH |ks|d  	|ก dNtj
krpg }x8t|d D ](\}}|dI t d)gkr<| |ก q<W ||d< |S )ONฺmenu_groupsZ"menu_group_device_deviceManagementzfa fa-cubesZterminalZmenu_device_terminalz
%s_%s_init)ฺ
model_nameฺverbose_nameฺurlZterminalcommandZmenu_device_terminalCommand)r   ZiconZpermissionsฺmenusZmenu_group_firmwarezfa-registeredZproductsZmenu_device_productCategoryZ!menu_group_device_terminalMessagezfa-comments-oZpublicmessageZmenu_device_publicMessageZprivatemessageZmenu_device_privateMessageZ$terminal_group_device_dataManagementzfa fa-databaseZterminalworkcodeZmenu_device_terminalWorkCodeZbiodataZmenu_device_terminalBioDataZbiophotoZmenu_iclock_bioPhotoZtransactionZmenu_device_transactionZ
unregisterZmenu_iclock_unregisterZmenu_group_device_terminalLogzfa fa-historyZterminallogZmenu_device_terminalLogZerrorcommandlogZmenu_device_errorCommandLogZterminaluploadlogZmenu_device_terminalUploadLogZmenu_group_mobile_applicationzfa fa-mobile-phone zmobile.gpsforemployeeZmenu_mobile_gpsEmployee)ฺmobileZgpsforemployee)Zvisibler   r   r   zmobile.gpsfordepartmentZmenu_mobile_gpsDepartment)r	   Zgpsfordepartmentzmobile.applistZmenu_mobile_appList)r	   Zapplistzmobile.announcementZmenu_mobile_announcement)r	   Zannouncementzmobile.notificationZmenu_mobile_notification)r	   Zappnotificationzmobile.appactionlogZmenu_mobile_appActionLog)r	   ZappactionlogฺeventsZmenu_mobile_eventsZmenu_group_deviceConfigurationz
fa fa-cogsZdeviceconfigZmenu_iclock_deviceConfigZdevice_configr   )ฺget_software_type_without_load)ฺINTELLIGENTTIMEZsoftware_typer   z
Mobile Appc             S   s   g | ]}d |  dกks|qS )r
   r   )ฺget)ฺ.0ฺxฉ r   ๚/G:\easytimepro\master/mysite/iclock\__init__.py๚
<listcomp>ข   s    zget_menu.<locals>.<listcomp>r   Zatt)ฺ_ฺAPP_NAMEr   ZACTIVE_APP_LOCATIONฺ	enumerateZmysite.admin.utilsr   Zmysite.admin.constr   ฺpopZSALE_MODULEฺappend)Zurl_funcZmenuฺiฺvr   r   Zitem_remover   r   r   r   ฺget_menu	   sผ    r   N)Zdjango.utils.translationr   r   Zdjango.confr   ฺ
__author__r   r   r   r   r   r   ฺ<module>   s   