Skip to content

Commit

Permalink
Version 12.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
papyrussolution committed Jan 7, 2025
1 parent 8ac7ea7 commit 6e07787
Show file tree
Hide file tree
Showing 26 changed files with 304 additions and 159 deletions.
Binary file modified ManWork/LaTex/ppmanual.pdf
Binary file not shown.
37 changes: 35 additions & 2 deletions ManWork/LaTex/ppmanual.tex
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
% PPMANUAL.TEX
% Copyright (c) A.Sobolev 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023, 2024
% Copyright (c) A.Sobolev 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023, 2024, 2025
% Part of project Papyrus
% ����������� ������������
%
Expand All @@ -26,7 +26,7 @@
\renewcommand{\CoverPageFooterInfo}{
\parbox[b]{.5\textwidth}{
\tiny �������� ������: \today \\
������ �������: 12.2.1
������ �������: 12.2.2
}
}

Expand Down Expand Up @@ -5041,6 +5041,39 @@
� ���������� ������, ��� ������������� ��������� ����� ���� ��������� �� ������
����������� � ����� \ppyrsrv{������� �����������}, �� � ����� ������.

\section{������ ���������� ����������}

������ ���������� ���������� ��� - ����������� ���������� ������� \ppybrand{}, ��������������� ��� ������� �������
���������� �������� � ��������� ��������, ����� ���� ����� ���������������� ������� ��� ���������� ���������� ������.

���� ������ ��������� ������������ ����� ������� �������, �� ��� ��� �� � ����� ���������������� ���������� �����
����� ����� � ������������, �� ������ ���������� ��� ���������� � ���� �����.

���������� ������ ������� ������� ������ ������� ���������� ����������.

���� ��� � ���, ��� ������� ����� �� ����� ������������ ������ ������� ���������� ��������������
������ ����������� � ��������� �� ����������� ������� ������. ��������� ���� ���������� ���������� �����������
������� ������������� ������������ ������������� ������������� ������� � ����� ������� � (���) �������.
� ���������� �� ����� ��������� ������ ������:
\begin{itemize}
\item ����� ������� ������� ���������� �� ��������� ������ ������� (����� �������)
\item ��� �� �������� ����� (�� ����������) �� ���������. ��������, � ����� ��������� ���� ����� ����������
������� � �������� ��� ����� �������, ����� ��� ����������� ���������� ����������.
\item ����� ������� ���������� ����� �� ����������. ��������, ����� ������� ���� ������� �����-��
�������������� �������.
\item ������ ��������, �������������� ���������� ���������� � ��������� ������ �����������. � �����������
�� ������������� ����������, ������ ��������� ��������� � ����� �������� �����-���� ������ ���������.
\item �������, � ���� ������ ����� ��������� ������� �� ������� ��� ������� ������. ���� ����� ��� ����
��������� � ���������� ����������� ���� ��� �����������, ���� �����-�� ��������� ������ � ���� ������, �������
������� ���������.
\end{itemize}

\subsection{��������� ������� ���������� ����������}

\subsection{���� ���������� ��� ������� ���������� ����������}

\subsection{����������, ������ ���������� ����������}

\chapter{������\label{ch-goods}}

������� ������ �������� ����� �� ����������� � ������� \ppybrand{}. ��� ���� ��������
Expand Down
14 changes: 12 additions & 2 deletions Src/Doc/VERSION.TXT
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
VERSION.TXT
Copyright (c) Anton Sobolev 1996-2020, 2021, 2022
Copyright (c) Anton Sobolev 1996-2020, 2021, 2022, 2023, 2024, 2025

���������� � ������� � ������������ ������� Papyrus.

Expand Down Expand Up @@ -17035,4 +17035,14 @@ Ver 1.2 Date 13/09/96
����������������� ����� '����������� ��������� ������ ����������').
-FIX: {��������������} � ��������� ������� ��� ������ xml-����� �� ����������� cdata-������.
-FIX: {����� ��������} �������, ������� ����� �������� � ��������� ������ �������� ��� ����������� ��������.

07/01/2025 v12.2.2
!- {������ ���������� ����������} ���������� ������������������ �������������� ���� ��� ������� ����������
����������, ����������� ������� ���������� �� ����� ��������, ��������, ������� ����� �� ��������� ���������� � �.�.
!- {���������� Apteka.Ru} ������� ������ ��������� - ��� ������� ���������� ������ ����� ������ ��������
� ������ ��� (������������ ������������� ��������� ������). ���������� ��� ����� � ����� ������������� �����
��������� ��������� ��������������� ����.
!- {������� ����} ����� ��������� ���������� ��������������� ������ ������ ����������� ���������� ���� �������.
- {����� ������� � ������������} ��������������� ���������� ������ ��� ��������.
!- {Stylo-Q} ��������� ����������� ��������� �������������� ������� ���������.
-FIX: {�������� ������ ����-�������} ��������������� �������� ������ � �������� ����� � �������������� ������.
-FIX: {�������� ������ ����-�������} �������� �������� ���������� � ������� ������.
3 changes: 2 additions & 1 deletion Src/Include/PPDEFS.H
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// PPDEFS.H
// Copyright (c) Sobolev A. 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023, 2024
// Copyright (c) Sobolev A. 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023, 2024, 2025
// @codepage UTF-8
//
// Файл содержит только define-определения. Используется для включения в исходные файлы ресурсов
Expand Down Expand Up @@ -1917,6 +1917,7 @@
#define STDCTL_DIAGNOSTICS 163 // Кнопка "Диагностика"
#define STDCTL_REPEATINGBUTTON 164 // @v11.0.4 Кнопка "Повторение"
#define STDCTL_MAPONGEOLOCBUTTON 165 // @v11.6.2 Кнопка запуска функции открытия карты с координатами (cmExecMapOnGeoLoc)
#define STDCTL_SINGLELISTBOX 166 // @v12.2.2 Список (SmartListBox)

#define cmPPAccSelected 1101 // Сообщение, посылаемое группой
// AcctCtrlGroup диалогу-владельцу когда пользователь выбрал новый счет. (AcctCtrlGroup*)InfoPtr
Expand Down
25 changes: 18 additions & 7 deletions Src/Include/Pp.h
Original file line number Diff line number Diff line change
Expand Up @@ -41606,21 +41606,32 @@ class PrcssrAptekaRu {
//
//
//
class PrcssrClientActivityStatistics { // @v12.2.2 @construction
class PrcssrClientActivityStatisticsFilt : public PPBaseFilt { // @persistent
public:
PrcssrClientActivityStatisticsFilt();
PrcssrClientActivityStatisticsFilt & FASTCALL operator = (const PrcssrClientActivityStatisticsFilt & rS);

uint8 ReserveStart[32]; // @ancor
DateRange Period;
PPID PersonKindID;
uint8 ReserveEnd[32]; // @anchor
};

class PrcssrClientActivityStatistics { // @v12.2.2
public:
struct DetailedEntry { // @flat
LDATE Dt;
PPObjID Oid;
};
struct Param {
/*struct Param {
Param();
DateRange Period;
PPID PersonKindID;
};
};*/
PrcssrClientActivityStatistics();
int InitParam(Param * pParam);
int Init(const Param * pParam);
int EditParam(Param * pData);
int InitParam(PrcssrClientActivityStatisticsFilt * pParam);
int Init(const PrcssrClientActivityStatisticsFilt * pParam);
int EditParam(PrcssrClientActivityStatisticsFilt * pData);
int Run();
int ScanDetailedActivityListForSinglePerson(PPID personID, TSVector <DetailedEntry> & rList);
private:
Expand All @@ -41631,7 +41642,7 @@ class PrcssrClientActivityStatistics { // @v12.2.2 @construction
PPObjArticle ArObj;
PPPersonConfig PsnCfg;
PPObjBill * P_BObj;
Param P;
PrcssrClientActivityStatisticsFilt P;
};
//
// @ModuleDecl(PPViewGoodsRest)
Expand Down
3 changes: 3 additions & 0 deletions Src/Include/ppbrow.h
Original file line number Diff line number Diff line change
Expand Up @@ -1517,6 +1517,7 @@
#define PPCMD_TESTMARKETPLACE 1353
#define PPCMD_MARKETPLACEINTERCHANGE 1354
#define PPCMD_APTEKARUINTERCHANGE 1355
#define PPCMD_GATHERCLIENTACTIVITYSTAT 1356
//
// PPJOB definitions
//
Expand Down Expand Up @@ -1570,6 +1571,7 @@
#define PPJOB_IMPORTCCHECKS 48
#define PPJOB_APTEKARUINTERCHANGE 49
#define PPJOB_MARKETPLACEINTERCHANGE 50
#define PPJOB_GATHERCLIENTACTIVITYSTAT 51
//
// PPVIEW definitions
//
Expand Down Expand Up @@ -1931,6 +1933,7 @@
#define PPVIEWITEM_COMPUTER 1342
#define PPFILT_MARKETPLACEINTERCHANGE 1351
#define PPFILT_PRCSSRAPTEKARU 1361
#define PPFILT_PRCSSRCLIENTACTIVITYSTATISTICS 1371
//
// RECORD definitions
//
Expand Down
6 changes: 3 additions & 3 deletions Src/Include/slui.h
Original file line number Diff line number Diff line change
Expand Up @@ -4501,8 +4501,8 @@ class ListWindow : public TDialog {
void FASTCALL setDef(ListBoxDef * pDef);
void setCompFunc(CompFunc f);
ListWindowSmartListBox * listBox() const;
void MoveWindow(HWND linkHwnd, long right);
void MoveWindow(const RECT & rRect);
void Move_(HWND linkHwnd, long right);
void Move_(const RECT & rRect);
ListBoxDef * getDef() const { return P_Def; }
void SetToolbar(uint tbId);
uint GetToolbar() const { return TbId; }
Expand Down Expand Up @@ -4885,7 +4885,7 @@ class TreeWindow {
void AddItemCmdList(const char * pTitle, void * ptr);
void Setup(HMENU hMenu);
int IsVisible();
void MoveWindow(const RECT &rRect);
void Move_(const RECT &rRect);
void GetRect(RECT & rRect);
void Show(int show);
void MoveChildren(const RECT & rRect);
Expand Down
26 changes: 17 additions & 9 deletions Src/PPLib/Objpersn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8233,31 +8233,26 @@ int PPObjPerson::IdentifyClientActivityState(ClientActivityState & rParam)
//
//
//
PrcssrClientActivityStatistics::Param::Param() : PersonKindID(0)
{
Period.Z();
}

PrcssrClientActivityStatistics::PrcssrClientActivityStatistics() : P_BObj(BillObj)
{
PsnObj.FetchConfig(&PsnCfg);
}

int PrcssrClientActivityStatistics::InitParam(Param * pParam)
int PrcssrClientActivityStatistics::InitParam(PrcssrClientActivityStatisticsFilt * pParam)
{
if(pParam) {
memzero(pParam, sizeof(*pParam));
}
return 1;
}

int PrcssrClientActivityStatistics::Init(const Param * pParam)
int PrcssrClientActivityStatistics::Init(const PrcssrClientActivityStatisticsFilt * pParam)
{
RVALUEPTR(P, pParam);
return 1;
}

int PrcssrClientActivityStatistics::EditParam(Param * pData)
int PrcssrClientActivityStatistics::EditParam(PrcssrClientActivityStatisticsFilt * pData)
{
int ok = -1;
TDialog * dlg = new TDialog(DLG_PRCRCLIACST);
Expand Down Expand Up @@ -8420,6 +8415,19 @@ int PPObjPerson::ReadClientActivityStatistics(PPID personID, ClientActivityStati
CATCHZOK
return ok;
}

IMPLEMENT_PPFILT_FACTORY(PrcssrClientActivityStatistics); PrcssrClientActivityStatisticsFilt::PrcssrClientActivityStatisticsFilt() : PPBaseFilt(PPFILT_PRCSSRCLIENTACTIVITYSTATISTICS, 0, 0)
{
SetFlatChunk(offsetof(PrcssrClientActivityStatisticsFilt, ReserveStart),
offsetof(PrcssrClientActivityStatisticsFilt, ReserveEnd)-offsetof(PrcssrClientActivityStatisticsFilt, ReserveStart)+sizeof(ReserveEnd));
Init(1, 0);
}

PrcssrClientActivityStatisticsFilt & FASTCALL PrcssrClientActivityStatisticsFilt::operator = (const PrcssrClientActivityStatisticsFilt & rS)
{
Copy(&rS, 0);
return *this;
}

int PrcssrClientActivityStatistics::Run()
{
Expand Down Expand Up @@ -8545,7 +8553,7 @@ int GatherClientActivityStatistics()
{
int ok = -1;
PrcssrClientActivityStatistics prcssr;
PrcssrClientActivityStatistics::Param param;
PrcssrClientActivityStatisticsFilt param;
prcssr.InitParam(&param);
if(prcssr.EditParam(&param) > 0) {
if(prcssr.Init(&param) && prcssr.Run())
Expand Down
10 changes: 5 additions & 5 deletions Src/PPLib/PPDSP.CPP
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// PPDSP.CPP
// Copyright (c) A.Sobolev 2001, 2002, 2005, 2007, 2009, 2010, 2011, 2015, 2016, 2017, 2019, 2020, 2021
// Copyright (c) A.Sobolev 2001, 2002, 2005, 2007, 2009, 2010, 2011, 2015, 2016, 2017, 2019, 2020, 2021, 2025
//
#pragma hdrstop
#ifdef PPDSC
Expand Down Expand Up @@ -29,8 +29,7 @@ int PPDeclStrucProcessor::MakeErrMsgString(char * pBuf, size_t bufLen)
SString file_msg, msg;
PPGetLastErrorMessage(1, msg);
if(P_FileName) {
file_msg.Cat("File").Space().Cat(P_FileName).CatDiv(',', 2).
Cat("Line").Space().Cat(Line).CatDiv(':', 2).Cat(msg);
file_msg.Cat("File").Space().Cat(P_FileName).CatDiv(',', 2).Cat("Line").Space().Cat(Line).CatDiv(':', 2).Cat(msg);
msg = file_msg;
}
msg.CopyTo(pBuf, bufLen);
Expand Down Expand Up @@ -342,9 +341,10 @@ int PPDeclStruc::LoadFromResource(long declID)
TVRez * p_rez = P_SlRez;
if(p_rez) {
char name_buf[64];
uint16 i, items_count = 0;
uint16 i;
uint16 items_count = 0;
long p = 0L;
p_rez->findResource((uint)declID, PP_RCDECLSTRUC, &p, 0);
p_rez->findResource(static_cast<uint>(declID), PP_RCDECLSTRUC, &p, 0);
THROW_PP(p, PPERR_RESFAULT);
freeAll();
p_rez->getString(name_buf);
Expand Down
33 changes: 30 additions & 3 deletions Src/PPLib/Pptvutil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3074,6 +3074,15 @@ class ListSelectionDialog : public TWindowBase {
if(event.isCmd(cmInit)) {
CreateBlock * p_blk = static_cast<CreateBlock *>(TVINFOPTR);
//
{
const TRect _def_rect(0, 0, 40, 40);
{
SmartListBox * p_lb = new SmartListBox(_def_rect, 0);
InsertCtlWithCorrespondingNativeItem(p_lb, STDCTL_SINGLELISTBOX, 0);
}
InsertCtlWithCorrespondingNativeItem(new TButton(_def_rect, "@but_ok", cmOK, 0, 0), STDCTL_OKBUTTON, 0);
InsertCtlWithCorrespondingNativeItem(new TButton(_def_rect, "@but_cancel", cmCancel, 0, 0), STDCTL_CANCELBUTTON, 0);
}
CreateLayout();
EvaluateLayout(p_blk->Coord);
}
Expand Down Expand Up @@ -3164,7 +3173,7 @@ const ListSelectionDialog::LayoutExtra * ListSelectionDialog::GetLayoutExtra(int

void ListSelectionDialog::CreateLayout()
{
static const float def_margin = 2.0f;
static const float def_margin = 1.0f;

class InnerBlock {
public:
Expand All @@ -3185,7 +3194,16 @@ void ListSelectionDialog::CreateLayout()
}
static void InsertButtonLayout(ListSelectionDialog * pMaster, SUiLayout * pLoParent, ushort ctlId, SUiLayoutParam & rP, float growFactor)
{
TView * p = pMaster->getCtrlView(ctlId);
TView * p = pMaster ? pMaster->getCtrlView(ctlId) : 0;
if(p) {
rP.GrowFactor = growFactor;
SUiLayout * p_lo_item = pLoParent->InsertItem(p, &rP);
p_lo_item->SetCallbacks(0, InnerBlock::SetupLayoutItemFrameProc, p);
}
}
static void InsertCtrlLayout(ListSelectionDialog * pMaster, SUiLayout * pLoParent, ushort ctlId, SUiLayoutParam & rP, float growFactor)
{
TView * p = pMaster ? pMaster->getCtrlView(ctlId) : 0;
if(p) {
rP.GrowFactor = growFactor;
SUiLayout * p_lo_item = pLoParent->InsertItem(p, &rP);
Expand Down Expand Up @@ -3215,12 +3233,21 @@ void ListSelectionDialog::CreateLayout()
//alb_buttons.SetVariableSizeX(SUiLayoutParam::szByContainer, 1.0f);
//SUiLayout * p_lo_buttons = p_lo_result->InsertItem(const_cast<LayoutExtra *>(GetLayoutExtra(loiFrame_Buttons, 0)), &alb_buttons);
SUiLayout * p_lo_footer = p_lo_result->FindBySymb("listdialog_footer");
SUiLayout * p_lo_list = p_lo_result->FindBySymb("listdialog_body");
{
SUiLayoutParam alb;
alb.GrowFactor = 1.0f;
//alb.SetFixedSizeY(FixedCtrlHeight);
alb.SetVariableSizeX(SUiLayoutParam::szByContainer, 0.8f);
alb.SetVariableSizeY(SUiLayoutParam::szByContainer, 1.0f);
alb.Margin.Set(def_margin);
InnerBlock::InsertCtrlLayout(this, p_lo_list, STDCTL_SINGLELISTBOX, alb, 1.0f);
}
{
SUiLayoutParam alb;
alb.GrowFactor = 1.0f;
alb.SetFixedSizeY(FixedCtrlHeight);
alb.Margin.Set(def_margin);
InnerBlock::InsertButtonLayout(this, p_lo_footer, CTL_CALENDAR_TODAY, alb, 1.0f);
InnerBlock::InsertButtonLayout(this, p_lo_footer, STDCTL_OKBUTTON, alb, 1.0f);
InnerBlock::InsertButtonLayout(this, p_lo_footer, STDCTL_CANCELBUTTON, alb, 1.0f);
}
Expand Down
Loading

0 comments on commit 6e07787

Please sign in to comment.