updated to new version of Ezc
git-svn-id: svn://ttmath.org/publicrep/winix/trunk@602 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -20,7 +20,7 @@ namespace TemplatesFunctions
|
||||
|
||||
void ticket_is(Info & i)
|
||||
{
|
||||
i.result = request.is_ticket;
|
||||
i.res = request.is_ticket;
|
||||
}
|
||||
|
||||
|
||||
@@ -28,13 +28,13 @@ void ticket_is(Info & i)
|
||||
|
||||
void ticket_can_create(Info & i)
|
||||
{
|
||||
i.result = request.CanCreateTicket(true);
|
||||
i.res = request.CanCreateTicket(true);
|
||||
}
|
||||
|
||||
|
||||
void ticket_can_edit(Info & i)
|
||||
{
|
||||
i.result = request.CanEditTicket();
|
||||
i.res = request.CanEditTicket();
|
||||
}
|
||||
|
||||
|
||||
@@ -93,7 +93,7 @@ void ticket_tab(Info & i)
|
||||
{
|
||||
ticket_tab_index = i.iter;
|
||||
|
||||
i.result = ticket_tab_index < request.ticket_tab.size();
|
||||
i.res = ticket_tab_index < request.ticket_tab.size();
|
||||
}
|
||||
|
||||
|
||||
@@ -138,14 +138,14 @@ void ticket_tab_subject(Info & i)
|
||||
|
||||
void ticket_tab_subject_empty(Info & i)
|
||||
{
|
||||
i.result = true;
|
||||
i.res = true;
|
||||
|
||||
if( ticket_tab_index < request.ticket_tab.size() )
|
||||
{
|
||||
Item * dir = data.dirs.GetDir( request.ticket_tab[ticket_tab_index].dir_id );
|
||||
|
||||
if( dir )
|
||||
i.result = dir->subject.empty();
|
||||
i.res = dir->subject.empty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -269,13 +269,13 @@ void ticket_type_tab(Info & i)
|
||||
{
|
||||
ticket_type_tab_ind = i.iter;
|
||||
|
||||
i.result = ticket_type_tab_ind < data.mounts.pmount->param[Mount::par_ticket_type].arg.size();
|
||||
i.res = ticket_type_tab_ind < data.mounts.pmount->param[Mount::par_ticket_type].arg.size();
|
||||
}
|
||||
|
||||
|
||||
void ticket_type_tab_defined(Info & i)
|
||||
{
|
||||
i.result = data.mounts.pmount->param[Mount::par_ticket_type].defined;
|
||||
i.res = data.mounts.pmount->param[Mount::par_ticket_type].defined;
|
||||
}
|
||||
|
||||
|
||||
@@ -283,7 +283,7 @@ void ticket_type_tab_isdefault(Info & i)
|
||||
{
|
||||
if( request.is_ticket )
|
||||
{
|
||||
i.result = (ticket_type_tab_ind == request.ticket.type);
|
||||
i.res = (ticket_type_tab_ind == request.ticket.type);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -293,7 +293,7 @@ void ticket_type_tab_isdefault(Info & i)
|
||||
return; // default false
|
||||
|
||||
size_t value = atoi( p.arg[0].c_str() );
|
||||
i.result = (ticket_type_tab_ind == value);
|
||||
i.res = (ticket_type_tab_ind == value);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -321,13 +321,13 @@ void ticket_status_tab(Info & i)
|
||||
{
|
||||
ticket_status_tab_ind = i.iter;
|
||||
|
||||
i.result = ticket_status_tab_ind < data.mounts.pmount->param[Mount::par_ticket_status].arg.size();
|
||||
i.res = ticket_status_tab_ind < data.mounts.pmount->param[Mount::par_ticket_status].arg.size();
|
||||
}
|
||||
|
||||
|
||||
void ticket_status_tab_defined(Info & i)
|
||||
{
|
||||
i.result = data.mounts.pmount->param[Mount::par_ticket_status].defined;
|
||||
i.res = data.mounts.pmount->param[Mount::par_ticket_status].defined;
|
||||
}
|
||||
|
||||
|
||||
@@ -335,7 +335,7 @@ void ticket_status_tab_isdefault(Info & i)
|
||||
{
|
||||
if( request.is_ticket )
|
||||
{
|
||||
i.result = (ticket_status_tab_ind == request.ticket.status);
|
||||
i.res = (ticket_status_tab_ind == request.ticket.status);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -345,7 +345,7 @@ void ticket_status_tab_isdefault(Info & i)
|
||||
return; // default false
|
||||
|
||||
size_t value = atoi( p.arg[0].c_str() );
|
||||
i.result = (ticket_status_tab_ind == value);
|
||||
i.res = (ticket_status_tab_ind == value);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -372,13 +372,13 @@ void ticket_priority_tab(Info & i)
|
||||
{
|
||||
ticket_priority_tab_ind = i.iter;
|
||||
|
||||
i.result = ticket_priority_tab_ind < data.mounts.pmount->param[Mount::par_ticket_priority].arg.size();
|
||||
i.res = ticket_priority_tab_ind < data.mounts.pmount->param[Mount::par_ticket_priority].arg.size();
|
||||
}
|
||||
|
||||
|
||||
void ticket_priority_tab_defined(Info & i)
|
||||
{
|
||||
i.result = data.mounts.pmount->param[Mount::par_ticket_priority].defined;
|
||||
i.res = data.mounts.pmount->param[Mount::par_ticket_priority].defined;
|
||||
}
|
||||
|
||||
|
||||
@@ -386,7 +386,7 @@ void ticket_priority_tab_isdefault(Info & i)
|
||||
{
|
||||
if( request.is_ticket )
|
||||
{
|
||||
i.result = (ticket_priority_tab_ind == request.ticket.priority);
|
||||
i.res = (ticket_priority_tab_ind == request.ticket.priority);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -396,7 +396,7 @@ void ticket_priority_tab_isdefault(Info & i)
|
||||
return; // default false
|
||||
|
||||
size_t value = atoi( p.arg[0].c_str() );
|
||||
i.result = (ticket_priority_tab_ind == value);
|
||||
i.res = (ticket_priority_tab_ind == value);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -423,13 +423,13 @@ void ticket_category_tab(Info & i)
|
||||
{
|
||||
ticket_category_tab_ind = i.iter;
|
||||
|
||||
i.result = ticket_category_tab_ind < data.mounts.pmount->param[Mount::par_ticket_category].arg.size();
|
||||
i.res = ticket_category_tab_ind < data.mounts.pmount->param[Mount::par_ticket_category].arg.size();
|
||||
}
|
||||
|
||||
|
||||
void ticket_category_tab_defined(Info & i)
|
||||
{
|
||||
i.result = data.mounts.pmount->param[Mount::par_ticket_category].defined;
|
||||
i.res = data.mounts.pmount->param[Mount::par_ticket_category].defined;
|
||||
}
|
||||
|
||||
|
||||
@@ -437,7 +437,7 @@ void ticket_category_tab_isdefault(Info & i)
|
||||
{
|
||||
if( request.is_ticket )
|
||||
{
|
||||
i.result = (ticket_category_tab_ind == request.ticket.category);
|
||||
i.res = (ticket_category_tab_ind == request.ticket.category);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -447,7 +447,7 @@ void ticket_category_tab_isdefault(Info & i)
|
||||
return; // default false
|
||||
|
||||
size_t value = atoi( p.arg[0].c_str() );
|
||||
i.result = (ticket_category_tab_ind == value);
|
||||
i.res = (ticket_category_tab_ind == value);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -475,13 +475,13 @@ void ticket_expected_tab(Info & i)
|
||||
{
|
||||
ticket_expected_tab_ind = i.iter;
|
||||
|
||||
i.result = ticket_expected_tab_ind < data.mounts.pmount->param[Mount::par_ticket_expected].arg.size();
|
||||
i.res = ticket_expected_tab_ind < data.mounts.pmount->param[Mount::par_ticket_expected].arg.size();
|
||||
}
|
||||
|
||||
|
||||
void ticket_expected_tab_defined(Info & i)
|
||||
{
|
||||
i.result = data.mounts.pmount->param[Mount::par_ticket_expected].defined;
|
||||
i.res = data.mounts.pmount->param[Mount::par_ticket_expected].defined;
|
||||
}
|
||||
|
||||
|
||||
@@ -489,7 +489,7 @@ void ticket_expected_tab_isdefault(Info & i)
|
||||
{
|
||||
if( request.is_ticket )
|
||||
{
|
||||
i.result = (ticket_expected_tab_ind == request.ticket.expected);
|
||||
i.res = (ticket_expected_tab_ind == request.ticket.expected);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -499,7 +499,7 @@ void ticket_expected_tab_isdefault(Info & i)
|
||||
return; // default false
|
||||
|
||||
size_t value = atoi( p.arg[0].c_str() );
|
||||
i.result = (ticket_expected_tab_ind == value);
|
||||
i.res = (ticket_expected_tab_ind == value);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user