本文整理汇总了PHP中ew_FormatCurrency函数的典型用法代码示例。如果您正苦于以下问题:PHP ew_FormatCurrency函数的具体用法?PHP ew_FormatCurrency怎么用?PHP ew_FormatCurrency使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了ew_FormatCurrency函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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
// id_socio
// id_montos
// id_usuario
// fecha
if ($this->RowType == EW_ROWTYPE_VIEW) {
// View row
// id_socio
if (strval($this->id_socio->CurrentValue) != "") {
$sFilterWrk = "`socio_nro`" . ew_SearchString("=", $this->id_socio->CurrentValue, EW_DATATYPE_NUMBER);
$sSqlWrk = "SELECT `socio_nro`, `socio_nro` AS `DispFld`, `propietario` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `socios`";
$sWhereWrk = "";
if ($sFilterWrk != "") {
ew_AddFilter($sWhereWrk, $sFilterWrk);
}
// Call Lookup selecting
$this->Lookup_Selecting($this->id_socio, $sWhereWrk);
if ($sWhereWrk != "") {
$sSqlWrk .= " WHERE " . $sWhereWrk;
}
$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 = "";
// id_montos
if (strval($this->id_montos->CurrentValue) != "") {
$sFilterWrk = "`id`" . ew_SearchString("=", $this->id_montos->CurrentValue, EW_DATATYPE_NUMBER);
$sSqlWrk = "SELECT `id`, `descripcion` AS `DispFld`, `importe` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `montos`";
$sWhereWrk = "";
if ($sFilterWrk != "") {
ew_AddFilter($sWhereWrk, $sFilterWrk);
}
// Call Lookup selecting
$this->Lookup_Selecting($this->id_montos, $sWhereWrk);
if ($sWhereWrk != "") {
$sSqlWrk .= " WHERE " . $sWhereWrk;
}
$rswrk = $conn->Execute($sSqlWrk);
if ($rswrk && !$rswrk->EOF) {
// Lookup values found
$this->id_montos->ViewValue = $rswrk->fields('DispFld');
$this->id_montos->ViewValue .= ew_ValueSeparator(1, $this->id_montos) . ew_FormatCurrency($rswrk->fields('Disp2Fld'), 0, -2, -2, -2);
$rswrk->Close();
} else {
$this->id_montos->ViewValue = $this->id_montos->CurrentValue;
}
} else {
$this->id_montos->ViewValue = NULL;
}
$this->id_montos->ViewCustomAttributes = "";
// fecha
$this->fecha->ViewValue = $this->fecha->CurrentValue;
$this->fecha->ViewValue = ew_FormatDateTime($this->fecha->ViewValue, 7);
$this->fecha->ViewCustomAttributes = "";
// id_socio
$this->id_socio->LinkCustomAttributes = "";
$this->id_socio->HrefValue = "";
$this->id_socio->TooltipValue = "";
// id_montos
$this->id_montos->LinkCustomAttributes = "";
$this->id_montos->HrefValue = "";
$this->id_montos->TooltipValue = "";
// fecha
$this->fecha->LinkCustomAttributes = "";
$this->fecha->HrefValue = "";
$this->fecha->TooltipValue = "";
} elseif ($this->RowType == EW_ROWTYPE_SEARCH) {
// Search row
// id_socio
$this->id_socio->EditAttrs["class"] = "form-control";
$this->id_socio->EditCustomAttributes = "";
if (trim(strval($this->id_socio->AdvancedSearch->SearchValue)) == "") {
$sFilterWrk = "0=1";
} else {
$sFilterWrk = "`socio_nro`" . ew_SearchString("=", $this->id_socio->AdvancedSearch->SearchValue, EW_DATATYPE_NUMBER);
}
$sSqlWrk = "SELECT `socio_nro`, `socio_nro` AS `DispFld`, `propietario` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `socios`";
$sWhereWrk = "";
if ($sFilterWrk != "") {
ew_AddFilter($sWhereWrk, $sFilterWrk);
}
if (!$GLOBALS["socios_cuotas"]->UserIDAllow("search")) {
$sWhereWrk = $GLOBALS["socios"]->AddUserIDFilter($sWhereWrk);
}
//.........这里部分代码省略.........
开发者ID:scintes,项目名称:sistemas,代码行数:101,代码来源:cciag_socios_cuotassrch.php
示例2: 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
示例3: 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();
$this->SetupOtherOptions();
// 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 = "";
// id
$this->id->LinkCustomAttributes = "";
$this->id->HrefValue = "";
$this->id->TooltipValue = "";
// 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 = "";
}
// Call Row Rendered event
//.........这里部分代码省略.........
开发者ID:scintes,项目名称:sistemas,代码行数:101,代码来源:cciag_deudasview.php
示例4: 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
示例5: 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
示例6: RenderListRow
function RenderListRow()
{
global $conn, $Security, $gsLanguage, $Language;
// Call Row Rendering event
$this->Row_Rendering();
// Common render codes
// codigo
// fecha
// detalles
// Importe
// id_tipo_gasto
// id_hoja_ruta
// id_usuario
$this->id_usuario->CellCssStyle = "white-space: nowrap;";
// codigo
$this->codigo->ViewValue = $this->codigo->CurrentValue;
$this->codigo->ViewCustomAttributes = "";
// fecha
$this->fecha->ViewValue = $this->fecha->CurrentValue;
$this->fecha->ViewValue = ew_FormatDateTime($this->fecha->ViewValue, 7);
$this->fecha->ViewCustomAttributes = "";
// detalles
$this->detalles->ViewValue = $this->detalles->CurrentValue;
$this->detalles->ViewCustomAttributes = "";
// Importe
$this->Importe->ViewValue = $this->Importe->CurrentValue;
$this->Importe->ViewValue = ew_FormatCurrency($this->Importe->ViewValue, 2, 0, 0, -1);
$this->Importe->ViewCustomAttributes = "";
// id_tipo_gasto
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 = "";
// id_hoja_ruta
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;
}
} else {
$this->id_hoja_ruta->ViewValue = NULL;
}
}
$this->id_hoja_ruta->ViewCustomAttributes = "";
// id_usuario
$this->id_usuario->ViewValue = $this->id_usuario->CurrentValue;
$this->id_usuario->ViewCustomAttributes = "";
// codigo
//.........这里部分代码省略.........
开发者ID:scintes,项目名称:sistemas,代码行数:101,代码来源:gastosinfo.php
示例7: RenderRow
function RenderRow()
{
global $conn, $Security, $OrderDetails;
// Call Row_Rendering event
$OrderDetails->Row_Rendering();
// Common render codes for all row types
// OrderDetailsID
$OrderDetails->OrderDetailsID->CellCssStyle = "";
$OrderDetails->OrderDetailsID->CellCssClass = "";
// OrderID
$OrderDetails->OrderID->CellCssStyle = "";
$OrderDetails->OrderID->CellCssClass = "";
// CustomerID
$OrderDetails->CustomerID->CellCssStyle = "";
$OrderDetails->CustomerID->CellCssClass = "";
// ItemID
$OrderDetails->ItemID->CellCssStyle = "";
$OrderDetails->ItemID->CellCssClass = "";
// Count
$OrderDetails->Count->CellCssStyle = "";
$OrderDetails->Count->CellCssClass = "";
// VegCount
$OrderDetails->VegCount->CellCssStyle = "";
$OrderDetails->VegCount->CellCssClass = "";
// Chefs_Tasting
$OrderDetails->Chefs_Tasting->CellCssStyle = "";
$OrderDetails->Chefs_Tasting->CellCssClass = "";
if ($OrderDetails->RowType == EW_ROWTYPE_VIEW) {
// View row
// OrderDetailsID
$OrderDetails->OrderDetailsID->ViewValue = $OrderDetails->OrderDetailsID->CurrentValue;
$OrderDetails->OrderDetailsID->CssStyle = "";
$OrderDetails->OrderDetailsID->CssClass = "";
$OrderDetails->OrderDetailsID->ViewCustomAttributes = "";
// OrderID
$OrderDetails->OrderID->ViewValue = $OrderDetails->OrderID->CurrentValue;
$OrderDetails->OrderID->CssStyle = "";
$OrderDetails->OrderID->CssClass = "";
$OrderDetails->OrderID->ViewCustomAttributes = "";
// CustomerID
if (strval($OrderDetails->CustomerID->CurrentValue) != "") {
$sSqlWrk = "SELECT `LastName`, `FirstName` FROM `Customers` WHERE `CustomerID` = " . ew_AdjustSql($OrderDetails->CustomerID->CurrentValue) . "";
$sSqlWrk .= " ORDER BY `LastName` Asc";
$rswrk = $conn->Execute($sSqlWrk);
if ($rswrk && !$rswrk->EOF) {
// Lookup value(s) found
$OrderDetails->CustomerID->ViewValue = $rswrk->fields('LastName');
$OrderDetails->CustomerID->ViewValue .= ew_ValueSeparator(0) . $rswrk->fields('FirstName');
$rswrk->Close();
} else {
$OrderDetails->CustomerID->ViewValue = $OrderDetails->CustomerID->CurrentValue;
}
} else {
$OrderDetails->CustomerID->ViewValue = NULL;
}
$OrderDetails->CustomerID->CssStyle = "";
$OrderDetails->CustomerID->CssClass = "";
$OrderDetails->CustomerID->ViewCustomAttributes = "";
// ItemID
if (strval($OrderDetails->ItemID->CurrentValue) != "") {
$sSqlWrk = "SELECT `ItemName` FROM `Items` WHERE `ItemID` = " . ew_AdjustSql($OrderDetails->ItemID->CurrentValue) . "";
$sSqlWrk .= " ORDER BY `ItemName` Asc";
$rswrk = $conn->Execute($sSqlWrk);
if ($rswrk && !$rswrk->EOF) {
// Lookup value(s) found
$OrderDetails->ItemID->ViewValue = $rswrk->fields('ItemName');
$rswrk->Close();
} else {
$OrderDetails->ItemID->ViewValue = $OrderDetails->ItemID->CurrentValue;
}
} else {
$OrderDetails->ItemID->ViewValue = NULL;
}
$OrderDetails->ItemID->CssStyle = "";
$OrderDetails->ItemID->CssClass = "";
$OrderDetails->ItemID->ViewCustomAttributes = "";
// Count
$OrderDetails->Count->ViewValue = $OrderDetails->Count->CurrentValue;
$OrderDetails->Count->CssStyle = "";
$OrderDetails->Count->CssClass = "";
$OrderDetails->Count->ViewCustomAttributes = "";
// VegCount
$OrderDetails->VegCount->ViewValue = $OrderDetails->VegCount->CurrentValue;
$OrderDetails->VegCount->CssStyle = "";
$OrderDetails->VegCount->CssClass = "";
$OrderDetails->VegCount->ViewCustomAttributes = "";
// Amount
$OrderDetails->Amount->ViewValue = $OrderDetails->Amount->CurrentValue;
$OrderDetails->Amount->ViewValue = ew_FormatCurrency($OrderDetails->Amount->ViewValue, 2, -2, 0, -2);
$OrderDetails->Amount->CssStyle = "";
$OrderDetails->Amount->CssClass = "";
$OrderDetails->Amount->ViewCustomAttributes = "";
// Chefs_Tasting
if (strval($OrderDetails->Chefs_Tasting->CurrentValue) != "") {
switch ($OrderDetails->Chefs_Tasting->CurrentValue) {
case "0":
$OrderDetails->Chefs_Tasting->ViewValue = "No";
break;
case "1":
$OrderDetails->Chefs_Tasting->ViewValue = "Yes";
//.........这里部分代码省略.........
开发者ID:elliecm,项目名称:MadisonandRayne,代码行数:101,代码来源:OrderDetailslist.php
示例8: RenderRow
function RenderRow()
{
global $conn, $Security, $Items;
// Call Row_Rendering event
$Items->Row_Rendering();
// Common render codes for all row types
// ItemID
$Items->ItemID->CellCssStyle = "";
$Items->ItemID->CellCssClass = "";
// MenuID
$Items->MenuID->CellCssStyle = "";
$Items->MenuID->CellCssClass = "";
// ItemName
$Items->ItemName->CellCssStyle = "";
$Items->ItemName->CellCssClass = "";
// Description
$Items->Description->CellCssStyle = "";
$Items->Description->CellCssClass = "";
// Price
$Items->Price->CellCssStyle = "";
$Items->Price->CellCssClass = "";
// Image
$Items->Image->CellCssStyle = "";
$Items->Image->CellCssClass = "";
// Vegetarian
$Items->Vegetarian->CellCssStyle = "";
$Items->Vegetarian->CellCssClass = "";
// Vegetarian_Price
$Items->Vegetarian_Price->CellCssStyle = "";
$Items->Vegetarian_Price->CellCssClass = "";
// Color
$Items->Color->CellCssStyle = "";
$Items->Color->CellCssClass = "";
// Sequence
$Items->Sequence->CellCssStyle = "";
$Items->Sequence->CellCssClass = "";
// PDF
$Items->PDF->CellCssStyle = "";
$Items->PDF->CellCssClass = "";
// Active
$Items->Active->CellCssStyle = "";
$Items->Active->CellCssClass = "";
if ($Items->RowType == EW_ROWTYPE_VIEW) {
// View row
// ItemID
$Items->ItemID->ViewValue = $Items->ItemID->CurrentValue;
$Items->ItemID->CssStyle = "";
$Items->ItemID->CssClass = "";
$Items->ItemID->ViewCustomAttributes = "";
// MenuID
if (strval($Items->MenuID->CurrentValue) != "") {
$sSqlWrk = "SELECT `MenuName` FROM `Menus` WHERE `MenuID` = " . ew_AdjustSql($Items->MenuID->CurrentValue) . "";
$sSqlWrk .= " ORDER BY `MenuName` Asc";
$rswrk = $conn->Execute($sSqlWrk);
if ($rswrk && !$rswrk->EOF) {
// Lookup value(s) found
$Items->MenuID->ViewValue = $rswrk->fields('MenuName');
$rswrk->Close();
} else {
$Items->MenuID->ViewValue = $Items->MenuID->CurrentValue;
}
} else {
$Items->MenuID->ViewValue = NULL;
}
$Items->MenuID->CssStyle = "";
$Items->MenuID->CssClass = "";
$Items->MenuID->ViewCustomAttributes = "";
// ItemName
$Items->ItemName->ViewValue = $Items->ItemName->CurrentValue;
$Items->ItemName->CssStyle = "";
$Items->ItemName->CssClass = "";
$Items->ItemName->ViewCustomAttributes = "";
// Description
$Items->Description->ViewValue = $Items->Description->CurrentValue;
if (!is_null($Items->Description->ViewValue)) {
$Items->Description->ViewValue = str_replace("\n", "<br>", $Items->Description->ViewValue);
}
$Items->Description->CssStyle = "";
$Items->Description->CssClass = "";
$Items->Description->ViewCustomAttributes = "";
// Price
$Items->Price->ViewValue = $Items->Price->CurrentValue;
$Items->Price->ViewValue = ew_FormatCurrency($Items->Price->ViewValue, 2, -2, 0, -2);
$Items->Price->CssStyle = "";
$Items->Price->CssClass = "";
$Items->Price->ViewCustomAttributes = "";
// Image
if (!is_null($Items->Image->Upload->DbValue)) {
$Items->Image->ViewValue = $Items->Image->Upload->DbValue;
$Items->Image->ImageAlt = "";
} else {
$Items->Image->ViewValue = "";
}
$Items->Image->CssStyle = "";
$Items->Image->CssClass = "";
$Items->Image->ViewCustomAttributes = "";
// Vegetarian
if (strval($Items->Vegetarian->CurrentValue) != "") {
switch ($Items->Vegetarian->CurrentValue) {
case "0":
//.........这里部分代码省略.........
开发者ID:elliecm,项目名称:MadisonandRayne,代码行数:101,代码来源:Itemsedit.php
示例9: 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
// id_deuda
// fecha
// monto
// id_usuario
$this->id_usuario->CellCssStyle = "white-space: nowrap;";
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) . ew_FormatCurrency($rswrk->fields('Disp3Fld'), 0, -2, -2, -2);
$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 = $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
$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
$this->monto->LinkCustomAttributes = "";
$this->monto->HrefValue = "";
$this->monto->TooltipValue = "";
}
// Call Row Rendered event
if ($this->RowType != EW_ROWTYPE_AGGREGATEINIT) {
$this->Row_Rendered();
}
}
开发者ID:scintes,项目名称:sistemas,代码行数:80,代码来源:cciag_pagosdelete.php
示例10: RenderListRow
function RenderListRow()
{
global $conn, $Security;
// Call Row Rendering event
$this->Row_Rendering();
// OrderID
$this->OrderID->ViewValue = $this->OrderID->CurrentValue;
$this->OrderID->CssStyle = "";
$this->OrderID->CssClass = "";
$this->OrderID->ViewCustomAttributes = "";
// CustomerID
if (strval($this->CustomerID->CurrentValue) != "") {
$sSqlWrk = "SELECT `LastName`, `FirstName` FROM `Customers` WHERE `CustomerID` = " . ew_AdjustSql($this->CustomerID->CurrentValue) . "";
$sSqlWrk .= " ORDER BY `LastName` Asc";
$rswrk = $conn->Execute($sSqlWrk);
if ($rswrk && !$rswrk->EOF) {
// Lookup value(s) found
$this->CustomerID->ViewValue = $rswrk->fields('LastName');
$this->CustomerID->ViewValue .= ew_ValueSeparator(0) . $rswrk->fields('FirstName');
$rswrk->Close();
} else {
$this->CustomerID->ViewValue = $this->CustomerID->CurrentValue;
}
} else {
$this->CustomerID->ViewValue = NULL;
}
$this->CustomerID->CssStyle = "";
$this->CustomerID->CssClass = "";
$this->CustomerID->ViewCustomAttributes = "";
// TransactionNumber
$this->TransactionNumber->ViewValue = $this->TransactionNumber->CurrentValue;
$this->TransactionNumber->CssStyle = "";
$this->TransactionNumber->CssClass = "";
$this->TransactionNumber->ViewCustomAttributes = "";
// DateOrdered
$this->DateOrdered->ViewValue = $this->DateOrdered->CurrentValue;
$this->DateOrdered->ViewValue = ew_FormatDateTime($this->DateOrdered->ViewValue, 6);
$this->DateOrdered->CssStyle = "";
$this->DateOrdered->CssClass = "";
$this->DateOrdered->ViewCustomAttributes = "";
// Total
$this->Total->ViewValue = $this->Total->CurrentValue;
$this->Total->ViewValue = ew_FormatCurrency($this->Total->ViewValue, 2, -2, 0, -2);
$this->Total->CssStyle = "";
$this->Total->CssClass = "";
$this->Total->ViewCustomAttributes = "";
// DeliveryDate
$this->DeliveryDate->ViewValue = $this->DeliveryDate->CurrentValue;
$this->DeliveryDate->ViewValue = ew_FormatDateTime($this->DeliveryDate->ViewValue, 6);
$this->DeliveryDate->CssStyle = "";
$this->DeliveryDate->CssClass = "";
$this->DeliveryDate->ViewCustomAttributes = "";
// PromoCodeID
if (strval($this->PromoCodeID->CurrentValue) != "") {
$sSqlWrk = "SELECT `PromoCodeName` FROM `PromoCodes` WHERE `PromoCodeID` = " . ew_AdjustSql($this->PromoCodeID->CurrentValue) . "";
$sSqlWrk .= " ORDER BY `PromoCodeName` Asc";
$rswrk = $conn->Execute($sSqlWrk);
if ($rswrk && !$rswrk->EOF) {
// Lookup value(s) found
$this->PromoCodeID->ViewValue = $rswrk->fields('PromoCodeName');
$rswrk->Close();
} else {
$this->PromoCodeID->ViewValue = $this->PromoCodeID->CurrentValue;
}
} else {
$this->PromoCodeID->ViewValue = NULL;
}
$this->PromoCodeID->CssStyle = "";
$this->PromoCodeID->CssClass = "";
$this->PromoCodeID->ViewCustomAttributes = "";
// Sequence
$this->Sequence->ViewValue = $this->Sequence->CurrentValue;
$this->Sequence->CssStyle = "";
$this->Sequence->CssClass = "";
$this->Sequence->ViewCustomAttributes = "";
// OrderID
$this->OrderID->HrefValue = "";
// CustomerID
$this->CustomerID->HrefValue = "";
// TransactionNumber
$this->TransactionNumber->HrefValue = "";
// DateOrdered
$this->DateOrdered->HrefValue = "";
// Total
$this->Total->HrefValue = "";
// DeliveryDate
$this->DeliveryDate->HrefValue = "";
// PromoCodeID
$this->PromoCodeID->HrefValue = "";
// Sequence
$this->Sequence->HrefValue = "";
// Call Row Rendered event
$this->Row_Rendered();
}
开发者ID:elliecm,项目名称:MadisonandRayne,代码行数:94,代码来源:Ordersinfo.php
示例11: 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_deuda
// detalle
// importe
if ($this->RowType == EW_ROWTYPE_VIEW) {
// View row
// id_deuda
if (strval($this->id_deuda->CurrentValue) != "") {
$sFilterWrk = "`id`" . e
|
请发表评论