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


PHP CSaleOrder::GetHistoryList方法代码示例

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


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

示例1: date

		$filters_date_history_to = date($DB->DateFormatToPHP(CSite::GetDateFormat("FULL", SITE_ID)), mktime($arDate["HH"], $arDate["MI"], $arDate["SS"], $arDate["MM"], $arDate["DD"], $arDate["YYYY"]));
		$arFilterHistory["DATE_CREATE_TO"] = $filters_date_history_to;
	}
	else
		$filters_date_history_to = "";
}

$arHistoryData = array();
$bUseOldHistory = false;

// collect records from old history to show in the new order changes list
$dbHistory = CSaleOrder::GetHistoryList(
	array("H_DATE_INSERT" => "DESC"),
	array("H_ORDER_ID" => $ID),
	false,
	false,
	array("*")
);

while ($arHistory = $dbHistory->Fetch())
{
	$res = convertHistoryToNewFormat($arHistory);

	if ($res)
	{
		$arHistoryData[] = $res;
		$bUseOldHistory = true;
	}
}
开发者ID:akniyev,项目名称:arteva.ru,代码行数:29,代码来源:order_detail.php

示例2: Trim

    $arFilterHistory["H_DATE_INSERT_FROM"] = Trim($filters_date_history_from);
}
if (strlen($filters_date_history_to) > 0) {
    if ($arDate = ParseDateTime($filters_date_history_to, CSite::GetDateFormat("FULL", SITE_ID))) {
        if (StrLen($filters_date_history_to) < 11) {
            $arDate["HH"] = 23;
            $arDate["MI"] = 59;
            $arDate["SS"] = 59;
        }
        $filters_date_history_to = date($DB->DateFormatToPHP(CSite::GetDateFormat("FULL", SITE_ID)), mktime($arDate["HH"], $arDate["MI"], $arDate["SS"], $arDate["MM"], $arDate["DD"], $arDate["YYYY"]));
        $arFilterHistory["H_DATE_INSERT_TO"] = $filters_date_history_to;
    } else {
        $filters_date_history_to = "";
    }
}
$dbHistory = CSaleOrder::GetHistoryList($arHistSort, $arFilterHistory, false, false, array("*"));
$dbHistory = new CAdminResult($dbHistory, $sTableID_tab5);
$dbHistory->NavStart();
$lAdmin_tab5->NavText($dbHistory->GetNavPrint(GetMessage('SOD_HIST_LIST')));
$histdHeader = array(array("id" => "H_DATE_INSERT", "content" => GetMessage("SOD_HIST_H_DATE"), "sort" => "H_DATE_INSERT", "default" => true), array("id" => "H_USER_ID", "content" => GetMessage("SOD_HIST_H_USER"), "sort" => "H_USER_ID", "default" => true), array("id" => "STATUS_ID", "content" => $arFieldsAll["STATUS_ID"], "sort" => "STATUS_ID", "default" => true), array("id" => "PAYED", "content" => $arFieldsAll["PAYED"], "sort" => "PAYED", "default" => true), array("id" => "ALLOW_DELIVERY", "content" => $arFieldsAll["ALLOW_DELIVERY"], "sort" => "ALLOW_DELIVERY", "default" => true), array("id" => "CANCELED", "content" => $arFieldsAll["CANCELED"], "sort" => "CANCELED", "default" => true), array("id" => "DEDUCTED", "content" => $arFieldsAll["DEDUCTED"], "sort" => "DEDUCTED", "default" => true), array("id" => "MARKED", "content" => $arFieldsAll["MARKED"], "sort" => "MARKED", "default" => true), array("id" => "PRICE", "content" => $arFieldsAll["PRICE"], "sort" => "PRICE", "default" => true), array("id" => "MORE", "content" => GetMessage("SOD_HIST_H_MORE"), "sort" => "", "default" => true));
$lAdmin_tab5->AddHeaders($histdHeader);
$arDeleteFields = array("ID", "H_USER_ID", "H_DATE_INSERT", "H_CURRENCY", "H_ORDER_ID", "EMP_CANCELED_ID", "EMP_DEDUCTED_ID", "EMP_MARKED_ID", "EMP_STATUS_ID", "EMP_ALLOW_DELIVERY_ID", "STATUS_ID", "PAYED", "ALLOW_DELIVERY", "CANCELED", "DEDUCTED", "MARKED", "PRICE");
while ($arHistory = $dbHistory->Fetch()) {
    $row =& $lAdmin_tab5->AddRow($arHistory["ID"], $arHistory, '', '');
    $stmp = MakeTimeStamp($arHistory["H_DATE_INSERT"], "DD.MM.YYYY HH:MI:SS");
    $row->AddField("H_DATE_INSERT", date("d.m.Y H:i", $stmp));
    $row->AddField("H_USER_ID", GetFormatedUserName($arHistory["H_USER_ID"], false));
    $payed = "";
    if ($arHistory["PAYED"] == "Y") {
        $payed = GetMessage("SOD_HIST_YES");
    } elseif ($arHistory["PAYED"] == "N") {
开发者ID:k-kalashnikov,项目名称:geekcon_new,代码行数:31,代码来源:order_detail.php


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