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


PHP CommandeFournisseur::getLibStatut方法代码示例

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


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

示例1: selectSupplierOrderStatus

 /**
  *    Return combo list of differents status of a orders
  *
  *    @param	string	$selected   Preselected value
  *    @param	int		$short		Use short labels
  *    @param	string	$hmlname	Name of HTML select element
  *    @return	void
  */
 function selectSupplierOrderStatus($selected = '', $short = 0, $hmlname = 'order_status')
 {
     $tmpsupplierorder = new CommandeFournisseur($db);
     print '<select class="flat" name="' . $hmlname . '">';
     print '<option value="-1">&nbsp;</option>';
     $statustohow = array('0' => '0', '1' => '1', '2' => '2', '3' => '3', '4' => '4', '5' => '5', '6' => '6,7', '9' => '9');
     // 7 is same label than 6. 8 does not exists (billed is another field)
     foreach ($statustohow as $key => $value) {
         print '<option value="' . $value . '"' . ($selected == $key || $selected == $value ? ' selected' : '') . '>';
         $tmpsupplierorder->statut = $key;
         print $tmpsupplierorder->getLibStatut($short);
         print '</option>';
     }
     print '</select>';
 }
开发者ID:Albertopf,项目名称:prueba,代码行数:23,代码来源:html.formorder.class.php

示例2: while

                $var = True;
                while ($i < $num && $i < $conf->liste_limit) {
                    $objp = $db->fetch_object($result);
                    $var = !$var;
                    $commandestatic->id = $objp->commandeid;
                    $commandestatic->ref = $objp->ref;
                    $commandestatic->statut = $objp->statut;
                    print "<tr " . $bc[$var] . ">";
                    print '<td>' . $commandestatic->getNomUrl(1) . "</td>\n";
                    print "</a></td>\n";
                    print '<td><a href="' . DOL_URL_ROOT . '/fourn/card.php?socid=' . $objp->socid . '">' . img_object($langs->trans("ShowCompany"), "company") . ' ' . dol_trunc($objp->name, 44) . '</a></td>';
                    print "<td>" . $objp->code_client . "</td>\n";
                    print '<td align="center">' . dol_print_date($db->jdate($objp->date_commande)) . "</td>";
                    print "<td align=\"center\">" . $objp->qty . "</td>\n";
                    print '<td align="right">' . price($objp->total_ht) . "</td>\n";
                    print '<td align="right">' . $commandestatic->getLibStatut(4) . '</td>';
                    print "</tr>\n";
                    $i++;
                }
            }
        } else {
            dol_print_error($db);
        }
        print "</table>";
        print '<br>';
        $db->free($result);
    }
} else {
    dol_print_error();
}
llxFooter();
开发者ID:ADDAdev,项目名称:Dolibarr,代码行数:31,代码来源:commande_fournisseur.php

示例3: price

         $var = !$var;
         print '<tr ' . $bc[$var] . '>';
         print '<td>';
         $supplierorderstatic->id = $objp->commandeid;
         $supplierorderstatic->ref = $objp->ref;
         $supplierorderstatic->statut = $objp->statut;
         print $supplierorderstatic->getNomUrl(1);
         print "</td>\n";
         $societestatic->fetch($objp->socid);
         print '<td>' . $societestatic->getNomUrl(1) . '</td>';
         print "<td>" . $objp->code_client . "</td>\n";
         print '<td align="center">';
         print dol_print_date($db->jdate($objp->date_commande)) . "</td>";
         print '<td align="center">' . $objp->qty . "</td>\n";
         print '<td align="right">' . price($objp->total_ht) . "</td>\n";
         print '<td align="right">' . $supplierorderstatic->getLibStatut(4) . '</td>';
         print "</tr>\n";
         $i++;
         if (!empty($conf->global->MAIN_DISABLE_FULL_SCANLIST)) {
             $total_ht += $objp->total_ht;
             $total_qty += $objp->qty;
         }
     }
 }
 print '<tr class="liste_total">';
 print '<td>' . $langs->trans('Total') . '</td>';
 print '<td colspan="3"></td>';
 print '<td align="center">' . $total_qty . '</td>';
 print '<td align="right">' . price($total_ht) . '</td>';
 print '<td></td>';
 print "</table>";
开发者ID:Samara94,项目名称:dolibarr,代码行数:31,代码来源:commande_fournisseur.php

示例4: Product

 $documentstatic->id = $objp->doc_id;
 $documentstatic->ref = $objp->doc_number;
 $documentstatic->type = $objp->type;
 $documentstatic->fk_statut = $objp->status;
 $documentstatic->fk_status = $objp->status;
 $documentstatic->statut = $objp->status;
 $documentstatic->status = $objp->status;
 $var = !$var;
 print "<tr " . $bc[$var] . ">";
 print '<td class="nobordernopadding nowrap" width="100">';
 print $documentstatic->getNomUrl(1);
 print '</td>';
 print '<td align="center" width="80">' . dol_print_date($db->jdate($objp->dateprint), 'day') . '</td>';
 // Status
 print '<td align="center">';
 print $documentstatic->getLibStatut(2);
 print '</td>';
 print '<td>';
 // Define text, description and type
 $text = '';
 $description = '';
 $type = 0;
 // Code to show product duplicated from commonobject->printObjectLine
 if ($objp->fk_product > 0) {
     $product_static = new Product($db);
     $product_static->type = $objp->fk_product_type;
     $product_static->id = $objp->fk_product;
     $product_static->ref = $objp->ref;
     $text = $product_static->getNomUrl(1);
 }
 // Product
开发者ID:ADDAdev,项目名称:Dolibarr,代码行数:31,代码来源:consumption.php

示例5: _fiche

function _fiche(&$PDOdb, &$assetOf, $mode = 'edit', $fk_product_to_add = 0, $fk_nomenclature = 0)
{
    global $langs, $db, $conf, $user, $hookmanager;
    /***************************************************
     * PAGE
     *
     * Put here all code to build page
     ****************************************************/
    $parameters = array('id' => $assetOf->getId());
    $reshook = $hookmanager->executeHooks('doActions', $parameters, $assetOf, $mode);
    // Note that $action and $object may have been modified by hook
    //pre($assetOf,true);
    llxHeader('', $langs->trans('OFAsset'), '', '');
    print dol_get_fiche_head(ofPrepareHead($assetOf, 'assetOF'), 'fiche', $langs->trans('OFAsset'));
    ?>
<style type="text/css">
		#assetChildContener .OFMaster {
			
			background:#fff;
			-webkit-box-shadow: 4px 4px 5px 0px rgba(50, 50, 50, 0.52);
			-moz-box-shadow:    4px 4px 5px 0px rgba(50, 50, 50, 0.52);
			box-shadow:         4px 4px 5px 0px rgba(50, 50, 50, 0.52);
			
			margin-bottom:20px;
		}
		
	</style>
		<div class="OFContent" rel="<?php 
    echo $assetOf->getId();
    ?>
">	<?php 
    $TPrixFournisseurs = array();
    //$form=new TFormCore($_SERVER['PHP_SELF'],'formeq'.$assetOf->getId(),'POST');
    //Affichage des erreurs
    if (!empty($assetOf->errors)) {
        ?>
		<br><div class="error">
		<?php 
        foreach ($assetOf->errors as $error) {
            echo $error . "<br>";
            setEventMessage($error, 'errors');
        }
        $assetOf->errors = array();
        ?>
		</div><br>
		<?php 
    }
    $form = new TFormCore();
    $form->Set_typeaff($mode);
    $doliform = new Form($db);
    if (!empty($_REQUEST['fk_product'])) {
        echo $form->hidden('fk_product', $_REQUEST['fk_product']);
    }
    $TBS = new TTemplateTBS();
    $liste = new TListviewTBS('asset');
    $TBS->TBS->protect = false;
    $TBS->TBS->noerr = true;
    $PDOdb = new TPDOdb();
    $TNeeded = array();
    $TToMake = array();
    $TNeeded = _fiche_ligne($form, $assetOf, "NEEDED");
    $TToMake = _fiche_ligne($form, $assetOf, "TO_MAKE");
    $TIdCommandeFourn = $assetOf->getElementElement($PDOdb);
    $HtmlCmdFourn = '';
    if (count($TIdCommandeFourn)) {
        foreach ($TIdCommandeFourn as $idcommandeFourn) {
            $cmd = new CommandeFournisseur($db);
            $cmd->fetch($idcommandeFourn);
            $HtmlCmdFourn .= $cmd->getNomUrl(1) . " - " . $cmd->getLibStatut(0);
        }
    }
    ob_start();
    $doliform->select_produits('', 'fk_product', '', $conf->product->limit_size, 0, -1, 2, '', 3, array());
    $select_product = ob_get_clean();
    $Tid = array();
    //$Tid[] = $assetOf->rowid;
    if ($assetOf->getId() > 0) {
        $assetOf->getListeOFEnfants($PDOdb, $Tid);
    }
    $TWorkstation = array();
    foreach ($assetOf->TAssetWorkstationOF as $k => &$TAssetWorkstationOF) {
        $ws =& $TAssetWorkstationOF->ws;
        $TWorkstation[] = array('libelle' => '<a href="' . dol_buildpath('workstation/workstation.php?id=' . $ws->rowid . '&action=view', 2) . '">' . $ws->name . '</a>', 'fk_user' => visu_checkbox_user($PDOdb, $form, $ws->fk_usergroup, $TAssetWorkstationOF->users, 'TAssetWorkstationOF[' . $k . '][fk_user][]', $assetOf->status), 'fk_project_task' => visu_project_task($db, $TAssetWorkstationOF->fk_project_task, $form->type_aff, 'TAssetWorkstationOF[' . $k . '][progress]'), 'fk_task' => visu_checkbox_task($PDOdb, $form, $TAssetWorkstationOF->fk_asset_workstation, $TAssetWorkstationOF->tasks, 'TAssetWorkstationOF[' . $k . '][fk_task][]', $assetOf->status), 'nb_hour' => $assetOf->status == 'DRAFT' && $mode == "edit" ? $form->texte('', 'TAssetWorkstationOF[' . $k . '][nb_hour]', $TAssetWorkstationOF->nb_hour, 3, 10) : ($conf->global->ASSET_USE_CONVERT_TO_TIME ? convertSecondToTime($TAssetWorkstationOF->nb_hour * 3600) : price($TAssetWorkstationOF->nb_hour)), 'nb_hour_real' => $assetOf->status == 'OPEN' && $mode == "edit" ? $form->texte('', 'TAssetWorkstationOF[' . $k . '][nb_hour_real]', $TAssetWorkstationOF->nb_hour_real, 3, 10) : ($conf->global->ASSET_USE_CONVERT_TO_TIME ? convertSecondToTime($TAssetWorkstationOF->nb_hour_real * 3600) : price($TAssetWorkstationOF->nb_hour_real)), 'nb_days_before_beginning' => $assetOf->status == 'DRAFT' && $mode == "edit" ? $form->texte('', 'TAssetWorkstationOF[' . $k . '][nb_days_before_beginning]', $TAssetWorkstationOF->nb_days_before_beginning, 3, 10) : $TAssetWorkstationOF->nb_days_before_beginning, 'delete' => $mode == 'edit' && $assetOf->status == 'DRAFT' ? '<a href="javascript:deleteWS(' . $assetOf->getId() . ',' . $TAssetWorkstationOF->getId() . ');">' . img_picto('Supprimer', 'delete.png') . '</a>' : '', 'note_private' => $assetOf->status == 'DRAFT' && $mode == 'edit' ? $form->zonetexte('', 'TAssetWorkstationOF[' . $k . '][note_private]', $TAssetWorkstationOF->note_private, 50, 1) : $TAssetWorkstationOF->note_private, 'rang' => $assetOf->status == 'DRAFT' && $mode == "edit" ? $form->texte('', 'TAssetWorkstationOF[' . $k . '][rang]', $TAssetWorkstationOF->rang, 3, 10) : $TAssetWorkstationOF->rang, 'id' => $ws->getId());
    }
    $client = new Societe($db);
    if ($assetOf->fk_soc > 0) {
        $client->fetch($assetOf->fk_soc);
    }
    $commande = new Commande($db);
    if ($assetOf->fk_commande > 0) {
        $commande->fetch($assetOf->fk_commande);
    }
    $TOFParent = array_merge(array(0 => ''), $assetOf->getCanBeParent($PDOdb));
    $hasParent = false;
    if (!empty($assetOf->fk_assetOf_parent)) {
        $TAssetOFParent = new TAssetOF();
        $TAssetOFParent->load($PDOdb, $assetOf->fk_assetOf_parent);
        $hasParent = true;
    }
    $parameters = array('id' => $assetOf->getId());
//.........这里部分代码省略.........
开发者ID:ATM-Consulting,项目名称:dolibarr_module_of,代码行数:101,代码来源:fiche_of.php


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