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


PHP org::findAll_business方法代码示例

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


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

示例1: org

if (!empty($_GET['org_type']) && $_GET['org_type'] == 'enterprise_org') {
    $org = new org();
    $enterprises = $org->findAll_enterprise();
    if (count($enterprises) == 0) {
        return false;
    } else {
        echo header('Content-Type: application/json');
        echo json_encode($enterprises);
    }
}
?>

<?php 
if (!empty($_GET['org_type']) && $_GET['org_type'] == 'business_org') {
    $org = new org();
    $business_orgs = $org->findAll_business();
    if (count($business_orgs) == 0) {
        return false;
    } else {
        echo header('Content-Type: application/json');
        echo json_encode($business_orgs);
    }
}
?>


<?php 
if (!empty($_GET['org_type']) && $_GET['org_type'] == 'inventory_org') {
    $org = new org();
    $inventory_orgs = $org->findAll_inventory();
    if (count($inventory_orgs) == 0) {
开发者ID:moxymokaya,项目名称:inoERP,代码行数:31,代码来源:json_org.php

示例2: switch

</li>
           </ul>
          </td>
          <td><?php 
    form::number_field_wid2sr('sys_profile_line_id');
    ?>
</td>
          <?php 
    switch ($profile_level) {
        case 'SITE':
            echo "<td>";
            echo $f->text_field('level_name', 'SITE', '', '', '', 1, 1) . '</td><td>';
            break;
        case 'BUSINESS':
            echo "<td>";
            echo $f->select_field_from_object('level_name', $org->findAll_business(), 'org_id', 'org', ${$class_second}->level_name, '', '', 1) . "</td><td>";
            break;
        case 'INVENTORY':
            echo "<td>";
            echo $f->select_field_from_object('level_name', $org->findAll_inventory(), 'org_id', 'org', ${$class_second}->level_name, '', '', 1) . "</td><td>";
            break;
        case 'USER':
            echo '<td>';
            echo $f->select_field_from_object('level_name', user::find_all(), 'user_id', 'username', ${$class_second}->level_name, '', '', 1) . "</td><td>";
            break;
    }
    if (empty($line_values)) {
        echo $f->text_field_wid2('level_value') . '</td>';
    } else {
        echo $f->select_field_from_object('level_value', $line_values, $line_key, $line_desc, ${$class_second}->level_value, '', '', '') . "</td>";
    }
开发者ID:ac3gam3r,项目名称:inoERP,代码行数:31,代码来源:profile_template.php

示例3: empty

    form::number_field_widsr('bc_label_auto_trigger_id');
    ?>
</td>
          <td><?php 
    echo $f->select_field_from_object('sys_printer_id', sys_printer::find_all(), 'sys_printer_id', 'printer_name', ${$class}->sys_printer_id);
    ?>
</td>
          <td>
           <?php 
    $association_level = empty($bc_label_auto_trigger->association_level) ? $association_level : $bc_label_auto_trigger->association_level;
    switch ($association_level) {
        case 'SITE':
            echo $f->text_field('association_level_value', 'SITE', '', '', '', 1, 1);
            break;
        case 'BUSINESS':
            echo $f->select_field_from_object('association_level_value', $org->findAll_business(), 'org_id', 'org', ${$class}->association_level_value, '', '', 1);
            break;
        case 'INVENTORY':
            echo $f->select_field_from_object('association_level_value', $org->findAll_inventory(), 'org_id', 'org', ${$class}->association_level_value, '', '', 1);
            break;
        case 'FROM_SUBINV':
            $org_id_sub = null;
            if (!empty(${$class}->association_level_value)) {
                $subinv_i = subinventory::find_by_id(${$class}->association_level_value);
                $org_id_sub = $subinv_i->org_id;
            }
            echo $f->select_field_from_object('', $org->findAll_inventory(), 'org_id', 'org', $org_id_sub, '', 'org_id', 1);
            echo '</td><td>';
            echo $f->select_field_from_object('association_level_value', subinventory::find_all(), 'subinventory_id', array('subinventory', 'org_id'), ${$class}->association_level_value, '', 'subinventory_id', 1);
            break;
        case 'USER':
开发者ID:moxymokaya,项目名称:inoERP,代码行数:31,代码来源:auto_trigger_template.php


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