Про ini и сколько нужно таймеров
Add(MainForm,2953706,168,63)
{
Width=490
Height=295
Position=1
link(onCreate,8091569:doEvent1,[])
}
Add(Ini,7827951,441,112)
{
@Hint=#5:Оклад|
FileName="myData.ini"
Section="Исходные"
Key="Оклад"
link(onResult,8876167:doText2,[])
AddHint(-8,-66,47,13,Key)
}
Add(Edit,8876167,490,105)
{
Left=145
Top=54
Width=80
Height=16
Color=65535
Font=[MS Sans Serif,10,1,0,204]
Cursor=16
WinStyle=1
Text=""
Alignment=1
MaxLenField=5
link(onChange,8647507:doEvent1,[])
}
Add(Ini,5722825,301,126)
{
@Hint=#11:Дата начала|
FileName="myData.ini"
Section="Исходные"
Key="Дата начала"
link(onResult,13912350:doSetDate,[])
link(Value,7408074:Var3,[(328,117)(386,117)(386,166)])
AddHint(-23,-80,79,13,Key)
}
Add(DatePicker,13912350,350,126)
{
Left=145
Top=100
Width=80
Height=21
Color=65535
Point(CurrentDateTime)
Point(CurrentDateInt)
Point(DateInt)
link(onChange,7994332:doEvent1,[])
}
Add(Hub,8091569,245,77)
{
OutCount=4
link(onEvent2,15094632:doRead,[])
link(onEvent3,7827951:doRead,[(425,97)(425,118)])
link(onEvent4,5722825:doRead,[(280,104)(280,132)])
}
Add(GetDataEx,7408074,364,161)
{
link(Data,13912350:DateInt,[])
}
Add(Math,6664862,357,238)
{
OpType=2
link(onResult,13860527:doConvert,[])
link(Op1,6681821:Result,[])
link(Op2,8876167:Text,[(370,229)(496,229)])
}
Add(Label,4443639,455,238)
{
Left=145
Top=155
Width=80
Color=65535
Font=[MS Sans Serif,10,1,0,1]
Caption=""
AutoSize=1
Alignment=1
}
Add(Label,14583437,168,126)
{
Left=25
Top=50
Width=100
Height=180
Font=[MS Sans Serif,8,0,16711680,1]
Caption="Дневной оклад\r\n\r\nПремия %\r\n\r\nДата начала\r\n\r\nОтработано дней\r\n\r\nНачислено\r\n\r\nПремиальные\r\n\r\nВ с е г о"
AutoSize=1
Alignment=1
}
Add(Label,5850655,455,294)
{
Left=145
Top=180
Width=80
Color=65535
Font=[MS Sans Serif,10,1,0,1]
Caption=""
AutoSize=1
Alignment=1
}
Add(Label,16589292,455,343)
{
Left=145
Top=205
Width=80
Color=65535
Font=[MS Sans Serif,10,1,0,1]
Caption=""
AutoSize=1
Alignment=1
}
Add(Edit,7918259,637,77)
{
Left=145
Top=75
Width=80
Color=65535
Font=[MS Sans Serif,10,1,0,204]
Text=""
Alignment=1
link(onChange,16285452:doEvent1,[])
}
Add(Ini,15094632,588,84)
{
@Hint=#6:Премия|
FileName="myData.ini"
Section="Исходные"
Key="Премия"
link(onResult,7918259:doText2,[])
AddHint(-36,-36,55,13,Key)
}
Add(MathParse,5662484,357,294)
{
MathStr="%1 * %2 / 100"
link(onResult,1213760:doConvert,[])
link(X1,5549321:Var2,[])
link(X2,7918259:Text,[(370,285)(643,285)])
}
Add(Math,7875111,350,343)
{
link(onResult,14892523:doConvert,[])
link(Op1,5549321:Var1,[(356,278)])
link(Op2,5662484:Result,[])
}
Add(GetDataEx,5549321,357,273)
{
link(Data,6664862:Result,[])
}
Add(Hub,5623046,301,189)
{
OutCount=4
link(onEvent1,6681821:doOperation,[])
link(onEvent2,6664862:doOperation,[(336,202)(336,244)])
link(onEvent3,5662484:doCalc,[(330,209)(330,300)])
link(onEvent4,7875111:doOperation,[(321,216)(321,349)])
}
Add(Label,1692531,455,189)
{
Left=145
Top=130
Width=80
Color=65535
Font=[MS Sans Serif,10,1,0,1]
Caption=""
AutoSize=1
Alignment=1
}
Add(Hub,8647507,532,105)
{
link(onEvent1,7827951:doWrite,[(555,111)(555,97)(431,97)(431,125)])
link(onEvent2,1176407:doWork1,[(550,118)])
}
Add(Hub,16285452,679,77)
{
link(onEvent1,15094632:doWrite,[(705,83)(705,71)(575,71)(575,97)])
link(onEvent2,1176407:doWork2,[(700,90)(700,174)])
}
Add(Hub,7994332,392,126)
{
link(onEvent1,5722825:doWrite,[(420,132)(420,110)(284,110)(284,139)])
link(onEvent2,5341303:doWork1,[(410,139)])
}
Add(ConvertorEx,13860527,406,238)
{
Mode=15
link(onResult,4443639:doText,[])
}
Add(ConvertorEx,1213760,406,294)
{
Mode=15
link(onResult,5850655:doText,[])
}
Add(ConvertorEx,14892523,406,343)
{
Mode=15
link(onResult,16589292:doText,[])
}
Add(HubEx,5341303,406,168)
{
Angle=2
link(onEvent,5623046:doEvent1,[(293,174)(293,195)])
}
Add(HubEx,1176407,546,168)
{
Angle=2
link(onEvent,5341303:doWork2,[])
}
Add(Math,6681821,357,189)
{
OpType=1
link(onResult,1692531:doText,[])
link(Op1,13912350:CurrentDateInt,[])
link(Op2,7408074:Var2,[])
}
Add(Timer,2617137,168,189)
{
link(onTimer,3839408:doConvert,[])
}
Add(DateConvertor,3839408,210,189)
{
Mode=9
Format="Сегодея dddd dd MMMM yyyy года Hч.mmм.ssс."
Point(Data)
link(onResult,6137749:doText,[])
link(Data,13912350:CurrentDateTime,[(216,165)(356,165)])
}
Add(Label,6137749,252,189)
{
@Color=13355979
Left=15
Top=15
Width=4
Height=4
Font=[Comic Sans MS,12,1,32768,204]
Cursor=15
Caption=""
ColorHover=8388736
Underline=0
}