editing function part of input document.
This commit is contained in:
@@ -35,14 +35,3 @@ try
|
||||
catch ( Exception $e ) {
|
||||
print json_encode ( $e->getMessage() );
|
||||
}
|
||||
|
||||
|
||||
G::LoadClass('processMap');
|
||||
$oProcessMap = new processMap(new DBConnection);
|
||||
|
||||
$rows = $oProcessMap->showExtDBConnList();
|
||||
array_shift($rows);
|
||||
|
||||
$result['totalCount'] = count($rows);
|
||||
$result['data'] = $rows;
|
||||
print json_encode( $result ) ;
|
||||
@@ -8,10 +8,21 @@ try
|
||||
$rows = $oProcessMap->getExtInputDocumentsCriteria($_GET['pid']);
|
||||
array_shift($rows);
|
||||
}
|
||||
|
||||
$result['totalCount'] = count($rows);
|
||||
$result['data'] = $rows;
|
||||
print json_encode( $result) ;
|
||||
|
||||
if (isset($_GET['INP_DOC_UID'])) {
|
||||
require_once 'classes/model/InputDocument.php';
|
||||
$oInputDocument = new InputDocument();
|
||||
$rows = $oInputDocument->load($_GET['INP_DOC_UID']);
|
||||
}
|
||||
// $result['totalCount'] = count($rows);
|
||||
// $result['data'] = $rows;
|
||||
// print json_encode( $result) ;
|
||||
$tmpData = json_encode( $rows ) ;
|
||||
$tmpData = str_replace("\\/","/",'{success:true,data:'.$tmpData.'}'); // unescape the slashes
|
||||
|
||||
$result = $tmpData;
|
||||
echo $result;
|
||||
|
||||
|
||||
}
|
||||
catch ( Exception $e ) {
|
||||
|
||||
@@ -40,7 +40,7 @@ try {
|
||||
if(isset($_POST['function']))
|
||||
$sfunction =$_POST['function'];
|
||||
else
|
||||
$sfunction ='';
|
||||
$sfunction =$_POST['functions'];
|
||||
|
||||
switch($sfunction){
|
||||
case 'lookForNameInput':
|
||||
|
||||
Reference in New Issue
Block a user