|
@@ -3427,6 +3427,9 @@ class MainController extends DooController {
|
|
|
$client_staff = new client_staff ();
|
|
|
$staff = new staff ();
|
|
|
$client = new client ();
|
|
|
+ Doo::loadModel ( 'district' );
|
|
|
+ $district = new district ();
|
|
|
+
|
|
|
|
|
|
$clientlist = $client->getClientByCompanyId ( $companyInfo ['cid'] );
|
|
|
$department = $client->getDepartment ( $companyInfo ['cid'] );
|
|
@@ -3502,12 +3505,11 @@ class MainController extends DooController {
|
|
|
<tr><th>部门</th><td>' . $value ['department'] . '</td><th>办公室</th><td>' . $value ['office'] . '</td></tr>
|
|
|
<tr><th>手机</th><td>' . $value ['telephone'] . '</td><th>电话</th><td>' . $value ['phone'] . '</td></tr>
|
|
|
<tr><th>QQ</th><td>' . $value ['qq'] . '</td><th>邮箱</th><td>' . $value ['email'] . '</td></tr>
|
|
|
- <tr><th>备注</th><td >' . $value ['mark'] . '</td> <th>地址</th><td node-address="company_'. $value ['cid'] .'" >' . $value ['address'] . '</td>
|
|
|
- </tr>';
|
|
|
+
|
|
|
+ <tr node-ck=fz ><th>备注</th><td >' . $value ['mark'] . '</td>
|
|
|
+ </tr>';
|
|
|
|
|
|
- // $longleinfo=$longle->getLongleBykeynum($value['keynum']);
|
|
|
$longleinfo = $longle->getLongleByClientid ( $value ['cid'] );
|
|
|
-
|
|
|
if (empty ( $longleinfo )) {
|
|
|
$longleinfo = array (
|
|
|
0 => array (
|
|
@@ -3518,7 +3520,21 @@ class MainController extends DooController {
|
|
|
)
|
|
|
);
|
|
|
}
|
|
|
- $html .= '<tr><th>软件锁</th><td colspan="3"><a href="javascript:void(0)" onclick="getLongleLog(' . $longleinfo [0] ['lid'] . ')">' . $longleinfo [0] ['key_num'] . '</a>/' . $longleinfo [0] ['product'] . '/' . $longleinfo [0] ['statusT'] . '</td></tr>';
|
|
|
+ $html .= '<tr node-ck=fz ><th>软件锁</th><td colspan="3"><a href="javascript:void(0)" onclick="getLongleLog(' . $longleinfo [0] ['lid'] . ')">' . $longleinfo [0] ['key_num'] . '</a>/' . $longleinfo [0] ['product'] . '/' . $longleinfo [0] ['statusT'] . '</td></tr>';
|
|
|
+
|
|
|
+ $districtList = $district->getbyidlist ( $value ['district'] );
|
|
|
+
|
|
|
+ $localdis='';
|
|
|
+ foreach ($districtList as $lov){
|
|
|
+ $localdis.=' '.$lov['name'];
|
|
|
+ }
|
|
|
+
|
|
|
+ $html .= '
|
|
|
+ <tr node-synCom=pany style="display:none" ><th>客户地区</th><td colspan="4">'.$localdis.'</td></tr>
|
|
|
+ <tr node-synCom=pany style="display:none" ><th>客户地址</th><td colspan="4">'.$value['address'].'</td></tr>
|
|
|
+ <tr node-synCom=pany style="display:none" ><th>客户乘车</th><td colspan="4">'.$value['ride'].'</td></tr>
|
|
|
+ <tr node-synCom=pany style="display:none" ><th>客户地标</th><td colspan="4">'.$value['landmarks'].'</td></tr>
|
|
|
+ <tr node-synCom=pany style="display:none" ><th>客户住宿</th><td colspan="4">'.$value['stay'].'</td></tr>';
|
|
|
|
|
|
$html .= '</tbody></table></div>';
|
|
|
}
|
|
@@ -3530,7 +3546,8 @@ class MainController extends DooController {
|
|
|
$(\"a[node-synadd='true']\").show();
|
|
|
$('input[CAS-NUM=TR]').show();
|
|
|
$('#skop').show();
|
|
|
-
|
|
|
+ $('tr[node-ck=fz]').hide();
|
|
|
+ $('tr[node-synCom=pany]').show();
|
|
|
});
|
|
|
|
|
|
|
|
@@ -4547,9 +4564,7 @@ class MainController extends DooController {
|
|
|
if (! empty ( $cid )) {
|
|
|
Doo::loadModel ( 'client' );
|
|
|
Doo::loadModel ( 'company' );
|
|
|
- Doo::loadModel ( 'district' );
|
|
|
|
|
|
- $district = new district ();
|
|
|
$company = new company ();
|
|
|
$client = new client ();
|
|
|
|
|
@@ -4563,6 +4578,8 @@ class MainController extends DooController {
|
|
|
'asArray' => true
|
|
|
) );
|
|
|
|
|
|
+ Doo::loadModel ( 'district' );
|
|
|
+ $district = new district ();
|
|
|
$districtLv1 = $district->get_lv ( 1 );
|
|
|
|
|
|
$info ['districtList'] = $district->getbyidlist ( $info ['district'] );
|