Skip to content

Commit

Permalink
fixed #18
Browse files Browse the repository at this point in the history
  • Loading branch information
bjverde committed Sep 11, 2018
1 parent 2998fda commit 860a33b
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions classes/TCreateForm.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ public function addColumnsGrid($qtdTab)
//$this->addLine($qtdTab.'$gride->addColumn($primaryKey,\'id\',50,\'center\');');
$this->addLine($qtdTab.'$gride->addColumn($primaryKey,\'id\');');
if ($this->validateListColumnsName()) {
foreach ($this->listColumnsName as $key => $value) {
foreach ($this->listColumnsName as $value) {
//$this->addLine($qtdTab.'$gride->addColumn(\''.$value.'\',\''.$value.'\',50,\'center\');');
$this->addLine($qtdTab.'$gride->addColumn(\''.$value.'\',\''.$value.'\');');
}
Expand All @@ -468,7 +468,7 @@ public function addGetWhereGridParameters_fied($primeira, $campo, $qtdTabs)
//--------------------------------------------------------------------------------------
public function addGetWhereGridParametersFields($qtdTabs)
{
foreach ($this->listColumnsName as $key => $value) {
foreach ($this->listColumnsName as $value) {
$this->addGetWhereGridParameters_fied(false, $value, $qtdTabs);
}
}
Expand Down Expand Up @@ -512,28 +512,26 @@ private function addBasicaGrid()
$this->addLine('$frm->addHtmlField(\'gride\',$gride);');
}
//--------------------------------------------------------------------------------------
public function addGridPagination_jsScript_init_parameter($frist, $parameter)
public function addGridPagination_jsScript_init_parameter($frist, $parameter,$qtdTab)
{
$result = null;
if ($frist == true) {
$result = '"'.$parameter.'":""';
$this->addLine($qtdTab.'"'.$parameter.'":""');
} else {
$result = ',"'.$parameter.'":""';
$this->addLine($qtdTab.',"'.$parameter.'":""');
}
return $result;
}
//--------------------------------------------------------------------------------------
public function addGridPagination_jsScript_init_allparameters($qtdTab)
{
if ($this->validateListColumnsName()) {
$line = null;
$line = $line.$this->addGridPagination_jsScript_init_parameter(true, 'BUSCAR');
$line = $line.$this->addGridPagination_jsScript_init_parameter(false, $this->getPrimaryKeyTable());
foreach ($this->listColumnsName as $key => $value) {
$line = $line.$this->addGridPagination_jsScript_init_parameter(false, $value);
$this->addLine($qtdTab.'var Parameters = {"BUSCAR":""');
$this->addGridPagination_jsScript_init_parameter(false, $this->getPrimaryKeyTable(),$qtdTab.TAB.TAB.TAB.TAB);
foreach ($this->listColumnsName as $value) {
$this->addGridPagination_jsScript_init_parameter(false, $value,$qtdTab.TAB.TAB.TAB.TAB);
}
$line = $qtdTab.'var Parameters = {'.$line.'};';
$this->addLine($line);
$this->addLine($qtdTab.TAB.TAB.TAB.TAB.'};');
}
}
//--------------------------------------------------------------------------------------
Expand Down

0 comments on commit 860a33b

Please sign in to comment.