Viewing file: mobliefunct.php (7.18 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
require_once('../lib/nusoap.php');
$server = new soap_server();
$server->soap_defencoding = 'UTF-8';
$server->configureWSDL('authenwsdl', 'urn:authenwsdl'); // WSDL support
//====================================================================
$server->register('login', // method name
array('user' => 'xsd:string','pass' => 'xsd:string'), // input
array('return' => 'xsd:string'), // output
'urn:authenwsdl', // namespace
'urn:authenwsdl#authen', // soapaction
'rpc', // style
'encoded', // use
'show data in table' // documentation
);
//====================================================================
$server->register('sendData', // method name
array('personId' => 'xsd:string'), // input
array('return' => 'xsd:string'), // output
'urn:authenwsdl', // namespace
'urn:authenwsdl#authen', // soapaction
'rpc', // style
'encoded', // use
'show data in table' // documentation
);
//====================================================================
$server->register('user_detail', // method name
array('personId' => 'xsd:string'), // input
array('return' => 'xsd:string'), // output
'urn:authenwsdl', // namespace
'urn:authenwsdl#authen', // soapaction
'rpc', // style
'encoded', // use
'show data in table' // documentation
);
//====================================================================
$server->register('getWorkList', // method name
array('personId' => 'xsd:string','dlcid' => 'xsd:string','type' => 'xsd:string'), // input
array('return' => 'xsd:string'), // output
'urn:authenwsdl', // namespace
'urn:authenwsdl#authen', // soapaction
'rpc', // style
'encoded', // use
'show data in table' // documentation
);
//====================================================================
$server->register('workListDetail', // method name
array('personId' => 'xsd:string','DocID' => 'xsd:string','RsID' => 'xsd:string','DtID' => 'xsd:string','DlcID' => 'xsd:string','DrsID' => 'xsd:string','type' => 'xsd:string'), // input
array('return' => 'xsd:string'), // output
'urn:authenwsdl', // namespace
'urn:authenwsdl#authen', // soapaction
'rpc', // style
'encoded', // use
'show data in table' // documentation
);
//====================================================================
$server->register('readDocEntryDoc', // method name
array('DrsID' => 'xsd:string','indexBook' => 'xsd:string'), // input
array('return' => 'xsd:string'), // output
'urn:authenwsdl', // namespace
'urn:authenwsdl#authen', // soapaction
'rpc', // style
'encoded', // use
'show data in table' // documentation
);
//====================================================================
$server->register('signDocAction', // method name
array('personId' => 'xsd:string','DlcID' => 'xsd:string','DrsID' => 'xsd:string','DocID' => 'xsd:string','DrsSign' => 'xsd:string'), // input
array('return' => 'xsd:string'), // output
'urn:authenwsdl', // namespace
'urn:authenwsdl#authen', // soapaction
'rpc', // style
'encoded', // use
'show data in table' // documentation
);
//====================================================================
function login($user,$pass)// operation name
{ $result=file_get_contents('http://'.$_SERVER["HTTP_HOST"].'/mispbri/eoffice/admin/mobliedetail.php?fn=loginmoblie&Username='.$user.'&Password='.$pass);
$result=strip_tags($result, '<br><strong>');
return $result;
}
//====================================================================
function sendData($personId)// operation name
{ $resultdetailWork=file_get_contents('http://'.$_SERVER["HTTP_HOST"].'/mispbri/eoffice/admin/mobliedetail.php?fn=detail_work_moblie&personId='.$personId);
return $resultdetailWork;
}
//====================================================================
function user_detail($personId)// operation name
{
$result=file_get_contents('http://'.$_SERVER["HTTP_HOST"].'/mispbri/eoffice/admin/mobliedetail.php?fn=user_detail&personId='.$personId);
$result=strip_tags($result, '<br><strong>');
return $result;
}
//====================================================================
function getWorkList($personId,$dlcid,$type)// operation name
{
/*
รายการหนังสือเข้า receivedoc สารบรรณ
รายการหนังสือแจ้งการส่งผิด sendBack_doc สารบรรณ,หัวหน้า
รายการหนังสือลงนามแล้วรอส่ง send_doc สารบรรณ,หัวหน้า
รายการหนังสือเสนอลงนามแล้วรอรับหนังสือ statusDocforSign สารบรรณ OS ยังไม่มี
รายการหนังสือเสนอลงนาม (ยังไม่ลงนาม) มีการแจ้งแก้ไขข้อมูลหนังสือ statusDocforSignEdit สารบรรณ OS ยังไม่มี
รายการหนังสือเข้าอิเล็กทรอนิกส์ receiveEdoc สารบรรณ OS ยังไม่มี
รายการหนังสือที่ยังไม่ได้ลงนาม sign_doc หัวหน้า
รายการหนังสือเข้าที่ยังไม่ได้เปิดอ่าน entry_doc ผู้ใช้ทั่วไป
*/
$resultListWork=file_get_contents('http://'.$_SERVER["HTTP_HOST"].'/mispbri/eoffice/admin/mobliedetail.php?fn='.$type.'&personId='.$personId.'&dlcid='.$dlcid);
return $resultListWork;
}
//====================================================================
function workListDetail($personId, $DocID, $RsID, $DtID, $DlcID, $DrsID, $type)// operation name
{ $result=file_get_contents('http://'.$_SERVER["HTTP_HOST"].'/mispbri/eoffice/admin/mobliedetail.php?fn=workListDetail&personId='.$personId.'&DocID='.$DocID.'&RsID='.$RsID.'&DtID='.$DtID.'&DlcID='.$DlcID.'&DrsID='.$DrsID.'&type='.$type);
return $result;
}
//====================================================================
function readDocEntryDoc($DrsID,$indexBook)// operation name
{
$result=file_get_contents('http://'.$_SERVER["HTTP_HOST"].'/mispbri/eoffice/admin/mobliedetail.php?fn=readDocEntryDoc&DrsID='.$DrsID.'&indexBook='.$indexBook);
return $result;
}
//====================================================================
function signDocAction($personId, $DlcID, $DrsID, $DocID, $DrsSign)// operation name
{
$result=file_get_contents('http://'.$_SERVER["HTTP_HOST"].'/mispbri/eoffice/admin/mobliedetail.php?fn=signDocAction&personId='.$personId.'&DLCID='.$DlcID.'&DrsID='.$DrsID.'&DocID='.$DocID.'&DrsSign='.$DrsSign);
return $result;
}
//====================================================================
$HTTP_RAW_POST_DATA = isset($HTTP_RAW_POST_DATA) ? $HTTP_RAW_POST_DATA : '';
$server->service($HTTP_RAW_POST_DATA);
?>
|