Added EDIT part functionality for I/O Doc, DB Connection

This commit is contained in:
girish
2010-12-22 14:51:44 +00:00
parent 3e69446320
commit 107b8e2df8
3 changed files with 747 additions and 147 deletions

View File

@@ -13,10 +13,22 @@ try
// $rows = $oProcessMap->getExtInputDocumentsCriteria($_GET['pid']);
// }
if (isset($_GET['tid']))
{
require_once 'classes/model/OutputDocument.php';
$oOutputDocument = new OutputDocument();
$rows = $oOutputDocument->load($_GET['tid']);
}
$result['totalCount'] = count($rows);
$tmpData = json_encode( $rows ) ;
$tmpData = str_replace("\\/","/",'{success:true,data:'.$tmpData.'}'); // unescape the slashes
$result = $tmpData;
echo $result;
/* $result['totalCount'] = count($rows);
$result['data'] = $rows;
print json_encode( $result) ;
print json_encode( $result) ;*/
}
catch ( Exception $e ) {

View File

@@ -429,6 +429,17 @@ var PermissionGridColumn = new Ext.grid.ColumnModel({
}
]
});
var btnCreate = new Ext.Button({
id: 'btnCreate',
text: 'New',
iconCls: 'application_add',
handler: function () {
formWindow.show();
}
})
var tb = new Ext.Toolbar({
items: [btnCreate]
});
var btnAdd = new Ext.Button({
id: 'btnAdd',
@@ -448,7 +459,7 @@ var PermissionGridColumn = new Ext.grid.ColumnModel({
id : 'mygrid',
loadMask: true,
loadingText: 'Loading...',
renderTo: 'cases-grid',
//renderTo: 'cases-grid',
frame: false,
autoHeight:false,
clicksToEdit: 1,
@@ -739,7 +750,7 @@ var formWindow = new Ext.Window({
method: 'POST',
params:{
type :Type,
2625 :Server,
2625 :Server,
db_name :DatabaseName,
user :Username ,
passwd :Password,

File diff suppressed because it is too large Load Diff