Ejemplo n.º 1
0
function ew_VarToJson($val, $type = "")
{
    $type = strtolower($type);
    if (is_null($val)) {
        return "null";
    } elseif ($type == "boolean" || is_bool($val)) {
        return ew_ConvertToBool($val) ? "true" : "false";
    } elseif ($type == "string" || is_string($val)) {
        return "\"" . ew_JsEncode2($val) . "\"";
    }
    return $val;
}
Ejemplo n.º 2
0
 function RenderRow()
 {
     global $conn, $Security, $Language, $tbl_group;
     // Initialize URLs
     // Call Row_Rendering event
     $tbl_group->Row_Rendering();
     // Common render codes for all row types
     // id
     $tbl_group->id->CellCssStyle = "";
     $tbl_group->id->CellCssClass = "";
     $tbl_group->id->CellAttrs = array();
     $tbl_group->id->ViewAttrs = array();
     $tbl_group->id->EditAttrs = array();
     // name
     $tbl_group->name->CellCssStyle = "";
     $tbl_group->name->CellCssClass = "";
     $tbl_group->name->CellAttrs = array();
     $tbl_group->name->ViewAttrs = array();
     $tbl_group->name->EditAttrs = array();
     // is_active
     $tbl_group->is_active->CellCssStyle = "";
     $tbl_group->is_active->CellCssClass = "";
     $tbl_group->is_active->CellAttrs = array();
     $tbl_group->is_active->ViewAttrs = array();
     $tbl_group->is_active->EditAttrs = array();
     if ($tbl_group->RowType == EW_ROWTYPE_VIEW) {
         // View row
         // id
         $tbl_group->id->ViewValue = $tbl_group->id->CurrentValue;
         $tbl_group->id->CssStyle = "";
         $tbl_group->id->CssClass = "";
         $tbl_group->id->ViewCustomAttributes = "";
         // name
         $tbl_group->name->ViewValue = $tbl_group->name->CurrentValue;
         $tbl_group->name->CssStyle = "";
         $tbl_group->name->CssClass = "";
         $tbl_group->name->ViewCustomAttributes = "";
         // is_active
         if (ew_ConvertToBool($tbl_group->is_active->CurrentValue)) {
             $tbl_group->is_active->ViewValue = "Yes";
         } else {
             $tbl_group->is_active->ViewValue = "No";
         }
         $tbl_group->is_active->CssStyle = "";
         $tbl_group->is_active->CssClass = "";
         $tbl_group->is_active->ViewCustomAttributes = "";
         // id
         $tbl_group->id->HrefValue = "";
         $tbl_group->id->TooltipValue = "";
         // name
         $tbl_group->name->HrefValue = "";
         $tbl_group->name->TooltipValue = "";
         // is_active
         $tbl_group->is_active->HrefValue = "";
         $tbl_group->is_active->TooltipValue = "";
     } elseif ($tbl_group->RowType == EW_ROWTYPE_EDIT) {
         // Edit row
         // id
         $tbl_group->id->EditCustomAttributes = "";
         $tbl_group->id->EditValue = $tbl_group->id->CurrentValue;
         $tbl_group->id->CssStyle = "";
         $tbl_group->id->CssClass = "";
         $tbl_group->id->ViewCustomAttributes = "";
         // name
         $tbl_group->name->EditCustomAttributes = "";
         $tbl_group->name->EditValue = ew_HtmlEncode($tbl_group->name->CurrentValue);
         // is_active
         $tbl_group->is_active->EditCustomAttributes = "";
         $arwrk = array();
         $arwrk[] = array("1", "Yes");
         $arwrk[] = array("0", "No");
         $tbl_group->is_active->EditValue = $arwrk;
         // Edit refer script
         // id
         $tbl_group->id->HrefValue = "";
         // name
         $tbl_group->name->HrefValue = "";
         // is_active
         $tbl_group->is_active->HrefValue = "";
     }
     // Call Row Rendered event
     if ($tbl_group->RowType != EW_ROWTYPE_AGGREGATEINIT) {
         $tbl_group->Row_Rendered();
     }
 }
Ejemplo n.º 3
0
 function RenderRow()
 {
     global $conn, $Security, $Language;
     global $gsLanguage;
     // Initialize URLs
     $this->AddUrl = $this->GetAddUrl();
     $this->EditUrl = $this->GetEditUrl();
     $this->CopyUrl = $this->GetCopyUrl();
     $this->DeleteUrl = $this->GetDeleteUrl();
     $this->ListUrl = $this->GetListUrl();
     $this->SetupOtherOptions();
     // Call Row_Rendering event
     $this->Row_Rendering();
     // Common render codes for all row types
     // codigo_bodega
     // descripcion
     // direccion
     // empleado_encargado
     // empleado_mensajes
     // es_abastecedora
     // no_traslado
     // negativos
     // dias_inventario
     // cuenta_contable
     // codigo_centro
     // cuenta_gastos
     // centro_gastos
     // no_ingreso
     // cuenta_costos
     // bodega_equivalente
     // factura
     // cuenta_gastos_locales
     // centro_gastos_locales
     // cuenta_otros_gastos
     // centro_otros_gastos
     // Pais
     // FECHA_ULTIMA_ACT
     // U_VLGX_LT
     // U_VLGX_VIV
     // ACEPTA_TRASLADOS
     // Activo
     if ($this->RowType == EW_ROWTYPE_VIEW) {
         // View row
         // codigo_bodega
         $this->codigo_bodega->ViewValue = $this->codigo_bodega->CurrentValue;
         $this->codigo_bodega->ViewCustomAttributes = "";
         // descripcion
         $this->descripcion->ViewValue = $this->descripcion->CurrentValue;
         $this->descripcion->ViewCustomAttributes = "";
         // direccion
         $this->direccion->ViewValue = $this->direccion->CurrentValue;
         $this->direccion->ViewCustomAttributes = "";
         // empleado_encargado
         $this->empleado_encargado->ViewValue = $this->empleado_encargado->CurrentValue;
         $this->empleado_encargado->ViewCustomAttributes = "";
         // empleado_mensajes
         $this->empleado_mensajes->ViewValue = $this->empleado_mensajes->CurrentValue;
         $this->empleado_mensajes->ViewCustomAttributes = "";
         // es_abastecedora
         $this->es_abastecedora->ViewValue = $this->es_abastecedora->CurrentValue;
         $this->es_abastecedora->ViewCustomAttributes = "";
         // no_traslado
         $this->no_traslado->ViewValue = $this->no_traslado->CurrentValue;
         $this->no_traslado->ViewCustomAttributes = "";
         // negativos
         $this->negativos->ViewValue = $this->negativos->CurrentValue;
         $this->negativos->ViewCustomAttributes = "";
         // dias_inventario
         $this->dias_inventario->ViewValue = $this->dias_inventario->CurrentValue;
         $this->dias_inventario->ViewCustomAttributes = "";
         // cuenta_contable
         $this->cuenta_contable->ViewValue = $this->cuenta_contable->CurrentValue;
         $this->cuenta_contable->ViewCustomAttributes = "";
         // codigo_centro
         $this->codigo_centro->ViewValue = $this->codigo_centro->CurrentValue;
         $this->codigo_centro->ViewCustomAttributes = "";
         // cuenta_gastos
         $this->cuenta_gastos->ViewValue = $this->cuenta_gastos->CurrentValue;
         $this->cuenta_gastos->ViewCustomAttributes = "";
         // centro_gastos
         $this->centro_gastos->ViewValue = $this->centro_gastos->CurrentValue;
         $this->centro_gastos->ViewCustomAttributes = "";
         // no_ingreso
         $this->no_ingreso->ViewValue = $this->no_ingreso->CurrentValue;
         $this->no_ingreso->ViewCustomAttributes = "";
         // cuenta_costos
         $this->cuenta_costos->ViewValue = $this->cuenta_costos->CurrentValue;
         $this->cuenta_costos->ViewCustomAttributes = "";
         // bodega_equivalente
         $this->bodega_equivalente->ViewValue = $this->bodega_equivalente->CurrentValue;
         $this->bodega_equivalente->ViewCustomAttributes = "";
         // factura
         $this->factura->ViewValue = $this->factura->CurrentValue;
         $this->factura->ViewCustomAttributes = "";
         // cuenta_gastos_locales
         $this->cuenta_gastos_locales->ViewValue = $this->cuenta_gastos_locales->CurrentValue;
         $this->cuenta_gastos_locales->ViewCustomAttributes = "";
         // centro_gastos_locales
         $this->centro_gastos_locales->ViewValue = $this->centro_gastos_locales->CurrentValue;
         $this->centro_gastos_locales->ViewCustomAttributes = "";
         // cuenta_otros_gastos
         $this->cuenta_otros_gastos->ViewValue = $this->cuenta_otros_gastos->CurrentValue;
         $this->cuenta_otros_gastos->ViewCustomAttributes = "";
         // centro_otros_gastos
         $this->centro_otros_gastos->ViewValue = $this->centro_otros_gastos->CurrentValue;
         $this->centro_otros_gastos->ViewCustomAttributes = "";
         // Pais
         $this->Pais->ViewValue = $this->Pais->CurrentValue;
         $this->Pais->ViewCustomAttributes = "";
         // FECHA_ULTIMA_ACT
         $this->FECHA_ULTIMA_ACT->ViewValue = $this->FECHA_ULTIMA_ACT->CurrentValue;
         $this->FECHA_ULTIMA_ACT->ViewValue = ew_FormatDateTime($this->FECHA_ULTIMA_ACT->ViewValue, 7);
         $this->FECHA_ULTIMA_ACT->ViewCustomAttributes = "";
         // U_VLGX_LT
         $this->U_VLGX_LT->ViewValue = $this->U_VLGX_LT->CurrentValue;
         $this->U_VLGX_LT->ViewCustomAttributes = "";
         // U_VLGX_VIV
         $this->U_VLGX_VIV->ViewValue = $this->U_VLGX_VIV->CurrentValue;
         $this->U_VLGX_VIV->ViewCustomAttributes = "";
         // ACEPTA_TRASLADOS
         $this->ACEPTA_TRASLADOS->ViewValue = $this->ACEPTA_TRASLADOS->CurrentValue;
         $this->ACEPTA_TRASLADOS->ViewCustomAttributes = "";
         // Activo
         if (ew_ConvertToBool($this->Activo->CurrentValue)) {
             $this->Activo->ViewValue = $this->Activo->FldTagCaption(1) != "" ? $this->Activo->FldTagCaption(1) : "Yes";
         } else {
             $this->Activo->ViewValue = $this->Activo->FldTagCaption(2) != "" ? $this->Activo->FldTagCaption(2) : "No";
         }
         $this->Activo->ViewCustomAttributes = "";
         // codigo_bodega
         $this->codigo_bodega->LinkCustomAttributes = "";
         $this->codigo_bodega->HrefValue = "";
         $this->codigo_bodega->TooltipValue = "";
         // descripcion
         $this->descripcion->LinkCustomAttributes = "";
         $this->descripcion->HrefValue = "";
         $this->descripcion->TooltipValue = "";
     }
     // Call Row Rendered event
     if ($this->RowType != EW_ROWTYPE_AGGREGATEINIT) {
         $this->Row_Rendered();
     }
 }
Ejemplo n.º 4
0
 function RenderRow()
 {
     global $conn, $Security, $Language, $tbl_group;
     // Initialize URLs
     $this->ViewUrl = $tbl_group->ViewUrl();
     $this->EditUrl = $tbl_group->EditUrl();
     $this->InlineEditUrl = $tbl_group->InlineEditUrl();
     $this->CopyUrl = $tbl_group->CopyUrl();
     $this->InlineCopyUrl = $tbl_group->InlineCopyUrl();
     $this->DeleteUrl = $tbl_group->DeleteUrl();
     // Call Row_Rendering event
     $tbl_group->Row_Rendering();
     // Common render codes for all row types
     // id
     $tbl_group->id->CellCssStyle = "";
     $tbl_group->id->CellCssClass = "";
     $tbl_group->id->CellAttrs = array();
     $tbl_group->id->ViewAttrs = array();
     $tbl_group->id->EditAttrs = array();
     // name
     $tbl_group->name->CellCssStyle = "white-space: nowrap;";
     $tbl_group->name->CellCssClass = "";
     $tbl_group->name->CellAttrs = array();
     $tbl_group->name->ViewAttrs = array();
     $tbl_group->name->EditAttrs = array();
     // is_active
     $tbl_group->is_active->CellCssStyle = "";
     $tbl_group->is_active->CellCssClass = "";
     $tbl_group->is_active->CellAttrs = array();
     $tbl_group->is_active->ViewAttrs = array();
     $tbl_group->is_active->EditAttrs = array();
     if ($tbl_group->RowType == EW_ROWTYPE_VIEW) {
         // View row
         // id
         $tbl_group->id->ViewValue = $tbl_group->id->CurrentValue;
         $tbl_group->id->CssStyle = "";
         $tbl_group->id->CssClass = "";
         $tbl_group->id->ViewCustomAttributes = "";
         // name
         $tbl_group->name->ViewValue = $tbl_group->name->CurrentValue;
         $tbl_group->name->CssStyle = "";
         $tbl_group->name->CssClass = "";
         $tbl_group->name->ViewCustomAttributes = "";
         // is_active
         if (ew_ConvertToBool($tbl_group->is_active->CurrentValue)) {
             $tbl_group->is_active->ViewValue = "Yes";
         } else {
             $tbl_group->is_active->ViewValue = "No";
         }
         $tbl_group->is_active->CssStyle = "";
         $tbl_group->is_active->CssClass = "";
         $tbl_group->is_active->ViewCustomAttributes = "";
         // id
         $tbl_group->id->HrefValue = "";
         $tbl_group->id->TooltipValue = "";
         // name
         $tbl_group->name->HrefValue = "";
         $tbl_group->name->TooltipValue = "";
         if ($tbl_group->Export == "") {
             $tbl_group->name->ViewValue = ew_Highlight($tbl_group->HighlightName(), $tbl_group->name->ViewValue, $tbl_group->getSessionBasicSearchKeyword(), $tbl_group->getSessionBasicSearchType(), $tbl_group->getAdvancedSearch("x_name"));
         }
         // is_active
         $tbl_group->is_active->HrefValue = "";
         $tbl_group->is_active->TooltipValue = "";
     } elseif ($tbl_group->RowType == EW_ROWTYPE_ADD) {
         // Add row
         // id
         // name
         $tbl_group->name->EditCustomAttributes = "";
         $tbl_group->name->EditValue = ew_HtmlEncode($tbl_group->name->CurrentValue);
         // is_active
         $tbl_group->is_active->EditCustomAttributes = "";
         $arwrk = array();
         $arwrk[] = array("1", "Yes");
         $arwrk[] = array("0", "No");
         $tbl_group->is_active->EditValue = $arwrk;
     } elseif ($tbl_group->RowType == EW_ROWTYPE_EDIT) {
         // Edit row
         // id
         $tbl_group->id->EditCustomAttributes = "";
         $tbl_group->id->EditValue = $tbl_group->id->CurrentValue;
         $tbl_group->id->CssStyle = "";
         $tbl_group->id->CssClass = "";
         $tbl_group->id->ViewCustomAttributes = "";
         // name
         $tbl_group->name->EditCustomAttributes = "";
         $tbl_group->name->EditValue = ew_HtmlEncode($tbl_group->name->CurrentValue);
         // is_active
         $tbl_group->is_active->EditCustomAttributes = "";
         $arwrk = array();
         $arwrk[] = array("1", "Yes");
         $arwrk[] = array("0", "No");
         $tbl_group->is_active->EditValue = $arwrk;
         // Edit refer script
         // id
         $tbl_group->id->HrefValue = "";
         // name
         $tbl_group->name->HrefValue = "";
         // is_active
         $tbl_group->is_active->HrefValue = "";
     }
     // Call Row Rendered event
     if ($tbl_group->RowType != EW_ROWTYPE_AGGREGATEINIT) {
         $tbl_group->Row_Rendered();
     }
 }
Ejemplo n.º 5
0
 function RenderListRow()
 {
     global $conn, $Security, $gsLanguage, $Language;
     // Call Row Rendering event
     $this->Row_Rendering();
     // Common render codes
     // UserID
     // UserName
     // Password
     // caduca_clave
     // dias_expira
     // fecha_exprira
     // fecha_ultima_expiro
     // actualizar
     // e_mail
     // nombre
     // estado_empleado
     // puesto
     // login
     // Bloqueado
     // Intentos
     // UserID
     $this->_UserID->ViewValue = $this->_UserID->CurrentValue;
     $this->_UserID->ViewCustomAttributes = "";
     // UserName
     $this->UserName->ViewValue = $this->UserName->CurrentValue;
     $this->UserName->ViewCustomAttributes = "";
     // Password
     $this->Password->ViewValue = $this->Password->CurrentValue;
     $this->Password->ViewCustomAttributes = "";
     // caduca_clave
     $this->caduca_clave->ViewValue = $this->caduca_clave->CurrentValue;
     $this->caduca_clave->ViewCustomAttributes = "";
     // dias_expira
     $this->dias_expira->ViewValue = $this->dias_expira->CurrentValue;
     $this->dias_expira->ViewCustomAttributes = "";
     // fecha_exprira
     $this->fecha_exprira->ViewValue = $this->fecha_exprira->CurrentValue;
     $this->fecha_exprira->ViewValue = ew_FormatDateTime($this->fecha_exprira->ViewValue, 7);
     $this->fecha_exprira->ViewCustomAttributes = "";
     // fecha_ultima_expiro
     $this->fecha_ultima_expiro->ViewValue = $this->fecha_ultima_expiro->CurrentValue;
     $this->fecha_ultima_expiro->ViewValue = ew_FormatDateTime($this->fecha_ultima_expiro->ViewValue, 7);
     $this->fecha_ultima_expiro->ViewCustomAttributes = "";
     // actualizar
     $this->actualizar->ViewValue = $this->actualizar->CurrentValue;
     $this->actualizar->ViewCustomAttributes = "";
     // e_mail
     $this->e_mail->ViewValue = $this->e_mail->CurrentValue;
     $this->e_mail->ViewCustomAttributes = "";
     // nombre
     $this->nombre->ViewValue = $this->nombre->CurrentValue;
     $this->nombre->ViewCustomAttributes = "";
     // estado_empleado
     $this->estado_empleado->ViewValue = $this->estado_empleado->CurrentValue;
     $this->estado_empleado->ViewCustomAttributes = "";
     // puesto
     $this->puesto->ViewValue = $this->puesto->CurrentValue;
     $this->puesto->ViewCustomAttributes = "";
     // login
     $this->_login->ViewValue = $this->_login->CurrentValue;
     $this->_login->ViewCustomAttributes = "";
     // Bloqueado
     if (ew_ConvertToBool($this->Bloqueado->CurrentValue)) {
         $this->Bloqueado->ViewValue = $this->Bloqueado->FldTagCaption(1) != "" ? $this->Bloqueado->FldTagCaption(1) : "Yes";
     } else {
         $this->Bloqueado->ViewValue = $this->Bloqueado->FldTagCaption(2) != "" ? $this->Bloqueado->FldTagCaption(2) : "No";
     }
     $this->Bloqueado->ViewCustomAttributes = "";
     // Intentos
     $this->Intentos->ViewValue = $this->Intentos->CurrentValue;
     $this->Intentos->ViewCustomAttributes = "";
     // UserID
     $this->_UserID->LinkCustomAttributes = "";
     $this->_UserID->HrefValue = "";
     $this->_UserID->TooltipValue = "";
     // UserName
     $this->UserName->LinkCustomAttributes = "";
     $this->UserName->HrefValue = "";
     $this->UserName->TooltipValue = "";
     // Password
     $this->Password->LinkCustomAttributes = "";
     $this->Password->HrefValue = "";
     $this->Password->TooltipValue = "";
     // caduca_clave
     $this->caduca_clave->LinkCustomAttributes = "";
     $this->caduca_clave->HrefValue = "";
     $this->caduca_clave->TooltipValue = "";
     // dias_expira
     $this->dias_expira->LinkCustomAttributes = "";
     $this->dias_expira->HrefValue = "";
     $this->dias_expira->TooltipValue = "";
     // fecha_exprira
     $this->fecha_exprira->LinkCustomAttributes = "";
     $this->fecha_exprira->HrefValue = "";
     $this->fecha_exprira->TooltipValue = "";
     // fecha_ultima_expiro
     $this->fecha_ultima_expiro->LinkCustomAttributes = "";
     $this->fecha_ultima_expiro->HrefValue = "";
     $this->fecha_ultima_expiro->TooltipValue = "";
     // actualizar
     $this->actualizar->LinkCustomAttributes = "";
     $this->actualizar->HrefValue = "";
     $this->actualizar->TooltipValue = "";
     // e_mail
     $this->e_mail->LinkCustomAttributes = "";
     $this->e_mail->HrefValue = "";
     $this->e_mail->TooltipValue = "";
     // nombre
     $this->nombre->LinkCustomAttributes = "";
     $this->nombre->HrefValue = "";
     $this->nombre->TooltipValue = "";
     // estado_empleado
     $this->estado_empleado->LinkCustomAttributes = "";
     $this->estado_empleado->HrefValue = "";
     $this->estado_empleado->TooltipValue = "";
     // puesto
     $this->puesto->LinkCustomAttributes = "";
     $this->puesto->HrefValue = "";
     $this->puesto->TooltipValue = "";
     // login
     $this->_login->LinkCustomAttributes = "";
     $this->_login->HrefValue = "";
     $this->_login->TooltipValue = "";
     // Bloqueado
     $this->Bloqueado->LinkCustomAttributes = "";
     $this->Bloqueado->HrefValue = "";
     $this->Bloqueado->TooltipValue = "";
     // Intentos
     $this->Intentos->LinkCustomAttributes = "";
     $this->Intentos->HrefValue = "";
     $this->Intentos->TooltipValue = "";
     // Call Row Rendered event
     $this->Row_Rendered();
 }
Ejemplo n.º 6
0
 function RenderRow()
 {
     global $conn, $Security, $Language;
     global $gsLanguage;
     // Initialize URLs
     $this->AddUrl = $this->GetAddUrl();
     $this->EditUrl = $this->GetEditUrl();
     $this->CopyUrl = $this->GetCopyUrl();
     $this->DeleteUrl = $this->GetDeleteUrl();
     $this->ListUrl = $this->GetListUrl();
     $this->SetupOtherOptions();
     // Call Row_Rendering event
     $this->Row_Rendering();
     // Common render codes for all row types
     // Estanteria_Id
     // descripcion
     // es_muestra
     if ($this->RowType == EW_ROWTYPE_VIEW) {
         // View row
         // Estanteria_Id
         $this->Estanteria_Id->ViewValue = $this->Estanteria_Id->CurrentValue;
         $this->Estanteria_Id->ViewCustomAttributes = "";
         // descripcion
         $this->descripcion->ViewValue = $this->descripcion->CurrentValue;
         $this->descripcion->ViewCustomAttributes = "";
         // es_muestra
         if (ew_ConvertToBool($this->es_muestra->CurrentValue)) {
             $this->es_muestra->ViewValue = $this->es_muestra->FldTagCaption(1) != "" ? $this->es_muestra->FldTagCaption(1) : "Yes";
         } else {
             $this->es_muestra->ViewValue = $this->es_muestra->FldTagCaption(2) != "" ? $this->es_muestra->FldTagCaption(2) : "No";
         }
         $this->es_muestra->ViewCustomAttributes = "";
         // Estanteria_Id
         $this->Estanteria_Id->LinkCustomAttributes = "";
         $this->Estanteria_Id->HrefValue = "";
         $this->Estanteria_Id->TooltipValue = "";
         // descripcion
         $this->descripcion->LinkCustomAttributes = "";
         $this->descripcion->HrefValue = "";
         $this->descripcion->TooltipValue = "";
         // es_muestra
         $this->es_muestra->LinkCustomAttributes = "";
         $this->es_muestra->HrefValue = "";
         $this->es_muestra->TooltipValue = "";
     }
     // Call Row Rendered event
     if ($this->RowType != EW_ROWTYPE_AGGREGATEINIT) {
         $this->Row_Rendered();
     }
 }
Ejemplo n.º 7
0
 function RenderRow()
 {
     global $conn, $Security, $Language;
     global $gsLanguage;
     // Initialize URLs
     // Call Row_Rendering event
     $this->Row_Rendering();
     // Common render codes for all row types
     // Estanteria_Id
     // descripcion
     // es_muestra
     if ($this->RowType == EW_ROWTYPE_VIEW) {
         // View row
         // Estanteria_Id
         $this->Estanteria_Id->ViewValue = $this->Estanteria_Id->CurrentValue;
         $this->Estanteria_Id->ViewCustomAttributes = "";
         // descripcion
         $this->descripcion->ViewValue = $this->descripcion->CurrentValue;
         $this->descripcion->ViewCustomAttributes = "";
         // es_muestra
         if (ew_ConvertToBool($this->es_muestra->CurrentValue)) {
             $this->es_muestra->ViewValue = $this->es_muestra->FldTagCaption(1) != "" ? $this->es_muestra->FldTagCaption(1) : "Yes";
         } else {
             $this->es_muestra->ViewValue = $this->es_muestra->FldTagCaption(2) != "" ? $this->es_muestra->FldTagCaption(2) : "No";
         }
         $this->es_muestra->ViewCustomAttributes = "";
         // Estanteria_Id
         $this->Estanteria_Id->LinkCustomAttributes = "";
         $this->Estanteria_Id->HrefValue = "";
         $this->Estanteria_Id->TooltipValue = "";
         // descripcion
         $this->descripcion->LinkCustomAttributes = "";
         $this->descripcion->HrefValue = "";
         $this->descripcion->TooltipValue = "";
         // es_muestra
         $this->es_muestra->LinkCustomAttributes = "";
         $this->es_muestra->HrefValue = "";
         $this->es_muestra->TooltipValue = "";
     } elseif ($this->RowType == EW_ROWTYPE_ADD) {
         // Add row
         // Estanteria_Id
         $this->Estanteria_Id->EditAttrs["class"] = "form-control";
         $this->Estanteria_Id->EditCustomAttributes = "";
         $this->Estanteria_Id->EditValue = ew_HtmlEncode($this->Estanteria_Id->CurrentValue);
         $this->Estanteria_Id->PlaceHolder = ew_RemoveHtml($this->Estanteria_Id->FldCaption());
         // descripcion
         $this->descripcion->EditAttrs["class"] = "form-control";
         $this->descripcion->EditCustomAttributes = "";
         $this->descripcion->EditValue = ew_HtmlEncode($this->descripcion->CurrentValue);
         $this->descripcion->PlaceHolder = ew_RemoveHtml($this->descripcion->FldCaption());
         // es_muestra
         $this->es_muestra->EditCustomAttributes = "";
         $arwrk = array();
         $arwrk[] = array($this->es_muestra->FldTagValue(1), $this->es_muestra->FldTagCaption(1) != "" ? $this->es_muestra->FldTagCaption(1) : $this->es_muestra->FldTagValue(1));
         $arwrk[] = array($this->es_muestra->FldTagValue(2), $this->es_muestra->FldTagCaption(2) != "" ? $this->es_muestra->FldTagCaption(2) : $this->es_muestra->FldTagValue(2));
         $this->es_muestra->EditValue = $arwrk;
         // Edit refer script
         // Estanteria_Id
         $this->Estanteria_Id->HrefValue = "";
         // descripcion
         $this->descripcion->HrefValue = "";
         // es_muestra
         $this->es_muestra->HrefValue = "";
     }
     if ($this->RowType == EW_ROWTYPE_ADD || $this->RowType == EW_ROWTYPE_EDIT || $this->RowType == EW_ROWTYPE_SEARCH) {
         // Add / Edit / Search row
         $this->SetupFieldTitles();
     }
     // Call Row Rendered event
     if ($this->RowType != EW_ROWTYPE_AGGREGATEINIT) {
         $this->Row_Rendered();
     }
 }
Ejemplo n.º 8
0
 function RenderRow()
 {
     global $conn, $Security, $Language, $tbl_group;
     // Initialize URLs
     $this->ExportPrintUrl = $this->PageUrl() . "export=print&" . "id=" . urlencode($tbl_group->id->CurrentValue);
     $this->ExportHtmlUrl = $this->PageUrl() . "export=html&" . "id=" . urlencode($tbl_group->id->CurrentValue);
     $this->ExportExcelUrl = $this->PageUrl() . "export=excel&" . "id=" . urlencode($tbl_group->id->CurrentValue);
     $this->ExportWordUrl = $this->PageUrl() . "export=word&" . "id=" . urlencode($tbl_group->id->CurrentValue);
     $this->ExportXmlUrl = $this->PageUrl() . "export=xml&" . "id=" . urlencode($tbl_group->id->CurrentValue);
     $this->ExportCsvUrl = $this->PageUrl() . "export=csv&" . "id=" . urlencode($tbl_group->id->CurrentValue);
     $this->AddUrl = $tbl_group->AddUrl();
     $this->EditUrl = $tbl_group->EditUrl();
     $this->CopyUrl = $tbl_group->CopyUrl();
     $this->DeleteUrl = $tbl_group->DeleteUrl();
     $this->ListUrl = $tbl_group->ListUrl();
     // Call Row_Rendering event
     $tbl_group->Row_Rendering();
     // Common render codes for all row types
     // id
     $tbl_group->id->CellCssStyle = "";
     $tbl_group->id->CellCssClass = "";
     $tbl_group->id->CellAttrs = array();
     $tbl_group->id->ViewAttrs = array();
     $tbl_group->id->EditAttrs = array();
     // name
     $tbl_group->name->CellCssStyle = "";
     $tbl_group->name->CellCssClass = "";
     $tbl_group->name->CellAttrs = array();
     $tbl_group->name->ViewAttrs = array();
     $tbl_group->name->EditAttrs = array();
     // is_active
     $tbl_group->is_active->CellCssStyle = "";
     $tbl_group->is_active->CellCssClass = "";
     $tbl_group->is_active->CellAttrs = array();
     $tbl_group->is_active->ViewAttrs = array();
     $tbl_group->is_active->EditAttrs = array();
     if ($tbl_group->RowType == EW_ROWTYPE_VIEW) {
         // View row
         // id
         $tbl_group->id->ViewValue = $tbl_group->id->CurrentValue;
         $tbl_group->id->CssStyle = "";
         $tbl_group->id->CssClass = "";
         $tbl_group->id->ViewCustomAttributes = "";
         // name
         $tbl_group->name->ViewValue = $tbl_group->name->CurrentValue;
         $tbl_group->name->CssStyle = "";
         $tbl_group->name->CssClass = "";
         $tbl_group->name->ViewCustomAttributes = "";
         // is_active
         if (ew_ConvertToBool($tbl_group->is_active->CurrentValue)) {
             $tbl_group->is_active->ViewValue = "Yes";
         } else {
             $tbl_group->is_active->ViewValue = "No";
         }
         $tbl_group->is_active->CssStyle = "";
         $tbl_group->is_active->CssClass = "";
         $tbl_group->is_active->ViewCustomAttributes = "";
         // id
         $tbl_group->id->HrefValue = "";
         $tbl_group->id->TooltipValue = "";
         // name
         $tbl_group->name->HrefValue = "";
         $tbl_group->name->TooltipValue = "";
         // is_active
         $tbl_group->is_active->HrefValue = "";
         $tbl_group->is_active->TooltipValue = "";
     }
     // Call Row Rendered event
     if ($tbl_group->RowType != EW_ROWTYPE_AGGREGATEINIT) {
         $tbl_group->Row_Rendered();
     }
 }
Ejemplo n.º 9
0
 function RenderListRow()
 {
     global $conn, $Security, $gsLanguage, $Language;
     // Call Row Rendering event
     $this->Row_Rendering();
     // Common render codes
     // Estanteria_Id
     // descripcion
     // es_muestra
     // Estanteria_Id
     $this->Estanteria_Id->ViewValue = $this->Estanteria_Id->CurrentValue;
     $this->Estanteria_Id->ViewCustomAttributes = "";
     // descripcion
     $this->descripcion->ViewValue = $this->descripcion->CurrentValue;
     $this->descripcion->ViewCustomAttributes = "";
     // es_muestra
     if (ew_ConvertToBool($this->es_muestra->CurrentValue)) {
         $this->es_muestra->ViewValue = $this->es_muestra->FldTagCaption(1) != "" ? $this->es_muestra->FldTagCaption(1) : "Yes";
     } else {
         $this->es_muestra->ViewValue = $this->es_muestra->FldTagCaption(2) != "" ? $this->es_muestra->FldTagCaption(2) : "No";
     }
     $this->es_muestra->ViewCustomAttributes = "";
     // Estanteria_Id
     $this->Estanteria_Id->LinkCustomAttributes = "";
     $this->Estanteria_Id->HrefValue = "";
     $this->Estanteria_Id->TooltipValue = "";
     // descripcion
     $this->descripcion->LinkCustomAttributes = "";
     $this->descripcion->HrefValue = "";
     $this->descripcion->TooltipValue = "";
     // es_muestra
     $this->es_muestra->LinkCustomAttributes = "";
     $this->es_muestra->HrefValue = "";
     $this->es_muestra->TooltipValue = "";
     // Call Row Rendered event
     $this->Row_Rendered();
 }
Ejemplo n.º 10
0
 function RenderListRow()
 {
     global $conn, $Security;
     // Call Row Rendering event
     $this->Row_Rendering();
     // Common render codes
     // id
     $this->id->CellCssStyle = "";
     $this->id->CellCssClass = "";
     $this->id->CellAttrs = array();
     $this->id->ViewAttrs = array();
     $this->id->EditAttrs = array();
     // name
     $this->name->CellCssStyle = "white-space: nowrap;";
     $this->name->CellCssClass = "";
     $this->name->CellAttrs = array();
     $this->name->ViewAttrs = array();
     $this->name->EditAttrs = array();
     // is_active
     $this->is_active->CellCssStyle = "";
     $this->is_active->CellCssClass = "";
     $this->is_active->CellAttrs = array();
     $this->is_active->ViewAttrs = array();
     $this->is_active->EditAttrs = array();
     // id
     $this->id->ViewValue = $this->id->CurrentValue;
     $this->id->CssStyle = "";
     $this->id->CssClass = "";
     $this->id->ViewCustomAttributes = "";
     // name
     $this->name->ViewValue = $this->name->CurrentValue;
     $this->name->CssStyle = "";
     $this->name->CssClass = "";
     $this->name->ViewCustomAttributes = "";
     // is_active
     if (ew_ConvertToBool($this->is_active->CurrentValue)) {
         $this->is_active->ViewValue = "Yes";
     } else {
         $this->is_active->ViewValue = "No";
     }
     $this->is_active->CssStyle = "";
     $this->is_active->CssClass = "";
     $this->is_active->ViewCustomAttributes = "";
     // id
     $this->id->HrefValue = "";
     $this->id->TooltipValue = "";
     // name
     $this->name->HrefValue = "";
     $this->name->TooltipValue = "";
     // is_active
     $this->is_active->HrefValue = "";
     $this->is_active->TooltipValue = "";
     // Call Row Rendered event
     $this->Row_Rendered();
 }
Ejemplo n.º 11
0
 function RenderListRow()
 {
     global $conn, $Security, $gsLanguage, $Language;
     // Call Row Rendering event
     $this->Row_Rendering();
     // Common render codes
     // codigo_bodega
     // descripcion
     // direccion
     // empleado_encargado
     // empleado_mensajes
     // es_abastecedora
     // no_traslado
     // negativos
     // dias_inventario
     // cuenta_contable
     // codigo_centro
     // cuenta_gastos
     // centro_gastos
     // no_ingreso
     // cuenta_costos
     // bodega_equivalente
     // factura
     // cuenta_gastos_locales
     // centro_gastos_locales
     // cuenta_otros_gastos
     // centro_otros_gastos
     // Pais
     // FECHA_ULTIMA_ACT
     // U_VLGX_LT
     // U_VLGX_VIV
     // ACEPTA_TRASLADOS
     // Activo
     // codigo_bodega
     $this->codigo_bodega->ViewValue = $this->codigo_bodega->CurrentValue;
     $this->codigo_bodega->ViewCustomAttributes = "";
     // descripcion
     $this->descripcion->ViewValue = $this->descripcion->CurrentValue;
     $this->descripcion->ViewCustomAttributes = "";
     // direccion
     $this->direccion->ViewValue = $this->direccion->CurrentValue;
     $this->direccion->ViewCustomAttributes = "";
     // empleado_encargado
     $this->empleado_encargado->ViewValue = $this->empleado_encargado->CurrentValue;
     $this->empleado_encargado->ViewCustomAttributes = "";
     // empleado_mensajes
     $this->empleado_mensajes->ViewValue = $this->empleado_mensajes->CurrentValue;
     $this->empleado_mensajes->ViewCustomAttributes = "";
     // es_abastecedora
     $this->es_abastecedora->ViewValue = $this->es_abastecedora->CurrentValue;
     $this->es_abastecedora->ViewCustomAttributes = "";
     // no_traslado
     $this->no_traslado->ViewValue = $this->no_traslado->CurrentValue;
     $this->no_traslado->ViewCustomAttributes = "";
     // negativos
     $this->negativos->ViewValue = $this->negativos->CurrentValue;
     $this->negativos->ViewCustomAttributes = "";
     // dias_inventario
     $this->dias_inventario->ViewValue = $this->dias_inventario->CurrentValue;
     $this->dias_inventario->ViewCustomAttributes = "";
     // cuenta_contable
     $this->cuenta_contable->ViewValue = $this->cuenta_contable->CurrentValue;
     $this->cuenta_contable->ViewCustomAttributes = "";
     // codigo_centro
     $this->codigo_centro->ViewValue = $this->codigo_centro->CurrentValue;
     $this->codigo_centro->ViewCustomAttributes = "";
     // cuenta_gastos
     $this->cuenta_gastos->ViewValue = $this->cuenta_gastos->CurrentValue;
     $this->cuenta_gastos->ViewCustomAttributes = "";
     // centro_gastos
     $this->centro_gastos->ViewValue = $this->centro_gastos->CurrentValue;
     $this->centro_gastos->ViewCustomAttributes = "";
     // no_ingreso
     $this->no_ingreso->ViewValue = $this->no_ingreso->CurrentValue;
     $this->no_ingreso->ViewCustomAttributes = "";
     // cuenta_costos
     $this->cuenta_costos->ViewValue = $this->cuenta_costos->CurrentValue;
     $this->cuenta_costos->ViewCustomAttributes = "";
     // bodega_equivalente
     $this->bodega_equivalente->ViewValue = $this->bodega_equivalente->CurrentValue;
     $this->bodega_equivalente->ViewCustomAttributes = "";
     // factura
     $this->factura->ViewValue = $this->factura->CurrentValue;
     $this->factura->ViewCustomAttributes = "";
     // cuenta_gastos_locales
     $this->cuenta_gastos_locales->ViewValue = $this->cuenta_gastos_locales->CurrentValue;
     $this->cuenta_gastos_locales->ViewCustomAttributes = "";
     // centro_gastos_locales
     $this->centro_gastos_locales->ViewValue = $this->centro_gastos_locales->CurrentValue;
     $this->centro_gastos_locales->ViewCustomAttributes = "";
     // cuenta_otros_gastos
     $this->cuenta_otros_gastos->ViewValue = $this->cuenta_otros_gastos->CurrentValue;
     $this->cuenta_otros_gastos->ViewCustomAttributes = "";
     // centro_otros_gastos
     $this->centro_otros_gastos->ViewValue = $this->centro_otros_gastos->CurrentValue;
     $this->centro_otros_gastos->ViewCustomAttributes = "";
     // Pais
     $this->Pais->ViewValue = $this->Pais->CurrentValue;
     $this->Pais->ViewCustomAttributes = "";
     // FECHA_ULTIMA_ACT
     $this->FECHA_ULTIMA_ACT->ViewValue = $this->FECHA_ULTIMA_ACT->CurrentValue;
     $this->FECHA_ULTIMA_ACT->ViewValue = ew_FormatDateTime($this->FECHA_ULTIMA_ACT->ViewValue, 7);
     $this->FECHA_ULTIMA_ACT->ViewCustomAttributes = "";
     // U_VLGX_LT
     $this->U_VLGX_LT->ViewValue = $this->U_VLGX_LT->CurrentValue;
     $this->U_VLGX_LT->ViewCustomAttributes = "";
     // U_VLGX_VIV
     $this->U_VLGX_VIV->ViewValue = $this->U_VLGX_VIV->CurrentValue;
     $this->U_VLGX_VIV->ViewCustomAttributes = "";
     // ACEPTA_TRASLADOS
     $this->ACEPTA_TRASLADOS->ViewValue = $this->ACEPTA_TRASLADOS->CurrentValue;
     $this->ACEPTA_TRASLADOS->ViewCustomAttributes = "";
     // Activo
     if (ew_ConvertToBool($this->Activo->CurrentValue)) {
         $this->Activo->ViewValue = $this->Activo->FldTagCaption(1) != "" ? $this->Activo->FldTagCaption(1) : "Yes";
     } else {
         $this->Activo->ViewValue = $this->Activo->FldTagCaption(2) != "" ? $this->Activo->FldTagCaption(2) : "No";
     }
     $this->Activo->ViewCustomAttributes = "";
     // codigo_bodega
     $this->codigo_bodega->LinkCustomAttributes = "";
     $this->codigo_bodega->HrefValue = "";
     $this->codigo_bodega->TooltipValue = "";
     // descripcion
     $this->descripcion->LinkCustomAttributes = "";
     $this->descripcion->HrefValue = "";
     $this->descripcion->TooltipValue = "";
     // direccion
     $this->direccion->LinkCustomAttributes = "";
     $this->direccion->HrefValue = "";
     $this->direccion->TooltipValue = "";
     // empleado_encargado
     $this->empleado_encargado->LinkCustomAttributes = "";
     $this->empleado_encargado->HrefValue = "";
     $this->empleado_encargado->TooltipValue = "";
     // empleado_mensajes
     $this->empleado_mensajes->LinkCustomAttributes = "";
     $this->empleado_mensajes->HrefValue = "";
     $this->empleado_mensajes->TooltipValue = "";
     // es_abastecedora
     $this->es_abastecedora->LinkCustomAttributes = "";
     $this->es_abastecedora->HrefValue = "";
     $this->es_abastecedora->TooltipValue = "";
     // no_traslado
     $this->no_traslado->LinkCustomAttributes = "";
     $this->no_traslado->HrefValue = "";
     $this->no_traslado->TooltipValue = "";
     // negativos
     $this->negativos->LinkCustomAttributes = "";
     $this->negativos->HrefValue = "";
     $this->negativos->TooltipValue = "";
     // dias_inventario
     $this->dias_inventario->LinkCustomAttributes = "";
     $this->dias_inventario->HrefValue = "";
     $this->dias_inventario->TooltipValue = "";
     // cuenta_contable
     $this->cuenta_contable->LinkCustomAttributes = "";
     $this->cuenta_contable->HrefValue = "";
     $this->cuenta_contable->TooltipValue = "";
     // codigo_centro
     $this->codigo_centro->LinkCustomAttributes = "";
     $this->codigo_centro->HrefValue = "";
     $this->codigo_centro->TooltipValue = "";
     // cuenta_gastos
     $this->cuenta_gastos->LinkCustomAttributes = "";
     $this->cuenta_gastos->HrefValue = "";
     $this->cuenta_gastos->TooltipValue = "";
     // centro_gastos
     $this->centro_gastos->LinkCustomAttributes = "";
     $this->centro_gastos->HrefValue = "";
     $this->centro_gastos->TooltipValue = "";
     // no_ingreso
     $this->no_ingreso->LinkCustomAttributes = "";
     $this->no_ingreso->HrefValue = "";
     $this->no_ingreso->TooltipValue = "";
     // cuenta_costos
     $this->cuenta_costos->LinkCustomAttributes = "";
     $this->cuenta_costos->HrefValue = "";
     $this->cuenta_costos->TooltipValue = "";
     // bodega_equivalente
     $this->bodega_equivalente->LinkCustomAttributes = "";
     $this->bodega_equivalente->HrefValue = "";
     $this->bodega_equivalente->TooltipValue = "";
     // factura
     $this->factura->LinkCustomAttributes = "";
     $this->factura->HrefValue = "";
     $this->factura->TooltipValue = "";
     // cuenta_gastos_locales
     $this->cuenta_gastos_locales->LinkCustomAttributes = "";
     $this->cuenta_gastos_locales->HrefValue = "";
     $this->cuenta_gastos_locales->TooltipValue = "";
     // centro_gastos_locales
     $this->centro_gastos_locales->LinkCustomAttributes = "";
     $this->centro_gastos_locales->HrefValue = "";
     $this->centro_gastos_locales->TooltipValue = "";
     // cuenta_otros_gastos
     $this->cuenta_otros_gastos->LinkCustomAttributes = "";
     $this->cuenta_otros_gastos->HrefValue = "";
     $this->cuenta_otros_gastos->TooltipValue = "";
     // centro_otros_gastos
     $this->centro_otros_gastos->LinkCustomAttributes = "";
     $this->centro_otros_gastos->HrefValue = "";
     $this->centro_otros_gastos->TooltipValue = "";
     // Pais
     $this->Pais->LinkCustomAttributes = "";
     $this->Pais->HrefValue = "";
     $this->Pais->TooltipValue = "";
     // FECHA_ULTIMA_ACT
     $this->FECHA_ULTIMA_ACT->LinkCustomAttributes = "";
     $this->FECHA_ULTIMA_ACT->HrefValue = "";
     $this->FECHA_ULTIMA_ACT->TooltipValue = "";
     // U_VLGX_LT
     $this->U_VLGX_LT->LinkCustomAttributes = "";
     $this->U_VLGX_LT->HrefValue = "";
     $this->U_VLGX_LT->TooltipValue = "";
     // U_VLGX_VIV
     $this->U_VLGX_VIV->LinkCustomAttributes = "";
     $this->U_VLGX_VIV->HrefValue = "";
     $this->U_VLGX_VIV->TooltipValue = "";
     // ACEPTA_TRASLADOS
     $this->ACEPTA_TRASLADOS->LinkCustomAttributes = "";
     $this->ACEPTA_TRASLADOS->HrefValue = "";
     $this->ACEPTA_TRASLADOS->TooltipValue = "";
     // Activo
     $this->Activo->LinkCustomAttributes = "";
     $this->Activo->HrefValue = "";
     $this->Activo->TooltipValue = "";
     // Call Row Rendered event
     $this->Row_Rendered();
 }