3require_once(
$_SERVER[
"DOCUMENT_ROOT"].
"/bitrix/modules/support/classes/general/sla.php");
16 $arSqlSearch = Array();
22 $filterKeysCount =
count($filterKeys);
23 for (
$i=0;
$i<$filterKeysCount;
$i++)
32 $matchValueSet = (in_array(
$key.
"_EXACT_MATCH", $filterKeys)) ?
true :
false;
43 $match = (
$arFilter[
$key.
"_EXACT_MATCH"]==
"N" && $matchValueSet) ?
"Y" :
"N";
48 case "DEADLINE_SOURCE":
49 $match = (
$arFilter[
$key.
"_EXACT_MATCH"]==
"Y" && $matchValueSet) ?
"N" :
"Y";
54 $match = (
$arFilter[
$key.
"_EXACT_MATCH"]==
"N" && $matchValueSet) ?
"Y" :
"N";
56 $left_join_site =
"LEFT JOIN b_ticket_sla_2_site SS ON (S.ID = SS.SLA_ID)";
66 $arSort = is_array($arSort) ? $arSort :
array();
69 $ar1 = array_merge(
$DB->GetTableFieldsList(
"b_ticket_sla"),
array());
70 $ar2 = array_keys($arSort);
71 $arDiff = array_diff($ar2, $ar1);
72 if (is_array($arDiff) &&
count($arDiff)>0)
74 foreach($arDiff as $value)
76 unset($arSort[$value]);
80 if (
count($arSort)<=0)
82 $arSort =
array(
"PRIORITY" =>
"DESC");
84 foreach ($arSort as $by =>
$order)
86 if(mb_strtoupper(
$order) !=
"DESC" )
90 if ($by==
"RESPONSE_TIME")
92 $arSqlOrder[] =
"case RESPONSE_TIME_UNIT when 'day' then 3 when 'hour' then 2 when 'minute' then 1 end $order";
93 $arSqlOrder[] = $by.
" ".
$order;
97 $arSqlOrder[] = $by.
" ".
$order;
100 if (is_array($arSqlOrder) &&
count($arSqlOrder)>0)
102 $strSqlOrder =
" ORDER BY ".implode(
",", $arSqlOrder);
108 case S.RESPONSE_TIME_UNIT
109 when 'day' then S.RESPONSE_TIME*1440
110 when 'hour' then S.RESPONSE_TIME*60
111 when 'minute' then S.RESPONSE_TIME
113 case S.NOTICE_TIME_UNIT
114 when 'day' then S.NOTICE_TIME*1440
115 when 'hour' then S.NOTICE_TIME*60
116 when 'minute' then S.NOTICE_TIME
120 ".$DB->DateToCharFunction(
"S.DATE_MODIFY").
" DATE_MODIFY_F,
121 ".
$DB->DateToCharFunction(
"S.DATE_CREATE").
" DATE_CREATE_F
130 $rs =
$DB->Query($strSql);
static CheckFilter($arFilter)
static GetList(&$arSort, $arFilter=Array(), &$isFiltered)
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
$_SERVER["DOCUMENT_ROOT"]
if(empty($signedUserToken)) $key
</p ></td >< td valign=top style='border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 2.0pt 0cm 2.0pt;height:9.0pt'>< p class=Normal align=center style='margin:0cm;margin-bottom:.0001pt;text-align:center;line-height:normal'>< a name=ТекстовоеПоле54 ></a ><?=($taxRate > count( $arTaxList) > 0) ? $taxRate."%"