Commit 0dd91d6c authored by 蒋林's avatar 蒋林

格兰仕 - look系列接口默认显示500条

parent af49e67a
...@@ -43,9 +43,10 @@ class Galanz extends BaseController ...@@ -43,9 +43,10 @@ class Galanz extends BaseController
9 => ['u' => 'W75509335', 'p' => 'szwxh!755'], 9 => ['u' => 'W75509335', 'p' => 'szwxh!755'],
10 => ['u' => 'W02029017', 'p' => 'weixiuhui09'], 10 => ['u' => 'W02029017', 'p' => 'weixiuhui09'],
11 => ['u' => 'R75500046', 'p' => 'szwxh!755'], 11 => ['u' => 'R75500046', 'p' => 'szwxh!755'],
12 => ['u' => 'K75580035', 'p' => 'dgqh!769'],
]; ];
$key = 0; $key = 12;
self::$testu = $account[$key]['u']; self::$testu = $account[$key]['u'];
self::$testp = $account[$key]['p']; self::$testp = $account[$key]['p'];
//self::$testp = urlencode(str_aes($account[5]['p'])); //self::$testp = urlencode(str_aes($account[5]['p']));
...@@ -234,7 +235,7 @@ class Galanz extends BaseController ...@@ -234,7 +235,7 @@ class Galanz extends BaseController
$data['appid'] = '10001'; $data['appid'] = '10001';
$data['account'] = self::$testu; $data['account'] = self::$testu;
$data['pwd'] = self::$testp; $data['pwd'] = self::$testp;
$data['id'] = '6f554192-9356-4dad-8bc1-edfa223c9943'; $data['id'] = '0d43c6b4-59c5-4809-9dab-17addb37ff76';
$data['nonce_str'] = $obj->GetNonceStr(); $data['nonce_str'] = $obj->GetNonceStr();
$obj->SetValues($data); $obj->SetValues($data);
...@@ -497,7 +498,7 @@ class Galanz extends BaseController ...@@ -497,7 +498,7 @@ class Galanz extends BaseController
$data['appid'] = '10001'; $data['appid'] = '10001';
$data['account'] = self::$testu; $data['account'] = self::$testu;
$data['pwd'] = self::$testp; $data['pwd'] = self::$testp;
$data['workorderproductid'] = '5ad37132-da70-452a-a91a-119bfff70b28'; $data['workorderproductid'] = '5ed6863a-10f1-4409-8e06-d7c60ef0b3dc';
$data['nonce_str'] = $obj->GetNonceStr(); $data['nonce_str'] = $obj->GetNonceStr();
$obj->SetValues($data); $obj->SetValues($data);
......
...@@ -1194,7 +1194,30 @@ class SourceGalanz extends Source ...@@ -1194,7 +1194,30 @@ class SourceGalanz extends Source
$url = self::$host . "/Common/lookupSingle.aspx?lookupname={$key}&param={$val}"; $url = self::$host . "/Common/lookupSingle.aspx?lookupname={$key}&param={$val}";
$result = $this->GetUrlContents($url); $result = $this->GetUrlContents($url);
if ($search) { // if ($search) {
// $post = [
// '__EVENTTARGET' => 'btnSearch',
// '__EVENTARGUMENT' => '',
// '__LASTFOCUS' => '',
// '__VIEWSTATE' => $this->OrderFormValue($result, $this->OrderFormReg('__VIEWSTATE', 'text'), 'text'),
// 'hidIdIndex' => $this->OrderFormValue($result, $this->OrderFormReg('hidIdIndex', 'text'), 'text'),
// 'hidNameIndex' => $this->OrderFormValue($result, $this->OrderFormReg('hidNameIndex', 'text'), 'text'),
// 'hidEntityName' => $this->OrderFormValue($result, $this->OrderFormReg('hidEntityName', 'text'), 'text'),
// 'ddlFieldList' => $type,//$this->OrderFormValue($result, $this->OrderFormReg('ddlFieldList', 'select'), 'select'),
// 'txtValue' => $search,
// 'PagerToolBar1$ctl00' => '150',
// 'PagerToolBar1$ctl05' => '1',
// ];
//
// $headers = $this->Header($url);
// $result = $this->CurlPost($url, $post, $headers);
// $result = gzdecode($result['data']);
//
// return $this->LookupSingleFields($result, $key, 'td');
// } else {
// return $this->LookupSingleFields($result, $key);
// }
$post = [ $post = [
'__EVENTTARGET' => 'btnSearch', '__EVENTTARGET' => 'btnSearch',
'__EVENTARGUMENT' => '', '__EVENTARGUMENT' => '',
...@@ -1205,7 +1228,7 @@ class SourceGalanz extends Source ...@@ -1205,7 +1228,7 @@ class SourceGalanz extends Source
'hidEntityName' => $this->OrderFormValue($result, $this->OrderFormReg('hidEntityName', 'text'), 'text'), 'hidEntityName' => $this->OrderFormValue($result, $this->OrderFormReg('hidEntityName', 'text'), 'text'),
'ddlFieldList' => $type,//$this->OrderFormValue($result, $this->OrderFormReg('ddlFieldList', 'select'), 'select'), 'ddlFieldList' => $type,//$this->OrderFormValue($result, $this->OrderFormReg('ddlFieldList', 'select'), 'select'),
'txtValue' => $search, 'txtValue' => $search,
'PagerToolBar1$ctl00' => '50', 'PagerToolBar1$ctl00' => '500',
'PagerToolBar1$ctl05' => '1', 'PagerToolBar1$ctl05' => '1',
]; ];
...@@ -1214,9 +1237,6 @@ class SourceGalanz extends Source ...@@ -1214,9 +1237,6 @@ class SourceGalanz extends Source
$result = gzdecode($result['data']); $result = gzdecode($result['data']);
return $this->LookupSingleFields($result, $key, 'td'); return $this->LookupSingleFields($result, $key, 'td');
} else {
return $this->LookupSingleFields($result, $key);
}
} }
/** /**
......
...@@ -559,9 +559,20 @@ new_id | id | 是 | String(32) | 2ac18853-8f45-4210-8e98-e4bb0d3554a9 | 维修 ...@@ -559,9 +559,20 @@ new_id | id | 是 | String(32) | 2ac18853-8f45-4210-8e98-e4bb0d3554a9 | 维修
减免备注 | reliefmemo | 否 | String(32) | | 减免备注 | reliefmemo | 否 | String(32) | |
上门距离 | distancekm | 否 | String(32) | 100 上门距离 | distancekm | 否 | String(32) | 100
拉修费 | laxiuamount | 否 | String(32) | 50 拉修费 | laxiuamount | 否 | String(32) | 50
机器信息 | machine | 否 | Json | {"chk":"machine下chk","producttypeid":"new_producttypeid","producttypeidName":"new_producttypeidName","productmodelid":"new_productmodelid","productmodelidName":"new_name","productnumber":"productnumber","modelnumber":"name"} | 添加机器,保存需要填写该字段,其他非必填 机器信息 | machine | 否 | Json | 如下 | 添加机器,保存需要填写该字段,其他非必填
故障信息 | fault | 否 | Json | {"chk":"新增的故障chk","errormoduleid":"","errormoduleidName":"故障现象","errorgroupid":"","errorgroupidName":"原因分类","errorsolutionid":"","errorsolutionidName":"维修措施"} | 添加故障,保存需要填写该字段,其他非必填 故障信息 | fault | 否 | Json | 如下 | 添加故障,保存需要填写该字段,其他非必填
换件信息 | parts | 否 | Json | {"chk":"新增的配件chk","errorpartsid":"","errorpartsidName":"不良品名称","partsid":"","partsidName":"良品名称","qty":"库存"} | 添加换件,保存需要填写该字段,其他非必填 换件信息 | parts | 否 | Json | 如下 | 添加换件,保存需要填写该字段,其他非必填
```
machine:
{"chk":"machine下chk","producttypeid":"new_producttypeid","producttypeidName":"new_producttypeidName","productmodelid":"new_productmodelid","productmodelidName":"new_name","productnumber":"productnumber","modelnumber":"name"}
fault:
{"chk":"新增的故障chk","errormoduleid":"","errormoduleidName":"故障现象","errorgroupid":"","errorgroupidName":"原因分类","errorsolutionid":"","errorsolutionidName":"维修措施"}
parts:
{"chk":"新增的配件chk","errorpartsid":"","errorpartsidName":"不良品名称","partsid":"","partsidName":"良品名称","qty":"库存"}
```
###### 返回结果 ###### 返回结果
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment