Elena Mamontova [Wed, 18 Jan 2017 17:45:44 +0000 (19:45 +0200)]
Ticket 37. The readTime() changed to str2x(), default value in the
ReadString() changed to "0" for the changePolicyTimeout field in the
RestoreTariff() function.
Elena Mamontova [Wed, 28 Dec 2016 13:32:32 +0000 (15:32 +0200)]
Ticket 37. WriteString() changed to WriteTime() and formatTime() remowed
for the ChangePolicyTimeout field in the SaveTariff() function in
file_store.cpp.
Elena Mamontova [Wed, 28 Dec 2016 06:40:42 +0000 (08:40 +0200)]
Ticket 37. WriteTime() changed to WriteString() and formatTime() added
for the ChangePolicyTimeout field in the SaveTariff() function in
file_store.cpp.
Elena Mamontova [Tue, 20 Dec 2016 13:31:06 +0000 (15:31 +0200)]
Ticket 37. In the if() construction for the changePolicyTimeout
ReadTime() changed to ReadString(), else construction added, error
message remowed in RestoreTariff().
Elena Mamontova [Wed, 30 Nov 2016 14:17:21 +0000 (16:17 +0200)]
Ticket 37. test<11>, test<12>, test<13> added. Current time argument
added in the TariffChangeIsAllowed() function in test<7>, test<8>,
test<9>, test<10>.
Elena Mamontova [Mon, 28 Nov 2016 13:12:12 +0000 (15:12 +0200)]
Ticket 37. The time_t currentTime parameter added in
TariffChangeIsAllow() function decfinition. The brackets added in
construction if ((currentTime > timeout) && (timeout != 0)).
Elena Mamontova [Mon, 28 Nov 2016 13:31:52 +0000 (15:31 +0200)]
Ticket. The time_t currentTime parameter added in
TariffChangeIsAllow() function decfinition. The time_t timeout variable and
construction if ((currentTime > timeout) && (timeout != 0)) added in
TariffChangeIsAllowed().
Elena Mamontova [Thu, 17 Nov 2016 08:22:55 +0000 (10:22 +0200)]
Ticket. The checking if(!data.tariffConf.changePolicyTimeout.emplty)
removed and appendResetableTag() added for the changePolicyTimeout
in the Serialize() function.
Elena Mamontova [Thu, 17 Nov 2016 08:13:13 +0000 (10:13 +0200)]
Ticket. ConvChangePolicyTimeout() function definition added. The
function readTime() replaced by ConvChangePolicyTimeout() for the changePolicyTimeout
in SGCONF::MaybeSet in AddTariffFunction(), ChgTariffFunction.
Elena Mamontova [Tue, 1 Nov 2016 07:50:28 +0000 (09:50 +0200)]
Ticket. The line for the change-policy-timeout adding to the vector
params added in the GetTariffParams(). The line for the
changePolicyTimeout output added in the PrintTariffConf().
Elena Mamontova [Wed, 19 Oct 2016 08:13:24 +0000 (11:13 +0300)]
Ticket 37. The 'change_policy_timeout' field added to update tb_tariffs
query if schemaVersion > 1, in st->Set(7, id) 7 changed to 8 in
SaveTariff() function.
Elena Mamontova [Tue, 18 Oct 2016 13:22:48 +0000 (16:22 +0300)]
Ticket 37. if(strcasecmp(el, "ChangePolicyTimeout") == 0) construction
added in CHG_TARIFF::Start(). "ChangePolicyTimeout value" string added
in m_answer variable in GET_TARIFFS::CreateAnswer().
Elena Mamontova [Tue, 18 Oct 2016 13:11:20 +0000 (16:11 +0300)]
Ticket 37. The "stg/common.h" header file added. The
structVal["changePolicyTimeout"] element added in GetTariffInfo().
data.tariffConf.changePolicyTimeout getting added in SetTariffInfo().
Elena Mamontova [Mon, 17 Oct 2016 07:30:01 +0000 (10:30 +0300)]
Ticket 37. The 'change_policy_timeout' field added. DROP DEFAULT added
for the 'change_policy', 'change_policy_timeout'. UPDATE added for the
'change_policy', 'change_policy_timeout'.
Elena Mamontova [Mon, 10 Oct 2016 12:55:06 +0000 (15:55 +0300)]
Ticket 37. Default value for the change_policy_timeout changed to 0 in
the CheckAllTables(), MakeUpdate() functions. Getting
change_policy_timeout field value added in RestoreTariff() function.
Elena Mamontova [Tue, 27 Sep 2016 13:02:28 +0000 (16:02 +0300)]
Ticket 37. Int2TS() method changed to formatTime() function, TS2Int()
method changed to readTime() function in postgresql_store_messages.cpp
file. '#include "stg/common.h"' added.
Elena Mamontova [Tue, 27 Sep 2016 12:59:49 +0000 (15:59 +0300)]
Ticket 37. Int2TS() method changed to formatTime() function, TS2Int() method
changed to readTime() function in postgresql_store_users.cpp file.
'#include "stg/common.h"' added.
Elena Mamontova [Tue, 27 Sep 2016 12:52:32 +0000 (15:52 +0300)]
Ticket 37. Int2TS() method changed to formatTime() function in the SaveTariff() function.
TS2Int() method changed to readTime() function in the RestoreTariff() function.
'#include "stg/common.h"' added.
Elena Mamontova [Thu, 22 Sep 2016 12:52:46 +0000 (15:52 +0300)]
Ticket 37. The changePolicyTimeout field added in SELECT FROM
tb_tariffs query in the if (version > 7) construction.
Assign a value to change PolicyTimeout added in if (version > 7)
construction.
Elena Mamontova [Thu, 15 Sep 2016 13:38:57 +0000 (16:38 +0300)]
Ticket 37. RESETABLE<time_t>changePolicyTimeout field declared in the struct
TARIFF_CONF_RES and added in constructor, operator and GetData()
function.
Elena Mamontova [Wed, 14 Sep 2016 14:52:56 +0000 (17:52 +0300)]
Ticket 37. The false parameter changed to true and 'Prohibit equal'
changed to 'Allow equal' in the ensure_equals() function for the 'equal'
object in testobject::test<9>() function.