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


PHP ew_FormatNumber函数代码示例

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


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

示例1: RenderRow

 function RenderRow()
 {
     global $conn, $Security, $Language;
     global $gsLanguage;
     // Initialize URLs
     // Convert decimal values if posted back
     if ($this->precio_base->FormValue == $this->precio_base->CurrentValue && is_numeric(ew_StrToFloat($this->precio_base->CurrentValue))) {
         $this->precio_base->CurrentValue = ew_StrToFloat($this->precio_base->CurrentValue);
     }
     // Convert decimal values if posted back
     if ($this->porcentaje_comision->FormValue == $this->porcentaje_comision->CurrentValue && is_numeric(ew_StrToFloat($this->porcentaje_comision->CurrentValue))) {
         $this->porcentaje_comision->CurrentValue = ew_StrToFloat($this->porcentaje_comision->CurrentValue);
     }
     // Call Row_Rendering event
     $this->Row_Rendering();
     // Common render codes for all row types
     // codigo
     // Tipo_carga
     // precio_base
     // porcentaje_comision
     if ($this->RowType == EW_ROWTYPE_VIEW) {
         // View row
         // codigo
         $this->codigo->ViewValue = $this->codigo->CurrentValue;
         $this->codigo->ViewCustomAttributes = "";
         // Tipo_carga
         $this->Tipo_carga->ViewValue = $this->Tipo_carga->CurrentValue;
         $this->Tipo_carga->ViewCustomAttributes = "";
         // precio_base
         $this->precio_base->ViewValue = $this->precio_base->CurrentValue;
         $this->precio_base->ViewValue = ew_FormatCurrency($this->precio_base->ViewValue, 2, 0, 0, -1);
         $this->precio_base->ViewCustomAttributes = "";
         // porcentaje_comision
         $this->porcentaje_comision->ViewValue = $this->porcentaje_comision->CurrentValue;
         $this->porcentaje_comision->ViewCustomAttributes = "";
         // Tipo_carga
         $this->Tipo_carga->LinkCustomAttributes = "";
         $this->Tipo_carga->HrefValue = "";
         $this->Tipo_carga->TooltipValue = "";
         // precio_base
         $this->precio_base->LinkCustomAttributes = "";
         $this->precio_base->HrefValue = "";
         $this->precio_base->TooltipValue = "";
         // porcentaje_comision
         $this->porcentaje_comision->LinkCustomAttributes = "";
         $this->porcentaje_comision->HrefValue = "";
         $this->porcentaje_comision->TooltipValue = "";
     } elseif ($this->RowType == EW_ROWTYPE_EDIT) {
         // Edit row
         // Tipo_carga
         $this->Tipo_carga->EditAttrs["class"] = "form-control";
         $this->Tipo_carga->EditCustomAttributes = "";
         $this->Tipo_carga->EditValue = $this->Tipo_carga->CurrentValue;
         $this->Tipo_carga->ViewCustomAttributes = "";
         // precio_base
         $this->precio_base->EditAttrs["class"] = "form-control";
         $this->precio_base->EditCustomAttributes = "";
         $this->precio_base->EditValue = $this->precio_base->CurrentValue;
         $this->precio_base->EditValue = ew_FormatCurrency($this->precio_base->EditValue, 2, 0, 0, -1);
         $this->precio_base->ViewCustomAttributes = "";
         // porcentaje_comision
         $this->porcentaje_comision->EditAttrs["class"] = "form-control";
         $this->porcentaje_comision->EditCustomAttributes = "";
         $this->porcentaje_comision->EditValue = ew_HtmlEncode($this->porcentaje_comision->CurrentValue);
         $this->porcentaje_comision->PlaceHolder = ew_RemoveHtml($this->porcentaje_comision->FldCaption());
         if (strval($this->porcentaje_comision->EditValue) != "" && is_numeric($this->porcentaje_comision->EditValue)) {
             $this->porcentaje_comision->EditValue = ew_FormatNumber($this->porcentaje_comision->EditValue, -2, -1, -2, 0);
         }
         // Edit refer script
         // Tipo_carga
         $this->Tipo_carga->HrefValue = "";
         // precio_base
         $this->precio_base->HrefValue = "";
         // porcentaje_comision
         $this->porcentaje_comision->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();
     }
 }
开发者ID:scintes,项目名称:sistemas,代码行数:85,代码来源:tipo_cargasedit.php

示例2: Total

        $Kitchen_Report_22D2->DeliveryDate->CurrentValue = $Kitchen_Report_22D2->DeliveryDate->DbValue;
    }
    if ($Kitchen_Report_22D2_report->bLvlBreak[1]) {
        $Kitchen_Report_22D2->PublishedDate->CurrentValue = $Kitchen_Report_22D2_report->vGrps[0];
        // Render row for view
        $Kitchen_Report_22D2->RowType = EW_ROWTYPE_VIEW;
        $Kitchen_Report_22D2_report->RenderRow();
        $Kitchen_Report_22D2->PublishedDate->CurrentValue = $Kitchen_Report_22D2->PublishedDate->DbValue;
    }
}
// Close recordset
$rs->Close();
?>
	<tr><td colspan=12><span class="phpmaker">&nbsp;<br></span></td></tr>
	<tr><td colspan=12 class="ewGrandSummary"><span class="phpmaker">Grand Total (<?php 
echo ew_FormatNumber($Kitchen_Report_22D2_report->nCntRecs[0], 0);
?>
 Detail Records)</span></td></tr>
<?php 
$Kitchen_Report_22D2->TotalServings->CurrentValue = $Kitchen_Report_22D2_report->nTotals[0][1];
$Kitchen_Report_22D2->TotalOrders->CurrentValue = $Kitchen_Report_22D2_report->nTotals[0][2];
$Kitchen_Report_22D2->z1servings->CurrentValue = $Kitchen_Report_22D2_report->nTotals[0][3];
$Kitchen_Report_22D2->z2servings->CurrentValue = $Kitchen_Report_22D2_report->nTotals[0][4];
$Kitchen_Report_22D2->z3servings->CurrentValue = $Kitchen_Report_22D2_report->nTotals[0][5];
$Kitchen_Report_22D2->z4servings->CurrentValue = $Kitchen_Report_22D2_report->nTotals[0][6];
$Kitchen_Report_22D2->z5servings->CurrentValue = $Kitchen_Report_22D2_report->nTotals[0][7];
$Kitchen_Report_22D2->z6servings->CurrentValue = $Kitchen_Report_22D2_report->nTotals[0][8];
$Kitchen_Report_22D2->z7servings->CurrentValue = $Kitchen_Report_22D2_report->nTotals[0][9];
$Kitchen_Report_22D2->z8servings->CurrentValue = $Kitchen_Report_22D2_report->nTotals[0][10];
// Render row for view
$Kitchen_Report_22D2->RowType = EW_ROWTYPE_VIEW;
开发者ID:elliecm,项目名称:MadisonandRayne,代码行数:31,代码来源:Kitchen_Report_22D2report.php

示例3: RenderRow


//.........这里部分代码省略.........
                 $sFilterWrk = "0=1";
             } else {
                 $sFilterWrk = "`idcuenta`" . ew_SearchString("=", $this->idcuenta->CurrentValue, EW_DATATYPE_NUMBER);
             }
             $sSqlWrk = "SELECT `idcuenta`, `idcuenta` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `cuenta`";
             $sWhereWrk = "";
             if ($sFilterWrk != "") {
                 ew_AddFilter($sWhereWrk, $sFilterWrk);
             }
             // Call Lookup selecting
             $this->Lookup_Selecting($this->idcuenta, $sWhereWrk);
             if ($sWhereWrk != "") {
                 $sSqlWrk .= " WHERE " . $sWhereWrk;
             }
             $rswrk = $conn->Execute($sSqlWrk);
             $arwrk = $rswrk ? $rswrk->GetRows() : array();
             if ($rswrk) {
                 $rswrk->Close();
             }
             array_unshift($arwrk, array("", $Language->Phrase("PleaseSelect"), "", "", "", "", "", "", ""));
             $this->idcuenta->EditValue = $arwrk;
         }
         // idservicio_medico
         $this->idservicio_medico->EditAttrs["class"] = "form-control";
         $this->idservicio_medico->EditCustomAttributes = "";
         if ($this->idservicio_medico->getSessionValue() != "") {
             $this->idservicio_medico->CurrentValue = $this->idservicio_medico->getSessionValue();
             if (strval($this->idservicio_medico->CurrentValue) != "") {
                 $sFilterWrk = "`idservicio_medico`" . ew_SearchString("=", $this->idservicio_medico->CurrentValue, EW_DATATYPE_NUMBER);
                 $sSqlWrk = "SELECT `idservicio_medico`, `descripcion` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `servicio_medico`";
                 $sWhereWrk = "";
                 if ($sFilterWrk != "") {
                     ew_AddFilter($sWhereWrk, $sFilterWrk);
                 }
                 // Call Lookup selecting
                 $this->Lookup_Selecting($this->idservicio_medico, $sWhereWrk);
                 if ($sWhereWrk != "") {
                     $sSqlWrk .= " WHERE " . $sWhereWrk;
                 }
                 $rswrk = $conn->Execute($sSqlWrk);
                 if ($rswrk && !$rswrk->EOF) {
                     // Lookup values found
                     $this->idservicio_medico->ViewValue = $rswrk->fields('DispFld');
                     $rswrk->Close();
                 } else {
                     $this->idservicio_medico->ViewValue = $this->idservicio_medico->CurrentValue;
                 }
             } else {
                 $this->idservicio_medico->ViewValue = NULL;
             }
             $this->idservicio_medico->ViewCustomAttributes = "";
         } else {
             if (trim(strval($this->idservicio_medico->CurrentValue)) == "") {
                 $sFilterWrk = "0=1";
             } else {
                 $sFilterWrk = "`idservicio_medico`" . ew_SearchString("=", $this->idservicio_medico->CurrentValue, EW_DATATYPE_NUMBER);
             }
             $sSqlWrk = "SELECT `idservicio_medico`, `descripcion` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `servicio_medico`";
             $sWhereWrk = "";
             if ($sFilterWrk != "") {
                 ew_AddFilter($sWhereWrk, $sFilterWrk);
             }
             // Call Lookup selecting
             $this->Lookup_Selecting($this->idservicio_medico, $sWhereWrk);
             if ($sWhereWrk != "") {
                 $sSqlWrk .= " WHERE " . $sWhereWrk;
             }
             $rswrk = $conn->Execute($sSqlWrk);
             $arwrk = $rswrk ? $rswrk->GetRows() : array();
             if ($rswrk) {
                 $rswrk->Close();
             }
             array_unshift($arwrk, array("", $Language->Phrase("PleaseSelect"), "", "", "", "", "", "", ""));
             $this->idservicio_medico->EditValue = $arwrk;
         }
         // costo
         $this->costo->EditAttrs["class"] = "form-control";
         $this->costo->EditCustomAttributes = "";
         $this->costo->EditValue = ew_HtmlEncode($this->costo->CurrentValue);
         $this->costo->PlaceHolder = ew_RemoveHtml($this->costo->FldCaption());
         if (strval($this->costo->EditValue) != "" && is_numeric($this->costo->EditValue)) {
             $this->costo->EditValue = ew_FormatNumber($this->costo->EditValue, -2, -1, -2, 0);
         }
         // Edit refer script
         // idcuenta
         $this->idcuenta->HrefValue = "";
         // idservicio_medico
         $this->idservicio_medico->HrefValue = "";
         // costo
         $this->costo->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();
     }
 }
开发者ID:AngeloGalindo,项目名称:PracticasGrupo9DesarrolloWeb,代码行数:101,代码来源:servicio_medico_prestadoadd.php

示例4: RenderRow


//.........这里部分代码省略.........
         $this->iva->HrefValue = "";
         $this->iva->TooltipValue = "";
         // Importe
         $this->Importe->LinkCustomAttributes = "";
         $this->Importe->HrefValue = "";
         $this->Importe->TooltipValue = "";
         // id_tipo_gasto
         $this->id_tipo_gasto->LinkCustomAttributes = "";
         $this->id_tipo_gasto->HrefValue = "";
         $this->id_tipo_gasto->TooltipValue = "";
         // id_hoja_mantenimiento
         $this->id_hoja_mantenimiento->LinkCustomAttributes = "";
         $this->id_hoja_mantenimiento->HrefValue = "";
         $this->id_hoja_mantenimiento->TooltipValue = "";
     } elseif ($this->RowType == EW_ROWTYPE_ADD) {
         // Add row
         // codigo
         // fecha
         $this->fecha->EditAttrs["class"] = "form-control";
         $this->fecha->EditCustomAttributes = "";
         $this->fecha->EditValue = ew_HtmlEncode(ew_FormatDateTime($this->fecha->CurrentValue, 7));
         $this->fecha->PlaceHolder = ew_RemoveHtml($this->fecha->FldCaption());
         // detalles
         $this->detalles->EditAttrs["class"] = "form-control";
         $this->detalles->EditCustomAttributes = "";
         $this->detalles->EditValue = ew_HtmlEncode($this->detalles->CurrentValue);
         $this->detalles->PlaceHolder = ew_RemoveHtml($this->detalles->FldCaption());
         // iva
         $this->iva->EditAttrs["class"] = "form-control";
         $this->iva->EditCustomAttributes = "";
         $this->iva->EditValue = ew_HtmlEncode($this->iva->CurrentValue);
         $this->iva->PlaceHolder = ew_RemoveHtml($this->iva->FldCaption());
         if (strval($this->iva->EditValue) != "" && is_numeric($this->iva->EditValue)) {
             $this->iva->EditValue = ew_FormatNumber($this->iva->EditValue, -2, -1, -2, 0);
             $this->iva->OldValue = $this->iva->EditValue;
         }
         // Importe
         $this->Importe->EditAttrs["class"] = "form-control";
         $this->Importe->EditCustomAttributes = "";
         $this->Importe->EditValue = ew_HtmlEncode($this->Importe->CurrentValue);
         $this->Importe->PlaceHolder = ew_RemoveHtml($this->Importe->FldCaption());
         if (strval($this->Importe->EditValue) != "" && is_numeric($this->Importe->EditValue)) {
             $this->Importe->EditValue = ew_FormatNumber($this->Importe->EditValue, -2, -1, -2, 0);
             $this->Importe->OldValue = $this->Importe->EditValue;
         }
         // id_tipo_gasto
         $this->id_tipo_gasto->EditAttrs["class"] = "form-control";
         $this->id_tipo_gasto->EditCustomAttributes = "";
         $this->id_tipo_gasto->EditValue = ew_HtmlEncode($this->id_tipo_gasto->CurrentValue);
         if (strval($this->id_tipo_gasto->CurrentValue) != "") {
             $sFilterWrk = "`codigo`" . ew_SearchString("=", $this->id_tipo_gasto->CurrentValue, EW_DATATYPE_NUMBER);
             $sSqlWrk = "SELECT `codigo`, `tipo_gasto` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `tipo_gastos`";
             $sWhereWrk = "";
             $lookuptblfilter = "`clase`='M'";
             if (strval($lookuptblfilter) != "") {
                 ew_AddFilter($sWhereWrk, $lookuptblfilter);
             }
             if ($sFilterWrk != "") {
                 ew_AddFilter($sWhereWrk, $sFilterWrk);
             }
             // Call Lookup selecting
             $this->Lookup_Selecting($this->id_tipo_gasto, $sWhereWrk);
             if ($sWhereWrk != "") {
                 $sSqlWrk .= " WHERE " . $sWhereWrk;
             }
             $sSqlWrk .= " ORDER BY `tipo_gasto` ASC";
开发者ID:scintes,项目名称:sistemas,代码行数:67,代码来源:v_gastos_mgridcls.php

示例5: RenderRow

 function RenderRow()
 {
     global $conn, $Security, $Language;
     global $gsLanguage;
     // Initialize URLs
     // Convert decimal values if posted back
     if ($this->importe->FormValue == $this->importe->CurrentValue && is_numeric(ew_StrToFloat($this->importe->CurrentValue))) {
         $this->importe->CurrentValue = ew_StrToFloat($this->importe->CurrentValue);
     }
     // Call Row_Rendering event
     $this->Row_Rendering();
     // Common render codes for all row types
     // id
     // descripcion
     // importe
     // fecha_creacion
     // activa
     // id_usuario
     if ($this->RowType == EW_ROWTYPE_VIEW) {
         // View row
         // id
         $this->id->ViewValue = $this->id->CurrentValue;
         $this->id->ViewCustomAttributes = "";
         // descripcion
         $this->descripcion->ViewValue = $this->descripcion->CurrentValue;
         $this->descripcion->ViewCustomAttributes = "";
         // importe
         $this->importe->ViewValue = $this->importe->CurrentValue;
         $this->importe->ViewValue = ew_FormatCurrency($this->importe->ViewValue, 0, -2, -2, -2);
         $this->importe->ViewCustomAttributes = "";
         // fecha_creacion
         $this->fecha_creacion->ViewValue = $this->fecha_creacion->CurrentValue;
         $this->fecha_creacion->ViewValue = ew_FormatDateTime($this->fecha_creacion->ViewValue, 7);
         $this->fecha_creacion->ViewCustomAttributes = "";
         // activa
         if (strval($this->activa->CurrentValue) != "") {
             switch ($this->activa->CurrentValue) {
                 case $this->activa->FldTagValue(1):
                     $this->activa->ViewValue = $this->activa->FldTagCaption(1) != "" ? $this->activa->FldTagCaption(1) : $this->activa->CurrentValue;
                     break;
                 case $this->activa->FldTagValue(2):
                     $this->activa->ViewValue = $this->activa->FldTagCaption(2) != "" ? $this->activa->FldTagCaption(2) : $this->activa->CurrentValue;
                     break;
                 default:
                     $this->activa->ViewValue = $this->activa->CurrentValue;
             }
         } else {
             $this->activa->ViewValue = NULL;
         }
         $this->activa->ViewCustomAttributes = "";
         // descripcion
         $this->descripcion->LinkCustomAttributes = "";
         $this->descripcion->HrefValue = "";
         $this->descripcion->TooltipValue = "";
         // importe
         $this->importe->LinkCustomAttributes = "";
         $this->importe->HrefValue = "";
         $this->importe->TooltipValue = "";
         // fecha_creacion
         $this->fecha_creacion->LinkCustomAttributes = "";
         $this->fecha_creacion->HrefValue = "";
         $this->fecha_creacion->TooltipValue = "";
         // activa
         $this->activa->LinkCustomAttributes = "";
         $this->activa->HrefValue = "";
         $this->activa->TooltipValue = "";
     } elseif ($this->RowType == EW_ROWTYPE_ADD) {
         // Add row
         // 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());
         // importe
         $this->importe->EditAttrs["class"] = "form-control";
         $this->importe->EditCustomAttributes = "";
         $this->importe->EditValue = ew_HtmlEncode($this->importe->CurrentValue);
         $this->importe->PlaceHolder = ew_RemoveHtml($this->importe->FldCaption());
         if (strval($this->importe->EditValue) != "" && is_numeric($this->importe->EditValue)) {
             $this->importe->EditValue = ew_FormatNumber($this->importe->EditValue, -2, -2, -2, -2);
         }
         // fecha_creacion
         $this->fecha_creacion->EditAttrs["class"] = "form-control";
         $this->fecha_creacion->EditCustomAttributes = "";
         $this->fecha_creacion->EditValue = ew_HtmlEncode(ew_FormatDateTime($this->fecha_creacion->CurrentValue, 7));
         $this->fecha_creacion->PlaceHolder = ew_RemoveHtml($this->fecha_creacion->FldCaption());
         // activa
         $this->activa->EditCustomAttributes = "";
         $arwrk = array();
         $arwrk[] = array($this->activa->FldTagValue(1), $this->activa->FldTagCaption(1) != "" ? $this->activa->FldTagCaption(1) : $this->activa->FldTagValue(1));
         $arwrk[] = array($this->activa->FldTagValue(2), $this->activa->FldTagCaption(2) != "" ? $this->activa->FldTagCaption(2) : $this->activa->FldTagValue(2));
         $this->activa->EditValue = $arwrk;
         // Edit refer script
         // descripcion
         $this->descripcion->HrefValue = "";
         // importe
         $this->importe->HrefValue = "";
         // fecha_creacion
         $this->fecha_creacion->HrefValue = "";
         // activa
//.........这里部分代码省略.........
开发者ID:scintes,项目名称:sistemas,代码行数:101,代码来源:cciag_montosadd.php

示例6: RenderEditRow

 function RenderEditRow()
 {
     global $conn, $Security, $gsLanguage, $Language;
     // Call Row Rendering event
     $this->Row_Rendering();
     // codigo
     $this->codigo->EditAttrs["class"] = "form-control";
     $this->codigo->EditCustomAttributes = "";
     $this->codigo->EditValue = $this->codigo->CurrentValue;
     $this->codigo->ViewCustomAttributes = "";
     // Tipo_carga
     $this->Tipo_carga->EditAttrs["class"] = "form-control";
     $this->Tipo_carga->EditCustomAttributes = "";
     $this->Tipo_carga->EditValue = $this->Tipo_carga->CurrentValue;
     $this->Tipo_carga->ViewCustomAttributes = "";
     // precio_base
     $this->precio_base->EditAttrs["class"] = "form-control";
     $this->precio_base->EditCustomAttributes = "";
     $this->precio_base->EditValue = $this->precio_base->CurrentValue;
     $this->precio_base->EditValue = ew_FormatCurrency($this->precio_base->EditValue, 2, 0, 0, -1);
     $this->precio_base->ViewCustomAttributes = "";
     // porcentaje_comision
     $this->porcentaje_comision->EditAttrs["class"] = "form-control";
     $this->porcentaje_comision->EditCustomAttributes = "";
     $this->porcentaje_comision->EditValue = ew_HtmlEncode($this->porcentaje_comision->CurrentValue);
     $this->porcentaje_comision->PlaceHolder = ew_RemoveHtml($this->porcentaje_comision->FldCaption());
     if (strval($this->porcentaje_comision->EditValue) != "" && is_numeric($this->porcentaje_comision->EditValue)) {
         $this->porcentaje_comision->EditValue = ew_FormatNumber($this->porcentaje_comision->EditValue, -2, -1, -2, 0);
     }
     // Call Row Rendered event
     $this->Row_Rendered();
 }
开发者ID:scintes,项目名称:sistemas,代码行数:32,代码来源:tipo_cargasinfo.php

示例7: Total

        $Delivery_Report_1->DeliveryDate->CurrentValue = $Delivery_Report_1->DeliveryDate->DbValue;
    }
    if ($Delivery_Report_1_report->bLvlBreak[1]) {
        $Delivery_Report_1->PublishedDate->CurrentValue = $Delivery_Report_1_report->vGrps[0];
        // Render row for view
        $Delivery_Report_1->RowType = EW_ROWTYPE_VIEW;
        $Delivery_Report_1_report->RenderRow();
        $Delivery_Report_1->PublishedDate->CurrentValue = $Delivery_Report_1->PublishedDate->DbValue;
    }
}
// Close recordset
$rs->Close();
?>
	<tr><td colspan=6><span class="phpmaker">&nbsp;<br></span></td></tr>
	<tr><td colspan=6 class="ewGrandSummary"><span class="phpmaker">Grand Total (<?php 
echo ew_FormatNumber($Delivery_Report_1_report->nCntRecs[0], 0);
?>
 Detail Records)</span></td></tr>
	<tr><td colspan=6><span class="phpmaker">&nbsp;<br></span></td></tr>
</table>
</form>
<?php 
if ($Delivery_Report_1->Export == "") {
    ?>
<script language="JavaScript" type="text/javascript">
<!--

// Write your table-specific startup script here
// document.write("page loaded");
//-->
开发者ID:elliecm,项目名称:MadisonandRayne,代码行数:30,代码来源:Delivery_Report_1report.php

示例8: RenderEditRow

 function RenderEditRow()
 {
     global $Security, $gsLanguage, $Language;
     // Call Row Rendering event
     $this->Row_Rendering();
     // BAGGAGE_ID
     $this->BAGGAGE_ID->EditAttrs["class"] = "form-control";
     $this->BAGGAGE_ID->EditCustomAttributes = "";
     $this->BAGGAGE_ID->EditValue = $this->BAGGAGE_ID->CurrentValue;
     $this->BAGGAGE_ID->ViewCustomAttributes = "";
     // BOARDING_ID
     $this->BOARDING_ID->EditAttrs["class"] = "form-control";
     $this->BOARDING_ID->EditCustomAttributes = "";
     $this->BOARDING_ID->EditValue = $this->BOARDING_ID->CurrentValue;
     $this->BOARDING_ID->PlaceHolder = ew_RemoveHtml($this->BOARDING_ID->FldCaption());
     if (strval($this->BOARDING_ID->EditValue) != "" && is_numeric($this->BOARDING_ID->EditValue)) {
         $this->BOARDING_ID->EditValue = ew_FormatNumber($this->BOARDING_ID->EditValue, -2, -1, -2, 0);
     }
     // PASSANGER_ID
     $this->PASSANGER_ID->EditAttrs["class"] = "form-control";
     $this->PASSANGER_ID->EditCustomAttributes = "";
     $this->PASSANGER_ID->EditValue = $this->PASSANGER_ID->CurrentValue;
     $this->PASSANGER_ID->PlaceHolder = ew_RemoveHtml($this->PASSANGER_ID->FldCaption());
     // WEIGHT
     $this->WEIGHT->EditAttrs["class"] = "form-control";
     $this->WEIGHT->EditCustomAttributes = "";
     $this->WEIGHT->EditValue = $this->WEIGHT->CurrentValue;
     $this->WEIGHT->PlaceHolder = ew_RemoveHtml($this->WEIGHT->FldCaption());
     if (strval($this->WEIGHT->EditValue) != "" && is_numeric($this->WEIGHT->EditValue)) {
         $this->WEIGHT->EditValue = ew_FormatNumber($this->WEIGHT->EditValue, -2, -1, -2, 0);
     }
     // Call Row Rendered event
     $this->Row_Rendered();
 }
开发者ID:demian054,项目名称:APCB_WebPagePHP,代码行数:34,代码来源:baggageinfo.php

示例9: RenderEditRow

 function RenderEditRow()
 {
     global $conn, $Security, $gsLanguage, $Language;
     // Call Row Rendering event
     $this->Row_Rendering();
     // idreceta
     $this->idreceta->EditAttrs["class"] = "form-control";
     $this->idreceta->EditCustomAttributes = "";
     $this->idreceta->EditValue = $this->idreceta->CurrentValue;
     $this->idreceta->ViewCustomAttributes = "";
     // idempleado
     $this->idempleado->EditAttrs["class"] = "form-control";
     $this->idempleado->EditCustomAttributes = "";
     if ($this->idempleado->getSessionValue() != "") {
         $this->idempleado->CurrentValue = $this->idempleado->getSessionValue();
         if (strval($this->idempleado->CurrentValue) != "") {
             $sFilterWrk = "`idempleado`" . ew_SearchString("=", $this->idempleado->CurrentValue, EW_DATATYPE_NUMBER);
             $sSqlWrk = "SELECT `idempleado`, `nombre` AS `DispFld`, `apellido` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `empleado`";
             $sWhereWrk = "";
             if ($sFilterWrk != "") {
                 ew_AddFilter($sWhereWrk, $sFilterWrk);
             }
             // Call Lookup selecting
             $this->Lookup_Selecting($this->idempleado, $sWhereWrk);
             if ($sWhereWrk != "") {
                 $sSqlWrk .= " WHERE " . $sWhereWrk;
             }
             $rswrk = $conn->Execute($sSqlWrk);
             if ($rswrk && !$rswrk->EOF) {
                 // Lookup values found
                 $this->idempleado->ViewValue = $rswrk->fields('DispFld');
                 $this->idempleado->ViewValue .= ew_ValueSeparator(1, $this->idempleado) . $rswrk->fields('Disp2Fld');
                 $rswrk->Close();
             } else {
                 $this->idempleado->ViewValue = $this->idempleado->CurrentValue;
             }
         } else {
             $this->idempleado->ViewValue = NULL;
         }
         $this->idempleado->ViewCustomAttributes = "";
     } else {
     }
     // idmedicina
     $this->idmedicina->EditAttrs["class"] = "form-control";
     $this->idmedicina->EditCustomAttributes = "";
     if ($this->idmedicina->getSessionValue() != "") {
         $this->idmedicina->CurrentValue = $this->idmedicina->getSessionValue();
         if (strval($this->idmedicina->CurrentValue) != "") {
             $sFilterWrk = "`idmedicina`" . ew_SearchString("=", $this->idmedicina->CurrentValue, EW_DATATYPE_NUMBER);
             $sSqlWrk = "SELECT `idmedicina`, `descripcion` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `medicina`";
             $sWhereWrk = "";
             if ($sFilterWrk != "") {
                 ew_AddFilter($sWhereWrk, $sFilterWrk);
             }
             // Call Lookup selecting
             $this->Lookup_Selecting($this->idmedicina, $sWhereWrk);
             if ($sWhereWrk != "") {
                 $sSqlWrk .= " WHERE " . $sWhereWrk;
             }
             $rswrk = $conn->Execute($sSqlWrk);
             if ($rswrk && !$rswrk->EOF) {
                 // Lookup values found
                 $this->idmedicina->ViewValue = $rswrk->fields('DispFld');
                 $rswrk->Close();
             } else {
                 $this->idmedicina->ViewValue = $this->idmedicina->CurrentValue;
             }
         } else {
             $this->idmedicina->ViewValue = NULL;
         }
         $this->idmedicina->ViewCustomAttributes = "";
     } else {
     }
     // fecha
     $this->fecha->EditAttrs["class"] = "form-control";
     $this->fecha->EditCustomAttributes = "";
     $this->fecha->EditValue = ew_HtmlEncode(ew_FormatDateTime($this->fecha->CurrentValue, 7));
     $this->fecha->PlaceHolder = ew_RemoveHtml($this->fecha->FldCaption());
     // cantidad
     $this->cantidad->EditAttrs["class"] = "form-control";
     $this->cantidad->EditCustomAttributes = "";
     $this->cantidad->EditValue = ew_HtmlEncode($this->cantidad->CurrentValue);
     $this->cantidad->PlaceHolder = ew_RemoveHtml($this->cantidad->FldCaption());
     // precio_unitario
     $this->precio_unitario->EditAttrs["class"] = "form-control";
     $this->precio_unitario->EditCustomAttributes = "";
     $this->precio_unitario->EditValue = ew_HtmlEncode($this->precio_unitario->CurrentValue);
     $this->precio_unitario->PlaceHolder = ew_RemoveHtml($this->precio_unitario->FldCaption());
     if (strval($this->precio_unitario->EditValue) != "" && is_numeric($this->precio_unitario->EditValue)) {
         $this->precio_unitario->EditValue = ew_FormatNumber($this->precio_unitario->EditValue, -2, -1, -2, 0);
     }
     // idturno
     $this->idturno->EditAttrs["class"] = "form-control";
     $this->idturno->EditCustomAttributes = "";
     if ($this->idturno->getSessionValue() != "") {
         $this->idturno->CurrentValue = $this->idturno->getSessionValue();
         if (strval($this->idturno->CurrentValue) != "") {
             $sFilterWrk = "`idturno`" . ew_SearchString("=", $this->idturno->CurrentValue, EW_DATATYPE_NUMBER);
             $sSqlWrk = "SELECT `idturno`, `descripcion` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `turno`";
             $sWhereWrk = "";
//.........这里部分代码省略.........
开发者ID:AngeloGalindo,项目名称:PracticasGrupo9DesarrolloWeb,代码行数:101,代码来源:recetainfo.php

示例10: RenderRow


//.........这里部分代码省略.........
         $this->id_estado->EditCustomAttributes = "";
         if (trim(strval($this->id_estado->CurrentValue)) == "") {
             $sFilterWrk = "0=1";
         } else {
             $sFilterWrk = "`codigo`" . ew_SearchString("=", $this->id_estado->CurrentValue, EW_DATATYPE_NUMBER);
         }
         $sSqlWrk = "SELECT DISTINCT `codigo`, `estado` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `estados`";
         $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_estado, $sWhereWrk);
         if ($sWhereWrk != "") {
             $sSqlWrk .= " WHERE " . $sWhereWrk;
         }
         $sSqlWrk .= " ORDER BY `codigo` ASC";
         $rswrk = $conn->Execute($sSqlWrk);
         $arwrk = $rswrk ? $rswrk->GetRows() : array();
         if ($rswrk) {
             $rswrk->Close();
         }
         array_unshift($arwrk, array("", $Language->Phrase("PleaseSelect"), "", "", "", "", "", "", ""));
         $this->id_estado->EditValue = $arwrk;
         // precio
         $this->precio->EditCustomAttributes = "";
         $this->precio->EditValue = ew_HtmlEncode($this->precio->CurrentValue);
         $this->precio->PlaceHolder = ew_HtmlEncode(ew_RemoveHtml($this->precio->FldCaption()));
         if (strval($this->precio->EditValue) != "" && is_numeric($this->precio->EditValue)) {
             $this->precio->EditValue = ew_FormatNumber($this->precio->EditValue, -2, -2, -2, -2);
         }
         // entrega
         $this->entrega->EditCustomAttributes = "";
         $this->entrega->EditValue = ew_HtmlEncode($this->entrega->CurrentValue);
         $this->entrega->PlaceHolder = ew_HtmlEncode(ew_RemoveHtml($this->entrega->FldCaption()));
         if (strval($this->entrega->EditValue) != "" && is_numeric($this->entrega->EditValue)) {
             $this->entrega->EditValue = ew_FormatNumber($this->entrega->EditValue, -2, -2, -2, -2);
         }
         // foto1
         $this->foto1->EditCustomAttributes = "";
         if (!ew_Empty($this->foto1->Upload->DbValue)) {
             $this->foto1->ImageAlt = $this->foto1->FldAlt();
             $this->foto1->EditValue = ew_UploadPathEx(FALSE, $this->foto1->UploadPath) . $this->foto1->Upload->DbValue;
         } else {
             $this->foto1->EditValue = "";
         }
         if ($this->CurrentAction == "I" && !$this->EventCancelled) {
             ew_RenderUploadField($this->foto1);
         }
         // foto2
         $this->foto2->EditCustomAttributes = "";
         if (!ew_Empty($this->foto2->Upload->DbValue)) {
             $this->foto2->ImageAlt = $this->foto2->FldAlt();
             $this->foto2->EditValue = ew_UploadPathEx(FALSE, $this->foto2->UploadPath) . $this->foto2->Upload->DbValue;
         } else {
             $this->foto2->EditValue = "";
         }
         if ($this->CurrentAction == "I" && !$this->EventCancelled) {
             ew_RenderUploadField($this->foto2);
         }
         // Edit refer script
         // nro_orden
开发者ID:scintes,项目名称:sistemas,代码行数:67,代码来源:trabajosedit.php

示例11: RenderEditRow

 function RenderEditRow()
 {
     global $conn, $Security, $gsLanguage, $Language;
     // Call Row Rendering event
     $this->Row_Rendering();
     // fecha_ini
     $this->fecha_ini->EditAttrs["class"] = "form-control";
     $this->fecha_ini->EditCustomAttributes = "";
     $this->fecha_ini->EditValue = ew_HtmlEncode($this->fecha_ini->CurrentValue);
     $this->fecha_ini->PlaceHolder = ew_RemoveHtml($this->fecha_ini->FldCaption());
     // fecha_fin
     $this->fecha_fin->EditAttrs["class"] = "form-control";
     $this->fecha_fin->EditCustomAttributes = "";
     $this->fecha_fin->EditValue = ew_HtmlEncode($this->fecha_fin->CurrentValue);
     $this->fecha_fin->PlaceHolder = ew_RemoveHtml($this->fecha_fin->FldCaption());
     // Patente
     $this->Patente->EditAttrs["class"] = "form-control";
     $this->Patente->EditCustomAttributes = "";
     $this->Patente->EditValue = ew_HtmlEncode($this->Patente->CurrentValue);
     $this->Patente->PlaceHolder = ew_RemoveHtml($this->Patente->FldCaption());
     // taller
     $this->taller->EditAttrs["class"] = "form-control";
     $this->taller->EditCustomAttributes = "";
     $this->taller->EditValue = ew_HtmlEncode($this->taller->CurrentValue);
     $this->taller->PlaceHolder = ew_RemoveHtml($this->taller->FldCaption());
     // tipo_mantenimiento
     $this->tipo_mantenimiento->EditAttrs["class"] = "form-control";
     $this->tipo_mantenimiento->EditCustomAttributes = "";
     $this->tipo_mantenimiento->EditValue = ew_HtmlEncode($this->tipo_mantenimiento->CurrentValue);
     $this->tipo_mantenimiento->PlaceHolder = ew_RemoveHtml($this->tipo_mantenimiento->FldCaption());
     // nro_hoja_mantenimiento
     $this->nro_hoja_mantenimiento->EditAttrs["class"] = "form-control";
     $this->nro_hoja_mantenimiento->EditCustomAttributes = "";
     $this->nro_hoja_mantenimiento->EditValue = ew_HtmlEncode($this->nro_hoja_mantenimiento->CurrentValue);
     $this->nro_hoja_mantenimiento->PlaceHolder = ew_RemoveHtml($this->nro_hoja_mantenimiento->FldCaption());
     // total_gasto
     $this->total_gasto->EditAttrs["class"] = "form-control";
     $this->total_gasto->EditCustomAttributes = "";
     $this->total_gasto->EditValue = ew_HtmlEncode($this->total_gasto->CurrentValue);
     $this->total_gasto->PlaceHolder = ew_RemoveHtml($this->total_gasto->FldCaption());
     if (strval($this->total_gasto->EditValue) != "" && is_numeric($this->total_gasto->EditValue)) {
         $this->total_gasto->EditValue = ew_FormatNumber($this->total_gasto->EditValue, -2, -1, -2, 0);
     }
     // Call Row Rendered event
     $this->Row_Rendered();
 }
开发者ID:scintes,项目名称:sistemas,代码行数:46,代码来源:v_gastos_hoja_mantenimientoinfo.php

示例12: RenderEditRow

 function RenderEditRow()
 {
     global $conn, $Security, $gsLanguage, $Language;
     // Call Row Rendering event
     $this->Row_Rendering();
     // codigo
     $this->codigo->EditAttrs["class"] = "form-control";
     $this->codigo->EditCustomAttributes = "";
     $this->codigo->EditValue = $this->codigo->CurrentValue;
     $this->codigo->ViewCustomAttributes = "";
     // responsable
     $this->responsable->EditAttrs["class"] = "form-control";
     $this->responsable->EditCustomAttributes = "";
     $this->responsable->EditValue = ew_HtmlEncode($this->responsable->CurrentValue);
     $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->CurrentValue);
     $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->CurrentValue);
     $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->CurrentValue);
     $this->tarifa->PlaceHolder = ew_RemoveHtml($this->tarifa->FldCaption());
     if (strval($this->tarifa->EditValue) != "" && is_numeric($this->tarifa->EditValue)) {
         $this->tarifa->EditValue = ew_FormatNumber($this->tarifa->EditValue, -2, -2, -2, -2);
     }
     // sub_total
     $this->sub_total->EditAttrs["class"] = "form-control";
     $this->sub_total->EditCustomAttributes = "";
     $this->sub_total->EditValue = ew_HtmlEncode($this->sub_total->CurrentValue);
     $this->sub_total->PlaceHolder = ew_RemoveHtml($this->sub_total->FldCaption());
     if (strval($this->sub_total->EditValue) != "" && is_numeric($this->sub_total->EditValue)) {
         $this->sub_total->EditValue = ew_FormatNumber($this->sub_total->EditValue, -2, -2, -2, -2);
     }
     // porcentaje
     $this->porcentaje->EditAttrs["class"] = "form-control";
     $this->porcentaje->EditCustomAttributes = "";
     $this->porcentaje->EditValue = ew_HtmlEncode($this->porcentaje->CurrentValue);
     $this->porcentaje->PlaceHolder = ew_RemoveHtml($this->porcentaje->FldCaption());
     if (strval($this->porcentaje->EditValue) != "" && is_numeric($this->porcentaje->EditValue)) {
         $this->porcentaje->EditValue = ew_FormatNumber($this->porcentaje->EditValue, -2, -1, -2, 0);
     }
     // comision_chofer
     $this->comision_chofer->EditAttrs["class"] = "form-control";
     $this->comision_chofer->EditCustomAttributes = "";
     $this->comision_chofer->EditValue = ew_HtmlEncode($this->comision_chofer->CurrentValue);
     $this->comision_chofer->PlaceHolder = ew_RemoveHtml($this->comision_chofer->FldCaption());
     if (strval($this->comision_chofer->EditValue) != "" && is_numeric($this->comision_chofer->EditValue)) {
         $this->comision_chofer->EditValue = ew_FormatNumber($this->comision_chofer->EditValue, -2, -2, -1, -2);
     }
     // adelanto
     $this->adelanto->EditAttrs["class"] = "form-control";
     $this->adelanto->EditCustomAttributes = "";
     $this->adelanto->EditValue = ew_HtmlEncode($this->adelanto->CurrentValue);
     $this->adelanto->PlaceHolder = ew_RemoveHtml($this->adelanto->FldCaption());
     if (strval($this->adelanto->EditValue) != "" && is_numeric($this->adelanto->EditValue)) {
         $this->adelanto->EditValue = ew_FormatNumber($this->adelanto->EditValue, -2, -2, -2, -2);
     }
     // total
     $this->total->EditAttrs["class"] = "form-control";
     $this->total->EditCustomAttributes = "";
     $this->total->EditValue = ew_HtmlEncode($this->total->CurrentValue);
     $this->total->PlaceHolder = ew_RemoveHtml($this->total->FldCaption());
     if (strval($this->total->EditValue) != "" && is_numeric($this->total->EditValue)) {
         $this->total->EditValue = ew_FormatNumber($this->total->EditValue, -2, -2, -2, -2);
     }
     // Call Row Rendered event
     $this->Row_Rendered();
 }
开发者ID:scintes,项目名称:sistemas,代码行数:76,代码来源:v_listado_totales_por_hoja_rutainfo.php

示例13: 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
     // nombre
     // direccion
     // fecha_nacimiento
     // tel
     // cel
     // email
     // fecha_inicio
     // cetegoria
     // datos
     if ($this->RowType == EW_ROWTYPE_VIEW) {
         // View row
         // codigo
         $this->codigo->ViewValue = $this->codigo->CurrentValue;
         $this->codigo->ViewCustomAttributes = "";
         // nombre
         $this->nombre->ViewValue = $this->nombre->CurrentValue;
         $this->nombre->ViewCustomAttributes = "";
         // direccion
         $this->direccion->ViewValue = $this->direccion->CurrentValue;
         $this->direccion->ViewCustomAttributes = "";
         // fecha_nacimiento
         $this->fecha_nacimiento->ViewValue = $this->fecha_nacimiento->CurrentValue;
         $this->fecha_nacimiento->ViewValue = ew_FormatDateTime($this->fecha_nacimiento->ViewValue, 7);
         $this->fecha_nacimiento->ViewCustomAttributes = "";
         // tel
         $this->tel->ViewValue = $this->tel->CurrentValue;
         $this->tel->ViewCustomAttributes = "";
         // cel
         $this->cel->ViewValue = $this->cel->CurrentValue;
         $this->cel->ViewCustomAttributes = "";
         // email
         $this->_email->ViewValue = $this->_email->CurrentValue;
         $this->_email->ViewValue = strtolower($this->_email->ViewValue);
         $this->_email->ViewCustomAttributes = "";
         // fecha_inicio
         $this->fecha_inicio->ViewValue = $this->fecha_inicio->CurrentValue;
         $this->fecha_inicio->ViewValue = ew_FormatDateTime($this->fecha_inicio->ViewValue, 7);
         $this->fecha_inicio->ViewCustomAttributes = "";
         // cetegoria
         $this->cetegoria->ViewValue = $this->cetegoria->CurrentValue;
         $this->cetegoria->ViewValue = ew_FormatNumber($this->cetegoria->ViewValue, 0, -2, -2, -2);
         $this->cetegoria->ViewCustomAttributes = "";
         // datos
         $this->datos->ViewValue = $this->datos->CurrentValue;
         $this->datos->ViewCustomAttributes = "";
         // codigo
         $this->codigo->LinkCustomAttributes = "";
         $this->codigo->HrefValue = "";
         $this->codigo->TooltipValue = "";
         // nombre
         $this->nombre->LinkCustomAttributes = "";
         $this->nombre->HrefValue = "";
         $this->nombre->TooltipValue = "";
         // direccion
         $this->direccion->LinkCustomAttributes = "";
         $this->direccion->HrefValue = "";
         $this->direccion->TooltipValue = "";
         // fecha_nacimiento
         $this->fecha_nacimiento->LinkCustomAttributes = "";
         $this->fecha_nacimiento->HrefValue = "";
         $this->fecha_nacimiento->TooltipValue = "";
         // tel
         $this->tel->LinkCustomAttributes = "";
         $this->tel->HrefValue = "";
         $this->tel->TooltipValue = "";
         // cel
         $this->cel->LinkCustomAttributes = "";
         $this->cel->HrefValue = "";
         $this->cel->TooltipValue = "";
         // email
         $this->_email->LinkCustomAttributes = "";
         $this->_email->HrefValue = "";
         $this->_email->TooltipValue = "";
         // fecha_inicio
         $this->fecha_inicio->LinkCustomAttributes = "";
         $this->fecha_inicio->HrefValue = "";
         $this->fecha_inicio->TooltipValue = "";
         // cetegoria
         $this->cetegoria->LinkCustomAttributes = "";
         $this->cetegoria->HrefValue = "";
         $this->cetegoria->TooltipValue = "";
         // datos
         $this->datos->LinkCustomAttributes = "";
         $this->datos->HrefValue = "";
         $this->datos->TooltipValue = "";
//.........这里部分代码省略.........
开发者ID:scintes,项目名称:sistemas,代码行数:101,代码来源:chofereslist.php

示例14: RenderRow


//.........这里部分代码省略.........
         $this->detalles->LinkCustomAttributes = "";
         $this->detalles->HrefValue = "";
         $this->detalles->TooltipValue = "";
         // Importe
         $this->Importe->LinkCustomAttributes = "";
         $this->Importe->HrefValue = "";
         $this->Importe->TooltipValue = "";
         // id_tipo_gasto
         $this->id_tipo_gasto->LinkCustomAttributes = "";
         $this->id_tipo_gasto->HrefValue = "";
         $this->id_tipo_gasto->TooltipValue = "";
         // id_hoja_ruta
         $this->id_hoja_ruta->LinkCustomAttributes = "";
         $this->id_hoja_ruta->HrefValue = "";
         $this->id_hoja_ruta->TooltipValue = "";
     } elseif ($this->RowType == EW_ROWTYPE_EDIT) {
         // Edit row
         // fecha
         $this->fecha->EditAttrs["class"] = "form-control";
         $this->fecha->EditCustomAttributes = "";
         $this->fecha->EditValue = ew_HtmlEncode(ew_FormatDateTime($this->fecha->CurrentValue, 7));
         $this->fecha->PlaceHolder = ew_RemoveHtml($this->fecha->FldCaption());
         // detalles
         $this->detalles->EditAttrs["class"] = "form-control";
         $this->detalles->EditCustomAttributes = "";
         $this->detalles->EditValue = ew_HtmlEncode($this->detalles->CurrentValue);
         $this->detalles->PlaceHolder = ew_RemoveHtml($this->detalles->FldCaption());
         // Importe
         $this->Importe->EditAttrs["class"] = "form-control";
         $this->Importe->EditCustomAttributes = "";
         $this->Importe->EditValue = ew_HtmlEncode($this->Importe->CurrentValue);
         $this->Importe->PlaceHolder = ew_RemoveHtml($this->Importe->FldCaption());
         if (strval($this->Importe->EditValue) != "" && is_numeric($this->Importe->EditValue)) {
             $this->Importe->EditValue = ew_FormatNumber($this->Importe->EditValue, -2, 0, 0, -1);
         }
         // id_tipo_gasto
         $this->id_tipo_gasto->EditAttrs["class"] = "form-control";
         $this->id_tipo_gasto->EditCustomAttributes = "";
         if ($this->id_tipo_gasto->getSessionValue() != "") {
             $this->id_tipo_gasto->CurrentValue = $this->id_tipo_gasto->getSessionValue();
             if ($this->id_tipo_gasto->VirtualValue != "") {
                 $this->id_tipo_gasto->ViewValue = $this->id_tipo_gasto->VirtualValue;
             } else {
                 if (strval($this->id_tipo_gasto->CurrentValue) != "") {
                     $sFilterWrk = "`codigo`" . ew_SearchString("=", $this->id_tipo_gasto->CurrentValue, EW_DATATYPE_NUMBER);
                     $sSqlWrk = "SELECT DISTINCT `codigo`, `codigo` AS `DispFld`, `tipo_gasto` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `tipo_gastos`";
                     $sWhereWrk = "";
                     $lookuptblfilter = "`clase`='R'";
                     if (strval($lookuptblfilter) != "") {
                         ew_AddFilter($sWhereWrk, $lookuptblfilter);
                     }
                     if ($sFilterWrk != "") {
                         ew_AddFilter($sWhereWrk, $sFilterWrk);
                     }
                     // Call Lookup selecting
                     $this->Lookup_Selecting($this->id_tipo_gasto, $sWhereWrk);
                     if ($sWhereWrk != "") {
                         $sSqlWrk .= " WHERE " . $sWhereWrk;
                     }
                     $sSqlWrk .= " ORDER BY `tipo_gasto` ASC";
                     $rswrk = $conn->Execute($sSqlWrk);
                     if ($rswrk && !$rswrk->EOF) {
                         // Lookup values found
                         $this->id_tipo_gasto->ViewValue = $rswrk->fields('DispFld');
                         $this->id_tipo_gasto->ViewValue .= ew_ValueSeparator(1, $this->id_tipo_gasto) . $rswrk->fields('Disp2Fld');
                         $rswrk->Close();
开发者ID:scintes,项目名称:sistemas,代码行数:67,代码来源:gastosupdate.php

示例15: RenderEditRow

 function RenderEditRow()
 {
     global $conn, $Security, $gsLanguage, $Language;
     // Call Row Rendering event
     $this->Row_Rendering();
     // codigo
     $this->codigo->EditAttrs["class"] = "form-control";
     $this->codigo->EditCustomAttributes = "";
     $this->codigo->EditValue = $this->codigo->CurrentValue;
     $this->codigo->ViewCustomAttributes = "";
     // fecha
     $this->fecha->EditAttrs["class"] = "form-control";
     $this->fecha->EditCustomAttributes = "";
     $this->fecha->EditValue = ew_HtmlEncode(ew_FormatDateTime($this->fecha->CurrentValue, 7));
     $this->fecha->PlaceHolder = ew_RemoveHtml($this->fecha->FldCaption());
     // detalles
     $this->detalles->EditAttrs["class"] = "form-control";
     $this->detalles->EditCustomAttributes = "";
     $this->detalles->EditValue = ew_HtmlEncode($this->detalles->CurrentValue);
     $this->detalles->PlaceHolder = ew_RemoveHtml($this->detalles->FldCaption());
     // Importe
     $this->Importe->EditAttrs["class"] = "form-control";
     $this->Importe->EditCustomAttributes = "";
     $this->Importe->EditValue = ew_HtmlEncode($this->Importe->CurrentValue);
     $this->Importe->PlaceHolder = ew_RemoveHtml($this->Importe->FldCaption());
     if (strval($this->Importe->EditValue) != "" && is_numeric($this->Importe->EditValue)) {
         $this->Importe->EditValue = ew_FormatNumber($this->Importe->EditValue, -2, 0, 0, -1);
     }
     // id_tipo_gasto
     $this->id_tipo_gasto->EditAttrs["class"] = "form-control";
     $this->id_tipo_gasto->EditCustomAttributes = "";
     if ($this->id_tipo_gasto->getSessionValue() != "") {
         $this->id_tipo_gasto->CurrentValue = $this->id_tipo_gasto->getSessionValue();
         if ($this->id_tipo_gasto->VirtualValue != "") {
             $this->id_tipo_gasto->ViewValue = $this->id_tipo_gasto->VirtualValue;
         } else {
             if (strval($this->id_tipo_gasto->CurrentValue) != "") {
                 $sFilterWrk = "`codigo`" . ew_SearchString("=", $this->id_tipo_gasto->CurrentValue, EW_DATATYPE_NUMBER);
                 $sSqlWrk = "SELECT DISTINCT `codigo`, `codigo` AS `DispFld`, `tipo_gasto` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `tipo_gastos`";
                 $sWhereWrk = "";
                 $lookuptblfilter = "`clase`='R'";
                 if (strval($lookuptblfilter) != "") {
                     ew_AddFilter($sWhereWrk, $lookuptblfilter);
                 }
                 if ($sFilterWrk != "") {
                     ew_AddFilter($sWhereWrk, $sFilterWrk);
                 }
                 // Call Lookup selecting
                 $this->Lookup_Selecting($this->id_tipo_gasto, $sWhereWrk);
                 if ($sWhereWrk != "") {
                     $sSqlWrk .= " WHERE " . $sWhereWrk;
                 }
                 $sSqlWrk .= " ORDER BY `tipo_gasto` ASC";
                 $rswrk = $conn->Execute($sSqlWrk);
                 if ($rswrk && !$rswrk->EOF) {
                     // Lookup values found
                     $this->id_tipo_gasto->ViewValue = $rswrk->fields('DispFld');
                     $this->id_tipo_gasto->ViewValue .= ew_ValueSeparator(1, $this->id_tipo_gasto) . $rswrk->fields('Disp2Fld');
                     $rswrk->Close();
                 } else {
                     $this->id_tipo_gasto->ViewValue = $this->id_tipo_gasto->CurrentValue;
                 }
             } else {
                 $this->id_tipo_gasto->ViewValue = NULL;
             }
         }
         $this->id_tipo_gasto->ViewCustomAttributes = "";
     } else {
     }
     // id_hoja_ruta
     $this->id_hoja_ruta->EditAttrs["class"] = "form-control";
     $this->id_hoja_ruta->EditCustomAttributes = "";
     if ($this->id_hoja_ruta->getSessionValue() != "") {
         $this->id_hoja_ruta->CurrentValue = $this->id_hoja_ruta->getSessionValue();
         if ($this->id_hoja_ruta->VirtualValue != "") {
             $this->id_hoja_ruta->ViewValue = $this->id_hoja_ruta->VirtualValue;
         } else {
             $this->id_hoja_ruta->ViewValue = $this->id_hoja_ruta->CurrentValue;
             if (strval($this->id_hoja_ruta->CurrentValue) != "") {
                 $sFilterWrk = "`codigo`" . ew_SearchString("=", $this->id_hoja_ruta->CurrentValue, EW_DATATYPE_NUMBER);
                 $sSqlWrk = "SELECT `codigo`, `codigo` AS `DispFld`, `fecha_ini` AS `Disp2Fld`, `Origen` AS `Disp3Fld`, '' AS `Disp4Fld` FROM `hoja_rutas`";
                 $sWhereWrk = "";
                 if ($sFilterWrk != "") {
                     ew_AddFilter($sWhereWrk, $sFilterWrk);
                 }
                 // Call Lookup selecting
                 $this->Lookup_Selecting($this->id_hoja_ruta, $sWhereWrk);
                 if ($sWhereWrk != "") {
                     $sSqlWrk .= " WHERE " . $sWhereWrk;
                 }
                 $sSqlWrk .= " ORDER BY `codigo` ASC";
                 $rswrk = $conn->Execute($sSqlWrk);
                 if ($rswrk && !$rswrk->EOF) {
                     // Lookup values found
                     $this->id_hoja_ruta->ViewValue = $rswrk->fields('DispFld');
                     $this->id_hoja_ruta->ViewValue .= ew_ValueSeparator(1, $this->id_hoja_ruta) . ew_FormatDateTime($rswrk->fields('Disp2Fld'), 7);
                     $this->id_hoja_ruta->ViewValue .= ew_ValueSeparator(2, $this->id_hoja_ruta) . $rswrk->fields('Disp3Fld');
                     $rswrk->Close();
                 } else {
                     $this->id_hoja_ruta->ViewValue = $this->id_hoja_ruta->CurrentValue;
//.........这里部分代码省略.........
开发者ID:scintes,项目名称:sistemas,代码行数:101,代码来源:gastosinfo.php


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