【log】oa system improvement

修改:

1,请假时间,去除周末

2,加班红字日标注

3,加班时间9:00-18:00 9:30-18:30

4,加班时间18:30开始计算

5.手动改换休时间


git clone ...............oa.git

然后找到database里的sql文件执行

修改App.inc.default.php另存为App.inc.php

log1,请假时间改为9:00-18:00 和9:30-18:30

location:
HavedaysModel.php
function validHave

版本控制:

git init 

git add .

查看:git status -s

git commit -m "Improve:choose leave time"

2.红字日修改

OvertimeController.php 

overtimelist_amin.html

取出表并assign到view:

  $sh = $this->get('sh');
        $sh['year'] = $sh['year'] ? $sh['year'] : date('Y');
        $this->view->assign('redday',$name_list);
         $userList = $this->UserModel->dayList($sh);
        $this->view->assign('day_list',$userList);

然后overtimelist.html:

     <{for $i=0;$i<16;$i++}>
            <{if ($overtime.day==$day_list[$i]['red_day'])}>
                  <{$red="red"}><{break}>
                  <{else}><{$red=""}>
              <{/if}>   
          <{/for}>
        <font color="<{$red}>"><{brave_date_format date=$overtime.day format='y-m-d'}></font>

git commit -m "red_day modify ok"

你可能感兴趣的:(【log】oa system improvement)