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


PHP OperationData::GetQYesF方法代码示例

本文整理汇总了PHP中OperationData::GetQYesF方法的典型用法代码示例。如果您正苦于以下问题:PHP OperationData::GetQYesF方法的具体用法?PHP OperationData::GetQYesF怎么用?PHP OperationData::GetQYesF使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在OperationData的用法示例。


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

示例1: array

<?php

include "../core/autoload.php";
include "../core/modules/index/model/ProductData.php";
include "../core/modules/index/model/CategoryData.php";
include "../core/modules/index/model/OperationData.php";
include "../core/modules/index/model/OperationTypeData.php";
require_once '../PhpWord/Autoloader.php';
use PhpOffice\PhpWord\Autoloader;
use PhpOffice\PhpWord\Settings;
Autoloader::register();
$word = new PhpOffice\PhpWord\PhpWord();
$product = ProductData::getById($_GET["id"]);
$operations = OperationData::getAllByProductId($product->id);
$entradas = OperationData::GetInputQYesF($product->id);
$disponibles = OperationData::GetQYesF($product->id);
$salidas = -1 * OperationData::GetOutputQYesF($product->id);
$section1 = $word->AddSection();
$section1->addText($product->name, array("size" => 22, "bold" => true, "align" => "right"));
$section1->addText("Historial del Producto", array("size" => 14, "bold" => true, "align" => "right"));
$styleTable = array('borderSize' => 6, 'borderColor' => '888888', 'cellMargin' => 40);
$styleFirstRow = array('borderBottomColor' => '0000FF', 'bgColor' => 'AAAAAA');
$table0 = $section1->addTable("table0");
$table0->addRow();
$table0->addCell()->addText("Entradas");
$table0->addCell()->addText("Disponibles");
$table0->addCell()->addText("Salidas");
$table0->addRow();
$table0->addCell(4000)->addText($entradas);
$table0->addCell(4000)->addText($disponibles);
$table0->addCell(4000)->addText($salidas);
开发者ID:proyectoseb,项目名称:facturacion,代码行数:31,代码来源:history-word.php

示例2:

	<h1><?php 
    echo $itotal;
    ?>
</h1>
</center>
</div>

<br>
<?php 
    ?>

</div>

	<div class="col-md-4">
	<?php 
    $total = OperationData::GetQYesF($product->id, $_GET["cutid"]);
    ?>
<div class="jumbotron">
<center>
	<h2>Disponibles</h2>
	<h1><?php 
    echo $total;
    ?>
</h1>
</center>
</div>
<div class="clearfix"></div>
<br>
<?php 
    ?>
开发者ID:evilnapsis,项目名称:cazueliyas,代码行数:30,代码来源:widget-default.php

示例3:

	<div class="col-md-12">
<a href="" class="btn btn-default pull-right btn-lg">Sin Factura</a>

<h1><?php 
    echo $product->name;
    ?>
 <small>Operaciones con factura</small></h1>
	</div>
	</div>

<div class="row">
	<div class="col-md-4">
	<?php 
    $total = OperationData::GetQ($product->id, $cut->id);
    $no_oficial = OperationData::GetQNoF($product->id, $cut->id);
    $oficial = OperationData::GetQYesF($product->id, $cut->id);
    $nof100 = 0;
    $of100 = 0;
    if ($no_oficial > 0) {
        $nof100 = $no_oficial / $total;
    }
    if ($oficial > 0) {
        $of100 = $oficial / $total;
    }
    ?>
	<h1 class="pull-right"><?php 
    echo $total;
    ?>
</h1>
	<h2>General</h2>
开发者ID:leanet,项目名称:inventio-lite,代码行数:30,代码来源:widget-default.php

示例4:

	<h1><?php 
    echo $itotal;
    ?>
</h1>
</center>
</div>

<br>
<?php 
    ?>

</div>

	<div class="col-md-4">
	<?php 
    $total = OperationData::GetQYesF($product->id);
    ?>
<div class="jumbotron">
<center>
	<h2>Disponibles</h2>
	<h1><?php 
    echo $total;
    ?>
</h1>
</center>
</div>
<div class="clearfix"></div>
<br>
<?php 
    ?>
开发者ID:kpocha,项目名称:inventio-lite,代码行数:30,代码来源:widget-default.php


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