Вверх ↑
Ответов: 16884
Рейтинг: 1239
#1: 2018-12-14 07:38:35 ЛС | профиль | цитата
А так ?


Add(Label,6604675,287,259)
{
Left=55
Top=15
Width=479
Height=20
Color=15780518
Font=[Courier New,10,5,16711680,204]
Transparent=0
Caption="Температура в помещении на: год месяц день "
AutoSize=1
}
Add(MainForm,15663453,77,140)
{
Width=685
Height=581
Color=15780518
Font=[MS Sans Serif,8,0,16711680,1]
Caption="Температура в помещении"
BorderStyle=1
Position=1
Point(onClose)
Point(Close)
link(onCreate,7935657:doOpen,[])
}
Add(Plotter,6761042,329,259)
{
Left=20
Top=50
Width=670
Height=485
Color=16777215
Enabled=1
Name="tp"
GridX=24
GridY=25
MinH=-10
MaxH=40
MaxW=24
}
Add(Label,7506625,77,259)
{
Left=50
Top=195
Width=165
Color=12639424
Transparent=0
Caption="Верхняя температурная норма"
}
Add(Label,5273543,119,259)
{
Left=50
Top=260
Width=160
Color=12639424
Transparent=0
Caption="Нижняя температурная норма"
}
Add(PlotAxis,16137541,245,259)
{
Grapher="tp"
Name="ноль"
Color=0
Size=2
}
Add(PlotAxis,4916857,203,259)
{
Grapher="tp"
Name="19"
Color=65280
Style=1
Y=19
}
Add(PlotAxis,5954945,161,259)
{
Grapher="tp"
Name="24"
Color=8421631
Style=1
Y=24
}
Add(DS_SQLite,7935657,140,154)
{
Name="chrt"
FileName="C:\\Room_temperature.db"
link(onOpen,14820311:doEvent1,[])
}
Add(PlotLines,14221590,399,259)
{
Grapher="tp"
Size=2
link(ValueY,8253175:Var2,[])
link(ValueX,12918382:Value2,[])
}
Add(DSC_Query,2261516,329,175)
{
DSManager="chrt"
link(onQuery,12918382:doValue,[])
link(onColumns,14221590:doClear,[(380,188)(380,272)])
}
Add(MT_MultiMem,12918382,399,175)
{
link(onData,14555005:doEvent1,[])
}
Add(DSC_Query,2330491,217,14)
{
SQL="SELECT DISTINCT strftime('%Y', data) FROM data;"
DSManager="chrt"
link(onQuery,6143896:doAdd,[])
link(onColumns,6143896:doClear,[])
}
Add(Hub,14820311,182,154)
{
OutCount=4
link(onEvent1,2330491:doQuery,[(206,160)(206,20)])
link(onEvent2,8415418:doWork2,[(224,167)(224,69)])
link(onEvent3,2998482:doWork2,[(248,174)(248,125)])
link(onEvent4,7251156:doWork2,[])
}
Add(ComboBox,6143896,266,14)
{
Left=307
Top=15
Height=21
Color=16777215
Font=[Courier New,9,1,255,204]
Text="9999"
ReadOnly=0
Point(EditText)
link(onClick,8415418:doWork1,[(310,27)(310,47)(256,47)])
}
Add(ComboBox,3791527,378,63)
{
Left=420
Top=15
Width=40
Height=21
Color=16777215
Font=[Courier New,9,1,255,204]
Text="99"
ReadOnly=0
Point(EditText)
link(onClick,2998482:doWork1,[(422,76)(422,99)(319,99)])
}
Add(ComboBox,6004007,427,119)
{
Left=508
Top=15
Width=40
Height=21
Color=16777215
Font=[Courier New,9,1,255,204]
Text="99"
ReadOnly=0
Point(EditText)
link(onClick,7251156:doWork1,[(470,132)(470,156)(256,156)])
}
Add(FormatStr,10998629,280,63)
{
DataCount=1
Mask="SELECT DISTINCT strftime('%m', data) FROM data WHERE strftime('%Y', data)='%1';"
link(onFString,9057737:doQuery,[])
link(Str1,6002894:Var2,[])
}
Add(DSC_Query,9057737,329,63)
{
DSManager="chrt"
link(onQuery,3791527:doAdd,[])
link(onColumns,3791527:doClear,[])
}
Add(FormatStr,10501672,329,119)
{
Mask="SELECT DISTINCT strftime('%d', data) FROM data WHERE (strftime('%Y', data)='%1') and (strftime('%m', data)='%2');"
link(onFString,1775200:doQuery,[])
link(Str1,6002894:Var3,[(335,54)])
link(Str2,3794592:Var2,[])
}
Add(DSC_Query,1775200,378,119)
{
DSManager="chrt"
link(onQuery,6004007:doAdd,[])
link(onColumns,6004007:doClear,[])
}
Add(GetDataEx,6002894,280,49)
{
link(Data,6143896:EditText,[])
}
Add(HubEx,8415418,252,63)
{
link(onEvent,10998629:doString,[])
}
Add(HubEx,2998482,315,119)
{
link(onEvent,10501672:doString,[])
}
Add(FormatStr,2233980,266,175)
{
DataCount=3
Mask="SELECT t,strftime('%H',data)+strftime('%M',data)/60.0 AS tm from data \r\n WHERE date(data)='%1-%2-%3'\r\n ORDER BY tm;"
link(onFString,2261516:doQuery,[])
link(Str1,6002894:Var1,[(272,54)])
link(Str2,3794592:Var1,[(279,107)])
link(Str3,6004007:EditText,[(286,164)(447,164)])
}
Add(HubEx,7251156,252,175)
{
link(onEvent,2233980:doString,[])
}
Add(GetDataEx,3794592,336,102)
{
Angle=1
link(Data,3791527:EditText,[(398,107)])
}
Add(PlotAxis,14603972,469,259)
{
Grapher="tp"
Color=16711680
Angle=90
link(Y,8253175:Var3,[(482,250)])
}
Add(Hub,14555005,441,175)
{
link(onEvent1,14221590:doAdd,[(507,181)(507,301)(388,301)(388,265)])
link(onEvent2,14603972:doAxis,[(462,188)(462,265)])
}
Add(GetDataEx,8253175,399,245)
{
link(Data,12918382:Value1,[])
}
Add(Timer,12080299,182,189)
{
link(onTimer,7251156:doWork3,[(256,195)])
}

карма: 25
Немного терпения! Дежурный экстрасенс скоро свяжется с Вами!
0