Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
sayhoChun
/
kcSpecialVehicle
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
a704acc3
authored
2017-02-14 17:31:18 +0900
by
sayhoChun
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
api test complete
1 parent
05145a47
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
151 additions
and
6 deletions
common/classes/ApiBoard.php
common/classes/ApiStatic.php
common/classes/apiTest.php
common/classes/ApiBoard.php
View file @
a704acc
This diff is collapsed.
Click to expand it.
common/classes/ApiStatic.php
View file @
a704acc
...
...
@@ -89,7 +89,7 @@ if (! class_exists("ApiStatic")){
//탑차 분류별 리스트
function
getListOfVehicle
(){
$vehicleType
=
$this
->
req
[
"vehicleType"
];
$vehicleType
=
"IS"
;
$sql
=
"
SELECT vehicleNo, name, imgPathVehicle
FROM tblVehicle
...
...
@@ -103,13 +103,14 @@ if (! class_exists("ApiStatic")){
//탑차 정보
function
getInfoOfVehicle
(){
$vehicleNo
=
$this
->
req
[
"vehicleNo"
];
$vehicleNo
=
1
;
echo
$vehicleNo
;
$sql
=
"
SELECT *
FROM tblVehicle
WHERE vehicleNo='
{
$vehicleNo
}
'
"
;
$re
u
sult
=
$this
->
getRow
(
$sql
);
$result
=
$this
->
getRow
(
$sql
);
return
$this
->
makeResultJson
(
"1"
,
""
,
$result
);
}
...
...
common/classes/apiTest.php
View file @
a704acc
...
...
@@ -10,6 +10,16 @@
$event
=
$obj2
->
getListOfEvent
();
$board
=
$obj2
->
getListOfBoard
();
$comment
=
$obj2
->
getInfoOfBoard
();
$CS
=
$obj2
->
getListOfCS
();
$CSInfo
=
$obj2
->
getInfoOfCS
();
$AS
=
$obj2
->
getListOfCompany
();
$ASInfo
=
$obj2
->
getInfoOfCompany
();
$myProductionSpec
=
$obj2
->
getListOfMyProductionSpec
();
$productionSpec
=
$obj2
->
getListOfProductionSpec
();
$productionSpecInfo
=
$obj2
->
getInfoOfProductionSpec
();
$vehicleList
=
$obj
->
getListOfVehicle
();
$vehicleInfo
=
$obj
->
getInfoOfVehicle
();
//$vnum = $obj->virtualNum ;
?>
...
...
@@ -58,11 +68,105 @@ $(document).ready(function(){
async
:
false
,
cache
:
false
,
data
:{
"commentType"
:
"
FB
"
,
"targetFk"
:
1
,
"commentType"
:
"
CS
"
,
"targetFk"
:
2
,
"userFk"
:
1
,
"content"
:
"세 번째 부모"
"content"
:
"test 대댓글2"
,
"parentNo"
:
62
},
success
:
function
(
data
){
alert
(
data
.
returnmessage
);
},
error
:
function
(
req
,
res
,
error
){
alert
(
req
+
res
+
error
);
}
});
})
;
$
(
".saveBoard"
).
click2
(
function
(){
$
.
ajax
({
type
:
'post'
,
url
:
"/action_front.php?cmd=ApiBoard.saveBoard"
,
async
:
false
,
cache
:
false
,
data
:{
"title"
:
"제목제목제목"
,
"userFk"
:
1
,
"imgPathBoard1"
:
"경로1"
,
"imgPathBoard2"
:
"경로2"
,
"imgPathBoard3"
:
"경로3"
,
"content"
:
"내용내용내용"
},
success
:
function
(
data
){
alert
(
data
.
returnmessage
);
},
error
:
function
(
req
,
res
,
error
){
alert
(
req
+
res
+
error
);
}
});
})
;
$
(
".saveCS"
).
click2
(
function
(){
$
.
ajax
({
type
:
'post'
,
url
:
"/action_front.php?cmd=ApiBoard.saveCS"
,
async
:
false
,
cache
:
false
,
data
:{
"title"
:
"제목제목제목"
,
"userFk"
:
1
,
"imgPathBoard1"
:
"경로1"
,
"imgPathBoard2"
:
"경로2"
,
"imgPathBoard3"
:
"경로3"
,
"content"
:
"내용내용내용"
},
success
:
function
(
data
){
alert
(
data
.
returnmessage
);
},
error
:
function
(
req
,
res
,
error
){
alert
(
req
+
res
+
error
);
}
});
})
;
$
(
".saveProductionSpec"
).
click2
(
function
(){
$
.
ajax
({
type
:
'post'
,
url
:
"/action_front.php?cmd=ApiBoard.saveProductionSpec"
,
async
:
false
,
cache
:
false
,
data
:{
"userFk"
:
1
,
"requestDate"
:
"2017-10-18"
,
"companyName"
:
"리치"
,
"vehicleTON"
:
"123123"
,
"vehicleText"
:
"vehicleText"
,
"vehicleType"
:
"HY"
,
"productName"
:
"wtf"
,
"telephone"
:
"01001011"
,
"managerFk"
:
"1"
,
"type"
:
"R"
,
"internalLength"
:
108
,
"internalHeight"
:
120
,
"internalWidth"
:
32
,
"alCoil"
:
"G"
,
"floor"
:
"C"
,
"floorValue"
:
22
,
"tent"
:
0
,
"sideBoard"
:
1
,
"windStopper"
:
1
,
"freezer"
:
0
,
"gate"
:
2
,
"load"
:
"S"
,
"eTrackGate"
:
0
,
"eTrackWing"
:
1
,
"turnBuckle"
:
"rkskek"
,
"toolBucket"
:
2
,
"bumberFootHold"
:
1
,
"wingProtector"
:
2
,
"axis"
:
1
,
"axisValue"
:
"302"
,
"specialAddition"
:
"special"
},
success
:
function
(
data
){
alert
(
data
.
returnmessage
);
...
...
@@ -124,6 +228,9 @@ $(document).ready(function(){
<div
id=
"Contents"
class=
"notice"
style=
"width:1000px;"
>
<form
name=
test1
method=
POST
>
<span
class=
"button bigrounded blue saveComment btnleft_y"
>
댓글 저장
</span>
<span
class=
"button bigrounded blue saveBoard btnleft_y"
>
게시물 저장
</span>
<span
class=
"button bigrounded blue saveCS btnleft_y"
>
고객센터 게시물 저장
</span>
<span
class=
"button bigrounded blue saveProductionSpec btnleft_y"
>
제작사양서 저장
</span>
</form>
<div
class=
"data"
>
<table
class=
"datacList"
id=
"datacList"
>
...
...
@@ -157,6 +264,43 @@ $(document).ready(function(){
<td
class=
"center"
>
Comment
</td>
<td
class=
""
>
<?
echo
$comment
;
?>
</td>
</tr>
<tr>
<td
class=
"center"
>
CS
</td>
<td
class=
""
>
<?
echo
$CS
;
?>
</td>
</tr>
<tr>
<td
class=
"center"
>
CSInfo
</td>
<td
class=
""
>
<?
echo
$CSInfo
;
?>
</td>
</tr>
<tr>
<td
class=
"center"
>
AS
</td>
<td
class=
""
>
<?
echo
$AS
;
?>
</td>
</tr>
<tr>
<td
class=
"center"
>
ASInfo
</td>
<td
class=
""
>
<?
echo
$ASInfo
;
?>
</td>
</tr>
<tr>
<td
class=
"center"
>
MyProductionSpec
</td>
<td
class=
""
>
<?
echo
$myProductionSpec
;
?>
</td>
</tr>
<tr>
<td
class=
"center"
>
ProductionSpecList
</td>
<td
class=
""
>
<?
echo
$productionSpec
;
?>
</td>
</tr>
<tr>
<td
class=
"center"
>
ProductionSpecInfo
</td>
<td
class=
""
>
<?
echo
$productionSpecInfo
;
?>
</td>
</tr>
<tr>
<td
class=
"center"
>
vehicleList
</td>
<td
class=
""
>
<?
echo
$vehicleList
;
?>
</td>
</tr>
<tr>
<td
class=
"center"
>
vehicleInfo
</td>
<td
class=
""
>
<?
echo
$vehicleInfo
;
?>
</td>
</tr>
</table>
</div>
<br>
...
...
Please
register
or
sign in
to post a comment