|
@@ -3228,12 +3228,29 @@ class MainController extends DooController {
|
|
$search = $this->get_args ( 'search' ) ? $this->get_args ( 'search' ) : "";
|
|
$search = $this->get_args ( 'search' ) ? $this->get_args ( 'search' ) : "";
|
|
|
|
|
|
$productW = $this->get_args ( 'product' ) ? $this->get_args ( 'product' ) : "";
|
|
$productW = $this->get_args ( 'product' ) ? $this->get_args ( 'product' ) : "";
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+ $lidKey = $this->get_args ( 'lid' ) ? $this->get_args ( 'lid' ) : "";
|
|
|
|
+
|
|
Doo::loadModel ( 'longle' );
|
|
Doo::loadModel ( 'longle' );
|
|
$longle = new longle ();
|
|
$longle = new longle ();
|
|
|
|
+ Doo::loadClass ( 'XDeode' );
|
|
|
|
+ $XDeode = new XDeode ( 5 );
|
|
|
|
+ Doo::loadModel ( 'longle_log' );
|
|
|
|
+ $longle_log = new longle_log ();
|
|
|
|
+
|
|
|
|
+ $lid =0;
|
|
|
|
+ if(!empty($lidKey)){
|
|
|
|
+ $lid = $XDeode->decode ( $lidKey );
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
|
|
$data ['longleArray'] = $longle->getLongleByStatus ( $year, $cid, $staff, $status, $search, $productW );
|
|
$data ['longleArray'] = $longle->getLongleByStatus ( $year, $cid, $staff, $status, $search, $productW );
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ $longleDetail=$longle->getLongleByLid($lid);
|
|
|
|
+ $longleLogDetail=$longle_log->getLongleByLid ( $lid );
|
|
|
|
+
|
|
// 获取接收锁信息
|
|
// 获取接收锁信息
|
|
// $longle->getLongleByRe($this->staff[0]['cid'],1);
|
|
// $longle->getLongleByRe($this->staff[0]['cid'],1);
|
|
$othstr = "";
|
|
$othstr = "";
|
|
@@ -3245,6 +3262,10 @@ class MainController extends DooController {
|
|
$data ['reLongle'] = $longle->count ( array (
|
|
$data ['reLongle'] = $longle->count ( array (
|
|
'where' => $othstr . ' and status=1'
|
|
'where' => $othstr . ' and status=1'
|
|
) );
|
|
) );
|
|
|
|
+
|
|
|
|
+ $data['lidKey']=$lidKey;
|
|
|
|
+ $data['longleDetail']=$longleDetail;
|
|
|
|
+ $data ['longleLogHtml'] = $this->_getLongleLogHtml ( $longleLogDetail );
|
|
$data ['cid'] = $cid;
|
|
$data ['cid'] = $cid;
|
|
$data ['year'] = $year;
|
|
$data ['year'] = $year;
|
|
$data ['staff'] = $staff;
|
|
$data ['staff'] = $staff;
|
|
@@ -3334,13 +3355,19 @@ class MainController extends DooController {
|
|
$district = new district ();
|
|
$district = new district ();
|
|
|
|
|
|
$status = $this->get_args ( 'longleStatus' ) ? $this->get_args ( 'longleStatus' ) : 0;
|
|
$status = $this->get_args ( 'longleStatus' ) ? $this->get_args ( 'longleStatus' ) : 0;
|
|
- $lid = $this->get_args ( 'klid' ) ? $this->get_args ( 'klid' ) : 0;
|
|
|
|
|
|
+ $lidKey = $this->get_args ( 'klid' ) ? $this->get_args ( 'klid' ) : 0;
|
|
$name = $this->get_args ( 'name' ) ? $this->get_args ( 'name' ) : "";
|
|
$name = $this->get_args ( 'name' ) ? $this->get_args ( 'name' ) : "";
|
|
$company = $this->get_args ( 'company' ) ? $this->get_args ( 'company' ) : '';
|
|
$company = $this->get_args ( 'company' ) ? $this->get_args ( 'company' ) : '';
|
|
|
|
+
|
|
|
|
+ $alloted_time = $this->get_args ( 'alloted_time' ) ? $this->get_args ( 'alloted_time' ) : '';
|
|
|
|
|
|
- if (empty ( $lid ))
|
|
|
|
|
|
+ if (empty ( $lidKey ))
|
|
return "/keyonline/";
|
|
return "/keyonline/";
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+ Doo::loadClass ( 'XDeode' );
|
|
|
|
+ $XDeode = new XDeode ( 5 );
|
|
|
|
+ $lid = $XDeode->decode ( $lidKey );
|
|
|
|
+
|
|
$linfo = $longle->getLongleByLid ( $lid );
|
|
$linfo = $longle->getLongleByLid ( $lid );
|
|
|
|
|
|
if ($status == 0)
|
|
if ($status == 0)
|
|
@@ -3656,7 +3683,28 @@ class MainController extends DooController {
|
|
$action_log->nature = $nature [0];
|
|
$action_log->nature = $nature [0];
|
|
|
|
|
|
$action_log->insert ();
|
|
$action_log->insert ();
|
|
- }
|
|
|
|
|
|
+ }elseif($status == 10){
|
|
|
|
+ $longle->alloted_time = $alloted_time;
|
|
|
|
+
|
|
|
|
+ $longle_log->mark ='由'.$linfo[0]['alloted_time'].'延期至'.$alloted_time;
|
|
|
|
+
|
|
|
|
+ // 日常行为
|
|
|
|
+ $action_log = new action_log ();
|
|
|
|
+
|
|
|
|
+ $action_log->action = $this->staff [0] ['category'] . '<b href="javascript:void(0)" onclick="showStaff(\'' . $this->staff [0] ['sid'] . '\')">' . $this->staff [0] ['username'] . '</b>为<a href="javascript:void(0)" onclick="showLook(\'' . $linfo [0] ['key_num'] . '\')">' . $linfo [0] ['key_num'] . '</a>延期至 '.$alloted_time;
|
|
|
|
+ $action_log->sid = $this->staff [0] ['sid'];
|
|
|
|
+ $action_log->cid = $this->staff [0] ['cid'];
|
|
|
|
+ $action_log->updatetime = date ( "Y-m-d" );
|
|
|
|
+ $action_log->time = date ( "H:i" );
|
|
|
|
+ $action_log->sid = $this->staff [0] ['sid'];
|
|
|
|
+ $action_log->cid = $this->staff [0] ['cid'];
|
|
|
|
+ $action_log->status = 12;
|
|
|
|
+
|
|
|
|
+ $action_log->class = $action_log->iconLock;
|
|
|
|
+ $action_log->insert ();
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
|
|
// 记录使用过的状态
|
|
// 记录使用过的状态
|
|
$statuslog = $status . "," . $linfo [0] ['statuslog'];
|
|
$statuslog = $status . "," . $linfo [0] ['statuslog'];
|
|
@@ -3673,7 +3721,7 @@ class MainController extends DooController {
|
|
if ($lid != 0) {
|
|
if ($lid != 0) {
|
|
|
|
|
|
$longle->lid = $lid;
|
|
$longle->lid = $lid;
|
|
- if ($status != 8)
|
|
|
|
|
|
+ if (!($status == 8||$status == 10))
|
|
$longle->status = $status;
|
|
$longle->status = $status;
|
|
|
|
|
|
// if($status!=8)
|
|
// if($status!=8)
|
|
@@ -3773,10 +3821,12 @@ class MainController extends DooController {
|
|
function ajaxGetLongle() {
|
|
function ajaxGetLongle() {
|
|
Doo::loadModel ( 'longle_log' );
|
|
Doo::loadModel ( 'longle_log' );
|
|
Doo::loadModel ( 'longle' );
|
|
Doo::loadModel ( 'longle' );
|
|
-
|
|
|
|
|
|
+
|
|
$longle = new longle ();
|
|
$longle = new longle ();
|
|
$longle_log = new longle_log ();
|
|
$longle_log = new longle_log ();
|
|
-
|
|
|
|
|
|
+ Doo::loadClass ( 'XDeode' );
|
|
|
|
+ $XDeode = new XDeode ( 5 );
|
|
|
|
+
|
|
$lid = $this->get_args ( 'lid' ) ? $this->get_args ( 'lid' ) : 0;
|
|
$lid = $this->get_args ( 'lid' ) ? $this->get_args ( 'lid' ) : 0;
|
|
|
|
|
|
if ($lid == 0) {
|
|
if ($lid == 0) {
|
|
@@ -3787,20 +3837,17 @@ class MainController extends DooController {
|
|
}
|
|
}
|
|
|
|
|
|
$t = $longle_log->getLongleByLid ( $lid );
|
|
$t = $longle_log->getLongleByLid ( $lid );
|
|
-
|
|
|
|
|
|
+
|
|
if (isset ( $t [0] ))
|
|
if (isset ( $t [0] ))
|
|
$tk = $t [0];
|
|
$tk = $t [0];
|
|
else
|
|
else
|
|
$tk = array ();
|
|
$tk = array ();
|
|
|
|
|
|
$longleLog = $tk;
|
|
$longleLog = $tk;
|
|
-
|
|
|
|
$longleLog ['klid'] = $lid;
|
|
$longleLog ['klid'] = $lid;
|
|
-
|
|
|
|
|
|
+ $longleLog ['lidKey'] =$XDeode->encode ( $lid );
|
|
$ky = $longle->getLongleByLid ( $lid );
|
|
$ky = $longle->getLongleByLid ( $lid );
|
|
-
|
|
|
|
$longleLog ['longle'] = $ky [0];
|
|
$longleLog ['longle'] = $ky [0];
|
|
-
|
|
|
|
$longleLog ['longleLogHtml'] = $this->_getLongleLogHtml ( $t );
|
|
$longleLog ['longleLogHtml'] = $this->_getLongleLogHtml ( $t );
|
|
|
|
|
|
echo json_encode ( $longleLog );
|
|
echo json_encode ( $longleLog );
|
|
@@ -5545,8 +5592,17 @@ class MainController extends DooController {
|
|
|
|
|
|
<li class="item">' . $value ['mark'] . '</li>
|
|
<li class="item">' . $value ['mark'] . '</li>
|
|
</ul>';
|
|
</ul>';
|
|
- // 生成
|
|
|
|
- } elseif ($value ['status'] == 1) {
|
|
|
|
|
|
+
|
|
|
|
+ } elseif ($value ['status'] == 10) {
|
|
|
|
+ $html .= '
|
|
|
|
+ <ul class="flowList">
|
|
|
|
+ <li class="item iconLock">延期<' . $value ['category'] . '<a href="javascript:void(0);" onclick="getStaffInfo(\'' . $value ['operator'] . '\')" >' . $value ['operator'] . '</a></li>
|
|
|
|
+
|
|
|
|
+ <li class="item">' . $value ['mark'] . '</li>
|
|
|
|
+ </ul>';
|
|
|
|
+
|
|
|
|
+ // 生成
|
|
|
|
+ }elseif ($value ['status'] == 1) {
|
|
|
|
|
|
$html .= '<ul class="flowList">
|
|
$html .= '<ul class="flowList">
|
|
<li class="item iconGenerate">生成<' . $value ['category'] . '<a href="javascript:void(0);" onclick="getStaffInfo(\'' . $value ['operator'] . '\')" >' . $value ['operator'] . '</a></li>
|
|
<li class="item iconGenerate">生成<' . $value ['category'] . '<a href="javascript:void(0);" onclick="getStaffInfo(\'' . $value ['operator'] . '\')" >' . $value ['operator'] . '</a></li>
|