基于javascript和dom的企业员工考勤设计稿

来源:互联网 发布:架子鼓教学软件 编辑:程序博客网 时间:2024/04/30 02:18

part 1:duty.htm:

-----------------------------------

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1">
<title></title>
<script  src="duty.js" type="text/javascript" language="javascript"></script>
<!--<link  href="duty.css" type="text/css" rel="stylesheet"/>-->
</head>
<body  style=" border-collapse:collapse;table-layout:fixed;font-size:9pt" ondragstart="return false;" onselect="document.selection.empty()">
工作时长:<input type="radio"  id="dutytime_1" name="g_duty_timespan" checked="checked" onclick="document.getElementById('dutyValue').value=8;" />8小时
    <input type="radio"  id="dutytime_2" name="g_duty_timespan" onclick="if(this.checked)document.getElementById('dutyValue').value=12;"/>12小时
    <input type="hidden" id="dutyValue" value="8" />
 <br>
 
 <br>
 工作时段:<input type="checkbox"  id="dutydate_1"   />包含周六
                <input type="checkbox"  id="dutydate_2"  />包含周日
 <br>
 <br>
 <!--
 考勤类型:<input type="radio"  id="dutytype_1" name="g_duty_type" checked="checked" onclick="prepareMgrview();" />机关
    <input type="radio"  id="dutytype_2" name="g_duty_type" onclick="prepareDutyview();"/>现场
 
 <br>
 <br>
 -->
 考勤项目:   <input type="radio"  id="dutyitem_1" name="g_duty_item" checked="checked" onclick="prepareABCview();" />A/B/C(早班/中班/晚班)
    <input type="radio"  id="dutyitem_2" name="g_duty_item" onclick="prepareZview();"/>Z(不定时)
    <input type="radio"  id="dutyitem_3" name="g_duty_item" onclick="prepareGview();"/>G(高空作业)
    <input type="radio"  id="dutyitem_4" name="g_duty_item" onclick="prepareDview();"/>D(洞内作业)
    <input type="radio"  id="dutyitem_5" name="g_duty_item" onclick="prepareFview();"/>F(粉尘作业)
    <input type="radio"  id="dutyitem_6" name="g_duty_item" onclick="prepareUview();"/>U(有毒有害)
    <input type="radio"  id="dutyitem_7" name="g_duty_item" onclick="prepareQview();"/>Q(请假)
    <input type="radio"  id="dutyitem_8" name="g_duty_item" onclick="prepareKview();"/>K(旷工)
    <input type="radio"  id="dutyitem_9" name="g_duty_item" onclick="prepareAllview();"/>全部
 <br>
 <br>
 操作提示:在控制区双击鼠标可批量设置/清空考勤数据
 <br>
 <br>
 <input type="button" value="保存" onclick="saveData();" style="width:40px;height:20px" />
 <br>
 <br>
 提交到服务器端的数据(点击保存后显示):
<form id="default"  name="default" action="">
 <!--此处需与服务器编程结合,每员工一个hidden input-->
 <textarea rows="3" cols="100" id="eguid_dutyData" ></textarea>
 <!--<input type="hidden" value="" id="eguid_dutyData" style="width:400px;height:40px"/>-->
</form>
  <table style=" border-collapse:collapse;table-layout:fixed;width:900px;border:1px;text-align:center" border="1" cellpadding="0" cellspacing ="0" valign="top" >
  <tr style="font-weight:bold" titleview="true">
 <td style="height: 20px">姓名</td>
 <td style='width:100px;' align="left">控制区</td>
 <td style='width:24px'>1</td>
 <td style='width:24px'>2</td>
 <td style='width:24px'>3</td>
 <td style='width:24px'>4</td>
 <td style='width:24px;background:lightgray;'>5</td>
 <td style='width:24px;background:#00FF66;' issatday="true">6</td>
 <td style='width:24px;background:#00FF66;' issunday="true">7</td>
 <td style='width:24px'>8</td>
 <td style='width:24px'>9</td>
 <td style='width:24px'>10</td>
 <td style='width:24px'>11</td>
 <td style='width:24px;background:lightgray;'>12</td>
 <td style='width:24px;background:#00FF66;' issatday="true">13</td>
 <td style='width:24px;background:#00FF66;' issunday="true">14</td>
 <td style='width:24px'>15</td>
 <td style='width:24px'>16</td>
 <td style='width:24px'>17</td>
 <td style='width:24px;'>18</td>
 <td style='width:24px;background:lightgray;'>19</td>
 <td style='width:24px;background:lightgray'>20</td>
 <td style='width:24px;background:#00FF66;' issatday="true">21</td>
 <td style='width:24px;background:#00FF66;' issunday="true">22</td>
 <td style='width:24px'>23</td >
 <td style='width:24px'>24</td>
 <td style='width:24px;'>25</td>
 <td style='width:24px;background:lightgray;'>26</td>
 <td style='width:24px;background:lightgray'>27</td>
 <td style='width:24px;background:#00FF66;' issatday="true">28</td>
</tr>   
  <!--批量生成区域开始-->
  <tr onDblClick="dbself();" id="e1_row_a" abcview="true">
   <td rowspan="3">员工1</td>
   <td style="cursor:pointer" align="left">A(白班)</td>
   <!--此处需与服务器编程结合,每天一个 input-->
   <td style="width: 35px; height: 20px" ><input type="textbox" id="eguid_A_1_value"/></td>
   <td ><input type="textbox" id="eguid_A_2_value"/></td>
   <td ><input type="textbox" id="eguid_A_3_value"/></td>
   <td ><input type="textbox" id="eguid_A_4_value"/></td>
   <td ><input type="textbox" id="eguid_A_5_value"/></td>
   <td ><input type="textbox" id="eguid_A_6_value"/></td>
   <td ><input type="textbox" id="eguid_A_7_value"/></td>
   <td ><input type="textbox" id="eguid_A_8_value"/></td>
   <td ><input type="textbox" id="eguid_A_9_value"/></td>
   <td ><input type="textbox" id="eguid_A_10_value"/></td>
   <td ><input type="textbox" id="eguid_A_11_value"/></td>
   <td ><input type="textbox" id="eguid_A_12_value"/></td>
   <td ><input type="textbox" id="eguid_A_13_value"/></td>
   <td ><input type="textbox" id="eguid_A_14_value"/></td>
   <td ><input type="textbox" id="eguid_A_15_value"/></td>
   <td ><input type="textbox" id="eguid_A_16_value"/></td>
   <td ><input type="textbox" id="eguid_A_17_value"/></td>
   <td ><input type="textbox" id="eguid_A_18_value"/></td>
   <td ><input type="textbox" id="eguid_A_19_value"/></td>
   <td ><input type="textbox" id="eguid_A_20_value"/></td>
   <td ><input type="textbox" id="eguid_A_21_value"/></td>
   <td ><input type="textbox" id="eguid_A_22_value"/></td>
   <td ><input type="textbox" id="eguid_A_23_value"/></td>
   <td ><input type="textbox" id="eguid_A_24_value"/></td>
   <td ><input type="textbox" id="eguid_A_25_value"/></td>
   <td ><input type="textbox" id="eguid_A_26_value"/></td>
   <td ><input type="textbox" id="eguid_A_27_value"/></td>
   <td ><input type="textbox" id="eguid_A_28_value"/></td>
  </tr>
  <tr onDblClick="dbself();" id="e1_row_b" dutyrow ="true" abcview="true">
   <td style="cursor:pointer"  align="left">B(中班)</td>
   <td style="width: 35px; height: 20px" ><input type="textbox" id="eguid_B_1_value"/></td>
   <td ><input type="textbox" id="eguid_B_2_value"/></td>
   <td ><input type="textbox" id="eguid_B_3_value"/></td>
   <td ><input type="textbox" id="eguid_B_4_value"/></td>
   <td ><input type="textbox" id="eguid_B_5_value"/></td>
   <td ><input type="textbox" id="eguid_B_6_value"/></td>
   <td ><input type="textbox" id="eguid_B_7_value"/></td>
   <td ><input type="textbox" id="eguid_B_8_value"/></td>
   <td ><input type="textbox" id="eguid_B_9_value"/></td>
   <td ><input type="textbox" id="eguid_B_10_value"/></td>
   <td ><input type="textbox" id="eguid_B_11_value"/></td>
   <td ><input type="textbox" id="eguid_B_12_value"/></td>
   <td ><input type="textbox" id="eguid_B_13_value"/></td>
   <td ><input type="textbox" id="eguid_B_14_value"/></td>
   <td ><input type="textbox" id="eguid_B_15_value"/></td>
   <td ><input type="textbox" id="eguid_B_16_value"/></td>
   <td ><input type="textbox" id="eguid_B_17_value"/></td>
   <td ><input type="textbox" id="eguid_B_18_value"/></td>
   <td ><input type="textbox" id="eguid_B_19_value"/></td>
   <td ><input type="textbox" id="eguid_B_20_value"/></td>
   <td ><input type="textbox" id="eguid_B_21_value"/></td>
   <td ><input type="textbox" id="eguid_B_22_value"/></td>
   <td ><input type="textbox" id="eguid_B_23_value"/></td>
   <td ><input type="textbox" id="eguid_B_24_value"/></td>
   <td ><input type="textbox" id="eguid_B_25_value"/></td>
   <td ><input type="textbox" id="eguid_B_26_value"/></td>
   <td ><input type="textbox" id="eguid_B_27_value"/></td>
   <td ><input type="textbox" id="eguid_B_28_value"/></td>
  </tr>
  <tr onDblClick="dbself();" id="e1_row_c" dutyrow ="true" abcview="true">
   <td style="cursor:pointer" align="left">C(晚班)</td>
   <td style="width: 35px; height: 20px" ><input type="textbox" id="eguid_C_1_value"/></td>
   <td ><input type="textbox" id="eguid_C_2_value"/></td>
   <td ><input type="textbox" id="eguid_C_3_value"/></td>
   <td ><input type="textbox" id="eguid_C_4_value"/></td>
   <td ><input type="textbox" id="eguid_C_5_value"/></td>
   <td ><input type="textbox" id="eguid_C_6_value"/></td>
   <td ><input type="textbox" id="eguid_C_7_value"/></td>
   <td ><input type="textbox" id="eguid_C_8_value"/></td>
   <td ><input type="textbox" id="eguid_C_9_value"/></td>
   <td ><input type="textbox" id="eguid_C_10_value"/></td>
   <td ><input type="textbox" id="eguid_C_11_value"/></td>
   <td ><input type="textbox" id="eguid_C_12_value"/></td>
   <td ><input type="textbox" id="eguid_C_13_value"/></td>
   <td ><input type="textbox" id="eguid_C_14_value"/></td>
   <td ><input type="textbox" id="eguid_C_15_value"/></td>
   <td ><input type="textbox" id="eguid_C_16_value"/></td>
   <td ><input type="textbox" id="eguid_C_17_value"/></td>
   <td ><input type="textbox" id="eguid_C_18_value"/></td>
   <td ><input type="textbox" id="eguid_C_19_value"/></td>
   <td ><input type="textbox" id="eguid_C_20_value"/></td>
   <td ><input type="textbox" id="eguid_C_21_value"/></td>
   <td ><input type="textbox" id="eguid_C_22_value"/></td>
   <td ><input type="textbox" id="eguid_C_23_value"/></td>
   <td ><input type="textbox" id="eguid_C_24_value"/></td>
   <td ><input type="textbox" id="eguid_C_25_value"/></td>
   <td ><input type="textbox" id="eguid_C_26_value"/></td>
   <td ><input type="textbox" id="eguid_C_27_value"/></td>
   <td ><input type="textbox" id="eguid_C_28_value"/></td>
  </tr>
  <tr onDblClick="dbself();" id="e1_row_k" dutyrow ="true" color="#CCFFCC" zview="true">
      <td >员工1</td>
   <td style="cursor:pointer" align="left">Z(不定时)</td>
   <td style="width: 35px; height: 20px" ><input type="checkbox" lockabc="true" id="eguid_Z_1_value"/></td>
   <td ><input type="checkbox" lockabc="true" id="eguid_Z_2_value"/></td>
   <td ><input type="checkbox" lockabc="true" id="eguid_Z_3_value"/></td>
   <td ><input type="checkbox" lockabc="true" id="eguid_Z_4_value"/></td>
   <td ><input type="checkbox" lockabc="true" id="eguid_Z_5_value"/></td>
   <td ><input type="checkbox" lockabc="true" id="eguid_Z_6_value"/></td>
   <td ><input type="checkbox" lockabc="true" id="eguid_Z_7_value"/></td>
   <td ><input type="checkbox" lockabc="true" id="eguid_Z_8_value"/></td>
   <td ><input type="checkbox" lockabc="true" id="eguid_Z_9_value" /></td>
   <td ><input type="checkbox" lockabc="true" id="eguid_Z_10_value"/></td>
   <td ><input type="checkbox" lockabc="true" id="eguid_Z_11_value"/></td>
   <td ><input type="checkbox" lockabc="true" id="eguid_Z_12_value"/></td>
   <td ><input type="checkbox" lockabc="true" id="eguid_Z_13_value"/></td>
   <td ><input type="checkbox" lockabc="true" id="eguid_Z_14_value"/></td>
   <td ><input type="checkbox" lockabc="true" id="eguid_Z_15_value"/></td>
   <td ><input type="checkbox" lockabc="true" id="eguid_Z_16_value"/></td>
   <td ><input type="checkbox" lockabc="true" id="eguid_Z_17_value"/></td>
   <td ><input type="checkbox" lockabc="true" id="eguid_Z_18_value"/></td>
   <td ><input type="checkbox" lockabc="true" id="eguid_Z_19_value"/></td>
   <td ><input type="checkbox" lockabc="true" id="eguid_Z_20_value"/></td>
   <td ><input type="checkbox" lockabc="true" id="eguid_Z_21_value"/></td>
   <td ><input type="checkbox" lockabc="true" id="eguid_Z_22_value"/></td>
   <td ><input type="checkbox" lockabc="true" id="eguid_Z_23_value"/></td>
   <td ><input type="checkbox" lockabc="true" id="eguid_Z_24_value"/></td>
   <td ><input type="checkbox" lockabc="true" id="eguid_Z_25_value"/></td>
   <td ><input type="checkbox" lockabc="true" id="eguid_Z_26_value"/></td>
   <td ><input type="checkbox" lockabc="true" id="eguid_Z_27_value"/></td>
   <td ><input type="checkbox" lockabc="true" id="eguid_Z_28_value"/></td>
  </tr>
  <tr onDblClick="dbself();" id="e1_row_g" dutyrow ="true" color="#99FFCC" gview="true">
      <td >员工1</td>
   <td style="cursor:pointer" align="left">G(高空作业)</td>
   <td style="width: 35px; height: 20px" ><input type="checkbox" id="eguid_G_1_value"/></td>
   <td ><input type="checkbox" id="eguid_G_2_value"/></td>
   <td ><input type="checkbox" id="eguid_G_3_value"/></td>
   <td ><input type="checkbox" id="eguid_G_4_value"/></td>
   <td ><input type="checkbox" id="eguid_G_5_value"/></td>
   <td ><input type="checkbox" id="eguid_G_6_value"/></td>
   <td ><input type="checkbox" id="eguid_G_7_value"/></td>
   <td ><input type="checkbox" id="eguid_G_8_value"/></td>
   <td ><input type="checkbox" id="eguid_G_9_value"/></td>
   <td ><input type="checkbox" id="eguid_G_10_value"/></td>
   <td ><input type="checkbox" id="eguid_G_11_value"/></td>
   <td ><input type="checkbox" id="eguid_G_12_value"/></td>
   <td ><input type="checkbox" id="eguid_G_13_value"/></td>
   <td ><input type="checkbox" id="eguid_G_14_value"/></td>
   <td ><input type="checkbox" id="eguid_G_15_value"/></td>
   <td ><input type="checkbox" id="eguid_G_16_value"/></td>
   <td ><input type="checkbox" id="eguid_G_17_value"/></td>
   <td ><input type="checkbox" id="eguid_G_18_value"/></td>
   <td ><input type="checkbox" id="eguid_G_19_value"/></td>
   <td ><input type="checkbox" id="eguid_G_20_value"/></td>
   <td ><input type="checkbox" id="eguid_G_21_value"/></td>
   <td ><input type="checkbox" id="eguid_G_22_value"/></td>
   <td ><input type="checkbox" id="eguid_G_23_value"/></td>
   <td ><input type="checkbox" id="eguid_G_24_value"/></td>
   <td ><input type="checkbox" id="eguid_G_25_value"/></td>
   <td ><input type="checkbox" id="eguid_G_26_value"/></td>
   <td ><input type="checkbox" id="eguid_G_27_value"/></td>
   <td ><input type="checkbox" id="eguid_G_28_value"/></td>
  </tr>  
  <tr onDblClick="dbself();" id="e1_row_g" dutyrow ="true" color="#6699FF" dview="true">
      <td >员工1</td>
   <td style="cursor:pointer"  align="left">D(洞内作业)</td>
   <td style="width: 35px; height: 20px" ><input type="checkbox" id="eguid_D_1_value"/></td>
   <td ><input type="checkbox" id="eguid_D_2_value"/></td>
   <td ><input type="checkbox" id="eguid_D_3_value"/></td>
   <td ><input type="checkbox" id="eguid_D_4_value"/></td>
   <td ><input type="checkbox" id="eguid_D_5_value"/></td>
   <td ><input type="checkbox" id="eguid_D_6_value"/></td>
   <td ><input type="checkbox" id="eguid_D_7_value"/></td>
   <td ><input type="checkbox" id="eguid_D_8_value"/></td>
   <td ><input type="checkbox" id="eguid_D_9_value"/></td>
   <td ><input type="checkbox" id="eguid_D_10_value"/></td>
   <td ><input type="checkbox" id="eguid_D_11_value"/></td>
   <td ><input type="checkbox" id="eguid_D_12_value"/></td>
   <td ><input type="checkbox" id="eguid_D_13_value"/></td>
   <td ><input type="checkbox" id="eguid_D_14_value"/></td>
   <td ><input type="checkbox" id="eguid_D_15_value"/></td>
   <td ><input type="checkbox" id="eguid_D_16_value"/></td>
   <td ><input type="checkbox" id="eguid_D_17_value"/></td>
   <td ><input type="checkbox" id="eguid_D_18_value"/></td>
   <td ><input type="checkbox" id="eguid_D_19_value"/></td>
   <td ><input type="checkbox" id="eguid_D_20_value"/></td>
   <td ><input type="checkbox" id="eguid_D_21_value"/></td>
   <td ><input type="checkbox" id="eguid_D_22_value"/></td>
   <td ><input type="checkbox" id="eguid_D_23_value"/></td>
   <td ><input type="checkbox" id="eguid_D_24_value"/></td>
   <td ><input type="checkbox" id="eguid_D_25_value"/></td>
   <td ><input type="checkbox" id="eguid_D_26_value"/></td>
   <td ><input type="checkbox" id="eguid_D_27_value"/></td>
   <td ><input type="checkbox" id="eguid_D_28_value"/></td>
  </tr>
    <tr onDblClick="dbself();" id="e1_row_g" dutyrow ="true" color="#CCCCCC" fview="true">
      <td >员工1</td>
   <td style="cursor:pointer" align="left">F(粉尘作业)</td>
   <td style="width: 35px; height: 20px" ><input type="checkbox" id="eguid_F_1_value"/></td>
   <td ><input type="checkbox" id="eguid_F_2_value"/></td>
   <td ><input type="checkbox" id="eguid_F_3_value"/></td>
   <td ><input type="checkbox" id="eguid_F_4_value"/></td>
   <td ><input type="checkbox" id="eguid_F_5_value"/></td>
   <td ><input type="checkbox" id="eguid_F_6_value"/></td>
   <td ><input type="checkbox" id="eguid_F_7_value"/></td>
   <td ><input type="checkbox" id="eguid_F_8_value"/></td>
   <td ><input type="checkbox" id="eguid_F_9_value"/></td>
   <td ><input type="checkbox" id="eguid_F_10_value"/></td>
   <td ><input type="checkbox" id="eguid_F_11_value"/></td>
   <td ><input type="checkbox" id="eguid_F_12_value"/></td>
   <td ><input type="checkbox" id="eguid_F_13_value"/></td>
   <td ><input type="checkbox" id="eguid_F_14_value"/></td>
   <td ><input type="checkbox" id="eguid_F_15_value"/></td>
   <td ><input type="checkbox" id="eguid_F_16_value"/></td>
   <td ><input type="checkbox" id="eguid_F_17_value"/></td>
   <td ><input type="checkbox" id="eguid_F_18_value"/></td>
   <td ><input type="checkbox" id="eguid_F_19_value"/></td>
   <td ><input type="checkbox" id="eguid_F_20_value"/></td>
   <td ><input type="checkbox" id="eguid_F_21_value"/></td>
   <td ><input type="checkbox" id="eguid_F_22_value"/></td>
   <td ><input type="checkbox" id="eguid_F_23_value"/></td>
   <td ><input type="checkbox" id="eguid_F_24_value"/></td>
   <td ><input type="checkbox" id="eguid_F_25_value"/></td>
   <td ><input type="checkbox" id="eguid_F_26_value"/></td>
   <td ><input type="checkbox" id="eguid_F_27_value"/></td>
   <td ><input type="checkbox" id="eguid_F_28_value"/></td>
  </tr>
    <tr onDblClick="dbself();" id="e1_row_g" dutyrow ="true" color="#663300"  uview="true">
      <td >员工1</td>
   <td style="cursor:pointer" align="left">U(有毒有害)</td>
   <td style="width: 35px; height: 20px" ><input type="checkbox" id="eguid_U_1_value"/></td>
   <td ><input type="checkbox" id="eguid_U_2_value"/></td>
   <td ><input type="checkbox" id="eguid_U_3_value"/></td>
   <td ><input type="checkbox" id="eguid_U_4_value"/></td>
   <td ><input type="checkbox" id="eguid_U_5_value"/></td>
   <td ><input type="checkbox" id="eguid_U_6_value"/></td>
   <td ><input type="checkbox" id="eguid_U_7_value"/></td>
   <td ><input type="checkbox" id="eguid_U_8_value"/></td>
   <td ><input type="checkbox" id="eguid_U_9_value"/></td>
   <td ><input type="checkbox" id="eguid_U_10_value"/></td>
   <td ><input type="checkbox" id="eguid_U_11_value"/></td>
   <td ><input type="checkbox" id="eguid_U_12_value"/></td>
   <td ><input type="checkbox" id="eguid_U_13_value"/></td>
   <td ><input type="checkbox" id="eguid_U_14_value"/></td>
   <td ><input type="checkbox" id="eguid_U_15_value"/></td>
   <td ><input type="checkbox" id="eguid_U_16_value"/></td>
   <td ><input type="checkbox" id="eguid_U_17_value"/></td>
   <td ><input type="checkbox" id="eguid_U_18_value"/></td>
   <td ><input type="checkbox" id="eguid_U_19_value"/></td>
   <td ><input type="checkbox" id="eguid_U_20_value"/></td>
   <td ><input type="checkbox" id="eguid_U_21_value"/></td>
   <td ><input type="checkbox" id="eguid_U_22_value"/></td>
   <td ><input type="checkbox" id="eguid_U_23_value"/></td>
   <td ><input type="checkbox" id="eguid_U_24_value"/></td>
   <td ><input type="checkbox" id="eguid_U_25_value"/></td>
   <td ><input type="checkbox" id="eguid_U_26_value"/></td>
   <td ><input type="checkbox" id="eguid_U_27_value"/></td>
   <td ><input type="checkbox" id="eguid_U_28_value"/></td>
  </tr>
  <tr  id="e1_row_k" color="#FFFF00" qview="true">
      <td >员工1</td>
   <td style="cursor:pointer" align="left">Q(请假)</td>
   <td style="width: 35px; height: 20px" ><input type="checkbox" lockduty="true" id="eguid_Q_1_value" disabled="true"/></td>
   <td  ><input type="checkbox" lockduty="true" id="eguid_Q_2_value" disabled="true" /></td>
   <td  ><input type="checkbox" lockduty="true" id="eguid_Q_3_value" disabled="true" /></td>
   <td  ><input type="checkbox" lockduty="true" id="eguid_Q_4_value" disabled="true" /></td>
   <td  ><input type="checkbox" lockduty="true" id="eguid_Q_5_value" disabled="true" /></td>
   <td  ><input type="checkbox" lockduty="true" id="eguid_Q_6_value" disabled="true" /></td>
   <td  ><input type="checkbox" lockduty="true" id="eguid_Q_7_value" disabled="true" /></td>
   <td  ><input type="checkbox" lockduty="true" id="eguid_Q_8_value" disabled="true" /></td>
   <td  ><input type="checkbox" lockduty="true" id="eguid_Q_9_value" disabled="true" /></td>
   <td  ><input type="checkbox" lockduty="true" id="eguid_Q_10_value" disabled="true" /></td>
   <td  ><input type="checkbox" lockduty="true" id="eguid_Q_11_value" disabled="true" /></td>
   <td  ><input type="checkbox" lockduty="true" id="eguid_Q_12_value" disabled="true" /></td>
   <td  ><input type="checkbox" lockduty="true" id="eguid_Q_13_value" disabled="true" /></td>
   <td  ><input type="checkbox" lockduty="true" id="eguid_Q_14_value" disabled="true" /></td>
   <td  ><input type="checkbox" lockduty="true" id="eguid_Q_15_value" disabled="true" /></td>
   <td  ><input type="checkbox" lockduty="true" id="eguid_Q_16_value" disabled="true" /></td>
   <td  ><input type="checkbox" lockduty="true" id="eguid_Q_17_value" disabled="true" /></td>
   <td  ><input type="checkbox" lockduty="true" id="eguid_Q_18_value" disabled="true" /></td>
   <td  ><input type="checkbox" lockduty="true" id="eguid_Q_19_value" disabled="true" /></td>
   <td  ><input type="checkbox" lockduty="true" id="eguid_Q_20_value" disabled="true" /></td>
   <td  ><input type="checkbox" lockduty="true" id="eguid_Q_21_value" disabled="true" /></td>
   <td  ><input type="checkbox" lockduty="true" id="eguid_Q_22_value" disabled="true" /></td>
   <td  ><input type="checkbox" lockduty="true" id="eguid_Q_23_value" disabled="true" /></td>
   <td  ><input type="checkbox" lockduty="true" id="eguid_Q_24_value" disabled="true" /></td>
   <td  ><input type="checkbox" lockduty="true" id="eguid_Q_25_value" disabled="true" /></td>
   <td  ><input type="checkbox" lockduty="true" id="eguid_Q_26_value" disabled="true" /></td>
   <td  ><input type="checkbox" lockduty="true" id="eguid_Q_27_value" disabled="true" /></td>
   <td  ><input type="checkbox" lockduty="true" id="eguid_Q_28_value" disabled="true" /></td>
  </tr>
  <tr onDblClick="dbself();" id="e1_row_k"  color="#CC0033" kview="true">
      <td >员工1</td>
   <td style="cursor:pointer" align="left">K(旷工)</td>
   <td style="width: 35px; height: 20px" ><input type="checkbox" lockall="true" id="eguid_K_1_value"/></td>
   <td ><input type="checkbox" lockall="true" id="eguid_K_2_value"/></td>
   <td ><input type="checkbox" lockall="true" id="eguid_K_3_value"/></td>
   <td ><input type="checkbox" lockall="true" id="eguid_K_4_value"/></td>
   <td ><input type="checkbox" lockall="true" id="eguid_K_5_value"/></td>
   <td ><input type="checkbox" lockall="true" id="eguid_K_6_value"/></td>
   <td ><input type="checkbox" lockall="true" id="eguid_K_7_value"/></td>
   <td ><input type="checkbox" lockall="true" id="eguid_K_8_value"/></td>
   <td ><input type="checkbox" lockall="true" id="eguid_K_9_value"/></td>
   <td ><input type="checkbox" lockall="true" id="eguid_K_10_value"/></td>
   <td ><input type="checkbox" lockall="true" id="eguid_K_11_value"/></td>
   <td ><input type="checkbox" lockall="true" id="eguid_K_12_value"/></td>
   <td ><input type="checkbox" lockall="true" id="eguid_K_13_value"/></td>
   <td ><input type="checkbox" lockall="true" id="eguid_K_14_value"/></td>
   <td ><input type="checkbox" lockall="true" id="eguid_K_15_value"/></td>
   <td ><input type="checkbox" lockall="true" id="eguid_K_16_value"/></td>
   <td ><input type="checkbox" lockall="true" id="eguid_K_17_value"/></td>
   <td ><input type="checkbox" lockall="true" id="eguid_K_18_value"/></td>
   <td ><input type="checkbox" lockall="true" id="eguid_K_19_value"/></td>
   <td ><input type="checkbox" lockall="true" id="eguid_K_20_value"/></td>
   <td ><input type="checkbox" lockall="true" id="eguid_K_21_value"/></td>
   <td ><input type="checkbox" lockall="true" id="eguid_K_22_value"/></td>
   <td ><input type="checkbox" lockall="true" id="eguid_K_23_value"/></td>
   <td ><input type="checkbox" lockall="true" id="eguid_K_24_value"/></td>
   <td ><input type="checkbox" lockall="true" id="eguid_K_25_value"/></td>
   <td ><input type="checkbox" lockall="true" id="eguid_K_26_value"/></td>
   <td ><input type="checkbox" lockall="true" id="eguid_K_27_value"/></td>
   <td ><input type="checkbox" lockall="true" id="eguid_K_28_value"/></td>
  </tr>
  <!--批量生成区域结束--> 
  <!--批量生成区域开始-->
  <tr onDblClick="dbself();" id="e1_row_a" abcview="true">
   <td rowspan="3">员工1</td>
   <td style="cursor:pointer" align="left">A(白班)</td>
   <!--此处需与服务器编程结合,每天一个 input-->
   <td style="width: 35px; height: 20px" ><input type="textbox" id="eguid_A_1_value"/></td>
   <td ><input type="textbox" id="eguid_A_2_value"/></td>
   <td ><input type="textbox" id="eguid_A_3_value"/></td>
   <td ><input type="textbox" id="eguid_A_4_value"/></td>
   <td ><input type="textbox" id="eguid_A_5_value"/></td>
   <td ><input type="textbox" id="eguid_A_6_value"/></td>
   <td ><input type="textbox" id="eguid_A_7_value"/></td>
   <td ><input type="textbox" id="eguid_A_8_value"/></td>
   <td ><input type="textbox" id="eguid_A_9_value"/></td>
   <td ><input type="textbox" id="eguid_A_10_value"/></td>
   <td ><input type="textbox" id="eguid_A_11_value"/></td>
   <td ><input type="textbox" id="eguid_A_12_value"/></td>
   <td ><input type="textbox" id="eguid_A_13_value"/></td>
   <td ><input type="textbox" id="eguid_A_14_value"/></td>
   <td ><input type="textbox" id="eguid_A_15_value"/></td>
   <td ><input type="textbox" id="eguid_A_16_value"/></td>
   <td ><input type="textbox" id="eguid_A_17_value"/></td>
   <td ><input type="textbox" id="eguid_A_18_value"/></td>
   <td ><input type="textbox" id="eguid_A_19_value"/></td>
   <td ><input type="textbox" id="eguid_A_20_value"/></td>
   <td ><input type="textbox" id="eguid_A_21_value"/></td>
   <td ><input type="textbox" id="eguid_A_22_value"/></td>
   <td ><input type="textbox" id="eguid_A_23_value"/></td>
   <td ><input type="textbox" id="eguid_A_24_value"/></td>
   <td ><input type="textbox" id="eguid_A_25_value"/></td>
   <td ><input type="textbox" id="eguid_A_26_value"/></td>
   <td ><input type="textbox" id="eguid_A_27_value"/></td>
   <td ><input type="textbox" id="eguid_A_28_value"/></td>
  </tr>
  <tr onDblClick="dbself();" id="e1_row_b" dutyrow ="true" abcview="true">
   <td style="cursor:pointer"  align="left">B(中班)</td>
   <td style="width: 35px; height: 20px" ><input type="textbox" id="eguid_B_1_value"/></td>
   <td ><input type="textbox" id="eguid_B_2_value"/></td>
   <td ><input type="textbox" id="eguid_B_3_value"/></td>
   <td ><input type="textbox" id="eguid_B_4_value"/></td>
   <td ><input type="textbox" id="eguid_B_5_value"/></td>
   <td ><input type="textbox" id="eguid_B_6_value"/></td>
   <td ><input type="textbox" id="eguid_B_7_value"/></td>
   <td ><input type="textbox" id="eguid_B_8_value"/></td>
   <td ><input type="textbox" id="eguid_B_9_value"/></td>
   <td ><input type="textbox" id="eguid_B_10_value"/></td>
   <td ><input type="textbox" id="eguid_B_11_value"/></td>
   <td ><input type="textbox" id="eguid_B_12_value"/></td>
   <td ><input type="textbox" id="eguid_B_13_value"/></td>
   <td ><input type="textbox" id="eguid_B_14_value"/></td>
   <td ><input type="textbox" id="eguid_B_15_value"/></td>
   <td ><input type="textbox" id="eguid_B_16_value"/></td>
   <td ><input type="textbox" id="eguid_B_17_value"/></td>
   <td ><input type="textbox" id="eguid_B_18_value"/></td>
   <td ><input type="textbox" id="eguid_B_19_value"/></td>
   <td ><input type="textbox" id="eguid_B_20_value"/></td>
   <td ><input type="textbox" id="eguid_B_21_value"/></td>
   <td ><input type="textbox" id="eguid_B_22_value"/></td>
   <td ><input type="textbox" id="eguid_B_23_value"/></td>
   <td ><input type="textbox" id="eguid_B_24_value"/></td>
   <td ><input type="textbox" id="eguid_B_25_value"/></td>
   <td ><input type="textbox" id="eguid_B_26_value"/></td>
   <td ><input type="textbox" id="eguid_B_27_value"/></td>
   <td ><input type="textbox" id="eguid_B_28_value"/></td>
  </tr>
  <tr onDblClick="dbself();" id="e1_row_c" dutyrow ="true" abcview="true">
   <td style="cursor:pointer" align="left">C(晚班)</td>
   <td style="width: 35px; height: 20px" ><input type="textbox" id="eguid_C_1_value"/></td>
   <td ><input type="textbox" id="eguid_C_2_value"/></td>
   <td ><input type="textbox" id="eguid_C_3_value"/></td>
   <td ><input type="textbox" id="eguid_C_4_value"/></td>
   <td ><input type="textbox" id="eguid_C_5_value"/></td>
   <td ><input type="textbox" id="eguid_C_6_value"/></td>
   <td ><input type="textbox" id="eguid_C_7_value"/></td>
   <td ><input type="textbox" id="eguid_C_8_value"/></td>
   <td ><input type="textbox" id="eguid_C_9_value"/></td>
   <td ><input type="textbox" id="eguid_C_10_value"/></td>
   <td ><input type="textbox" id="eguid_C_11_value"/></td>
   <td ><input type="textbox" id="eguid_C_12_value"/></td>
   <td ><input type="textbox" id="eguid_C_13_value"/></td>
   <td ><input type="textbox" id="eguid_C_14_value"/></td>
   <td ><input type="textbox" id="eguid_C_15_value"/></td>
   <td ><input type="textbox" id="eguid_C_16_value"/></td>
   <td ><input type="textbox" id="eguid_C_17_value"/></td>
   <td ><input type="textbox" id="eguid_C_18_value"/></td>
   <td ><input type="textbox" id="eguid_C_19_value"/></td>
   <td ><input type="textbox" id="eguid_C_20_value"/></td>
   <td ><input type="textbox" id="eguid_C_21_value"/></td>
   <td ><input type="textbox" id="eguid_C_22_value"/></td>
   <td ><input type="textbox" id="eguid_C_23_value"/></td>
   <td ><input type="textbox" id="eguid_C_24_value"/></td>
   <td ><input type="textbox" id="eguid_C_25_value"/></td>
   <td ><input type="textbox" id="eguid_C_26_value"/></td>
   <td ><input type="textbox" id="eguid_C_27_value"/></td>
   <td ><input type="textbox" id="eguid_C_28_value"/></td>
  </tr>
  <tr onDblClick="dbself();" id="e1_row_k" dutyrow ="true" color="#CCFFCC" zview="true">
      <td >员工1</td>
   <td style="cursor:pointer" align="left">Z(不定时)</td>
   <td style="width: 35px; height: 20px" ><input type="checkbox" lockabc="true" id="eguid_Z_1_value"/></td>
   <td ><input type="checkbox" lockabc="true" id="eguid_Z_2_value"/></td>
   <td ><input type="checkbox" lockabc="true" id="eguid_Z_3_value"/></td>
   <td ><input type="checkbox" lockabc="true" id="eguid_Z_4_value"/></td>
   <td ><input type="checkbox" lockabc="true" id="eguid_Z_5_value"/></td>
   <td ><input type="checkbox" lockabc="true" id="eguid_Z_6_value"/></td>
   <td ><input type="checkbox" lockabc="true" id="eguid_Z_7_value"/></td>
   <td ><input type="checkbox" lockabc="true" id="eguid_Z_8_value"/></td>
   <td ><input type="checkbox" lockabc="true" id="eguid_Z_9_value" /></td>
   <td ><input type="checkbox" lockabc="true" id="eguid_Z_10_value"/></td>
   <td ><input type="checkbox" lockabc="true" id="eguid_Z_11_value"/></td>
   <td ><input type="checkbox" lockabc="true" id="eguid_Z_12_value"/></td>
   <td ><input type="checkbox" lockabc="true" id="eguid_Z_13_value"/></td>
   <td ><input type="checkbox" lockabc="true" id="eguid_Z_14_value"/></td>
   <td ><input type="checkbox" lockabc="true" id="eguid_Z_15_value"/></td>
   <td ><input type="checkbox" lockabc="true" id="eguid_Z_16_value"/></td>
   <td ><input type="checkbox" lockabc="true" id="eguid_Z_17_value"/></td>
   <td ><input type="checkbox" lockabc="true" id="eguid_Z_18_value"/></td>
   <td ><input type="checkbox" lockabc="true" id="eguid_Z_19_value"/></td>
   <td ><input type="checkbox" lockabc="true" id="eguid_Z_20_value"/></td>
   <td ><input type="checkbox" lockabc="true" id="eguid_Z_21_value"/></td>
   <td ><input type="checkbox" lockabc="true" id="eguid_Z_22_value"/></td>
   <td ><input type="checkbox" lockabc="true" id="eguid_Z_23_value"/></td>
   <td ><input type="checkbox" lockabc="true" id="eguid_Z_24_value"/></td>
   <td ><input type="checkbox" lockabc="true" id="eguid_Z_25_value"/></td>
   <td ><input type="checkbox" lockabc="true" id="eguid_Z_26_value"/></td>
   <td ><input type="checkbox" lockabc="true" id="eguid_Z_27_value"/></td>
   <td ><input type="checkbox" lockabc="true" id="eguid_Z_28_value"/></td>
  </tr>
  <tr onDblClick="dbself();" id="e1_row_g" dutyrow ="true" color="#99FFCC" gview="true">
      <td >员工1</td>
   <td style="cursor:pointer" align="left">G(高空作业)</td>
   <td style="width: 35px; height: 20px" ><input type="checkbox" id="eguid_G_1_value"/></td>
   <td ><input type="checkbox" id="eguid_G_2_value"/></td>
   <td ><input type="checkbox" id="eguid_G_3_value"/></td>
   <td ><input type="checkbox" id="eguid_G_4_value"/></td>
   <td ><input type="checkbox" id="eguid_G_5_value"/></td>
   <td ><input type="checkbox" id="eguid_G_6_value"/></td>
   <td ><input type="checkbox" id="eguid_G_7_value"/></td>
   <td ><input type="checkbox" id="eguid_G_8_value"/></td>
   <td ><input type="checkbox" id="eguid_G_9_value"/></td>
   <td ><input type="checkbox" id="eguid_G_10_value"/></td>
   <td ><input type="checkbox" id="eguid_G_11_value"/></td>
   <td ><input type="checkbox" id="eguid_G_12_value"/></td>
   <td ><input type="checkbox" id="eguid_G_13_value"/></td>
   <td ><input type="checkbox" id="eguid_G_14_value"/></td>
   <td ><input type="checkbox" id="eguid_G_15_value"/></td>
   <td ><input type="checkbox" id="eguid_G_16_value"/></td>
   <td ><input type="checkbox" id="eguid_G_17_value"/></td>
   <td ><input type="checkbox" id="eguid_G_18_value"/></td>
   <td ><input type="checkbox" id="eguid_G_19_value"/></td>
   <td ><input type="checkbox" id="eguid_G_20_value"/></td>
   <td ><input type="checkbox" id="eguid_G_21_value"/></td>
   <td ><input type="checkbox" id="eguid_G_22_value"/></td>
   <td ><input type="checkbox" id="eguid_G_23_value"/></td>
   <td ><input type="checkbox" id="eguid_G_24_value"/></td>
   <td ><input type="checkbox" id="eguid_G_25_value"/></td>
   <td ><input type="checkbox" id="eguid_G_26_value"/></td>
   <td ><input type="checkbox" id="eguid_G_27_value"/></td>
   <td ><input type="checkbox" id="eguid_G_28_value"/></td>
  </tr>  
  <tr onDblClick="dbself();" id="e1_row_g" dutyrow ="true" color="#6699FF" dview="true">
      <td >员工1</td>
   <td style="cursor:pointer"  align="left">D(洞内作业)</td>
   <td style="width: 35px; height: 20px" ><input type="checkbox" id="eguid_D_1_value"/></td>
   <td ><input type="checkbox" id="eguid_D_2_value"/></td>
   <td ><input type="checkbox" id="eguid_D_3_value"/></td>
   <td ><input type="checkbox" id="eguid_D_4_value"/></td>
   <td ><input type="checkbox" id="eguid_D_5_value"/></td>
   <td ><input type="checkbox" id="eguid_D_6_value"/></td>
   <td ><input type="checkbox" id="eguid_D_7_value"/></td>
   <td ><input type="checkbox" id="eguid_D_8_value"/></td>
   <td ><input type="checkbox" id="eguid_D_9_value"/></td>
   <td ><input type="checkbox" id="eguid_D_10_value"/></td>
   <td ><input type="checkbox" id="eguid_D_11_value"/></td>
   <td ><input type="checkbox" id="eguid_D_12_value"/></td>
   <td ><input type="checkbox" id="eguid_D_13_value"/></td>
   <td ><input type="checkbox" id="eguid_D_14_value"/></td>
   <td ><input type="checkbox" id="eguid_D_15_value"/></td>
   <td ><input type="checkbox" id="eguid_D_16_value"/></td>
   <td ><input type="checkbox" id="eguid_D_17_value"/></td>
   <td ><input type="checkbox" id="eguid_D_18_value"/></td>
   <td ><input type="checkbox" id="eguid_D_19_value"/></td>
   <td ><input type="checkbox" id="eguid_D_20_value"/></td>
   <td ><input type="checkbox" id="eguid_D_21_value"/></td>
   <td ><input type="checkbox" id="eguid_D_22_value"/></td>
   <td ><input type="checkbox" id="eguid_D_23_value"/></td>
   <td ><input type="checkbox" id="eguid_D_24_value"/></td>
   <td ><input type="checkbox" id="eguid_D_25_value"/></td>
   <td ><input type="checkbox" id="eguid_D_26_value"/></td>
   <td ><input type="checkbox" id="eguid_D_27_value"/></td>
   <td ><input type="checkbox" id="eguid_D_28_value"/></td>
  </tr>
    <tr onDblClick="dbself();" id="e1_row_g" dutyrow ="true" color="#CCCCCC" fview="true">
      <td >员工1</td>
   <td style="cursor:pointer" align="left">F(粉尘作业)</td>
   <td style="width: 35px; height: 20px" ><input type="checkbox" id="eguid_F_1_value"/></td>
   <td ><input type="checkbox" id="eguid_F_2_value"/></td>
   <td ><input type="checkbox" id="eguid_F_3_value"/></td>
   <td ><input type="checkbox" id="eguid_F_4_value"/></td>
   <td ><input type="checkbox" id="eguid_F_5_value"/></td>
   <td ><input type="checkbox" id="eguid_F_6_value"/></td>
   <td ><input type="checkbox" id="eguid_F_7_value"/></td>
   <td ><input type="checkbox" id="eguid_F_8_value"/></td>
   <td ><input type="checkbox" id="eguid_F_9_value"/></td>
   <td ><input type="checkbox" id="eguid_F_10_value"/></td>
   <td ><input type="checkbox" id="eguid_F_11_value"/></td>
   <td ><input type="checkbox" id="eguid_F_12_value"/></td>
   <td ><input type="checkbox" id="eguid_F_13_value"/></td>
   <td ><input type="checkbox" id="eguid_F_14_value"/></td>
   <td ><input type="checkbox" id="eguid_F_15_value"/></td>
   <td ><input type="checkbox" id="eguid_F_16_value"/></td>
   <td ><input type="checkbox" id="eguid_F_17_value"/></td>
   <td ><input type="checkbox" id="eguid_F_18_value"/></td>
   <td ><input type="checkbox" id="eguid_F_19_value"/></td>
   <td ><input type="checkbox" id="eguid_F_20_value"/></td>
   <td ><input type="checkbox" id="eguid_F_21_value"/></td>
   <td ><input type="checkbox" id="eguid_F_22_value"/></td>
   <td ><input type="checkbox" id="eguid_F_23_value"/></td>
   <td ><input type="checkbox" id="eguid_F_24_value"/></td>
   <td ><input type="checkbox" id="eguid_F_25_value"/></td>
   <td ><input type="checkbox" id="eguid_F_26_value"/></td>
   <td ><input type="checkbox" id="eguid_F_27_value"/></td>
   <td ><input type="checkbox" id="eguid_F_28_value"/></td>
  </tr>
    <tr onDblClick="dbself();" id="e1_row_g" dutyrow ="true" color="#663300"  uview="true">
      <td >员工1</td>
   <td style="cursor:pointer" align="left">U(有毒有害)</td>
   <td style="width: 35px; height: 20px" ><input type="checkbox" id="eguid_U_1_value"/></td>
   <td ><input type="checkbox" id="eguid_U_2_value"/></td>
   <td ><input type="checkbox" id="eguid_U_3_value"/></td>
   <td ><input type="checkbox" id="eguid_U_4_value"/></td>
   <td ><input type="checkbox" id="eguid_U_5_value"/></td>
   <td ><input type="checkbox" id="eguid_U_6_value"/></td>
   <td ><input type="checkbox" id="eguid_U_7_value"/></td>
   <td ><input type="checkbox" id="eguid_U_8_value"/></td>
   <td ><input type="checkbox" id="eguid_U_9_value"/></td>
   <td ><input type="checkbox" id="eguid_U_10_value"/></td>
   <td ><input type="checkbox" id="eguid_U_11_value"/></td>
   <td ><input type="checkbox" id="eguid_U_12_value"/></td>
   <td ><input type="checkbox" id="eguid_U_13_value"/></td>
   <td ><input type="checkbox" id="eguid_U_14_value"/></td>
   <td ><input type="checkbox" id="eguid_U_15_value"/></td>
   <td ><input type="checkbox" id="eguid_U_16_value"/></td>
   <td ><input type="checkbox" id="eguid_U_17_value"/></td>
   <td ><input type="checkbox" id="eguid_U_18_value"/></td>
   <td ><input type="checkbox" id="eguid_U_19_value"/></td>
   <td ><input type="checkbox" id="eguid_U_20_value"/></td>
   <td ><input type="checkbox" id="eguid_U_21_value"/></td>
   <td ><input type="checkbox" id="eguid_U_22_value"/></td>
   <td ><input type="checkbox" id="eguid_U_23_value"/></td>
   <td ><input type="checkbox" id="eguid_U_24_value"/></td>
   <td ><input type="checkbox" id="eguid_U_25_value"/></td>
   <td ><input type="checkbox" id="eguid_U_26_value"/></td>
   <td ><input type="checkbox" id="eguid_U_27_value"/></td>
   <td ><input type="checkbox" id="eguid_U_28_value"/></td>
  </tr>
  <tr  id="e1_row_k" color="#FFFF00" qview="true">
      <td >员工1</td>
   <td style="cursor:pointer" align="left">Q(请假)</td>
   <td style="width: 35px; height: 20px" ><input type="checkbox" lockduty="true" id="eguid_Q_1_value" disabled="true"/></td>
   <td  ><input type="checkbox" lockduty="true" id="eguid_Q_2_value" disabled="true" /></td>
   <td  ><input type="checkbox" lockduty="true" id="eguid_Q_3_value" disabled="true" /></td>
   <td  ><input type="checkbox" lockduty="true" id="eguid_Q_4_value" disabled="true" /></td>
   <td  ><input type="checkbox" lockduty="true" id="eguid_Q_5_value" disabled="true" /></td>
   <td  ><input type="checkbox" lockduty="true" id="eguid_Q_6_value" disabled="true" /></td>
   <td  ><input type="checkbox" lockduty="true" id="eguid_Q_7_value" disabled="true" /></td>
   <td  ><input type="checkbox" lockduty="true" id="eguid_Q_8_value" disabled="true" /></td>
   <td  ><input type="checkbox" lockduty="true" id="eguid_Q_9_value" disabled="true" /></td>
   <td  ><input type="checkbox" lockduty="true" id="eguid_Q_10_value" disabled="true" /></td>
   <td  ><input type="checkbox" lockduty="true" id="eguid_Q_11_value" disabled="true" /></td>
   <td  ><input type="checkbox" lockduty="true" id="eguid_Q_12_value" disabled="true" /></td>
   <td  ><input type="checkbox" lockduty="true" id="eguid_Q_13_value" disabled="true" /></td>
   <td  ><input type="checkbox" lockduty="true" id="eguid_Q_14_value" disabled="true" /></td>
   <td  ><input type="checkbox" lockduty="true" id="eguid_Q_15_value" disabled="true" /></td>
   <td  ><input type="checkbox" lockduty="true" id="eguid_Q_16_value" disabled="true" /></td>
   <td  ><input type="checkbox" lockduty="true" id="eguid_Q_17_value" disabled="true" /></td>
   <td  ><input type="checkbox" lockduty="true" id="eguid_Q_18_value" disabled="true" /></td>
   <td  ><input type="checkbox" lockduty="true" id="eguid_Q_19_value" disabled="true" /></td>
   <td  ><input type="checkbox" lockduty="true" id="eguid_Q_20_value" disabled="true" /></td>
   <td  ><input type="checkbox" lockduty="true" id="eguid_Q_21_value" disabled="true" /></td>
   <td  ><input type="checkbox" lockduty="true" id="eguid_Q_22_value" disabled="true" /></td>
   <td  ><input type="checkbox" lockduty="true" id="eguid_Q_23_value" disabled="true" /></td>
   <td  ><input type="checkbox" lockduty="true" id="eguid_Q_24_value" disabled="true" /></td>
   <td  ><input type="checkbox" lockduty="true" id="eguid_Q_25_value" disabled="true" /></td>
   <td  ><input type="checkbox" lockduty="true" id="eguid_Q_26_value" disabled="true" /></td>
   <td  ><input type="checkbox" lockduty="true" id="eguid_Q_27_value" disabled="true" /></td>
   <td  ><input type="checkbox" lockduty="true" id="eguid_Q_28_value" disabled="true" /></td>
  </tr>
  <tr onDblClick="dbself();" id="e1_row_k"  color="#CC0033" kview="true">
      <td >员工1</td>
   <td style="cursor:pointer" align="left">K(旷工)</td>
   <td style="width: 35px; height: 20px" ><input type="checkbox" lockall="true" id="eguid_K_1_value"/></td>
   <td ><input type="checkbox" lockall="true" id="eguid_K_2_value"/></td>
   <td ><input type="checkbox" lockall="true" id="eguid_K_3_value"/></td>
   <td ><input type="checkbox" lockall="true" id="eguid_K_4_value"/></td>
   <td ><input type="checkbox" lockall="true" id="eguid_K_5_value"/></td>
   <td ><input type="checkbox" lockall="true" id="eguid_K_6_value"/></td>
   <td ><input type="checkbox" lockall="true" id="eguid_K_7_value"/></td>
   <td ><input type="checkbox" lockall="true" id="eguid_K_8_value"/></td>
   <td ><input type="checkbox" lockall="true" id="eguid_K_9_value"/></td>
   <td ><input type="checkbox" lockall="true" id="eguid_K_10_value"/></td>
   <td ><input type="checkbox" lockall="true" id="eguid_K_11_value"/></td>
   <td ><input type="checkbox" lockall="true" id="eguid_K_12_value"/></td>
   <td ><input type="checkbox" lockall="true" id="eguid_K_13_value"/></td>
   <td ><input type="checkbox" lockall="true" id="eguid_K_14_value"/></td>
   <td ><input type="checkbox" lockall="true" id="eguid_K_15_value"/></td>
   <td ><input type="checkbox" lockall="true" id="eguid_K_16_value"/></td>
   <td ><input type="checkbox" lockall="true" id="eguid_K_17_value"/></td>
   <td ><input type="checkbox" lockall="true" id="eguid_K_18_value"/></td>
   <td ><input type="checkbox" lockall="true" id="eguid_K_19_value"/></td>
   <td ><input type="checkbox" lockall="true" id="eguid_K_20_value"/></td>
   <td ><input type="checkbox" lockall="true" id="eguid_K_21_value"/></td>
   <td ><input type="checkbox" lockall="true" id="eguid_K_22_value"/></td>
   <td ><input type="checkbox" lockall="true" id="eguid_K_23_value"/></td>
   <td ><input type="checkbox" lockall="true" id="eguid_K_24_value"/></td>
   <td ><input type="checkbox" lockall="true" id="eguid_K_25_value"/></td>
   <td ><input type="checkbox" lockall="true" id="eguid_K_26_value"/></td>
   <td ><input type="checkbox" lockall="true" id="eguid_K_27_value"/></td>
   <td ><input type="checkbox" lockall="true" id="eguid_K_28_value"/></td>
  </tr>
  <!--批量生成区域结束--> 
  <!--批量生成区域开始-->
  <tr onDblClick="dbself();" id="e1_row_a" abcview="true">
   <td rowspan="3">员工1</td>
   <td style="cursor:pointer" align="left">A(白班)</td>
   <!--此处需与服务器编程结合,每天一个 input-->
   <td style="width: 35px; height: 20px" ><input type="textbox" id="eguid_A_1_value"/></td>
   <td ><input type="textbox" id="eguid_A_2_value"/></td>
   <td ><input type="textbox" id="eguid_A_3_value"/></td>
   <td ><input type="textbox" id="eguid_A_4_value"/></td>
   <td ><input type="textbox" id="eguid_A_5_value"/></td>
   <td ><input type="textbox" id="eguid_A_6_value"/></td>
   <td ><input type="textbox" id="eguid_A_7_value"/></td>
   <td ><input type="textbox" id="eguid_A_8_value"/></td>
   <td ><input type="textbox" id="eguid_A_9_value"/></td>
   <td ><input type="textbox" id="eguid_A_10_value"/></td>
   <td ><input type="textbox" id="eguid_A_11_value"/></td>
   <td ><input type="textbox" id="eguid_A_12_value"/></td>
   <td ><input type="textbox" id="eguid_A_13_value"/></td>
   <td ><input type="textbox" id="eguid_A_14_value"/></td>
   <td ><input type="textbox" id="eguid_A_15_value"/></td>
   <td ><input type="textbox" id="eguid_A_16_value"/></td>
   <td ><input type="textbox" id="eguid_A_17_value"/></td>
   <td ><input type="textbox" id="eguid_A_18_value"/></td>
   <td ><input type="textbox" id="eguid_A_19_value"/></td>
   <td ><input type="textbox" id="eguid_A_20_value"/></td>
   <td ><input type="textbox" id="eguid_A_21_value"/></td>
   <td ><input type="textbox" id="eguid_A_22_value"/></td>
   <td ><input type="textbox" id="eguid_A_23_value"/></td>
   <td ><input type="textbox" id="eguid_A_24_value"/></td>
   <td ><input type="textbox" id="eguid_A_25_value"/></td>
   <td ><input type="textbox" id="eguid_A_26_value"/></td>
   <td ><input type="textbox" id="eguid_A_27_value"/></td>
   <td ><input type="textbox" id="eguid_A_28_value"/></td>
  </tr>
  <tr onDblClick="dbself();" id="e1_row_b" dutyrow ="true" abcview="true">
   <td style="cursor:pointer"  align="left">B(中班)</td>
   <td style="width: 35px; height: 20px" ><input type="textbox" id="eguid_B_1_value"/></td>
   <td ><input type="textbox" id="eguid_B_2_value"/></td>
   <td ><input type="textbox" id="eguid_B_3_value"/></td>
   <td ><input type="textbox" id="eguid_B_4_value"/></td>
   <td ><input type="textbox" id="eguid_B_5_value"/></td>
   <td ><input type="textbox" id="eguid_B_6_value"/></td>
   <td ><input type="textbox" id="eguid_B_7_value"/></td>
   <td ><input type="textbox" id="eguid_B_8_value"/></td>
   <td ><input type="textbox" id="eguid_B_9_value"/></td>
   <td ><input type="textbox" id="eguid_B_10_value"/></td>
   <td ><input type="textbox" id="eguid_B_11_value"/></td>
   <td ><input type="textbox" id="eguid_B_12_value"/></td>
   <td ><input type="textbox" id="eguid_B_13_value"/></td>
   <td ><input type="textbox" id="eguid_B_14_value"/></td>
   <td ><input type="textbox" id="eguid_B_15_value"/></td>
   <td ><input type="textbox" id="eguid_B_16_value"/></td>
   <td ><input type="textbox" id="eguid_B_17_value"/></td>
   <td ><input type="textbox" id="eguid_B_18_value"/></td>
   <td ><input type="textbox" id="eguid_B_19_value"/></td>
   <td ><input type="textbox" id="eguid_B_20_value"/></td>
   <td ><input type="textbox" id="eguid_B_21_value"/></td>
   <td ><input type="textbox" id="eguid_B_22_value"/></td>
   <td ><input type="textbox" id="eguid_B_23_value"/></td>
   <td ><input type="textbox" id="eguid_B_24_value"/></td>
   <td ><input type="textbox" id="eguid_B_25_value"/></td>
   <td ><input type="textbox" id="eguid_B_26_value"/></td>
   <td ><input type="textbox" id="eguid_B_27_value"/></td>
   <td ><input type="textbox" id="eguid_B_28_value"/></td>
  </tr>
  <tr onDblClick="dbself();" id="e1_row_c" dutyrow ="true" abcview="true">
   <td style="cursor:pointer" align="left">C(晚班)</td>
   <td style="width: 35px; height: 20px" ><input type="textbox" id="eguid_C_1_value"/></td>
   <td ><input type="textbox" id="eguid_C_2_value"/></td>
   <td ><input type="textbox" id="eguid_C_3_value"/></td>
   <td ><input type="textbox" id="eguid_C_4_value"/></td>
   <td ><input type="textbox" id="eguid_C_5_value"/></td>
   <td ><input type="textbox" id="eguid_C_6_value"/></td>
   <td ><input type="textbox" id="eguid_C_7_value"/></td>
   <td ><input type="textbox" id="eguid_C_8_value"/></td>
   <td ><input type="textbox" id="eguid_C_9_value"/></td>
   <td ><input type="textbox" id="eguid_C_10_value"/></td>
   <td ><input type="textbox" id="eguid_C_11_value"/></td>
   <td ><input type="textbox" id="eguid_C_12_value"/></td>
   <td ><input type="textbox" id="eguid_C_13_value"/></td>
   <td ><input type="textbox" id="eguid_C_14_value"/></td>
   <td ><input type="textbox" id="eguid_C_15_value"/></td>
   <td ><input type="textbox" id="eguid_C_16_value"/></td>
   <td ><input type="textbox" id="eguid_C_17_value"/></td>
   <td ><input type="textbox" id="eguid_C_18_value"/></td>
   <td ><input type="textbox" id="eguid_C_19_value"/></td>
   <td ><input type="textbox" id="eguid_C_20_value"/></td>
   <td ><input type="textbox" id="eguid_C_21_value"/></td>
   <td ><input type="textbox" id="eguid_C_22_value"/></td>
   <td ><input type="textbox" id="eguid_C_23_value"/></td>
   <td ><input type="textbox" id="eguid_C_24_value"/></td>
   <td ><input type="textbox" id="eguid_C_25_value"/></td>
   <td ><input type="textbox" id="eguid_C_26_value"/></td>
   <td ><input type="textbox" id="eguid_C_27_value"/></td>
   <td ><input type="textbox" id="eguid_C_28_value"/></td>
  </tr>
  <tr onDblClick="dbself();" id="e1_row_k" dutyrow ="true" color="#CCFFCC" zview="true">
      <td >员工1</td>
   <td style="cursor:pointer" align="left">Z(不定时)</td>
   <td style="width: 35px; height: 20px" ><input type="checkbox" lockabc="true" id="eguid_Z_1_value"/></td>
   <td ><input type="checkbox" lockabc="true" id="eguid_Z_2_value"/></td>
   <td ><input type="checkbox" lockabc="true" id="eguid_Z_3_value"/></td>
   <td ><input type="checkbox" lockabc="true" id="eguid_Z_4_value"/></td>
   <td ><input type="checkbox" lockabc="true" id="eguid_Z_5_value"/></td>
   <td ><input type="checkbox" lockabc="true" id="eguid_Z_6_value"/></td>
   <td ><input type="checkbox" lockabc="true" id="eguid_Z_7_value"/></td>
   <td ><input type="checkbox" lockabc="true" id="eguid_Z_8_value"/></td>
   <td ><input type="checkbox" lockabc="true" id="eguid_Z_9_value" /></td>
   <td ><input type="checkbox" lockabc="true" id="eguid_Z_10_value"/></td>
   <td ><input type="checkbox" lockabc="true" id="eguid_Z_11_value"/></td>
   <td ><input type="checkbox" lockabc="true" id="eguid_Z_12_value"/></td>
   <td ><input type="checkbox" lockabc="true" id="eguid_Z_13_value"/></td>
   <td ><input type="checkbox" lockabc="true" id="eguid_Z_14_value"/></td>
   <td ><input type="checkbox" lockabc="true" id="eguid_Z_15_value"/></td>
   <td ><input type="checkbox" lockabc="true" id="eguid_Z_16_value"/></td>
   <td ><input type="checkbox" lockabc="true" id="eguid_Z_17_value"/></td>
   <td ><input type="checkbox" lockabc="true" id="eguid_Z_18_value"/></td>
   <td ><input type="checkbox" lockabc="true" id="eguid_Z_19_value"/></td>
   <td ><input type="checkbox" lockabc="true" id="eguid_Z_20_value"/></td>
   <td ><input type="checkbox" lockabc="true" id="eguid_Z_21_value"/></td>
   <td ><input type="checkbox" lockabc="true" id="eguid_Z_22_value"/></td>
   <td ><input type="checkbox" lockabc="true" id="eguid_Z_23_value"/></td>
   <td ><input type="checkbox" lockabc="true" id="eguid_Z_24_value"/></td>
   <td ><input type="checkbox" lockabc="true" id="eguid_Z_25_value"/></td>
   <td ><input type="checkbox" lockabc="true" id="eguid_Z_26_value"/></td>
   <td ><input type="checkbox" lockabc="true" id="eguid_Z_27_value"/></td>
   <td ><input type="checkbox" lockabc="true" id="eguid_Z_28_value"/></td>
  </tr>
  <tr onDblClick="dbself();" id="e1_row_g" dutyrow ="true" color="#99FFCC" gview="true">
      <td >员工1</td>
   <td style="cursor:pointer" align="left">G(高空作业)</td>
   <td style="width: 35px; height: 20px" ><input type="checkbox" id="eguid_G_1_value"/></td>
   <td ><input type="checkbox" id="eguid_G_2_value"/></td>
   <td ><input type="checkbox" id="eguid_G_3_value"/></td>
   <td ><input type="checkbox" id="eguid_G_4_value"/></td>
   <td ><input type="checkbox" id="eguid_G_5_value"/></td>
   <td ><input type="checkbox" id="eguid_G_6_value"/></td>
   <td ><input type="checkbox" id="eguid_G_7_value"/></td>
   <td ><input type="checkbox" id="eguid_G_8_value"/></td>
   <td ><input type="checkbox" id="eguid_G_9_value"/></td>
   <td ><input type="checkbox" id="eguid_G_10_value"/></td>
   <td ><input type="checkbox" id="eguid_G_11_value"/></td>
   <td ><input type="checkbox" id="eguid_G_12_value"/></td>
   <td ><input type="checkbox" id="eguid_G_13_value"/></td>
   <td ><input type="checkbox" id="eguid_G_14_value"/></td>
   <td ><input type="checkbox" id="eguid_G_15_value"/></td>
   <td ><input type="checkbox" id="eguid_G_16_value"/></td>
   <td ><input type="checkbox" id="eguid_G_17_value"/></td>
   <td ><input type="checkbox" id="eguid_G_18_value"/></td>
   <td ><input type="checkbox" id="eguid_G_19_value"/></td>
   <td ><input type="checkbox" id="eguid_G_20_value"/></td>
   <td ><input type="checkbox" id="eguid_G_21_value"/></td>
   <td ><input type="checkbox" id="eguid_G_22_value"/></td>
   <td ><input type="checkbox" id="eguid_G_23_value"/></td>
   <td ><input type="checkbox" id="eguid_G_24_value"/></td>
   <td ><input type="checkbox" id="eguid_G_25_value"/></td>
   <td ><input type="checkbox" id="eguid_G_26_value"/></td>
   <td ><input type="checkbox" id="eguid_G_27_value"/></td>
   <td ><input type="checkbox" id="eguid_G_28_value"/></td>
  </tr>  
  <tr onDblClick="dbself();" id="e1_row_g" dutyrow ="true" color="#6699FF" dview="true">
      <td >员工1</td>
   <td style="cursor:pointer"  align="left">D(洞内作业)</td>
   <td style="width: 35px; height: 20px" ><input type="checkbox" id="eguid_D_1_value"/></td>
   <td ><input type="checkbox" id="eguid_D_2_value"/></td>
   <td ><input type="checkbox" id="eguid_D_3_value"/></td>
   <td ><input type="checkbox" id="eguid_D_4_value"/></td>
   <td ><input type="checkbox" id="eguid_D_5_value"/></td>
   <td ><input type="checkbox" id="eguid_D_6_value"/></td>
   <td ><input type="checkbox" id="eguid_D_7_value"/></td>
   <td ><input type="checkbox" id="eguid_D_8_value"/></td>
   <td ><input type="checkbox" id="eguid_D_9_value"/></td>
   <td ><input type="checkbox" id="eguid_D_10_value"/></td>
   <td ><input type="checkbox" id="eguid_D_11_value"/></td>
   <td ><input type="checkbox" id="eguid_D_12_value"/></td>
   <td ><input type="checkbox" id="eguid_D_13_value"/></td>
   <td ><input type="checkbox" id="eguid_D_14_value"/></td>
   <td ><input type="checkbox" id="eguid_D_15_value"/></td>
   <td ><input type="checkbox" id="eguid_D_16_value"/></td>
   <td ><input type="checkbox" id="eguid_D_17_value"/></td>
   <td ><input type="checkbox" id="eguid_D_18_value"/></td>
   <td ><input type="checkbox" id="eguid_D_19_value"/></td>
   <td ><input type="checkbox" id="eguid_D_20_value"/></td>
   <td ><input type="checkbox" id="eguid_D_21_value"/></td>
   <td ><input type="checkbox" id="eguid_D_22_value"/></td>
   <td ><input type="checkbox" id="eguid_D_23_value"/></td>
   <td ><input type="checkbox" id="eguid_D_24_value"/></td>
   <td ><input type="checkbox" id="eguid_D_25_value"/></td>
   <td ><input type="checkbox" id="eguid_D_26_value"/></td>
   <td ><input type="checkbox" id="eguid_D_27_value"/></td>
   <td ><input type="checkbox" id="eguid_D_28_value"/></td>
  </tr>
    <tr onDblClick="dbself();" id="e1_row_g" dutyrow ="true" color="#CCCCCC" fview="true">
      <td >员工1</td>
   <td style="cursor:pointer" align="left">F(粉尘作业)</td>
   <td style="width: 35px; height: 20px" ><input type="checkbox" id="eguid_F_1_value"/></td>
   <td ><input type="checkbox" id="eguid_F_2_value"/></td>
   <td ><input type="checkbox" id="eguid_F_3_value"/></td>
   <td ><input type="checkbox" id="eguid_F_4_value"/></td>
   <td ><input type="checkbox" id="eguid_F_5_value"/></td>
   <td ><input type="checkbox" id="eguid_F_6_value"/></td>
   <td ><input type="checkbox" id="eguid_F_7_value"/></td>
   <td ><input type="checkbox" id="eguid_F_8_value"/></td>
   <td ><input type="checkbox" id="eguid_F_9_value"/></td>
   <td ><input type="checkbox" id="eguid_F_10_value"/></td>
   <td ><input type="checkbox" id="eguid_F_11_value"/></td>
   <td ><input type="checkbox" id="eguid_F_12_value"/></td>
   <td ><input type="checkbox" id="eguid_F_13_value"/></td>
   <td ><input type="checkbox" id="eguid_F_14_value"/></td>
   <td ><input type="checkbox" id="eguid_F_15_value"/></td>
   <td ><input type="checkbox" id="eguid_F_16_value"/></td>
   <td ><input type="checkbox" id="eguid_F_17_value"/></td>
   <td ><input type="checkbox" id="eguid_F_18_value"/></td>
   <td ><input type="checkbox" id="eguid_F_19_value"/></td>
   <td ><input type="checkbox" id="eguid_F_20_value"/></td>
   <td ><input type="checkbox" id="eguid_F_21_value"/></td>
   <td ><input type="checkbox" id="eguid_F_22_value"/></td>
   <td ><input type="checkbox" id="eguid_F_23_value"/></td>
   <td ><input type="checkbox" id="eguid_F_24_value"/></td>
   <td ><input type="checkbox" id="eguid_F_25_value"/></td>
   <td ><input type="checkbox" id="eguid_F_26_value"/></td>
   <td ><input type="checkbox" id="eguid_F_27_value"/></td>
   <td ><input type="checkbox" id="eguid_F_28_value"/></td>
  </tr>
    <tr onDblClick="dbself();" id="e1_row_g" dutyrow ="true" color="#663300"  uview="true">
      <td >员工1</td>
   <td style="cursor:pointer" align="left">U(有毒有害)</td>
   <td style="width: 35px; height: 20px" ><input type="checkbox" id="eguid_U_1_value"/></td>
   <td ><input type="checkbox" id="eguid_U_2_value"/></td>
   <td ><input type="checkbox" id="eguid_U_3_value"/></td>
   <td ><input type="checkbox" id="eguid_U_4_value"/></td>
   <td ><input type="checkbox" id="eguid_U_5_value"/></td>
   <td ><input type="checkbox" id="eguid_U_6_value"/></td>
   <td ><input type="checkbox" id="eguid_U_7_value"/></td>
   <td ><input type="checkbox" id="eguid_U_8_value"/></td>
   <td ><input type="checkbox" id="eguid_U_9_value"/></td>
   <td ><input type="checkbox" id="eguid_U_10_value"/></td>
   <td ><input type="checkbox" id="eguid_U_11_value"/></td>
   <td ><input type="checkbox" id="eguid_U_12_value"/></td>
   <td ><input type="checkbox" id="eguid_U_13_value"/></td>
   <td ><input type="checkbox" id="eguid_U_14_value"/></td>
   <td ><input type="checkbox" id="eguid_U_15_value"/></td>
   <td ><input type="checkbox" id="eguid_U_16_value"/></td>
   <td ><input type="checkbox" id="eguid_U_17_value"/></td>
   <td ><input type="checkbox" id="eguid_U_18_value"/></td>
   <td ><input type="checkbox" id="eguid_U_19_value"/></td>
   <td ><input type="checkbox" id="eguid_U_20_value"/></td>
   <td ><input type="checkbox" id="eguid_U_21_value"/></td>
   <td ><input type="checkbox" id="eguid_U_22_value"/></td>
   <td ><input type="checkbox" id="eguid_U_23_value"/></td>
   <td ><input type="checkbox" id="eguid_U_24_value"/></td>
   <td ><input type="checkbox" id="eguid_U_25_value"/></td>
   <td ><input type="checkbox" id="eguid_U_26_value"/></td>
   <td ><input type="checkbox" id="eguid_U_27_value"/></td>
   <td ><input type="checkbox" id="eguid_U_28_value"/></td>
  </tr>
  <tr  id="e1_row_k" color="#FFFF00" qview="true">
      <td >员工1</td>
   <td style="cursor:pointer" align="left">Q(请假)</td>
   <td style="width: 35px; height: 20px" ><input type="checkbox" lockduty="true" id="eguid_Q_1_value" disabled="true"/></td>
   <td  ><input type="checkbox" lockduty="true" id="eguid_Q_2_value" disabled="true" /></td>
   <td  ><input type="checkbox" lockduty="true" id="eguid_Q_3_value" disabled="true" /></td>
   <td  ><input type="checkbox" lockduty="true" id="eguid_Q_4_value" disabled="true" /></td>
   <td  ><input type="checkbox" lockduty="true" id="eguid_Q_5_value" disabled="true" /></td>
   <td  ><input type="checkbox" lockduty="true" id="eguid_Q_6_value" disabled="true" /></td>
   <td  ><input type="checkbox" lockduty="true" id="eguid_Q_7_value" disabled="true" /></td>
   <td  ><input type="checkbox" lockduty="true" id="eguid_Q_8_value" disabled="true" /></td>
   <td  ><input type="checkbox" lockduty="true" id="eguid_Q_9_value" disabled="true" /></td>
   <td  ><input type="checkbox" lockduty="true" id="eguid_Q_10_value" disabled="true" /></td>
   <td  ><input type="checkbox" lockduty="true" id="eguid_Q_11_value" disabled="true" /></td>
   <td  ><input type="checkbox" lockduty="true" id="eguid_Q_12_value" disabled="true" /></td>
   <td  ><input type="checkbox" lockduty="true" id="eguid_Q_13_value" disabled="true" /></td>
   <td  ><input type="checkbox" lockduty="true" id="eguid_Q_14_value" disabled="true" /></td>
   <td  ><input type="checkbox" lockduty="true" id="eguid_Q_15_value" disabled="true" /></td>
   <td  ><input type="checkbox" lockduty="true" id="eguid_Q_16_value" disabled="true" /></td>
   <td  ><input type="checkbox" lockduty="true" id="eguid_Q_17_value" disabled="true" /></td>
   <td  ><input type="checkbox" lockduty="true" id="eguid_Q_18_value" disabled="true" /></td>
   <td  ><input type="checkbox" lockduty="true" id="eguid_Q_19_value" disabled="true" /></td>
   <td  ><input type="checkbox" lockduty="true" id="eguid_Q_20_value" disabled="true" /></td>
   <td  ><input type="checkbox" lockduty="true" id="eguid_Q_21_value" disabled="true" /></td>
   <td  ><input type="checkbox" lockduty="true" id="eguid_Q_22_value" disabled="true" /></td>
   <td  ><input type="checkbox" lockduty="true" id="eguid_Q_23_value" disabled="true" /></td>
   <td  ><input type="checkbox" lockduty="true" id="eguid_Q_24_value" disabled="true" /></td>
   <td  ><input type="checkbox" lockduty="true" id="eguid_Q_25_value" disabled="true" /></td>
   <td  ><input type="checkbox" lockduty="true" id="eguid_Q_26_value" disabled="true" /></td>
   <td  ><input type="checkbox" lockduty="true" id="eguid_Q_27_value" disabled="true" /></td>
   <td  ><input type="checkbox" lockduty="true" id="eguid_Q_28_value" disabled="true" /></td>
  </tr>
  <tr onDblClick="dbself();" id="e1_row_k"  color="#CC0033" kview="true">
      <td >员工1</td>
   <td style="cursor:pointer" align="left">K(旷工)</td>
   <td style="width: 35px; height: 20px" ><input type="checkbox" lockall="true" id="eguid_K_1_value"/></td>
   <td ><input type="checkbox" lockall="true" id="eguid_K_2_value"/></td>
   <td ><input type="checkbox" lockall="true" id="eguid_K_3_value"/></td>
   <td ><input type="checkbox" lockall="true" id="eguid_K_4_value"/></td>
   <td ><input type="checkbox" lockall="true" id="eguid_K_5_value"/></td>
   <td ><input type="checkbox" lockall="true" id="eguid_K_6_value"/></td>
   <td ><input type="checkbox" lockall="true" id="eguid_K_7_value"/></td>
   <td ><input type="checkbox" lockall="true" id="eguid_K_8_value"/></td>
   <td ><input type="checkbox" lockall="true" id="eguid_K_9_value"/></td>
   <td ><input type="checkbox" lockall="true" id="eguid_K_10_value"/></td>
   <td ><input type="checkbox" lockall="true" id="eguid_K_11_value"/></td>
   <td ><input type="checkbox" lockall="true" id="eguid_K_12_value"/></td>
   <td ><input type="checkbox" lockall="true" id="eguid_K_13_value"/></td>
   <td ><input type="checkbox" lockall="true" id="eguid_K_14_value"/></td>
   <td ><input type="checkbox" lockall="true" id="eguid_K_15_value"/></td>
   <td ><input type="checkbox" lockall="true" id="eguid_K_16_value"/></td>
   <td ><input type="checkbox" lockall="true" id="eguid_K_17_value"/></td>
   <td ><input type="checkbox" lockall="true" id="eguid_K_18_value"/></td>
   <td ><input type="checkbox" lockall="true" id="eguid_K_19_value"/></td>
   <td ><input type="checkbox" lockall="true" id="eguid_K_20_value"/></td>
   <td ><input type="checkbox" lockall="true" id="eguid_K_21_value"/></td>
   <td ><input type="checkbox" lockall="true" id="eguid_K_22_value"/></td>
   <td ><input type="checkbox" lockall="true" id="eguid_K_23_value"/></td>
   <td ><input type="checkbox" lockall="true" id="eguid_K_24_value"/></td>
   <td ><input type="checkbox" lockall="true" id="eguid_K_25_value"/></td>
   <td ><input type="checkbox" lockall="true" id="eguid_K_26_value"/></td>
   <td ><input type="checkbox" lockall="true" id="eguid_K_27_value"/></td>
   <td ><input type="checkbox" lockall="true" id="eguid_K_28_value"/></td>
  </tr>
  <!--批量生成区域结束--> 
  </table>
 <SCRIPT LANGUAGE="JavaScript">
<!--
 //初始化
 init();
//-->
</SCRIPT>
</body>
</html>

-----------------------------------

 

part 2:duty.js:

 ------------------------------------

/*
  *author:yeyang@itabby.com
  *for:employee duty daily record sample
 */
 //全局缓存
 var cols = null;
 var rows = null;
 var inputs = null;
 var dutyData = null;
 function saveData()
 {
  //alert('save');
    var empDutyData =getEmployeeDutyData('eguid');
    document.getElementById('eguid_dutyData').value = empDutyData;
 }

 //checkbox处理:lock all
  function flockall()
  {
  var sourceCk = event.srcElement;
  //所在列
    var sourceTd = sourceCk.parentElement;
    if(sourceTd)
    {
   //所在行
   var sourceRow = sourceTd.parentElement;
   var rowIndex = sourceRow.rowIndex;
   var colIndex = sourceTd.cellIndex;    
   for(var i = 0; i< 9; i ++)
   {
      sourceRow = sourceRow.previousSibling;
      //当前TD
       //var innerTd = sourceRow.cells[i == 8 ? colIndex + 1:colIndex];
       var innerTd = sourceRow.cells[i == 6||i == 7 ? colIndex - 1:colIndex];
        if(sourceCk.checked)
        {
         
          lockcontrol(innerTd.childNodes[0]);
        }
        else
        {
         freecontrol(innerTd.childNodes[0]);
        }
   } 
   
    }  

  }
  //checkbox处理:lock duty
  function flockduty()
  {
  var sourceCk = event.srcElement;
   //所在列
     var sourceTd = sourceCk.parentElement;
     if(sourceTd)
     {
       //所在行
    var sourceRow = sourceTd.parentElement;
    var rowIndex = sourceRow.rowIndex;
    var colIndex = sourceTd.cellIndex;    
    for(var i = 0; i< 8; i ++)
    {
       sourceRow = sourceRow.previousSibling;
       //当前TD
        var innerTd = sourceRow.cells[i == 5 ||i == 6 ? colIndex - 1:colIndex];
         if(sourceCk.checked)
        {

         lockcontrol(innerTd.childNodes[0]);
        }
        else
        {
         
         freecontrol(innerTd.childNodes[0]);
        }
    }   
    
     }  
  }
  //checkbox处理:lock abc
  function flockabc()
  {
  var sourceCk = event.srcElement;
  //所在列
     var sourceTd = sourceCk.parentElement;
     if(sourceTd)
     {
       //所在行
    var sourceRow = sourceTd.parentElement;
    var rowIndex = sourceRow.rowIndex;
    var colIndex = sourceTd.cellIndex;    
    for(var i = 0; i< 3; i ++)
    {
       sourceRow = sourceRow.previousSibling;
       //当前TD
         //var innerTd = sourceRow.cells[i == 2 ? colIndex + 1:colIndex];
         var innerTd = sourceRow.cells[i == 2 ? colIndex:colIndex - 1];
        if(sourceCk.checked)
        {
         
         lockcontrol(innerTd.childNodes[0]);
        }
        else
        {
         
         freecontrol(innerTd.childNodes[0]);
        }
    }   
    
     }  
  }

  //checkbox处理:lock all
        function flockallById(ctrlId) {
            var sourceCk = document.getElementById(ctrlId);
            //所在列
            var sourceTd = sourceCk.parentElement;
            if (sourceTd) {
                //所在行
                var sourceRow = sourceTd.parentElement;
                var rowIndex = sourceRow.rowIndex;
                var colIndex = sourceTd.cellIndex;
                for (var i = 0; i < 9; i++) {
                    sourceRow = sourceRow.previousSibling;
                    //当前TD
                    //var innerTd = sourceRow.cells[i == 8 ? colIndex + 1:colIndex];
                    var innerTd = sourceRow.cells[i == 6 || i == 7 ? colIndex - 1 : colIndex];
                    if (sourceCk.checked) {

                        lockcontrol(innerTd.childNodes[0]);
                    }
                    else {
                        freecontrol(innerTd.childNodes[0]);
                    }
                }

            }

        }
        //checkbox处理:lock duty
        function flockdutyById(ctrlId) {
            var sourceCk = document.getElementById(ctrlId);
            //所在列
            var sourceTd = sourceCk.parentElement;
            if (sourceTd) {
                //所在行
                var sourceRow = sourceTd.parentElement;
                var rowIndex = sourceRow.rowIndex;
                var colIndex = sourceTd.cellIndex;
                for (var i = 0; i < 8; i++) {
                    sourceRow = sourceRow.previousSibling;
                    //当前TD
                    var innerTd = sourceRow.cells[i == 5 || i == 6 ? colIndex - 1 : colIndex];
                    if (sourceCk.checked) {

                        lockcontrol(innerTd.childNodes[0]);
                    }
                    else {

                        freecontrol(innerTd.childNodes[0]);
                    }
                }

            }
        }
        //checkbox处理:lock abc
        function flockabcById(ctrlId) {
            var sourceCk = document.getElementById(ctrlId);
            //所在列
            var sourceTd = sourceCk.parentElement;
            if (sourceTd) {
                //所在行
                var sourceRow = sourceTd.parentElement;
                var rowIndex = sourceRow.rowIndex;
                var colIndex = sourceTd.cellIndex;
                for (var i = 0; i < 3; i++) {
                    sourceRow = sourceRow.previousSibling;
                    //当前TD
                    //var innerTd = sourceRow.cells[i == 2 ? colIndex + 1:colIndex];
                    var innerTd = sourceRow.cells[i == 2 ? colIndex : colIndex - 1];
                    if (sourceCk.checked) {

                        lockcontrol(innerTd.childNodes[0]);
                    }
                    else {

                        freecontrol(innerTd.childNodes[0]);
                    }
                }

            }
        }
  //冻结处理
  function lockcontrol(control)
  {
  if(control['type'] == "text")
   {
   //冻结
   control.disabled = true;
   //同时清空值
   control.value = "";
   }
   else if(control['type'] == "checkbox")
   {
   //冻结
   control.disabled = true;
   //同时设置未选中
   control.checked = false;
   }
  }
   //释放冻结处理
  function freecontrol(control)
  {
  if(!control.lockduty)//跳过Q,Q由请假条产生,当前页面仅显示结果
  control.disabled = false;
  }
 
  //双击处理
  function dbself()
  {
  var sourceTd = event.srcElement;
  if(
   sourceTd.tagName == "TD" && sourceTd==sourceTd.parentElement.cells[1]
  ||  sourceTd.tagName == "TD" && sourceTd==sourceTd.parentElement.cells[0]
  )
  {
   var parentRow = sourceTd.parentElement; 
    var curObj = document.getElementById("dutyValue");
    if( curObj!=null)
    {
       for(var i = 0; i < parentRow.cells.length; i ++)
     {
      var curTd = parentRow.cells[i];
      if(curTd.childNodes[0])
      {
         if(curTd.childNodes[0].tagName == "INPUT")
         {
        //checkbox控件
        if(curTd.childNodes[0]['type'] == "checkbox")
        {
        if(!curTd.childNodes[0].disabled)
        {
         if(curTd.childNodes[0].checked)
         {
          curTd.childNodes[0].checked = false;
         }
         else
         {
          curTd.childNodes[0].checked = true;         
         }
        }
        }
        //文本输入控件
        else
        {
        //如果可用
        if(!curTd.childNodes[0].disabled)
        {
          if(curTd.childNodes[0].value == "")
          curTd.childNodes[0].value = curObj.value;
          else
          curTd.childNodes[0].value=""; 
        }
        }       
         }
        
      }
     }
    }
    event.cancelBubble=true
  }
  else if(sourceTd.tagName == "INPUT")
  {
   //如果可用
     if(!sourceTd.disabled)
    sourceTd.value = 0;
     }
  } 
  //将控件值写入全局缓存
  function setSelfValueIntoDutyData()
  {
  var sourceEl = event.srcElement;
  if(!sourceEl.id)return;
  var empId = parseEmployeeId(sourceEl.id);
  var dutyDate = parseDutyDate(sourceEl.id);
  var dutyKey = parseDutyKey(sourceEl.id);
  if(empId&&dutyDate&&dutyKey)
   {
   var value = null;
   if(sourceEl['type'] == "text")
    {
    
    value = sourceEl.value;    
    }
    else if(sourceEl['type'] == "checkbox")
    {
    value = sourceEl.checked?true:false;
    }   
    if(value == false || value == '')
    {
     clearnDutyDataValue(empId,dutyDate,dutyKey);
    }
    else
     {
     setDutyDataValue(empId,dutyDate,dutyKey,value);
     }
   }
  }
  //注册checkbox事件
  function regCheckboxEvent()
  {   
  for(var i = 0; i < inputs.length; i ++)
  {
   if(inputs[i]['type'] == 'checkbox')
   {
    //背景色改变事件
    inputs[i].attachEvent('onpropertychange', prepareBgcolor);
    //自动写值入缓存事件
    inputs[i].attachEvent('onpropertychange', setSelfValueIntoDutyData);
    if(inputs[i].lockall)
    {
     //lock all
     inputs[i].attachEvent('onpropertychange', flockall);
    }
    else if(inputs[i].lockabc)
    {
     //lock abc
     inputs[i].attachEvent('onpropertychange', flockabc);
    }
    else if(inputs[i].lockduty)
    {
     //lock duty
     //inputs[i].attachEvent('onpropertychange', flockduty);
    }
    
   }
  }
  } 
  //注册textbox事件
  function regTextboxEvent()
  {   
  for(var i = 0; i < inputs.length; i ++)
  {
   if(inputs[i]['type'] == 'text')
   {
    inputs[i].attachEvent('onpropertychange', setSelfValueIntoDutyData);
        
   }
  }
  } 
 
  //设置背景色改变
  function prepareBgcolor()
  {
  var sourceCk = event.srcElement;
  var sourceTd = sourceCk.parentElement;
  var sourceRow = sourceTd.parentElement;
  if(sourceCk.checked)
  {
   if(sourceRow.color)
    sourceTd.style.background = sourceRow.color;
  }
  else
   {
   sourceTd.style.background = "";
   }
  }
 //设置机关考勤视图
  function prepareMgrview()
  {
   for(var i = 0; i < rows.length; i ++)
   {
    if(rows[i].dutyrow)
     rows[i].style.display = 'none';    
   }  
  }
 //设置现场考勤视图
  function prepareDutyview()
  {
    for(var i = 0; i < rows.length; i ++)
   {
    if(rows[i].dutyrow)
     rows[i].style.display = 'block';    
   }
  }
  //初始化
  function init()
  {  
  cols = document.getElementsByTagName("TD");
     rows = document.getElementsByTagName("TR");
  inputs = document.getElementsByTagName("INPUT");
  regCheckboxEvent();
  regTextboxEvent();
  //prepareMgrview();
  prepareABCview();
  prepareDutyDataCache();
  }
  //设置数据缓存
  function prepareDutyDataCache()
  {
   dutyData = new Array();  
  }
  //获取指定员工的考勤数据
   /*
  *usage: var data = GetEmployeeDutyData('eguid');
  */
  function getEmployeeDutyData(eguid)
  {
  var empDatas = dutyData[eguid];
  if(empDatas)
   {
   var empDutyData = '';
   for(var i =0; i<32;i++)
    {
    if(empDatas[i])
     {
     var dData = getDutyDataValue(eguid,i.toString());
     if(dData)
      empDutyData = empDutyData == '' ? i.toString() + ':' + dData: empDutyData + ';' + i.toString() + ':' + dData;
     }
    }
    return empDutyData;
   }
   else
   {
    return '';
   }
  }

  //获取所有员工的考勤数据
   /*
  *usage: var data = getAllEmployeeDutyData();
  */
  function getAllEmployeeDutyData()
  {
   var empDutyData = '';
   for(var p in dutyData)
   {
    //多员工之间使用'|'分隔
    empDutyData = empDutyData == '' ?empDutyData:empDutyData + '|';
    //员工编号标识
    empDutyData = empDutyData + 'employeeid' + ':' + p;
    var empDatas = dutyData[p];
    if(empDatas)
    {   
     for(var i =0; i<32;i++)
     {
     if(empDatas[i])
      {
      var dData = getDutyDataValue(p,i.toString());
      if(dData)
       empDutyData = empDutyData == '' ? i.toString() + ':' + dData: empDutyData + ';' + i.toString() + ':' + dData;
      }
     }
    } 
   
   }
   return empDutyData;
  }
  //记录指定员工指定日期指定类型的考勤数据
  /*
  *usage: setDutyDataValue('eguid','1','A','true');
  */
  function setDutyDataValue(eguid,day,key,value)
  {
   if(!dutyData[eguid])
   dutyData[eguid] = new Array();
   if(!dutyData[eguid][day])
   dutyData[eguid][day] = new Array();
   if(!dutyData[eguid][day][key])
   dutyData[eguid][day][key] = new Array();
   var oldData = dutyData[eguid][day][key];
   if(oldData)
   {
    //依据传入的key值进行逻辑处理
   /*
   *业务逻辑:K与其他的互斥,Q与其他的互斥,Z与A/B/C互斥,其他情况,新值与旧值之间采用,连接
   */
   switch (key.toUpperCase())
   {
      case 'K' :
       dutyData[eguid][day][key] = value;
          //清除其他
       clearnDutyDataValue(eguid,day,'A');
       clearnDutyDataValue(eguid,day,'B');
       clearnDutyDataValue(eguid,day,'C');
       clearnDutyDataValue(eguid,day,'G');
       clearnDutyDataValue(eguid,day,'D');
       clearnDutyDataValue(eguid,day,'F');
       clearnDutyDataValue(eguid,day,'U');
       clearnDutyDataValue(eguid,day,'Q');
       clearnDutyDataValue(eguid,day,'Z');
        break;
      case 'Q' :
       dutyData[eguid][day][key] = value;
          //清除其他
       clearnDutyDataValue(eguid,day,'A');
       clearnDutyDataValue(eguid,day,'B');
       clearnDutyDataValue(eguid,day,'C');
       clearnDutyDataValue(eguid,day,'G');
       clearnDutyDataValue(eguid,day,'D');
       clearnDutyDataValue(eguid,day,'F');
       clearnDutyDataValue(eguid,day,'U');
       clearnDutyDataValue(eguid,day,'K');
       clearnDutyDataValue(eguid,day,'Z');
           break;
      case 'Z' :
       dutyData[eguid][day][key] = value;
       //清除A,B,C
       clearnDutyDataValue(eguid,day,'A');
       clearnDutyDataValue(eguid,day,'B');
       clearnDutyDataValue(eguid,day,'C');
       //清除K
       clearnDutyDataValue(eguid,day,'K');
       //清除Q
       clearnDutyDataValue(eguid,day,'Q');
           break;
     case 'A' :
       dutyData[eguid][day][key] = value;
       //清除Z
       clearnDutyDataValue(eguid,day,'Z');
       //清除K
       clearnDutyDataValue(eguid,day,'K');
       //清除Q
       clearnDutyDataValue(eguid,day,'Q');
             break;
     case 'B' :       
       dutyData[eguid][day][key] = value;  
          //清除Z
       clearnDutyDataValue(eguid,day,'Z');
       //清除K
       clearnDutyDataValue(eguid,day,'K');
       //清除Q
       clearnDutyDataValue(eguid,day,'Q');
     break;
     case 'C' :
       dutyData[eguid][day][key] = value;
          //清除Z
       clearnDutyDataValue(eguid,day,'Z');
       //清除K
       clearnDutyDataValue(eguid,day,'K');
       //清除Q
       clearnDutyDataValue(eguid,day,'Q');
           break;
     default :      
       dutyData[eguid][day][key] = value; 
       //清除K
       clearnDutyDataValue(eguid,day,'K');
       //清除Q
       clearnDutyDataValue(eguid,day,'Q');
   }
   } 
   else
   {
   dutyData[eguid][day][key] = value; 
   }
  }
  //清除指定员工指定日期指定类型的考勤数据
  function clearnDutyDataValue(eguid,day,key)
  {
   if(!dutyData[eguid])
   dutyData[eguid] = new Array();
   if(!dutyData[eguid][day])
   dutyData[eguid][day] = new Array(); 
   if(!dutyData[eguid][day][key])
   dutyData[eguid][day][key] = new Array();
   dutyData[eguid][day][key] = '';
  }
  //获取指定员工指定日期的考勤数据
  /*
  *usage:var data = getDutyDataValue('eguid','1');
  */
  function getDutyDataValue(eguid,day)
  {
    if(!dutyData[eguid])
   dutyData[eguid] = new Array();
   if(!dutyData[eguid][day])
   dutyData[eguid][day] = new Array(); 
   var oldData = dutyData[eguid][day];
   if(oldData)
   {
    var empDutyData = '';
    for(var p in oldData)
    {
    if(oldData[p])
     empDutyData = empDutyData == '' ? empDutyData + p + '=' + oldData[p]:empDutyData + ',' +p + '=' + oldData[p];
    }
    return empDutyData;
   }
   return "";
  }
  //解析员工id
  /*
  *usage:var empId = parseEmployeeId('eguid_A_1_value');
  */
  function parseEmployeeId(inputCtrlId)
  {
   var ids = inputCtrlId.split("_");
   if(ids.length > 1)
    return ids[0];
   return "";
  }
  //解析日期
  function parseDutyDate(inputCtrlId)
  {
   var ids = inputCtrlId.split("_");
   if(ids.length > 2)
    return ids[2];
   return "";
  }
  //解析类型
   function parseDutyKey(inputCtrlId)
  {
   var ids = inputCtrlId.split("_");
   if(ids.length > 2)
    return ids[1];
   return "";
  }
  //设置周六为工作日
 function fsatday(sender)
 {
   var sats = new Array();
   for(var i = 0; i < cols.length; i ++)
   {
    if(cols[i].issatday)
    {
     sats.push(cols[i].cellIndex);     
    }
   }
   for(var i = 0; i < rows.length; i ++)
   {
    for(var j = 0; j < sats.length;j ++)
    {     
     //索引逻辑,严禁修改
     if(!rows[i].cells[rows[i].rowIndex % 10 == 1 ?sats[j] :sats[j] - 1])continue;
     var innerTd = rows[i].cells[rows[i].rowIndex % 10 == 1 ?sats[j] :sats[j] - 1];
     if(!sender.checked)
     {
      lockcontrol(innerTd.childNodes[0]);
     }
     else
     {
      freecontrol(innerTd.childNodes[0]);
     }     
    }    
   }  
  
 }
 //设置周日为工作日
 function fsunday(sender)
 {
   var suns = new Array();
   for(var i = 0; i < cols.length; i ++)
   {
    if(cols[i].issunday)
    {
     suns.push(cols[i].cellIndex);     
    }
   }
   for(var i = 0; i < rows.length; i ++)
   {
    for(var j = 0; j < suns.length;j ++)
    {
     //索引逻辑,严禁修改
     if(!rows[i].cells[rows[i].rowIndex % 10 == 1 ?suns[j] :suns[j] - 1])continue;
     var innerTd = rows[i].cells[rows[i].rowIndex % 10 == 1 ?suns[j] :suns[j] - 1];
     if(!sender.checked)
     {
      lockcontrol(innerTd.childNodes[0]);
     }
     else
     {
      freecontrol(innerTd.childNodes[0]);
     } 
    }
    
   }  
 }

 function prepareABCview()
 {
   for(var i = 0; i < rows.length; i ++)
   {
    if(rows[i].abcview|| rows[i].titleview)
     rows[i].style.display = 'block';
    else
     rows[i].style.display = 'none';
   }
 }
 function prepareZview()
 {
   for(var i = 0; i < rows.length; i ++)
   {
    if(rows[i].zview|| rows[i].titleview)
     rows[i].style.display = 'block';
    else
     rows[i].style.display = 'none';
   }
 }
 function prepareGview()
 {
   for(var i = 0; i < rows.length; i ++)
   {
    if(rows[i].gview|| rows[i].titleview)
     rows[i].style.display = 'block';
    else
     rows[i].style.display = 'none';
   }
 }
 function prepareDview()
 {
   for(var i = 0; i < rows.length; i ++)
   {
    if(rows[i].dview || rows[i].titleview)
     rows[i].style.display = 'block';
    else
     rows[i].style.display = 'none';
   }
 } 
 function prepareFview()
 {
  for(var i = 0; i < rows.length; i ++)
   {
    if(rows[i].fview|| rows[i].titleview)
     rows[i].style.display = 'block';
    else
     rows[i].style.display = 'none';
   }
 }
 function prepareUview()
 {
  for(var i = 0; i < rows.length; i ++)
   {
    if(rows[i].uview|| rows[i].titleview)
     rows[i].style.display = 'block';
    else
     rows[i].style.display = 'none';
   }
 }
 function prepareQview()
 {
  for(var i = 0; i < rows.length; i ++)
   {
    if(rows[i].qview|| rows[i].titleview)
     rows[i].style.display = 'block';
    else
     rows[i].style.display = 'none';
   }
 }
 function prepareKview()
 {
  for(var i = 0; i < rows.length; i ++)
   {
    if(rows[i].kview|| rows[i].titleview)
     rows[i].style.display = 'block';
    else
     rows[i].style.display = 'none';
   }
 }
function prepareAllview()
 {
  for(var i = 0; i < rows.length; i ++)
   {
    rows[i].style.display = 'block';
   }
 }
 //供服务器端调用,在输出控件的HTML标签之后,使用脚本注入方法注册到数据缓存
         function setSelfValueIntoDutyDataById(ctrlId) {
             var sourceEl = document.getElementById(ctrlId);
             if (!sourceEl.id) return;
             var empId = parseEmployeeId(sourceEl.id);
             var dutyDate = parseDutyDate(sourceEl.id);
             var dutyKey = parseDutyKey(sourceEl.id);
             if (empId && dutyDate && dutyKey) {
                 var value = null;
                 if (sourceEl['type'] == "text") {

                     value = sourceEl.value;
                 }
                 else if (sourceEl['type'] == "checkbox") {
                     value = sourceEl.checked ? true : false;
                 }
                 if (value == false || value == '') {
                     clearnDutyDataValue(empId, dutyDate, dutyKey);
                 }
                 else {
                     setDutyDataValue(empId, dutyDate, dutyKey, value);
                 }
                 prepareBgcolorById(ctrlId);

                 //lock operation
                if (sourceEl.lockall) {
                    flockallById(ctrlId);
                }
                else if (sourceEl.lockabc) {
                flockabcById(ctrlId);
                }
                else if (sourceEl.lockduty) {
                flockdutyById(ctrlId);
                }
             }
         }
         //供setSelfValueIntoDutyDataById调用
         function prepareBgcolorById(ctrlId) {
             var sourceCk = document.getElementById(ctrlId);
             var sourceTd = sourceCk.parentElement;
             var sourceRow = sourceTd.parentElement;
             if (sourceCk.checked) {
                 if (sourceRow.color)
                     sourceTd.style.background = sourceRow.color;
             }
             else {
                 sourceTd.style.background = "";
             }
         }

 -------------------------------------

 

原创粉丝点击