/*
*  Definitions for Employ.prg and Face.prg
*/

#define MONEY_DIR "MONEY\"   // subdirectory for specific files

#define GetRotate(aSymb,bEnt) {|oGet|_RotateReader(oGet,aSymb,bEnt)}
#define GetFormula(aRefer) {|oGet| FormulaReader(oGet,aRefer)}

// colors ...
#define COL_STRUCT     IF(INST_COLOR, 'g+/b','w+/n')
#define COL_HEAD_FACE  IF(INST_COLOR, 'bg+/n','w+/n')
#define COL_EMPLOY_OFF IF(INST_COLOR, 'w/b', 'w/n')
#define COL_PAY_OUT    IF(INST_COLOR, 'b/bg,bg+/n', 'w/n,n/w')
#define COL_EDIT       IF(INST_COLOR, "n/bg,bg+/b,,,n/w","n/w,w+/n,,,w/n")
#define COL_EDIT1      "n/w,w+/n,,,w/n"
#define COL_EXT1       IF(INST_COLOR, "B/w", "w+/W")
#define COL_EXTENT     IF(INST_COLOR, "B/bg", "w+/W")
#define COL_YN         IF(INST_COLOR, 'w/b,gr+/n,,,w+/n', 'w/n,n/w,,,n+/w')
#define COL_BOX        "n/w,w+/n,,,n/w"
#define COL_BUTTON     IF(INST_COLOR, "n/w,bg+/b,,,n/w", 'n/w,w+/n,,,w/n')
#define COL_ALERT      IF(INST_COLOR,"GR+/R,W+/B,,,W/R",'w+/n,n+/w,,,w/n')

// "опасные" поля
#define L_ID         4         // длина таб.#
#define L_STRUCT     4         // длина кода подразделения
#define L_ANALIT     4         // длина кода аналитики
#define L_LISTNO     4         // длина номера ведомости

// параметры блокировки для функции сетевого редактирования NetEditFile()
#define NO_LOCK      0
#define REC_LOCK     1
#define FIL_LOCK     2

// константы для методов расчета
#define MET_TIME      1
#define MET_TARIF     2
#define MET_SUM       3
#define MET_PERCENT   4
#define MET_SPEC      5

// объявления глобальных переменных  (комментарии в Main.prg)
MEMVAR aMonths, aSostav, aTimeMeter, aPayId, aSpecAlgo,;
  pId, pPayName, pAnalitName, pAcct, aMeth
MEMVAR ZP_MONTH, ZP_YEAR, ZP_MIN_WAGE, ZP_SHOP, ZP_MARKED,;
  ZP_ROUND, ZP_CALC_ROUND, ZP_ILL_BASE,;
  ZP_L0_VOL, ZP_L1_VOL, ZP_L0_SEP, ZP_L1_SEP,;
  ZP_METH_OLD

// fields declaration
// PEOPLE
FIELD KodStru, Name1, Name2, SostavId, StuffId,;
      CategoryId, DateIn, DateOff, RightAll, RightKids, IncomeRate, IllRate,;
      HolyDays, Advance, Passport, Address, Calculated, InSumma, OutSumma, Marked
// FACE
FIELD Id,InOut,TillDate,Percent,WorkTime,Period,Result,NoRecalc,Category,WorkHours

// PayIn & PayOut
FIELD Acct,AcctAnal,Method,Selected,Index,InEntry,OutEntry,Priority,Algorithm

// PList
FIELD ListNo,ListName,ListType,ListDate,Status,Volume
