当前位置: 首页>>代码示例>>PHP>>正文


PHP ew_ValueSeparator函数代码示例

本文整理汇总了PHP中ew_ValueSeparator函数的典型用法代码示例。如果您正苦于以下问题:PHP ew_ValueSeparator函数的具体用法?PHP ew_ValueSeparator怎么用?PHP ew_ValueSeparator使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了ew_ValueSeparator函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: RenderRow

 function RenderRow()
 {
     global $conn, $Security, $Language;
     global $gsLanguage;
     // Initialize URLs
     // Call Row_Rendering event
     $this->Row_Rendering();
     // Common render codes for all row types
     // iddoctor_especialidad
     // iddoctor
     // idespecialidad
     if ($this->RowType == EW_ROWTYPE_VIEW) {
         // View row
         // iddoctor_especialidad
         $this->iddoctor_especialidad->ViewValue = $this->iddoctor_especialidad->CurrentValue;
         $this->iddoctor_especialidad->ViewCustomAttributes = "";
         // iddoctor
         if (strval($this->iddoctor->CurrentValue) != "") {
             $sFilterWrk = "`iddoctor`" . ew_SearchString("=", $this->iddoctor->CurrentValue, EW_DATATYPE_NUMBER);
             $sSqlWrk = "SELECT `iddoctor`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, `apellido` AS `Disp3Fld`, '' AS `Disp4Fld` FROM `doctor`";
             $sWhereWrk = "";
             if ($sFilterWrk != "") {
                 ew_AddFilter($sWhereWrk, $sFilterWrk);
             }
             // Call Lookup selecting
             $this->Lookup_Selecting($this->iddoctor, $sWhereWrk);
             if ($sWhereWrk != "") {
                 $sSqlWrk .= " WHERE " . $sWhereWrk;
             }
             $rswrk = $conn->Execute($sSqlWrk);
             if ($rswrk && !$rswrk->EOF) {
                 // Lookup values found
                 $this->iddoctor->ViewValue = $rswrk->fields('DispFld');
                 $this->iddoctor->ViewValue .= ew_ValueSeparator(2, $this->iddoctor) . $rswrk->fields('Disp3Fld');
                 $rswrk->Close();
             } else {
                 $this->iddoctor->ViewValue = $this->iddoctor->CurrentValue;
             }
         } else {
             $this->iddoctor->ViewValue = NULL;
         }
         $this->iddoctor->ViewCustomAttributes = "";
         // idespecialidad
         if (strval($this->idespecialidad->CurrentValue) != "") {
             $sFilterWrk = "`idespecialidad`" . ew_SearchString("=", $this->idespecialidad->CurrentValue, EW_DATATYPE_NUMBER);
             $sSqlWrk = "SELECT `idespecialidad`, `descripcion` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `especialidad`";
             $sWhereWrk = "";
             if ($sFilterWrk != "") {
                 ew_AddFilter($sWhereWrk, $sFilterWrk);
             }
             // Call Lookup selecting
             $this->Lookup_Selecting($this->idespecialidad, $sWhereWrk);
             if ($sWhereWrk != "") {
                 $sSqlWrk .= " WHERE " . $sWhereWrk;
             }
             $rswrk = $conn->Execute($sSqlWrk);
             if ($rswrk && !$rswrk->EOF) {
                 // Lookup values found
                 $this->idespecialidad->ViewValue = $rswrk->fields('DispFld');
                 $rswrk->Close();
             } else {
                 $this->idespecialidad->ViewValue = $this->idespecialidad->CurrentValue;
             }
         } else {
             $this->idespecialidad->ViewValue = NULL;
         }
         $this->idespecialidad->ViewCustomAttributes = "";
         // iddoctor
         $this->iddoctor->LinkCustomAttributes = "";
         $this->iddoctor->HrefValue = "";
         $this->iddoctor->TooltipValue = "";
         // idespecialidad
         $this->idespecialidad->LinkCustomAttributes = "";
         $this->idespecialidad->HrefValue = "";
         $this->idespecialidad->TooltipValue = "";
     } elseif ($this->RowType == EW_ROWTYPE_ADD) {
         // Add row
         // iddoctor
         $this->iddoctor->EditAttrs["class"] = "form-control";
         $this->iddoctor->EditCustomAttributes = "";
         if (trim(strval($this->iddoctor->CurrentValue)) == "") {
             $sFilterWrk = "0=1";
         } else {
             $sFilterWrk = "`iddoctor`" . ew_SearchString("=", $this->iddoctor->CurrentValue, EW_DATATYPE_NUMBER);
         }
         $sSqlWrk = "SELECT `iddoctor`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, `apellido` AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `doctor`";
         $sWhereWrk = "";
         if ($sFilterWrk != "") {
             ew_AddFilter($sWhereWrk, $sFilterWrk);
         }
         // Call Lookup selecting
         $this->Lookup_Selecting($this->iddoctor, $sWhereWrk);
         if ($sWhereWrk != "") {
             $sSqlWrk .= " WHERE " . $sWhereWrk;
         }
         $rswrk = $conn->Execute($sSqlWrk);
         $arwrk = $rswrk ? $rswrk->GetRows() : array();
         if ($rswrk) {
             $rswrk->Close();
         }
//.........这里部分代码省略.........
开发者ID:AngeloGalindo,项目名称:PracticasGrupo9DesarrolloWeb,代码行数:101,代码来源:doctor_especialidadadd.php

示例2: RenderRow

 function RenderRow()
 {
     global $conn, $Security, $Language;
     global $gsLanguage;
     // Initialize URLs
     // Call Row_Rendering event
     $this->Row_Rendering();
     // Common render codes for all row types
     // accountId
     // permissionId
     // granted
     // realmId
     if ($this->RowType == EW_ROWTYPE_VIEW) {
         // View row
         // accountId
         if (strval($this->accountId->CurrentValue) != "") {
             $sFilterWrk = "`id`" . ew_SearchString("=", $this->accountId->CurrentValue, EW_DATATYPE_NUMBER);
             $sSqlWrk = "SELECT `id`, `id` AS `DispFld`, `username` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `account`";
             $sWhereWrk = "";
             if ($sFilterWrk != "") {
                 ew_AddFilter($sWhereWrk, $sFilterWrk);
             }
             if ($sWhereWrk != "") {
                 $sSqlWrk .= " WHERE " . $sWhereWrk;
             }
             $rswrk = $conn->Execute($sSqlWrk);
             if ($rswrk && !$rswrk->EOF) {
                 // Lookup values found
                 $this->accountId->ViewValue = $rswrk->fields('DispFld');
                 $this->accountId->ViewValue .= ew_ValueSeparator(1, $this->accountId) . $rswrk->fields('Disp2Fld');
                 $rswrk->Close();
             } else {
                 $this->accountId->ViewValue = $this->accountId->CurrentValue;
             }
         } else {
             $this->accountId->ViewValue = NULL;
         }
         $this->accountId->ViewCustomAttributes = "";
         // permissionId
         if ($this->permissionId->VirtualValue != "") {
             $this->permissionId->ViewValue = $this->permissionId->VirtualValue;
         } else {
             if (strval($this->permissionId->CurrentValue) != "") {
                 $sFilterWrk = "`id`" . ew_SearchString("=", $this->permissionId->CurrentValue, EW_DATATYPE_NUMBER);
                 $sSqlWrk = "SELECT `id`, `id` AS `DispFld`, `name` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `rbac_permissions`";
                 $sWhereWrk = "";
                 if ($sFilterWrk != "") {
                     ew_AddFilter($sWhereWrk, $sFilterWrk);
                 }
                 if ($sWhereWrk != "") {
                     $sSqlWrk .= " WHERE " . $sWhereWrk;
                 }
                 $rswrk = $conn->Execute($sSqlWrk);
                 if ($rswrk && !$rswrk->EOF) {
                     // Lookup values found
                     $this->permissionId->ViewValue = $rswrk->fields('DispFld');
                     $this->permissionId->ViewValue .= ew_ValueSeparator(1, $this->permissionId) . $rswrk->fields('Disp2Fld');
                     $rswrk->Close();
                 } else {
                     $this->permissionId->ViewValue = $this->permissionId->CurrentValue;
                 }
             } else {
                 $this->permissionId->ViewValue = NULL;
             }
         }
         $this->permissionId->ViewCustomAttributes = "";
         // granted
         if (strval($this->granted->CurrentValue) != "") {
             switch ($this->granted->CurrentValue) {
                 case $this->granted->FldTagValue(1):
                     $this->granted->ViewValue = $this->granted->FldTagCaption(1) != "" ? $this->granted->FldTagCaption(1) : $this->granted->CurrentValue;
                     break;
                 case $this->granted->FldTagValue(2):
                     $this->granted->ViewValue = $this->granted->FldTagCaption(2) != "" ? $this->granted->FldTagCaption(2) : $this->granted->CurrentValue;
                     break;
                 default:
                     $this->granted->ViewValue = $this->granted->CurrentValue;
             }
         } else {
             $this->granted->ViewValue = NULL;
         }
         $this->granted->ViewCustomAttributes = "";
         // realmId
         if (strval($this->realmId->CurrentValue) != "") {
             $sFilterWrk = "`id`" . ew_SearchString("=", $this->realmId->CurrentValue, EW_DATATYPE_NUMBER);
             $sSqlWrk = "SELECT `id`, `id` AS `DispFld`, `name` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `realmlist`";
             $sWhereWrk = "";
             if ($sFilterWrk != "") {
                 ew_AddFilter($sWhereWrk, $sFilterWrk);
             }
             if ($sWhereWrk != "") {
                 $sSqlWrk .= " WHERE " . $sWhereWrk;
             }
             $rswrk = $conn->Execute($sSqlWrk);
             if ($rswrk && !$rswrk->EOF) {
                 // Lookup values found
                 $this->realmId->ViewValue = $rswrk->fields('DispFld');
                 $this->realmId->ViewValue .= ew_ValueSeparator(1, $this->realmId) . $rswrk->fields('Disp2Fld');
                 $rswrk->Close();
             } else {
//.........这里部分代码省略.........
开发者ID:Rastrian,项目名称:RBAC_Manager,代码行数:101,代码来源:rbac_account_permissionsedit.php

示例3: strval

                            $selwrk = strval($receta->idempleado->CurrentValue) == strval($arwrk[$rowcntwrk][0]) ? " selected=\"selected\"" : "";
                            if ($selwrk != "") {
                                $emptywrk = FALSE;
                            }
                            ?>
<option value="<?php 
                            echo ew_HtmlEncode($arwrk[$rowcntwrk][0]);
                            ?>
"<?php 
                            echo $selwrk;
                            ?>
>
<?php 
                            echo $arwrk[$rowcntwrk][1];
                            if ($arwrk[$rowcntwrk][2] != "") {
                                echo ew_ValueSeparator(1, $receta->idempleado);
                                echo $arwrk[$rowcntwrk][2];
                            }
                            ?>
</option>
<?php 
                        }
                    }
                    if (@$emptywrk) {
                        $receta->idempleado->OldValue = "";
                    }
                    ?>
</select>
<?php 
                    $sSqlWrk = "SELECT `idempleado`, `nombre` AS `DispFld`, `apellido` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `empleado`";
                    $sWhereWrk = "";
开发者ID:AngeloGalindo,项目名称:PracticasGrupo9DesarrolloWeb,代码行数:31,代码来源:recetagrid.php

示例4: RenderRow

 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();
     // Call Row_Rendering event
     $this->Row_Rendering();
     // Common render codes for all row types
     // realmid
     // acctid
     // numchars
     if ($this->RowType == EW_ROWTYPE_VIEW) {
         // View row
         // realmid
         if (strval($this->realmid->CurrentValue) != "") {
             $sFilterWrk = "`id`" . ew_SearchString("=", $this->realmid->CurrentValue, EW_DATATYPE_NUMBER);
             $sSqlWrk = "SELECT `id`, `id` AS `DispFld`, `name` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `realmlist`";
             $sWhereWrk = "";
             if ($sFilterWrk != "") {
                 ew_AddFilter($sWhereWrk, $sFilterWrk);
             }
             if ($sWhereWrk != "") {
                 $sSqlWrk .= " WHERE " . $sWhereWrk;
             }
             $rswrk = $conn->Execute($sSqlWrk);
             if ($rswrk && !$rswrk->EOF) {
                 // Lookup values found
                 $this->realmid->ViewValue = $rswrk->fields('DispFld');
                 $this->realmid->ViewValue .= ew_ValueSeparator(1, $this->realmid) . $rswrk->fields('Disp2Fld');
                 $rswrk->Close();
             } else {
                 $this->realmid->ViewValue = $this->realmid->CurrentValue;
             }
         } else {
             $this->realmid->ViewValue = NULL;
         }
         $this->realmid->ViewCustomAttributes = "";
         // acctid
         if (strval($this->acctid->CurrentValue) != "") {
             $sFilterWrk = "`id`" . ew_SearchString("=", $this->acctid->CurrentValue, EW_DATATYPE_NUMBER);
             $sSqlWrk = "SELECT `id`, `id` AS `DispFld`, `username` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `account`";
             $sWhereWrk = "";
             if ($sFilterWrk != "") {
                 ew_AddFilter($sWhereWrk, $sFilterWrk);
             }
             if ($sWhereWrk != "") {
                 $sSqlWrk .= " WHERE " . $sWhereWrk;
             }
             $rswrk = $conn->Execute($sSqlWrk);
             if ($rswrk && !$rswrk->EOF) {
                 // Lookup values found
                 $this->acctid->ViewValue = $rswrk->fields('DispFld');
                 $this->acctid->ViewValue .= ew_ValueSeparator(1, $this->acctid) . $rswrk->fields('Disp2Fld');
                 $rswrk->Close();
             } else {
                 $this->acctid->ViewValue = $this->acctid->CurrentValue;
             }
         } else {
             $this->acctid->ViewValue = NULL;
         }
         $this->acctid->ViewCustomAttributes = "";
         // numchars
         $this->numchars->ViewValue = $this->numchars->CurrentValue;
         $this->numchars->ViewCustomAttributes = "";
         // realmid
         $this->realmid->LinkCustomAttributes = "";
         $this->realmid->HrefValue = "";
         $this->realmid->TooltipValue = "";
         // acctid
         $this->acctid->LinkCustomAttributes = "";
         $this->acctid->HrefValue = "";
         $this->acctid->TooltipValue = "";
         // numchars
         $this->numchars->LinkCustomAttributes = "";
         $this->numchars->HrefValue = "";
         $this->numchars->TooltipValue = "";
     }
     // Call Row Rendered event
     if ($this->RowType != EW_ROWTYPE_AGGREGATEINIT) {
         $this->Row_Rendered();
     }
 }
开发者ID:Rastrian,项目名称:RBAC_Manager,代码行数:87,代码来源:realmcharactersview.php

示例5: RenderRow

 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();
     // Call Row_Rendering event
     $this->Row_Rendering();
     // Common render codes for all row types
     // codigo
     // Patente
     // cantidad_rueda
     // nombre
     // modelo
     // id_chofer
     // id_guarda
     // id_marca
     if ($this->RowType == EW_ROWTYPE_VIEW) {
         // View row
         // codigo
         $this->codigo->ViewValue = $this->codigo->CurrentValue;
         $this->codigo->ViewCustomAttributes = "";
         // Patente
         $this->Patente->ViewValue = $this->Patente->CurrentValue;
         $this->Patente->ViewCustomAttributes = "";
         // cantidad_rueda
         $this->cantidad_rueda->ViewValue = $this->cantidad_rueda->CurrentValue;
         $this->cantidad_rueda->ViewCustomAttributes = "";
         // nombre
         $this->nombre->ViewValue = $this->nombre->CurrentValue;
         $this->nombre->ViewCustomAttributes = "";
         // modelo
         $this->modelo->ViewValue = $this->modelo->CurrentValue;
         $this->modelo->ViewCustomAttributes = "";
         // id_chofer
         if ($this->id_chofer->VirtualValue != "") {
             $this->id_chofer->ViewValue = $this->id_chofer->VirtualValue;
         } else {
             if (strval($this->id_chofer->CurrentValue) != "") {
                 $sFilterWrk = "`codigo`" . ew_SearchString("=", $this->id_chofer->CurrentValue, EW_DATATYPE_NUMBER);
                 $sSqlWrk = "SELECT `codigo`, `codigo` AS `DispFld`, `nombre` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `choferes`";
                 $sWhereWrk = "";
                 if ($sFilterWrk != "") {
                     ew_AddFilter($sWhereWrk, $sFilterWrk);
                 }
                 // Call Lookup selecting
                 $this->Lookup_Selecting($this->id_chofer, $sWhereWrk);
                 if ($sWhereWrk != "") {
                     $sSqlWrk .= " WHERE " . $sWhereWrk;
                 }
                 $sSqlWrk .= " ORDER BY `nombre` ASC";
                 $rswrk = $conn->Execute($sSqlWrk);
                 if ($rswrk && !$rswrk->EOF) {
                     // Lookup values found
                     $this->id_chofer->ViewValue = $rswrk->fields('DispFld');
                     $this->id_chofer->ViewValue .= ew_ValueSeparator(1, $this->id_chofer) . $rswrk->fields('Disp2Fld');
                     $rswrk->Close();
                 } else {
                     $this->id_chofer->ViewValue = $this->id_chofer->CurrentValue;
                 }
             } else {
                 $this->id_chofer->ViewValue = NULL;
             }
         }
         $this->id_chofer->ViewCustomAttributes = "";
         // id_guarda
         if ($this->id_guarda->VirtualValue != "") {
             $this->id_guarda->ViewValue = $this->id_guarda->VirtualValue;
         } else {
             if (strval($this->id_guarda->CurrentValue) != "") {
                 $sFilterWrk = "`codigo`" . ew_SearchString("=", $this->id_guarda->CurrentValue, EW_DATATYPE_NUMBER);
                 $sSqlWrk = "SELECT `codigo`, `codigo` AS `DispFld`, `nombre` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `choferes`";
                 $sWhereWrk = "";
                 if ($sFilterWrk != "") {
                     ew_AddFilter($sWhereWrk, $sFilterWrk);
                 }
                 // Call Lookup selecting
                 $this->Lookup_Selecting($this->id_guarda, $sWhereWrk);
                 if ($sWhereWrk != "") {
                     $sSqlWrk .= " WHERE " . $sWhereWrk;
                 }
                 $sSqlWrk .= " ORDER BY `nombre` ASC";
                 $rswrk = $conn->Execute($sSqlWrk);
                 if ($rswrk && !$rswrk->EOF) {
                     // Lookup values found
                     $this->id_guarda->ViewValue = $rswrk->fields('DispFld');
                     $this->id_guarda->ViewValue .= ew_ValueSeparator(1, $this->id_guarda) . $rswrk->fields('Disp2Fld');
                     $rswrk->Close();
                 } else {
                     $this->id_guarda->ViewValue = $this->id_guarda->CurrentValue;
                 }
             } else {
                 $this->id_guarda->ViewValue = NULL;
             }
         }
//.........这里部分代码省略.........
开发者ID:scintes,项目名称:sistemas,代码行数:101,代码来源:vehiculoslist.php

示例6: RenderRow

 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->monto->FormValue == $this->monto->CurrentValue && is_numeric(ew_StrToFloat($this->monto->CurrentValue))) {
         $this->monto->CurrentValue = ew_StrToFloat($this->monto->CurrentValue);
     }
     // Call Row_Rendering event
     $this->Row_Rendering();
     // Common render codes for all row types
     // id
     // id_deuda
     // fecha
     // monto
     // id_usuario
     if ($this->RowType == EW_ROWTYPE_VIEW) {
         // View row
         // id
         $this->id->ViewValue = $this->id->CurrentValue;
         $this->id->ViewCustomAttributes = "";
         // id_deuda
         if (strval($this->id_deuda->CurrentValue) != "") {
             $sFilterWrk = "`id`" . ew_SearchString("=", $this->id_deuda->CurrentValue, EW_DATATYPE_NUMBER);
             $sSqlWrk = "SELECT `id`, `mes` AS `DispFld`, `anio` AS `Disp2Fld`, `monto` AS `Disp3Fld`, '' AS `Disp4Fld` FROM `deudas`";
             $sWhereWrk = "";
             if ($sFilterWrk != "") {
                 ew_AddFilter($sWhereWrk, $sFilterWrk);
             }
             // Call Lookup selecting
             $this->Lookup_Selecting($this->id_deuda, $sWhereWrk);
             if ($sWhereWrk != "") {
                 $sSqlWrk .= " WHERE " . $sWhereWrk;
             }
             $rswrk = $conn->Execute($sSqlWrk);
             if ($rswrk && !$rswrk->EOF) {
                 // Lookup values found
                 $this->id_deuda->ViewValue = $rswrk->fields('DispFld');
                 $this->id_deuda->ViewValue .= ew_ValueSeparator(1, $this->id_deuda) . $rswrk->fields('Disp2Fld');
                 $this->id_deuda->ViewValue .= ew_ValueSeparator(2, $this->id_deuda) . $rswrk->fields('Disp3Fld');
                 $rswrk->Close();
             } else {
                 $this->id_deuda->ViewValue = $this->id_deuda->CurrentValue;
             }
         } else {
             $this->id_deuda->ViewValue = NULL;
         }
         $this->id_deuda->ViewCustomAttributes = "";
         // fecha
         $this->fecha->ViewValue = ew_FormatDateTime($this->fecha->ViewValue, 7);
         $this->fecha->ViewCustomAttributes = "";
         // monto
         $this->monto->ViewValue = $this->monto->CurrentValue;
         $this->monto->ViewCustomAttributes = "";
         // id_usuario
         if (strval($this->id_usuario->CurrentValue) != "") {
             $sFilterWrk = "`id`" . ew_SearchString("=", $this->id_usuario->CurrentValue, EW_DATATYPE_NUMBER);
             $sSqlWrk = "SELECT `id`, `usuario` AS `DispFld`, `nombre` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `usuario`";
             $sWhereWrk = "";
             if ($sFilterWrk != "") {
                 ew_AddFilter($sWhereWrk, $sFilterWrk);
             }
             // Call Lookup selecting
             $this->Lookup_Selecting($this->id_usuario, $sWhereWrk);
             if ($sWhereWrk != "") {
                 $sSqlWrk .= " WHERE " . $sWhereWrk;
             }
             $rswrk = $conn->Execute($sSqlWrk);
             if ($rswrk && !$rswrk->EOF) {
                 // Lookup values found
                 $this->id_usuario->ViewValue = $rswrk->fields('DispFld');
                 $this->id_usuario->ViewValue .= ew_ValueSeparator(1, $this->id_usuario) . $rswrk->fields('Disp2Fld');
                 $rswrk->Close();
             } else {
                 $this->id_usuario->ViewValue = $this->id_usuario->CurrentValue;
             }
         } else {
             $this->id_usuario->ViewValue = NULL;
         }
         $this->id_usuario->ViewCustomAttributes = "";
         // id
         $this->id->LinkCustomAttributes = "";
         $this->id->HrefValue = "";
         $this->id->TooltipValue = "";
         // id_deuda
         $this->id_deuda->LinkCustomAttributes = "";
         $this->id_deuda->HrefValue = "";
         $this->id_deuda->TooltipValue = "";
         // fecha
         $this->fecha->LinkCustomAttributes = "";
         $this->fecha->HrefValue = "";
         $this->fecha->TooltipValue = "";
         // monto
//.........这里部分代码省略.........
开发者ID:scintes,项目名称:sistemas,代码行数:101,代码来源:cciagpagoslist.php

示例7: RenderRow

 function RenderRow()
 {
     global $conn, $Security, $Language;
     global $gsLanguage;
     // Initialize URLs
     // Convert decimal values if posted back
     if ($this->monto->FormValue == $this->monto->CurrentValue && is_numeric(ew_StrToFloat($this->monto->CurrentValue))) {
         $this->monto->CurrentValue = ew_StrToFloat($this->monto->CurrentValue);
     }
     // Call Row_Rendering event
     $this->Row_Rendering();
     // Common render codes for all row types
     // id
     // mes
     // anio
     // fecha
     // monto
     // id_usuario
     // id_socio
     if ($this->RowType == EW_ROWTYPE_VIEW) {
         // View row
         // id
         $this->id->ViewCustomAttributes = "";
         // mes
         $this->mes->ViewValue = $this->mes->CurrentValue;
         $this->mes->ViewCustomAttributes = "";
         // anio
         $this->anio->ViewValue = $this->anio->CurrentValue;
         $this->anio->ViewCustomAttributes = "";
         // fecha
         $this->fecha->ViewValue = $this->fecha->CurrentValue;
         $this->fecha->ViewValue = ew_FormatDateTime($this->fecha->ViewValue, 7);
         $this->fecha->ViewCustomAttributes = "";
         // monto
         $this->monto->ViewValue = $this->monto->CurrentValue;
         $this->monto->ViewValue = ew_FormatCurrency($this->monto->ViewValue, 0, -2, -2, -2);
         $this->monto->ViewCustomAttributes = "";
         // id_socio
         if (strval($this->id_socio->CurrentValue) != "") {
             $sFilterWrk = "`socio_nro`" . ew_SearchString("=", $this->id_socio->CurrentValue, EW_DATATYPE_NUMBER);
             $sSqlWrk = "SELECT `socio_nro`, `propietario` AS `DispFld`, `comercio` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `socios`";
             $sWhereWrk = "";
             $lookuptblfilter = "`activo`='S'";
             if (strval($lookuptblfilter) != "") {
                 ew_AddFilter($sWhereWrk, $lookuptblfilter);
             }
             if ($sFilterWrk != "") {
                 ew_AddFilter($sWhereWrk, $sFilterWrk);
             }
             // Call Lookup selecting
             $this->Lookup_Selecting($this->id_socio, $sWhereWrk);
             if ($sWhereWrk != "") {
                 $sSqlWrk .= " WHERE " . $sWhereWrk;
             }
             $sSqlWrk .= " ORDER BY `propietario` DESC";
             $rswrk = $conn->Execute($sSqlWrk);
             if ($rswrk && !$rswrk->EOF) {
                 // Lookup values found
                 $this->id_socio->ViewValue = $rswrk->fields('DispFld');
                 $this->id_socio->ViewValue .= ew_ValueSeparator(1, $this->id_socio) . $rswrk->fields('Disp2Fld');
                 $rswrk->Close();
             } else {
                 $this->id_socio->ViewValue = $this->id_socio->CurrentValue;
             }
         } else {
             $this->id_socio->ViewValue = NULL;
         }
         $this->id_socio->ViewCustomAttributes = "";
         // mes
         $this->mes->LinkCustomAttributes = "";
         $this->mes->HrefValue = "";
         $this->mes->TooltipValue = "";
         // anio
         $this->anio->LinkCustomAttributes = "";
         $this->anio->HrefValue = "";
         $this->anio->TooltipValue = "";
         // fecha
         $this->fecha->LinkCustomAttributes = "";
         $this->fecha->HrefValue = "";
         $this->fecha->TooltipValue = "";
         // monto
         $this->monto->LinkCustomAttributes = "";
         $this->monto->HrefValue = "";
         $this->monto->TooltipValue = "";
         // id_socio
         $this->id_socio->LinkCustomAttributes = "";
         $this->id_socio->HrefValue = "";
         $this->id_socio->TooltipValue = "";
     } elseif ($this->RowType == EW_ROWTYPE_ADD) {
         // Add row
         // mes
         $this->mes->EditAttrs["class"] = "form-control";
         $this->mes->EditCustomAttributes = "";
         $this->mes->EditValue = ew_HtmlEncode($this->mes->CurrentValue);
         $this->mes->PlaceHolder = ew_RemoveHtml($this->mes->FldCaption());
         // anio
         $this->anio->EditAttrs["class"] = "form-control";
         $this->anio->EditCustomAttributes = "";
         $this->anio->EditValue = ew_HtmlEncode($this->anio->CurrentValue);
         $this->anio->PlaceHolder = ew_RemoveHtml($this->anio->FldCaption());
//.........这里部分代码省略.........
开发者ID:scintes,项目名称:sistemas,代码行数:101,代码来源:cciag_deudasadd.php

示例8: RenderRow

 function RenderRow()
 {
     global $conn, $Security, $Subscriptions2;
     // Call Row_Rendering event
     $Subscriptions2->Row_Rendering();
     // Common render codes for all row types
     // OrderID
     $Subscriptions2->OrderID->CellCssStyle = "";
     $Subscriptions2->OrderID->CellCssClass = "";
     // DeliveryDate
     $Subscriptions2->DeliveryDate->CellCssStyle = "";
     $Subscriptions2->DeliveryDate->CellCssClass = "";
     // CustomerID
     $Subscriptions2->CustomerID->CellCssStyle = "";
     $Subscriptions2->CustomerID->CellCssClass = "";
     // WeeklyMeals
     $Subscriptions2->WeeklyMeals->CellCssStyle = "";
     $Subscriptions2->WeeklyMeals->CellCssClass = "";
     // WeeklyReg
     $Subscriptions2->WeeklyReg->CellCssStyle = "";
     $Subscriptions2->WeeklyReg->CellCssClass = "";
     // WeeklyVeg
     $Subscriptions2->WeeklyVeg->CellCssStyle = "";
     $Subscriptions2->WeeklyVeg->CellCssClass = "";
     // PromoCodeID
     $Subscriptions2->PromoCodeID->CellCssStyle = "";
     $Subscriptions2->PromoCodeID->CellCssClass = "";
     // TransactionNumber
     $Subscriptions2->TransactionNumber->CellCssStyle = "";
     $Subscriptions2->TransactionNumber->CellCssClass = "";
     // Want
     $Subscriptions2->Want->CellCssStyle = "";
     $Subscriptions2->Want->CellCssClass = "";
     // DontWant
     $Subscriptions2->DontWant->CellCssStyle = "";
     $Subscriptions2->DontWant->CellCssClass = "";
     // Comments
     $Subscriptions2->Comments->CellCssStyle = "";
     $Subscriptions2->Comments->CellCssClass = "";
     // SubscriptionID
     $Subscriptions2->SubscriptionID->CellCssStyle = "";
     $Subscriptions2->SubscriptionID->CellCssClass = "";
     if ($Subscriptions2->RowType == EW_ROWTYPE_VIEW) {
         // View row
         // OrderID
         $Subscriptions2->OrderID->ViewValue = $Subscriptions2->OrderID->CurrentValue;
         $Subscriptions2->OrderID->CssStyle = "";
         $Subscriptions2->OrderID->CssClass = "";
         $Subscriptions2->OrderID->ViewCustomAttributes = "";
         // DeliveryDate
         $Subscriptions2->DeliveryDate->ViewValue = $Subscriptions2->DeliveryDate->CurrentValue;
         $Subscriptions2->DeliveryDate->ViewValue = ew_FormatDateTime($Subscriptions2->DeliveryDate->ViewValue, 6);
         $Subscriptions2->DeliveryDate->CssStyle = "";
         $Subscriptions2->DeliveryDate->CssClass = "";
         $Subscriptions2->DeliveryDate->ViewCustomAttributes = "";
         // CustomerID
         if (strval($Subscriptions2->CustomerID->CurrentValue) != "") {
             $sSqlWrk = "SELECT `LastName`, `FirstName` FROM `Customers` WHERE `CustomerID` = " . ew_AdjustSql($Subscriptions2->CustomerID->CurrentValue) . "";
             $sSqlWrk .= " ORDER BY `LastName` Asc";
             $rswrk = $conn->Execute($sSqlWrk);
             if ($rswrk && !$rswrk->EOF) {
                 // Lookup value(s) found
                 $Subscriptions2->CustomerID->ViewValue = $rswrk->fields('LastName');
                 $Subscriptions2->CustomerID->ViewValue .= ew_ValueSeparator(0) . $rswrk->fields('FirstName');
                 $rswrk->Close();
             } else {
                 $Subscriptions2->CustomerID->ViewValue = $Subscriptions2->CustomerID->CurrentValue;
             }
         } else {
             $Subscriptions2->CustomerID->ViewValue = NULL;
         }
         $Subscriptions2->CustomerID->CssStyle = "";
         $Subscriptions2->CustomerID->CssClass = "";
         $Subscriptions2->CustomerID->ViewCustomAttributes = "";
         // WeeklyMeals
         $Subscriptions2->WeeklyMeals->ViewValue = $Subscriptions2->WeeklyMeals->CurrentValue;
         $Subscriptions2->WeeklyMeals->CssStyle = "";
         $Subscriptions2->WeeklyMeals->CssClass = "";
         $Subscriptions2->WeeklyMeals->ViewCustomAttributes = "";
         // WeeklyReg
         $Subscriptions2->WeeklyReg->ViewValue = $Subscriptions2->WeeklyReg->CurrentValue;
         $Subscriptions2->WeeklyReg->CssStyle = "";
         $Subscriptions2->WeeklyReg->CssClass = "";
         $Subscriptions2->WeeklyReg->ViewCustomAttributes = "";
         // WeeklyVeg
         $Subscriptions2->WeeklyVeg->ViewValue = $Subscriptions2->WeeklyVeg->CurrentValue;
         $Subscriptions2->WeeklyVeg->CssStyle = "";
         $Subscriptions2->WeeklyVeg->CssClass = "";
         $Subscriptions2->WeeklyVeg->ViewCustomAttributes = "";
         // PromoCodeID
         if (strval($Subscriptions2->PromoCodeID->CurrentValue) != "") {
             $sSqlWrk = "SELECT `PromoCodeName` FROM `PromoCodes` WHERE `PromoCodeID` = " . ew_AdjustSql($Subscriptions2->PromoCodeID->CurrentValue) . "";
             $sSqlWrk .= " ORDER BY `PromoCodeName` Asc";
             $rswrk = $conn->Execute($sSqlWrk);
             if ($rswrk && !$rswrk->EOF) {
                 // Lookup value(s) found
                 $Subscriptions2->PromoCodeID->ViewValue = $rswrk->fields('PromoCodeName');
                 $rswrk->Close();
             } else {
                 $Subscriptions2->PromoCodeID->ViewValue = $Subscriptions2->PromoCodeID->CurrentValue;
//.........这里部分代码省略.........
开发者ID:elliecm,项目名称:MadisonandRayne,代码行数:101,代码来源:Subscriptions2edit.php

示例9: ew_HtmlEncode

<input type="hidden" data-field="x_id_hoja_ruta" name="x<?php 
                    echo $gastos_grid->RowIndex;
                    ?>
_id_hoja_ruta" id="x<?php 
                    echo $gastos_grid->RowIndex;
                    ?>
_id_hoja_ruta" value="<?php 
                    echo ew_HtmlEncode($gastos->id_hoja_ruta->CurrentValue);
                    ?>
"<?php 
                    echo $wrkonchange;
                    ?>
>
<?php 
                    $sSqlWrk = "SELECT `codigo`, `codigo` AS `DispFld`, `fecha_ini` AS `Disp2Fld`, `Origen` AS `Disp3Fld` FROM `hoja_rutas`";
                    $sWhereWrk = "`codigo` LIKE '{query_value}%' OR CONCAT(`codigo`,'" . ew_ValueSeparator(1, $Page->id_hoja_ruta) . "',DATE_FORMAT(`fecha_ini`, '%d/%m/%Y'),'" . ew_ValueSeparator(2, $Page->id_hoja_ruta) . "',`Origen`) LIKE '{query_value}%'";
                    if (!$GLOBALS["gastos"]->UserIDAllow("grid")) {
                        $sWhereWrk = $GLOBALS["hoja_rutas"]->AddUserIDFilter($sWhereWrk);
                    }
                    // Call Lookup selecting
                    $gastos->Lookup_Selecting($gastos->id_hoja_ruta, $sWhereWrk);
                    if ($sWhereWrk != "") {
                        $sSqlWrk .= " WHERE " . $sWhereWrk;
                    }
                    $sSqlWrk .= " ORDER BY `codigo` ASC";
                    $sSqlWrk .= " LIMIT " . EW_AUTO_SUGGEST_MAX_ENTRIES;
                    ?>
<input type="hidden" name="q_x<?php 
                    echo $gastos_grid->RowIndex;
                    ?>
_id_hoja_ruta" id="q_x<?php 
开发者ID:scintes,项目名称:sistemas,代码行数:31,代码来源:gastosgrid.php

示例10: RenderListRow

 function RenderListRow()
 {
     global $conn, $Security, $gsLanguage, $Language;
     // Call Row Rendering event
     $this->Row_Rendering();
     // Common render codes
     // iddoctor_servicio_medico_prestado
     // iddoctor
     // idservicio_medico_prestado
     // iddoctor_servicio_medico_prestado
     $this->iddoctor_servicio_medico_prestado->ViewValue = $this->iddoctor_servicio_medico_prestado->CurrentValue;
     $this->iddoctor_servicio_medico_prestado->ViewCustomAttributes = "";
     // iddoctor
     if (strval($this->iddoctor->CurrentValue) != "") {
         $sFilterWrk = "`iddoctor`" . ew_SearchString("=", $this->iddoctor->CurrentValue, EW_DATATYPE_NUMBER);
         $sSqlWrk = "SELECT `iddoctor`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, `apellido` AS `Disp3Fld`, '' AS `Disp4Fld` FROM `doctor`";
         $sWhereWrk = "";
         if ($sFilterWrk != "") {
             ew_AddFilter($sWhereWrk, $sFilterWrk);
         }
         // Call Lookup selecting
         $this->Lookup_Selecting($this->iddoctor, $sWhereWrk);
         if ($sWhereWrk != "") {
             $sSqlWrk .= " WHERE " . $sWhereWrk;
         }
         $rswrk = $conn->Execute($sSqlWrk);
         if ($rswrk && !$rswrk->EOF) {
             // Lookup values found
             $this->iddoctor->ViewValue = $rswrk->fields('DispFld');
             $this->iddoctor->ViewValue .= ew_ValueSeparator(2, $this->iddoctor) . $rswrk->fields('Disp3Fld');
             $rswrk->Close();
         } else {
             $this->iddoctor->ViewValue = $this->iddoctor->CurrentValue;
         }
     } else {
         $this->iddoctor->ViewValue = NULL;
     }
     $this->iddoctor->ViewCustomAttributes = "";
     // idservicio_medico_prestado
     $this->idservicio_medico_prestado->ViewValue = $this->idservicio_medico_prestado->CurrentValue;
     if (strval($this->idservicio_medico_prestado->CurrentValue) != "") {
         $sFilterWrk = "`idservicio_medico_prestado`" . ew_SearchString("=", $this->idservicio_medico_prestado->CurrentValue, EW_DATATYPE_NUMBER);
         $sSqlWrk = "SELECT `idservicio_medico_prestado`, `idservicio_medico_prestado` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `servicio_medico_prestado`";
         $sWhereWrk = "";
         if ($sFilterWrk != "") {
             ew_AddFilter($sWhereWrk, $sFilterWrk);
         }
         // Call Lookup selecting
         $this->Lookup_Selecting($this->idservicio_medico_prestado, $sWhereWrk);
         if ($sWhereWrk != "") {
             $sSqlWrk .= " WHERE " . $sWhereWrk;
         }
         $rswrk = $conn->Execute($sSqlWrk);
         if ($rswrk && !$rswrk->EOF) {
             // Lookup values found
             $this->idservicio_medico_prestado->ViewValue = $rswrk->fields('DispFld');
             $rswrk->Close();
         } else {
             $this->idservicio_medico_prestado->ViewValue = $this->idservicio_medico_prestado->CurrentValue;
         }
     } else {
         $this->idservicio_medico_prestado->ViewValue = NULL;
     }
     $this->idservicio_medico_prestado->ViewCustomAttributes = "";
     // iddoctor_servicio_medico_prestado
     $this->iddoctor_servicio_medico_prestado->LinkCustomAttributes = "";
     $this->iddoctor_servicio_medico_prestado->HrefValue = "";
     $this->iddoctor_servicio_medico_prestado->TooltipValue = "";
     // iddoctor
     $this->iddoctor->LinkCustomAttributes = "";
     $this->iddoctor->HrefValue = "";
     $this->iddoctor->TooltipValue = "";
     // idservicio_medico_prestado
     $this->idservicio_medico_prestado->LinkCustomAttributes = "";
     $this->idservicio_medico_prestado->HrefValue = "";
     $this->idservicio_medico_prestado->TooltipValue = "";
     // Call Row Rendered event
     $this->Row_Rendered();
 }
开发者ID:AngeloGalindo,项目名称:PracticasGrupo9DesarrolloWeb,代码行数:79,代码来源:doctor_servicio_medico_prestadoinfo.php

示例11: RenderListRow

 function RenderListRow()
 {
     global $conn, $Security;
     // Call Row Rendering event
     $this->Row_Rendering();
     // Common render codes
     // socio_nro
     // id_actividad
     $this->id_actividad->CellCssStyle = "white-space: nowrap;";
     // id_usuario
     // propietario
     // comercio
     // direccion_comercio
     // activo
     // mail
     // tel
     // cel
     // cuit_cuil
     // socio_nro
     $this->socio_nro->ViewValue = $this->socio_nro->CurrentValue;
     $this->socio_nro->ViewCustomAttributes = "";
     // id_actividad
     if (strval($this->id_actividad->CurrentValue) != "") {
         $sFilterWrk = "`id`" . ew_SearchString("=", $this->id_actividad->CurrentValue, EW_DATATYPE_NUMBER);
         $sSqlWrk = "SELECT `id`, `actividad` AS `DispFld`, `descripcion` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `actividad`";
         $sWhereWrk = "";
         $lookuptblfilter = "`activa`='S'";
         if (strval($lookuptblfilter) != "") {
             ew_AddFilter($sWhereWrk, $lookuptblfilter);
         }
         if ($sFilterWrk != "") {
             ew_AddFilter($sWhereWrk, $sFilterWrk);
         }
         // Call Lookup selecting
         $this->Lookup_Selecting($this->id_actividad, $sWhereWrk);
         if ($sWhereWrk != "") {
             $sSqlWrk .= " WHERE " . $sWhereWrk;
         }
         $rswrk = $conn->Execute($sSqlWrk);
         if ($rswrk && !$rswrk->EOF) {
             // Lookup values found
             $this->id_actividad->ViewValue = $rswrk->fields('DispFld');
             $this->id_actividad->ViewValue .= ew_ValueSeparator(1, $this->id_actividad) . $rswrk->fields('Disp2Fld');
             $rswrk->Close();
         } else {
             $this->id_actividad->ViewValue = $this->id_actividad->CurrentValue;
         }
     } else {
         $this->id_actividad->ViewValue = NULL;
     }
     $this->id_actividad->ViewCustomAttributes = "";
     // id_usuario
     $this->id_usuario->ViewValue = $this->id_usuario->CurrentValue;
     $this->id_usuario->ViewCustomAttributes = "";
     // propietario
     $this->propietario->ViewValue = $this->propietario->CurrentValue;
     $this->propietario->ViewCustomAttributes = "";
     // comercio
     $this->comercio->ViewValue = $this->comercio->CurrentValue;
     $this->comercio->ViewCustomAttributes = "";
     // direccion_comercio
     $this->direccion_comercio->ViewValue = $this->direccion_comercio->CurrentValue;
     $this->direccion_comercio->ViewCustomAttributes = "";
     // activo
     if (strval($this->activo->CurrentValue) != "") {
         switch ($this->activo->CurrentValue) {
             case $this->activo->FldTagValue(1):
                 $this->activo->ViewValue = $this->activo->FldTagCaption(1) != "" ? $this->activo->FldTagCaption(1) : $this->activo->CurrentValue;
                 break;
             case $this->activo->FldTagValue(2):
                 $this->activo->ViewValue = $this->activo->FldTagCaption(2) != "" ? $this->activo->FldTagCaption(2) : $this->activo->CurrentValue;
                 break;
             default:
                 $this->activo->ViewValue = $this->activo->CurrentValue;
         }
     } else {
         $this->activo->ViewValue = NULL;
     }
     $this->activo->ViewCustomAttributes = "";
     // mail
     $this->mail->ViewValue = $this->mail->CurrentValue;
     $this->mail->ViewValue = strtolower($this->mail->ViewValue);
     $this->mail->ViewCustomAttributes = "";
     // tel
     $this->tel->ViewValue = $this->tel->CurrentValue;
     $this->tel->ViewValue = trim($this->tel->ViewValue);
     $this->tel->ViewCustomAttributes = "";
     // cel
     $this->cel->ViewValue = $this->cel->CurrentValue;
     $this->cel->ViewValue = trim($this->cel->ViewValue);
     $this->cel->ViewCustomAttributes = "";
     // cuit_cuil
     $this->cuit_cuil->ViewValue = $this->cuit_cuil->CurrentValue;
     $this->cuit_cuil->ViewValue = ew_FormatNumber($this->cuit_cuil->ViewValue, 0, -2, -2, -2);
     $this->cuit_cuil->ViewCustomAttributes = "";
     // socio_nro
     $this->socio_nro->LinkCustomAttributes = "";
     $this->socio_nro->HrefValue = "";
     $this->socio_nro->TooltipValue = "";
     // id_actividad
//.........这里部分代码省略.........
开发者ID:scintes,项目名称:sistemas,代码行数:101,代码来源:cciagsociosinfo.php

示例12: RenderRow

 function RenderRow()
 {
     global $conn, $Security, $Language;
     global $gsLanguage;
     // Initialize URLs
     // 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->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->porcentaje->FormValue == $this->porcentaje->CurrentValue && is_numeric(ew_StrToFloat($this->porcentaje->CurrentValue))) {
         $this->porcentaje->CurrentValue = ew_StrToFloat($this->porcentaje->CurrentValue);
     }
     // Call Row_Rendering event
     $this->Row_Rendering();
     // Common render codes for all row types
     // codigo
     // fecha_ini
     // id_cliente
     // id_localidad_origen
     // Origen
     // id_localidad_destino
     // Destino
     // Km_ini
     // estado
     // id_vehiculo
     // id_tipo_carga
     // km_fin
     // fecha_fin
     // adelanto
     // kg_carga
     // tarifa
     // porcentaje
     // id_usuario
     if ($this->RowType == EW_ROWTYPE_VIEW) {
         // View row
         // fecha_ini
         $this->fecha_ini->ViewValue = $this->fecha_ini->CurrentValue;
         $this->fecha_ini->ViewValue = ew_FormatDateTime($this->fecha_ini->ViewValue, 7);
         $this->fecha_ini->ViewCustomAttributes = "";
         // id_cliente
         if (strval($this->id_cliente->CurrentValue) != "") {
             $sFilterWrk = "`codigo`" . ew_SearchString("=", $this->id_cliente->CurrentValue, EW_DATATYPE_NUMBER);
             $sSqlWrk = "SELECT `codigo`, `cuit_cuil` AS `DispFld`, `razon_social` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `clientes`";
             $sWhereWrk = "";
             if ($sFilterWrk != "") {
                 ew_AddFilter($sWhereWrk, $sFilterWrk);
             }
             // Call Lookup selecting
             $this->Lookup_Selecting($this->id_cliente, $sWhereWrk);
             if ($sWhereWrk != "") {
                 $sSqlWrk .= " WHERE " . $sWhereWrk;
             }
             $sSqlWrk .= " ORDER BY `razon_social` ASC";
             $rswrk = $conn->Execute($sSqlWrk);
             if ($rswrk && !$rswrk->EOF) {
                 // Lookup values found
                 $this->id_cliente->ViewValue = $rswrk->fields('DispFld');
                 $this->id_cliente->ViewValue .= ew_ValueSeparator(1, $this->id_cliente) . $rswrk->fields('Disp2Fld');
                 $rswrk->Close();
             } else {
                 $this->id_cliente->ViewValue = $this->id_cliente->CurrentValue;
             }
         } else {
             $this->id_cliente->ViewValue = NULL;
         }
         $this->id_cliente->ViewCustomAttributes = "";
         // id_localidad_origen
         if ($this->id_localidad_origen->VirtualValue != "") {
             $this->id_localidad_origen->ViewValue = $this->id_localidad_origen->VirtualValue;
         } else {
             if (strval($this->id_localidad_origen->CurrentValue) != "") {
                 $sFilterWrk = "`codigo`" . ew_SearchString("=", $this->id_localidad_origen->CurrentValue, EW_DATATYPE_NUMBER);
                 $sSqlWrk = "SELECT `codigo`, `cp` AS `DispFld`, `localidad` AS `Disp2Fld`, `provincia` AS `Disp3Fld`, '' AS `Disp4Fld` FROM `v_localidad_provincia`";
                 $sWhereWrk = "";
                 if ($sFilterWrk != "") {
                     ew_AddFilter($sWhereWrk, $sFilterWrk);
                 }
                 // Call Lookup selecting
                 $this->Lookup_Selecting($this->id_localidad_origen, $sWhereWrk);
                 if ($sWhereWrk != "") {
                     $sSqlWrk .= " WHERE " . $sWhereWrk;
                 }
                 $sSqlWrk .= " ORDER BY `localidad` ASC";
                 $rswrk = $conn->Execute($sSqlWrk);
                 if ($rswrk && !$rswrk->EOF) {
                     // Lookup values found
                     $this->id_localidad_origen->ViewValue = $rswrk->fields('DispFld');
                     $this->id_localidad_origen->ViewValue .= ew_ValueSeparator(1, $this->id_localidad_origen) . $rswrk->fields('Disp2Fld');
                     $this->id_localidad_origen->ViewValue .= ew_ValueSeparator(2, $this->id_localidad_origen) . $rswrk->fields('Disp3Fld');
                     $rswrk->Close();
                 } else {
                     $this->id_localidad_origen->ViewValue = $this->id_localidad_origen->CurrentValue;
                 }
             } else {
                 $this->id_localidad_origen->ViewValue = NULL;
//.........这里部分代码省略.........
开发者ID:scintes,项目名称:sistemas,代码行数:101,代码来源:hoja_rutasedit.php

示例13: RenderRow


//.........这里部分代码省略.........
             if ($sFilterWrk != "") {
                 ew_AddFilter($sWhereWrk, $sFilterWrk);
             }
             // Call Lookup selecting
             $this->Lookup_Selecting($this->idhabitacion, $sWhereWrk);
             if ($sWhereWrk != "") {
                 $sSqlWrk .= " WHERE " . $sWhereWrk;
             }
             $rswrk = $conn->Execute($sSqlWrk);
             if ($rswrk && !$rswrk->EOF) {
                 // Lookup values found
                 $this->idhabitacion->ViewValue = $rswrk->fields('DispFld');
                 $rswrk->Close();
             } else {
                 $this->idhabitacion->ViewValue = $this->idhabitacion->CurrentValue;
             }
         } else {
             $this->idhabitacion->ViewValue = NULL;
         }
         $this->idhabitacion->ViewCustomAttributes = "";
         // idpaciente
         if (strval($this->idpaciente->CurrentValue) != "") {
             $sFilterWrk = "`idpaciente`" . ew_SearchString("=", $this->idpaciente->CurrentValue, EW_DATATYPE_NUMBER);
             $sSqlWrk = "SELECT `idpaciente`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, `apellido` AS `Disp3Fld`, '' AS `Disp4Fld` FROM `paciente`";
             $sWhereWrk = "";
             if ($sFilterWrk != "") {
                 ew_AddFilter($sWhereWrk, $sFilterWrk);
             }
             // Call Lookup selecting
             $this->Lookup_Selecting($this->idpaciente, $sWhereWrk);
             if ($sWhereWrk != "") {
                 $sSqlWrk .= " WHERE " . $sWhereWrk;
             }
             $rswrk = $conn->Execute($sSqlWrk);
             if ($rswrk && !$rswrk->EOF) {
                 // Lookup values found
                 $this->idpaciente->ViewValue = $rswrk->fields('DispFld');
                 $this->idpaciente->ViewValue .= ew_ValueSeparator(2, $this->idpaciente) . $rswrk->fields('Disp3Fld');
                 $rswrk->Close();
             } else {
                 $this->idpaciente->ViewValue = $this->idpaciente->CurrentValue;
             }
         } else {
             $this->idpaciente->ViewValue = NULL;
         }
         $this->idpaciente->ViewCustomAttributes = "";
         // es_operacion
         if (strval($this->es_operacion->CurrentValue) != "") {
             switch ($this->es_operacion->CurrentValue) {
                 case $this->es_operacion->FldTagValue(1):
                     $this->es_operacion->ViewValue = $this->es_operacion->FldTagCaption(1) != "" ? $this->es_operacion->FldTagCaption(1) : $this->es_operacion->CurrentValue;
                     break;
                 case $this->es_operacion->FldTagValue(2):
                     $this->es_operacion->ViewValue = $this->es_operacion->FldTagCaption(2) != "" ? $this->es_operacion->FldTagCaption(2) : $this->es_operacion->CurrentValue;
                     break;
                 default:
                     $this->es_operacion->ViewValue = $this->es_operacion->CurrentValue;
             }
         } else {
             $this->es_operacion->ViewValue = NULL;
         }
         $this->es_operacion->ViewCustomAttributes = "";
         // idinternado
         $this->idinternado->LinkCustomAttributes = "";
         $this->idinternado->HrefValue = "";
         $this->idinternado->TooltipValue = "";
         // fecha_inicio
         $this->fecha_inicio->LinkCustomAttributes = "";
         $this->fecha_inicio->HrefValue = "";
         $this->fecha_inicio->TooltipValue = "";
         // fecha_final
         $this->fecha_final->LinkCustomAttributes = "";
         $this->fecha_final->HrefValue = "";
         $this->fecha_final->TooltipValue = "";
         // estado
         $this->estado->LinkCustomAttributes = "";
         $this->estado->HrefValue = "";
         $this->estado->TooltipValue = "";
         // fecha
         $this->fecha->LinkCustomAttributes = "";
         $this->fecha->HrefValue = "";
         $this->fecha->TooltipValue = "";
         // idhabitacion
         $this->idhabitacion->LinkCustomAttributes = "";
         $this->idhabitacion->HrefValue = "";
         $this->idhabitacion->TooltipValue = "";
         // idpaciente
         $this->idpaciente->LinkCustomAttributes = "";
         $this->idpaciente->HrefValue = "";
         $this->idpaciente->TooltipValue = "";
         // es_operacion
         $this->es_operacion->LinkCustomAttributes = "";
         $this->es_operacion->HrefValue = "";
         $this->es_operacion->TooltipValue = "";
     }
     // Call Row Rendered event
     if ($this->RowType != EW_ROWTYPE_AGGREGATEINIT) {
         $this->Row_Rendered();
     }
 }
开发者ID:AngeloGalindo,项目名称:PracticasGrupo9DesarrolloWeb,代码行数:101,代码来源:internadoview.php

示例14: RenderRow

 function RenderRow()
 {
     global $conn, $Security, $Language;
     global $gsLanguage;
     // Initialize URLs
     // Call Row_Rendering event
     $this->Row_Rendering();
     // Common render codes for all row types
     // realmid
     $this->realmid->CellCssStyle = "white-space: nowrap;";
     // starttime
     $this->starttime->CellCssStyle = "white-space: nowrap;";
     // uptime
     $this->uptime->CellCssStyle = "white-space: nowrap;";
     // maxplayers
     $this->maxplayers->CellCssStyle = "white-space: nowrap;";
     // revision
     $this->revision->CellCssStyle = "white-space: nowrap;";
     if ($this->RowType == EW_ROWTYPE_VIEW) {
         // View row
         // realmid
         if (strval($this->realmid->CurrentValue) != "") {
             $sFilterWrk = "`id`" . ew_SearchString("=", $this->realmid->CurrentValue, EW_DATATYPE_NUMBER);
             $sSqlWrk = "SELECT `id`, `id` AS `DispFld`, `name` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `realmlist`";
             $sWhereWrk = "";
             if ($sFilterWrk != "") {
                 ew_AddFilter($sWhereWrk, $sFilterWrk);
             }
             if ($sWhereWrk != "") {
                 $sSqlWrk .= " WHERE " . $sWhereWrk;
             }
             $sSqlWrk .= " ORDER BY `id` ASC";
             $rswrk = $conn->Execute($sSqlWrk);
             if ($rswrk && !$rswrk->EOF) {
                 // Lookup values found
                 $this->realmid->ViewValue = $rswrk->fields('DispFld');
                 $this->realmid->ViewValue .= ew_ValueSeparator(1, $this->realmid) . $rswrk->fields('Disp2Fld');
                 $rswrk->Close();
             } else {
                 $this->realmid->ViewValue = $this->realmid->CurrentValue;
             }
         } else {
             $this->realmid->ViewValue = NULL;
         }
         $this->realmid->ViewCustomAttributes = "";
         // starttime
         $this->starttime->ViewValue = $this->starttime->CurrentValue;
         $this->starttime->ViewCustomAttributes = "";
         // uptime
         $this->uptime->ViewValue = $this->uptime->CurrentValue;
         $this->uptime->ViewCustomAttributes = "";
         // maxplayers
         $this->maxplayers->ViewValue = $this->maxplayers->CurrentValue;
         $this->maxplayers->ViewCustomAttributes = "";
         // realmid
         $this->realmid->LinkCustomAttributes = "";
         $this->realmid->HrefValue = "";
         $this->realmid->TooltipValue = "";
         // starttime
         $this->starttime->LinkCustomAttributes = "";
         $this->starttime->HrefValue = "";
         $this->starttime->TooltipValue = "";
         // uptime
         $this->uptime->LinkCustomAttributes = "";
         $this->uptime->HrefValue = "";
         $this->uptime->TooltipValue = "";
         // maxplayers
         $this->maxplayers->LinkCustomAttributes = "";
         $this->maxplayers->HrefValue = "";
         $this->maxplayers->TooltipValue = "";
     }
     // Call Row Rendered event
     if ($this->RowType != EW_ROWTYPE_AGGREGATEINIT) {
         $this->Row_Rendered();
     }
 }
开发者ID:Rastrian,项目名称:RBAC_Manager,代码行数:76,代码来源:uptimedelete.php

示例15: RenderRow

 function RenderRow()
 {
     global $conn, $Security, $Orders;
     // Call Row_Rendering event
     $Orders->Row_Rendering();
     // Common render codes for all row types
     // CustomerID
     $Orders->CustomerID->CellCssStyle = "";
     $Orders->CustomerID->CellCssClass = "";
     // TransactionNumber
     $Orders->TransactionNumber->CellCssStyle = "";
     $Orders->TransactionNumber->CellCssClass = "";
     // DateOrdered
     $Orders->DateOrdered->CellCssStyle = "";
     $Orders->DateOrdered->CellCssClass = "";
     // Total
     $Orders->Total->CellCssStyle = "";
     $Orders->Total->CellCssClass = "";
     // DeliveryDate
     $Orders->DeliveryDate->CellCssStyle = "";
     $Orders->DeliveryDate->CellCssClass = "";
     // PromoCodeID
     $Orders->PromoCodeID->CellCssStyle = "";
     $Orders->PromoCodeID->CellCssClass = "";
     // Timestamp
     $Orders->Timestamp->CellCssStyle = "";
     $Orders->Timestamp->CellCssClass = "";
     // Sequence
     $Orders->Sequence->CellCssStyle = "";
     $Orders->Sequence->CellCssClass = "";
     if ($Orders->RowType == EW_ROWTYPE_VIEW) {
         // View row
         // OrderID
         $Orders->OrderID->ViewValue = $Orders->OrderID->CurrentValue;
         $Orders->OrderID->CssStyle = "";
         $Orders->OrderID->CssClass = "";
         $Orders->OrderID->ViewCustomAttributes = "";
         // CustomerID
         if (strval($Orders->CustomerID->CurrentValue) != "") {
             $sSqlWrk = "SELECT `LastName`, `FirstName` FROM `Customers` WHERE `CustomerID` = " . ew_AdjustSql($Orders->CustomerID->CurrentValue) . "";
             $sSqlWrk .= " ORDER BY `LastName` Asc";
             $rswrk = $conn->Execute($sSqlWrk);
             if ($rswrk && !$rswrk->EOF) {
                 // Lookup value(s) found
                 $Orders->CustomerID->ViewValue = $rswrk->fields('LastName');
                 $Orders->CustomerID->ViewValue .= ew_ValueSeparator(0) . $rswrk->fields('FirstName');
                 $rswrk->Close();
             } else {
                 $Orders->CustomerID->ViewValue = $Orders->CustomerID->CurrentValue;
             }
         } else {
             $Orders->CustomerID->ViewValue = NULL;
         }
         $Orders->CustomerID->CssStyle = "";
         $Orders->CustomerID->CssClass = "";
         $Orders->CustomerID->ViewCustomAttributes = "";
         // TransactionNumber
         $Orders->TransactionNumber->ViewValue = $Orders->TransactionNumber->CurrentValue;
         $Orders->TransactionNumber->CssStyle = "";
         $Orders->TransactionNumber->CssClass = "";
         $Orders->TransactionNumber->ViewCustomAttributes = "";
         // DateOrdered
         $Orders->DateOrdered->ViewValue = $Orders->DateOrdered->CurrentValue;
         $Orders->DateOrdered->ViewValue = ew_FormatDateTime($Orders->DateOrdered->ViewValue, 6);
         $Orders->DateOrdered->CssStyle = "";
         $Orders->DateOrdered->CssClass = "";
         $Orders->DateOrdered->ViewCustomAttributes = "";
         // Total
         $Orders->Total->ViewValue = $Orders->Total->CurrentValue;
         $Orders->Total->ViewValue = ew_FormatCurrency($Orders->Total->ViewValue, 2, -2, 0, -2);
         $Orders->Total->CssStyle = "";
         $Orders->Total->CssClass = "";
         $Orders->Total->ViewCustomAttributes = "";
         // DeliveryDate
         $Orders->DeliveryDate->ViewValue = $Orders->DeliveryDate->CurrentValue;
         $Orders->DeliveryDate->ViewValue = ew_FormatDateTime($Orders->DeliveryDate->ViewValue, 6);
         $Orders->DeliveryDate->CssStyle = "";
         $Orders->DeliveryDate->CssClass = "";
         $Orders->DeliveryDate->ViewCustomAttributes = "";
         // PromoCodeID
         if (strval($Orders->PromoCodeID->CurrentValue) != "") {
             $sSqlWrk = "SELECT `PromoCodeName` FROM `PromoCodes` WHERE `PromoCodeID` = " . ew_AdjustSql($Orders->PromoCodeID->CurrentValue) . "";
             $sSqlWrk .= " ORDER BY `PromoCodeName` Asc";
             $rswrk = $conn->Execute($sSqlWrk);
             if ($rswrk && !$rswrk->EOF) {
                 // Lookup value(s) found
                 $Orders->PromoCodeID->ViewValue = $rswrk->fields('PromoCodeName');
                 $rswrk->Close();
             } else {
                 $Orders->PromoCodeID->ViewValue = $Orders->PromoCodeID->CurrentValue;
             }
         } else {
             $Orders->PromoCodeID->ViewValue = NULL;
         }
         $Orders->PromoCodeID->CssStyle = "";
         $Orders->PromoCodeID->CssClass = "";
         $Orders->PromoCodeID->ViewCustomAttributes = "";
         // Timestamp
         $Orders->Timestamp->ViewValue = $Orders->Timestamp->CurrentValue;
         $Orders->Timestamp->ViewValue = ew_FormatDateTime($Orders->Timestamp->ViewValue, 6);
//.........这里部分代码省略.........
开发者ID:elliecm,项目名称:MadisonandRayne,代码行数:101,代码来源:Ordersadd.php


注:本文中的ew_ValueSeparator函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。