$dgh->addButton = true; $dgh->addHandler = "function(v,p,r){ return PersonDependencyObject.AddDepSupport(v,p,r);}"; $dgh->title = "سوابق کفالت بستگان"; $dgh->EnableSearch = false; $dgh->height = 300; $dgh->width = 780; $dgh->autoExpandColumn = "insure_type"; $dgh->EnablePaging = false; $dgh->DefaultSortField = "row_no"; $dgh->DefaultSortDir = "ASC"; $dgh->notRender = true; $dgh->enableRowEdit = true; $dgh->rowEditOkHandler = "function(v,p,r){ return PersonDependencyObject.SaveSupport(v,p,r);}"; $gridSupport = $dgh->makeGrid_returnObjects(); //----------------------------------------- $drp_dependency = manage_domains::DRP_Dependencies("dependency", "", "", "width:50%"); ?> <script> PersonDependency.prototype.afterLoad = function() { this.grid = <?php echo $gridDep; ?> ; this.grid.render(this.get("depGRID")); Ext.get(this.get("SupportCompleteInfo")).setDisplayed(false); this.supportGrid = <?php echo $gridSupport; ?> ; this.PersonID = <?php
$col->width = 100; $col = $dg->addColumn("عملیات", "", "string"); $col->renderer = "PersonDevotion.opRender"; $col->width = 100; $dg->height = 400; $dg->width = 780; $dg->DefaultSortField = "devotion_row"; $dg->DefaultSortDir = "ASC"; if ($accessObj->InsertAccess()) { $dg->addButton = true; $dg->addHandler = "function(){PersonDevotionObject.AddDev();}"; } $dg->EnableSearch = false; $grid = $dg->makeGrid_returnObjects(); $drp_devotion = manage_domains::DRP_Devotions("devotion_type", "", "with:50%"); $drp_dependency = manage_domains::DRP_Dependencies("personel_relation", "", "", "with:60%"); ?> <script> PersonDevotion.prototype.afterLoad = function() { this.grid = <?php echo $grid; ?> ; this.grid.render(this.get("devGRID")); this.PersonID = <?php echo $_POST["Q0"]; ?> ; }