Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
weixiuhui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
蒋林
weixiuhui
Commits
be44c35e
Commit
be44c35e
authored
Dec 23, 2016
by
蒋林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
海信 - 工单系列操作接口
parent
9351f25c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
5 deletions
+15
-5
Galanz.php
application/controllers/test/Galanz.php
+1
-1
ReceiveGalanz.php
application/libraries/Receive/ReceiveGalanz.php
+5
-0
SourceGalanz.php
application/libraries/Source/SourceGalanz.php
+9
-4
No files found.
application/controllers/test/Galanz.php
View file @
be44c35e
...
@@ -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
);
}
}
...
...
application/libraries/Receive/ReceiveGalanz.php
View file @
be44c35e
...
@@ -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
application/libraries/Source/SourceGalanz.php
View file @
be44c35e
...
@@ -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
}
¶m=
{
$val
}
"
;
$url
=
self
::
$host
.
"/Common/lookupSingle.aspx?lookupname=
{
$key
}
¶m=
{
$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'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment