Commit be44c35e authored by 蒋林's avatar 蒋林

海信 - 工单系列操作接口

parent 9351f25c
...@@ -54,7 +54,7 @@ class Galanz extends BaseController ...@@ -54,7 +54,7 @@ class Galanz extends BaseController
{ {
$sobj = $this->sourceGalanzObj(); $sobj = $this->sourceGalanzObj();
$order = $sobj->searchOrder(); $order = $sobj->LookupParts('7a41b551-9aca-439e-99ed-5f05e54477fc', 'c6f7c2e0-7371-422b-95e2-625076ddfd5b', '253019000135');
print_r($order); print_r($order);
} }
......
...@@ -620,6 +620,11 @@ class ReceiveGalanz extends Receive ...@@ -620,6 +620,11 @@ class ReceiveGalanz extends Receive
{ {
$fileds = ['siteid','errorpartsid']; $fileds = ['siteid','errorpartsid'];
$this->CheckValues($fileds); $this->CheckValues($fileds);
$dfields = [
'search', //安装卡号
];
$this->SetDefaultValues($dfields);
} }
} }
\ No newline at end of file
...@@ -1180,14 +1180,19 @@ class SourceGalanz extends Source ...@@ -1180,14 +1180,19 @@ class SourceGalanz extends Source
* @param $siteid * @param $siteid
* @param $errorpartsid * @param $errorpartsid
* @param $search * @param $search
* @param $type
* @return array * @return array
*/ */
public function LookupParts($siteid, $errorpartsid, $search = '') public function LookupParts($siteid, $errorpartsid, $search = '', $type='name')
{ {
return $this->LookupSingle('lookupParts', $siteid.'%20'.$errorpartsid, $search); if ($search) {
$type = 'productnumber';
}
return $this->LookupSingle('lookupParts', $siteid.'%20'.$errorpartsid, $search, $type);
} }
private function LookupSingle($key, $val, $search='') private function LookupSingle($key, $val, $search='', $type='name')
{ {
$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);
...@@ -1201,7 +1206,7 @@ class SourceGalanz extends Source ...@@ -1201,7 +1206,7 @@ class SourceGalanz extends Source
'hidIdIndex' => $this->OrderFormValue($result, $this->OrderFormReg('hidIdIndex', 'text'), 'text'), 'hidIdIndex' => $this->OrderFormValue($result, $this->OrderFormReg('hidIdIndex', 'text'), 'text'),
'hidNameIndex' => $this->OrderFormValue($result, $this->OrderFormReg('hidNameIndex', 'text'), 'text'), 'hidNameIndex' => $this->OrderFormValue($result, $this->OrderFormReg('hidNameIndex', 'text'), 'text'),
'hidEntityName' => $this->OrderFormValue($result, $this->OrderFormReg('hidEntityName', 'text'), 'text'), 'hidEntityName' => $this->OrderFormValue($result, $this->OrderFormReg('hidEntityName', 'text'), 'text'),
'ddlFieldList' => 'name',//$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' => '50',
'PagerToolBar1$ctl05' => '1', 'PagerToolBar1$ctl05' => '1',
......
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