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

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

parent af49e67a
......@@ -43,9 +43,10 @@ class Galanz extends BaseController
9 => ['u' => 'W75509335', 'p' => 'szwxh!755'],
10 => ['u' => 'W02029017', 'p' => 'weixiuhui09'],
11 => ['u' => 'R75500046', 'p' => 'szwxh!755'],
12 => ['u' => 'K75580035', 'p' => 'dgqh!769'],
];
$key = 0;
$key = 12;
self::$testu = $account[$key]['u'];
self::$testp = $account[$key]['p'];
//self::$testp = urlencode(str_aes($account[5]['p']));
......@@ -234,7 +235,7 @@ class Galanz extends BaseController
$data['appid'] = '10001';
$data['account'] = self::$testu;
$data['pwd'] = self::$testp;
$data['id'] = '6f554192-9356-4dad-8bc1-edfa223c9943';
$data['id'] = '0d43c6b4-59c5-4809-9dab-17addb37ff76';
$data['nonce_str'] = $obj->GetNonceStr();
$obj->SetValues($data);
......@@ -497,7 +498,7 @@ class Galanz extends BaseController
$data['appid'] = '10001';
$data['account'] = self::$testu;
$data['pwd'] = self::$testp;
$data['workorderproductid'] = '5ad37132-da70-452a-a91a-119bfff70b28';
$data['workorderproductid'] = '5ed6863a-10f1-4409-8e06-d7c60ef0b3dc';
$data['nonce_str'] = $obj->GetNonceStr();
$obj->SetValues($data);
......
......@@ -1194,29 +1194,49 @@ class SourceGalanz extends Source
$url = self::$host . "/Common/lookupSingle.aspx?lookupname={$key}&param={$val}";
$result = $this->GetUrlContents($url);
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' => '50',
'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);
}
// 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 = [
'__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' => '500',
'PagerToolBar1$ctl05' => '1',
];
$headers = $this->Header($url);
$result = $this->CurlPost($url, $post, $headers);
$result = gzdecode($result['data']);
return $this->LookupSingleFields($result, $key, 'td');
}
/**
......
......@@ -559,9 +559,20 @@ new_id | id | 是 | String(32) | 2ac18853-8f45-4210-8e98-e4bb0d3554a9 | 维修
减免备注 | reliefmemo | 否 | String(32) | |
上门距离 | distancekm | 否 | String(32) | 100
拉修费 | 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"} | 添加机器,保存需要填写该字段,其他非必填
故障信息 | fault | 否 | Json | {"chk":"新增的故障chk","errormoduleid":"","errormoduleidName":"故障现象","errorgroupid":"","errorgroupidName":"原因分类","errorsolutionid":"","errorsolutionidName":"维修措施"} | 添加故障,保存需要填写该字段,其他非必填
换件信息 | parts | 否 | Json | {"chk":"新增的配件chk","errorpartsid":"","errorpartsidName":"不良品名称","partsid":"","partsidName":"良品名称","qty":"库存"} | 添加换件,保存需要填写该字段,其他非必填
机器信息 | machine | 否 | Json | 如下 | 添加机器,保存需要填写该字段,其他非必填
故障信息 | fault | 否 | Json | 如下 | 添加故障,保存需要填写该字段,其他非必填
换件信息 | 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