{% extends "data_list.html" %} {% load i18n %} {% block getdatalist %} {% endblock %} {% block content %}
{% endblock %} {% block op_for_tab %} {% endblock %} {% block addjs %} function getOptions() { options_html="" for(var i=0;i"+states[i]+"" return options_html; } $(function(){ EmpAndDept={{ForgetAtt_list}}; states=EmpAndDept.states; var selectEmpoloyee="" $("#content").html("" +"
" +" {%trans ' 当某一部分或者全体员工因故未签到、签退,可使用本功能给员工添加签到、签退记录,其修改情况可在出勤记录查询功能中查询' %}" +"
{% trans '单击部门不选人员则按整个部门及其下属部门进行集体补记录,否则按所选人员进行补记录' %}
" +"
" +"" +"" +"" +"" +"
" +"
" +"" +"" +"" +"" +"" +"" +"" +"" +"" +"" +"" +"" +"" +"" +"
{%trans "提交" %}    {%trans "返回" %}
" ); $.ajax({ url:"../../att/choice_widget_for_select_emp/?multiple=true", type:"POST", dataType:"html", success:function(sdata){ //alert($("#show_dept_emp_tree")); $("#show_dept_emp_tree").html(sdata); } }); //递交 $("#id_submit").click(function(){ var usr_ids=[] $("#show_dept_emp_tree").find(".zd_Emp>div:last .div_store_emp input").each(function(index,elem){ usr_ids[index]=$(this).val(); }); if(usr_ids.length==0){ alert("you should select one person at least!"); return; } $("#id_hidden_emp").val(usr_ids.join(",")); var opt={ url:"../../att/SaveForget/", dataType:"text", type:"POST", success:function(retdata){ if(retdata.indexOf("result=0")==0){ $("#id_error").css("display","block"); $("#id_error").html(""); } else { $("#id_error").css("display","block"); var i=retdata.indexOf("message=\""); var message=retdata.substr(i+18) //$("#id_error").html(""); $("#id_error").html(""); } } } $("#id_edit_form").ajaxSubmit(opt); }); var currDate=new Date(); $("#id_checkdate").val(currDate.getFullYear() +"-" +(currDate.getMonth()+1<10?"0"+(currDate.getMonth()+1):currDate.getMonth()+1) +"-" +currDate.getDate() ); $("#id_checktime").val(currDate.toLocaleTimeString()); }); {% endblock %}