function RenderListRow() { global $conn, $Security, $gsLanguage, $Language; // Call Row Rendering event $this->Row_Rendering(); // Common render codes // codigo // responsable // Patente // kg_carga // tarifa // sub_total // porcentaje // comision_chofer // adelanto // total // codigo $this->codigo->ViewValue = $this->codigo->CurrentValue; $this->codigo->ViewCustomAttributes = ""; // responsable $this->responsable->ViewValue = $this->responsable->CurrentValue; $this->responsable->ViewCustomAttributes = ""; // Patente $this->Patente->ViewValue = $this->Patente->CurrentValue; $this->Patente->ViewCustomAttributes = ""; // kg_carga $this->kg_carga->ViewValue = $this->kg_carga->CurrentValue; $this->kg_carga->ViewValue = ew_FormatNumber($this->kg_carga->ViewValue, 2, -2, -2, -2); $this->kg_carga->ViewCustomAttributes = ""; // tarifa $this->tarifa->ViewValue = $this->tarifa->CurrentValue; $this->tarifa->ViewValue = ew_FormatCurrency($this->tarifa->ViewValue, 2, -2, -2, -2); $this->tarifa->ViewCustomAttributes = ""; // sub_total $this->sub_total->ViewValue = $this->sub_total->CurrentValue; $this->sub_total->ViewValue = ew_FormatCurrency($this->sub_total->ViewValue, 2, -2, -2, -2); $this->sub_total->ViewCustomAttributes = ""; // porcentaje $this->porcentaje->ViewValue = $this->porcentaje->CurrentValue; $this->porcentaje->ViewValue = ew_FormatPercent($this->porcentaje->ViewValue, 2, -2, -2, -2); $this->porcentaje->ViewCustomAttributes = ""; // comision_chofer $this->comision_chofer->ViewValue = $this->comision_chofer->CurrentValue; $this->comision_chofer->ViewValue = ew_FormatCurrency($this->comision_chofer->ViewValue, 2, -2, -1, -2); $this->comision_chofer->ViewCustomAttributes = ""; // adelanto $this->adelanto->ViewValue = $this->adelanto->CurrentValue; $this->adelanto->ViewValue = ew_FormatCurrency($this->adelanto->ViewValue, 2, -2, -2, -2); $this->adelanto->ViewCustomAttributes = ""; // total $this->total->ViewValue = $this->total->CurrentValue; $this->total->ViewValue = ew_FormatCurrency($this->total->ViewValue, 2, -2, -2, -2); $this->total->ViewCustomAttributes = ""; // codigo $this->codigo->LinkCustomAttributes = ""; $this->codigo->HrefValue = ""; $this->codigo->TooltipValue = ""; // responsable $this->responsable->LinkCustomAttributes = ""; $this->responsable->HrefValue = ""; $this->responsable->TooltipValue = ""; // Patente $this->Patente->LinkCustomAttributes = ""; $this->Patente->HrefValue = ""; $this->Patente->TooltipValue = ""; // kg_carga $this->kg_carga->LinkCustomAttributes = ""; $this->kg_carga->HrefValue = ""; $this->kg_carga->TooltipValue = ""; // tarifa $this->tarifa->LinkCustomAttributes = ""; $this->tarifa->HrefValue = ""; $this->tarifa->TooltipValue = ""; // sub_total $this->sub_total->LinkCustomAttributes = ""; $this->sub_total->HrefValue = ""; $this->sub_total->TooltipValue = ""; // porcentaje $this->porcentaje->LinkCustomAttributes = ""; $this->porcentaje->HrefValue = ""; $this->porcentaje->TooltipValue = ""; // comision_chofer $this->comision_chofer->LinkCustomAttributes = ""; $this->comision_chofer->HrefValue = ""; $this->comision_chofer->TooltipValue = ""; // adelanto $this->adelanto->LinkCustomAttributes = ""; $this->adelanto->HrefValue = ""; $this->adelanto->TooltipValue = ""; // total $this->total->LinkCustomAttributes = ""; $this->total->HrefValue = ""; $this->total->TooltipValue = ""; // Call Row Rendered event $this->Row_Rendered(); }
function RenderRow() { global $conn, $Security, $Language; global $gsLanguage; // Initialize URLs $this->ViewUrl = $this->GetViewUrl(); $this->EditUrl = $this->GetEditUrl(); $this->InlineEditUrl = $this->GetInlineEditUrl(); $this->CopyUrl = $this->GetCopyUrl(); $this->InlineCopyUrl = $this->GetInlineCopyUrl(); $this->DeleteUrl = $this->GetDeleteUrl(); // Convert decimal values if posted back if ($this->tarifa->FormValue == $this->tarifa->CurrentValue && is_numeric(ew_StrToFloat($this->tarifa->CurrentValue))) { $this->tarifa->CurrentValue = ew_StrToFloat($this->tarifa->CurrentValue); } // Convert decimal values if posted back if ($this->sub_total->FormValue == $this->sub_total->CurrentValue && is_numeric(ew_StrToFloat($this->sub_total->CurrentValue))) { $this->sub_total->CurrentValue = ew_StrToFloat($this->sub_total->CurrentValue); } // Convert decimal values if posted back if ($this->porcentaje->FormValue == $this->porcentaje->CurrentValue && is_numeric(ew_StrToFloat($this->porcentaje->CurrentValue))) { $this->porcentaje->CurrentValue = ew_StrToFloat($this->porcentaje->CurrentValue); } // Convert decimal values if posted back if ($this->comision_chofer->FormValue == $this->comision_chofer->CurrentValue && is_numeric(ew_StrToFloat($this->comision_chofer->CurrentValue))) { $this->comision_chofer->CurrentValue = ew_StrToFloat($this->comision_chofer->CurrentValue); } // Convert decimal values if posted back if ($this->adelanto->FormValue == $this->adelanto->CurrentValue && is_numeric(ew_StrToFloat($this->adelanto->CurrentValue))) { $this->adelanto->CurrentValue = ew_StrToFloat($this->adelanto->CurrentValue); } // Convert decimal values if posted back if ($this->total->FormValue == $this->total->CurrentValue && is_numeric(ew_StrToFloat($this->total->CurrentValue))) { $this->total->CurrentValue = ew_StrToFloat($this->total->CurrentValue); } // Call Row_Rendering event $this->Row_Rendering(); // Common render codes for all row types // codigo // responsable // Patente // kg_carga // tarifa // sub_total // porcentaje // comision_chofer // adelanto // total // Accumulate aggregate value if ($this->RowType != EW_ROWTYPE_AGGREGATEINIT && $this->RowType != EW_ROWTYPE_AGGREGATE) { if (is_numeric($this->sub_total->CurrentValue)) { $this->sub_total->Total += $this->sub_total->CurrentValue; } // Accumulate total if (is_numeric($this->comision_chofer->CurrentValue)) { $this->comision_chofer->Total += $this->comision_chofer->CurrentValue; } // Accumulate total if (is_numeric($this->total->CurrentValue)) { $this->total->Total += $this->total->CurrentValue; } // Accumulate total } if ($this->RowType == EW_ROWTYPE_VIEW) { // View row // codigo $this->codigo->ViewValue = $this->codigo->CurrentValue; $this->codigo->ViewCustomAttributes = ""; // responsable $this->responsable->ViewValue = $this->responsable->CurrentValue; $this->responsable->ViewCustomAttributes = ""; // Patente $this->Patente->ViewValue = $this->Patente->CurrentValue; $this->Patente->ViewCustomAttributes = ""; // kg_carga $this->kg_carga->ViewValue = $this->kg_carga->CurrentValue; $this->kg_carga->ViewValue = ew_FormatNumber($this->kg_carga->ViewValue, 2, -2, -2, -2); $this->kg_carga->ViewCustomAttributes = ""; // tarifa $this->tarifa->ViewValue = $this->tarifa->CurrentValue; $this->tarifa->ViewValue = ew_FormatCurrency($this->tarifa->ViewValue, 2, -2, -2, -2); $this->tarifa->ViewCustomAttributes = ""; // sub_total $this->sub_total->ViewValue = $this->sub_total->CurrentValue; $this->sub_total->ViewValue = ew_FormatCurrency($this->sub_total->ViewValue, 2, -2, -2, -2); $this->sub_total->ViewCustomAttributes = ""; // porcentaje $this->porcentaje->ViewValue = $this->porcentaje->CurrentValue; $this->porcentaje->ViewValue = ew_FormatPercent($this->porcentaje->ViewValue, 2, -2, -2, -2); $this->porcentaje->ViewCustomAttributes = ""; // comision_chofer $this->comision_chofer->ViewValue = $this->comision_chofer->CurrentValue; $this->comision_chofer->ViewValue = ew_FormatCurrency($this->comision_chofer->ViewValue, 2, -2, -1, -2); $this->comision_chofer->ViewCustomAttributes = ""; // adelanto $this->adelanto->ViewValue = $this->adelanto->CurrentValue; $this->adelanto->ViewValue = ew_FormatCurrency($this->adelanto->ViewValue, 2, -2, -2, -2); $this->adelanto->ViewCustomAttributes = ""; // total $this->total->ViewValue = $this->total->CurrentValue; $this->total->ViewValue = ew_FormatCurrency($this->total->ViewValue, 2, -2, -2, -2); $this->total->ViewCustomAttributes = ""; // codigo $this->codigo->LinkCustomAttributes = ""; $this->codigo->HrefValue = ""; $this->codigo->TooltipValue = ""; // responsable $this->responsable->LinkCustomAttributes = ""; $this->responsable->HrefValue = ""; $this->responsable->TooltipValue = ""; // Patente $this->Patente->LinkCustomAttributes = ""; $this->Patente->HrefValue = ""; $this->Patente->TooltipValue = ""; // kg_carga $this->kg_carga->LinkCustomAttributes = ""; $this->kg_carga->HrefValue = ""; $this->kg_carga->TooltipValue = ""; // tarifa $this->tarifa->LinkCustomAttributes = ""; $this->tarifa->HrefValue = ""; $this->tarifa->TooltipValue = ""; // sub_total $this->sub_total->LinkCustomAttributes = ""; $this->sub_total->HrefValue = ""; $this->sub_total->TooltipValue = ""; // porcentaje $this->porcentaje->LinkCustomAttributes = ""; $this->porcentaje->HrefValue = ""; $this->porcentaje->TooltipValue = ""; // comision_chofer $this->comision_chofer->LinkCustomAttributes = ""; $this->comision_chofer->HrefValue = ""; $this->comision_chofer->TooltipValue = ""; // adelanto $this->adelanto->LinkCustomAttributes = ""; $this->adelanto->HrefValue = ""; $this->adelanto->TooltipValue = ""; // total $this->total->LinkCustomAttributes = ""; $this->total->HrefValue = ""; $this->total->TooltipValue = ""; } elseif ($this->RowType == EW_ROWTYPE_SEARCH) { // Search row // codigo $this->codigo->EditAttrs["class"] = "form-control"; $this->codigo->EditCustomAttributes = ""; $this->codigo->EditValue = ew_HtmlEncode($this->codigo->AdvancedSearch->SearchValue); $this->codigo->PlaceHolder = ew_RemoveHtml($this->codigo->FldCaption()); // responsable $this->responsable->EditAttrs["class"] = "form-control"; $this->responsable->EditCustomAttributes = ""; $this->responsable->EditValue = ew_HtmlEncode($this->responsable->AdvancedSearch->SearchValue); $this->responsable->PlaceHolder = ew_RemoveHtml($this->responsable->FldCaption()); // Patente $this->Patente->EditAttrs["class"] = "form-control"; $this->Patente->EditCustomAttributes = ""; $this->Patente->EditValue = ew_HtmlEncode($this->Patente->AdvancedSearch->SearchValue); $this->Patente->PlaceHolder = ew_RemoveHtml($this->Patente->FldCaption()); // kg_carga $this->kg_carga->EditAttrs["class"] = "form-control"; $this->kg_carga->EditCustomAttributes = ""; $this->kg_carga->EditValue = ew_HtmlEncode($this->kg_carga->AdvancedSearch->SearchValue); $this->kg_carga->PlaceHolder = ew_RemoveHtml($this->kg_carga->FldCaption()); // tarifa $this->tarifa->EditAttrs["class"] = "form-control"; $this->tarifa->EditCustomAttributes = ""; $this->tarifa->EditValue = ew_HtmlEncode($this->tarifa->AdvancedSearch->SearchValue); $this->tarifa->PlaceHolder = ew_RemoveHtml($this->tarifa->FldCaption()); // sub_total $this->sub_total->EditAttrs["class"] = "form-control"; $this->sub_total->EditCustomAttributes = ""; $this->sub_total->EditValue = ew_HtmlEncode($this->sub_total->AdvancedSearch->SearchValue); $this->sub_total->PlaceHolder = ew_RemoveHtml($this->sub_total->FldCaption()); // porcentaje $this->porcentaje->EditAttrs["class"] = "form-control"; $this->porcentaje->EditCustomAttributes = ""; $this->porcentaje->EditValue = ew_HtmlEncode($this->porcentaje->AdvancedSearch->SearchValue); $this->porcentaje->PlaceHolder = ew_RemoveHtml($this->porcentaje->FldCaption()); // comision_chofer $this->comision_chofer->EditAttrs["class"] = "form-control"; $this->comision_chofer->EditCustomAttributes = ""; $this->comision_chofer->EditValue = ew_HtmlEncode($this->comision_chofer->AdvancedSearch->SearchValue); $this->comision_chofer->PlaceHolder = ew_RemoveHtml($this->comision_chofer->FldCaption()); // adelanto $this->adelanto->EditAttrs["class"] = "form-control"; $this->adelanto->EditCustomAttributes = ""; $this->adelanto->EditValue = ew_HtmlEncode($this->adelanto->AdvancedSearch->SearchValue); $this->adelanto->PlaceHolder = ew_RemoveHtml($this->adelanto->FldCaption()); // total $this->total->EditAttrs["class"] = "form-control"; $this->total->EditCustomAttributes = ""; $this->total->EditValue = ew_HtmlEncode($this->total->AdvancedSearch->SearchValue); $this->total->PlaceHolder = ew_RemoveHtml($this->total->FldCaption()); } elseif ($this->RowType == EW_ROWTYPE_AGGREGATEINIT) { // Initialize aggregate row $this->sub_total->Total = 0; // Initialize total $this->comision_chofer->Total = 0; // Initialize total $this->total->Total = 0; // Initialize total } elseif ($this->RowType == EW_ROWTYPE_AGGREGATE) { // Aggregate row $this->sub_total->CurrentValue = $this->sub_total->Total; $this->sub_total->ViewValue = $this->sub_total->CurrentValue; $this->sub_total->ViewValue = ew_FormatCurrency($this->sub_total->ViewValue, 2, -2, -2, -2); $this->sub_total->ViewCustomAttributes = ""; $this->sub_total->HrefValue = ""; // Clear href value $this->comision_chofer->CurrentValue = $this->comision_chofer->Total; $this->comision_chofer->ViewValue = $this->comision_chofer->CurrentValue; $this->comision_chofer->ViewValue = ew_FormatCurrency($this->comision_chofer->ViewValue, 2, -2, -1, -2); $this->comision_chofer->ViewCustomAttributes = ""; $this->comision_chofer->HrefValue = ""; // Clear href value $this->total->CurrentValue = $this->total->Total; $this->total->ViewValue = $this->total->CurrentValue; $this->total->ViewValue = ew_FormatCurrency($this->total->ViewValue, 2, -2, -2, -2); $this->total->ViewCustomAttributes = ""; $this->total->HrefValue = ""; // Clear href value } 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(); } }
function RenderRow() { global $conn, $Security, $Language; global $gsLanguage; // Initialize URLs // Convert decimal values if posted back if ($this->tarifa->FormValue == $this->tarifa->CurrentValue && is_numeric(ew_StrToFloat($this->tarifa->CurrentValue))) { $this->tarifa->CurrentValue = ew_StrToFloat($this->tarifa->CurrentValue); } // Convert decimal values if posted back if ($this->sub_total->FormValue == $this->sub_total->CurrentValue && is_numeric(ew_StrToFloat($this->sub_total->CurrentValue))) { $this->sub_total->CurrentValue = ew_StrToFloat($this->sub_total->CurrentValue); } // Convert decimal values if posted back if ($this->porcentaje->FormValue == $this->porcentaje->CurrentValue && is_numeric(ew_StrToFloat($this->porcentaje->CurrentValue))) { $this->porcentaje->CurrentValue = ew_StrToFloat($this->porcentaje->CurrentValue); } // Convert decimal values if posted back if ($this->comision_chofer->FormValue == $this->comision_chofer->CurrentValue && is_numeric(ew_StrToFloat($this->comision_chofer->CurrentValue))) { $this->comision_chofer->CurrentValue = ew_StrToFloat($this->comision_chofer->CurrentValue); } // Convert decimal values if posted back if ($this->adelanto->FormValue == $this->adelanto->CurrentValue && is_numeric(ew_StrToFloat($this->adelanto->CurrentValue))) { $this->adelanto->CurrentValue = ew_StrToFloat($this->adelanto->CurrentValue); } // Convert decimal values if posted back if ($this->total->FormValue == $this->total->CurrentValue && is_numeric(ew_StrToFloat($this->total->CurrentValue))) { $this->total->CurrentValue = ew_StrToFloat($this->total->CurrentValue); } // Call Row_Rendering event $this->Row_Rendering(); // Common render codes for all row types // codigo // responsable // Patente // kg_carga // tarifa // sub_total // porcentaje // comision_chofer // adelanto // total if ($this->RowType == EW_ROWTYPE_VIEW) { // View row // codigo $this->codigo->ViewValue = $this->codigo->CurrentValue; $this->codigo->ViewCustomAttributes = ""; // responsable $this->responsable->ViewValue = $this->responsable->CurrentValue; $this->responsable->ViewCustomAttributes = ""; // Patente $this->Patente->ViewValue = $this->Patente->CurrentValue; $this->Patente->ViewCustomAttributes = ""; // kg_carga $this->kg_carga->ViewValue = $this->kg_carga->CurrentValue; $this->kg_carga->ViewCustomAttributes = ""; // tarifa $this->tarifa->ViewValue = $this->tarifa->CurrentValue; $this->tarifa->ViewCustomAttributes = ""; // sub_total $this->sub_total->ViewValue = $this->sub_total->CurrentValue; $this->sub_total->ViewValue = ew_FormatCurrency($this->sub_total->ViewValue, 2, -2, -2, -2); $this->sub_total->ViewCustomAttributes = ""; // porcentaje $this->porcentaje->ViewValue = $this->porcentaje->CurrentValue; $this->porcentaje->ViewValue = ew_FormatPercent($this->porcentaje->ViewValue, 2, -2, -2, -2); $this->porcentaje->ViewCustomAttributes = ""; // comision_chofer $this->comision_chofer->ViewValue = $this->comision_chofer->CurrentValue; $this->comision_chofer->ViewValue = ew_FormatCurrency($this->comision_chofer->ViewValue, 2, -2, -2, -2); $this->comision_chofer->ViewCustomAttributes = ""; // adelanto $this->adelanto->ViewValue = $this->adelanto->CurrentValue; $this->adelanto->ViewValue = ew_FormatCurrency($this->adelanto->ViewValue, 2, -2, -2, -2); $this->adelanto->ViewCustomAttributes = ""; // total $this->total->ViewValue = $this->total->CurrentValue; $this->total->ViewValue = ew_FormatCurrency($this->total->ViewValue, 2, -2, -2, -2); $this->total->ViewCustomAttributes = ""; // codigo $this->codigo->LinkCustomAttributes = ""; $this->codigo->HrefValue = ""; $this->codigo->TooltipValue = ""; // responsable $this->responsable->LinkCustomAttributes = ""; $this->responsable->HrefValue = ""; $this->responsable->TooltipValue = ""; // Patente $this->Patente->LinkCustomAttributes = ""; $this->Patente->HrefValue = ""; $this->Patente->TooltipValue = ""; // kg_carga $this->kg_carga->LinkCustomAttributes = ""; $this->kg_carga->HrefValue = ""; $this->kg_carga->TooltipValue = ""; // tarifa $this->tarifa->LinkCustomAttributes = ""; $this->tarifa->HrefValue = ""; $this->tarifa->TooltipValue = ""; // sub_total $this->sub_total->LinkCustomAttributes = ""; $this->sub_total->HrefValue = ""; $this->sub_total->TooltipValue = ""; // porcentaje $this->porcentaje->LinkCustomAttributes = ""; $this->porcentaje->HrefValue = ""; $this->porcentaje->TooltipValue = ""; // comision_chofer $this->comision_chofer->LinkCustomAttributes = ""; $this->comision_chofer->HrefValue = ""; $this->comision_chofer->TooltipValue = ""; // adelanto $this->adelanto->LinkCustomAttributes = ""; $this->adelanto->HrefValue = ""; $this->adelanto->TooltipValue = ""; // total $this->total->LinkCustomAttributes = ""; $this->total->HrefValue = ""; $this->total->TooltipValue = ""; } // Call Row Rendered event if ($this->RowType != EW_ROWTYPE_AGGREGATEINIT) { $this->Row_Rendered(); } }