Add(MainForm,4045611,350,168)
{
Position=1
link(onCreate,10500446:doEnum,[])
}
Add(TreeViewTrain,2363091,609,231)
{
Left=175
Top=20
Width=210
Height=250
Name="main_tree"
Layout="main"
WidthScale=70
ParentIDIndex=2
IDIndex=1
Point(doExpand)
link(onClick,9698566:doStr,[])
}
Add(TVT_AddNode,5460754,658,175)
{
TreeView="main_tree"
}
Add(StrList,15705233,420,105)
{
Strings=#16:категория 1;0;-1|12:товар 1;11;0|12:товар 2;12;0|12:товар 3;13;0|17:категория 2;1;-1 |12:товар 4;21;1|12:товар 5;22;1|12:товар 6;23;1|16:категория 3;2;-1|12:товар 7;31;2|12:товар 8;32;2|12:товар 9;33;2|0:|
}
Add(ArrayEnum,10500446,434,182)
{
link(onItem,1047028:doEvent1,[])
link(onEndEnum,12353404:doEvent1,[(501,195)(501,244)])
link(Array,15705233:Array,[])
}
Add(Button,10942384,749,371)
{
Left=105
Top=150
Caption="Rename"
link(onClick,6050070:doAdd,[])
}
Add(Edit,13531228,868,231)
{
Left=15
Top=20
Width=145
Text="Картошка"
}
Add(Label,13983827,721,175)
{
Left=15
Width=35
Height=17
Caption="Товар"
}
Add(Label,9661684,770,175)
{
Left=15
Top=50
Width=53
Height=17
Caption="ID товара"
}
Add(Edit,8077804,812,266)
{
Left=15
Top=70
Width=145
Enabled=1
WinStyle=2
Text="41"
DataType=2
}
Add(Label,14395369,819,175)
{
Left=15
Top=100
Width=70
Height=17
Caption="ID категории"
}
Add(Edit,10643341,812,322)
{
Left=15
Top=120
Width=145
Enabled=1
WinStyle=2
Text="1"
DataType=2
}
Add(LayoutSpacer,7138913,952,175)
{
Top=190
Width=170
Height=75
Layout="main"
}
Add(HBoxLayout,9418853,952,224)
{
Name="main"
Space=3
Padding=3
}
Add(MT_String,14293230,609,175)
{
link(onResult,5460754:doAddNode,[])
}
Add(MT_String,9698566,658,231)
{
link(onResult,1903050:doSplit,[])
}
Add(MultiStrData,1903050,721,231)
{
Count=3
link(onPart1,13531228:doText,[])
link(onPart2,8077804:doText,[(802,244)(802,272)])
link(onPart3,10643341:doText,[(795,251)(795,328)])
}
Add(MT_AddData,6050070,868,371)
{
Count=3
link(onAdd,8439851:doChangeNode,[])
link(Data1,13531228:Text,[])
link(Data2,8077804:Text,[(881,311)(818,311)])
link(Data3,13358818:Text,[(888,349)(923,349)])
}
Add(TVT_ChangeNode,8439851,924,371)
{
TreeView="main_tree"
}
Add(VisualStrings,13358818,917,308)
{
Lines=#2:-1|
}
Add(TreeViewEx,1489990,406,490)
{
Left=355
Top=795
Align=3
Layout="main"
WidthScale=30
ModeSp=2
SizeSp=8
IconsState=[]
Icons=[]
Point(doAddChild)
Point(Parent)
Point(onExpand)
Point(onCollapse)
Point(doSort)
Point(doExpand)
link(Parent,9861715:Var1,[(433,462)(237,462)(237,550)(167,550)])
}
Add(ArrayEnum,8856480,161,637)
{
link(onItem,2663017:doData,[])
link(onEndEnum,10263920:doEvent1,[(209,650)(209,678)])
link(Array,2623669:Var2,[(167,591)(433,591)])
}
Add(MultiElement,9861715,161,490)
{
link(onEvent1,1489990:doAdd,[])
link(onEvent2,1489990:doAddChild,[(262,503)(262,531)])
link(onEvent3,8856480:doEnum,[(212,510)(212,571)(133,571)(133,643)])
link(Data1,12425586:Var3,[(167,438)(482,438)(482,569)])
}
BEGIN_SDK
Add(EditMulti,10766315,21,21)
{
EventCount=3
WorkCount=1
DataCount=1
VarCount=1
Width=811
Height=648
link(doWork1,5552574:doEnum,[(109,27)(109,188)])
link(Var1,16237883:ItemIdx,[(27,606)(447,606)])
}
Add(TVT_EnumNodes,5552574,182,182)
{
TreeView="parent.main_tree"
link(onEnum,16504775:doStr,[])
link(onStop,10766315:onEvent3,[(290,195)(290,41)])
}
Add(MT_String,16504775,324,182)
{
link(onResult,9216696:doSplit,[])
}
Add(MultiStrPart,9216696,469,182)
{
Count=3
link(onSplit,5145615:doLoad,[(561,188)(561,242)(141,242)(141,356)])
}
Add(Case,3649859,441,350)
{
Value=Real(-1)
link(onTrue,10315087:doData,[(514,363)(514,482)(146,482)(146,517)])
}
Add(ArrayFind,11256092,322,350)
{
link(onFind,3649859:doCase,[])
link(Array,12534040:Var1,[(328,329)(255,329)(255,417)])
link(Value,5145615:Str,[(342,318)(234,318)(234,416)(188,416)])
}
Add(CharArray,5145615,175,350)
{
link(onLoad,11256092:doFind,[])
link(onGetStr,10766315:onEvent1,[(246,363)(246,27)])
link(String,16600758:Var1,[(181,268)])
}
Add(DoData,10315087,175,511)
{
link(onEventData,7944230:doCase,[])
link(Data,15868076:Var1,[(181,442)])
}
Add(Case,7944230,280,511)
{
Value=Real(-1)
link(onNextCase,16237883:doFind,[])
link(onTrue,5145615:doGetStr,[(333,524)(333,467)(144,467)(144,363)])
}
Add(ArrayFind,16237883,441,511)
{
link(onFind,8836072:doData,[])
link(Array,12534040:Var2,[(447,495)(412,495)])
link(Value,15868076:Var2,[(461,465)(363,465)])
}
Add(GetDataEx,12534040,406,412)
{
Angle=1
link(Data,10766315:Data1,[(428,417)(428,219)(27,219)])
}
Add(GetDataEx,15868076,357,437)
{
Angle=1
link(Data,9216696:Part3,[(489,442)])
}
Add(DoData,8836072,553,511)
{
link(onEventData,10766315:onEvent2,[(691,517)(691,34)])
link(Data,16600758:Var2,[(559,320)(370,320)])
}
Add(GetDataEx,16600758,364,263)
{
Angle=1
link(Data,9216696:Part2,[(482,268)])
}
END_SDK
Add(GetDataEx,2623669,427,564)
{
Angle=3
link(Data,1489990:Array,[(419,569)])
}
Add(DoData,2663017,329,637)
{
link(onEventData,1489990:doExpand,[(383,643)(383,545)])
link(Data,8856480:Index,[(335,612)(457,612)(457,704)(174,704)])
}
Add(ArrayEnum,411130,133,910)
{
link(onItem,7190274:doGetNode,[])
link(Array,12425586:Var2,[(139,732)(482,732)])
}
Add(Hub,10263920,224,672)
{
link(onEvent1,1489990:doSort,[(291,678)(291,538)])
link(onEvent2,411130:doEnum,[(280,685)(280,800)(91,800)(91,916)])
}
Add(GetDataEx,12425586,476,564)
{
Angle=3
link(Data,2623669:Var3,[])
}
Add(TVT_GetNode,7190274,266,910)
{
TreeView="main_tree"
link(onGetNode,12472930:doStr,[])
}
Add(MT_String,12472930,373,910)
{
link(onResult,3789096:doSplit,[])
}
Add(MultiStrPart,3789096,448,910)
{
Count=3
link(onSplit,9211333:doAdd,[])
}
Add(MT_AddData,9211333,609,910)
{
Count=3
link(onAdd,9093216:doChangeNode,[])
link(Data1,411130:Index,[(615,861)(230,861)(230,959)(146,959)])
link(Data2,3789096:Part2,[(622,881)(542,881)(542,952)(461,952)])
link(Data3,10081275:Text,[(629,816)(594,816)])
}
Add(TVT_ChangeNode,9093216,700,910)
{
TreeView="main_tree"
}
Add(VisualStrings,10081275,588,763)
{
Lines=#2:-1|
Width=46
}
Add(Hub,1047028,532,182)
{
link(onEvent1,14293230:doMT,[])
}
Add(Hub,12353404,511,238)
{
link(onEvent1,2363091:doExpand,[])
link(onEvent2,9861715:doWork1,[(537,251)(537,373)(149,373)(149,496)])
}
Ответов: 6
Рейтинг: 0
|
|||
MT_AddData нечувствителен к данным "номер индекса" ,если подать его с точки Index от ArrayEnum в схеме - на "Caption", средняя точка MT_AddData. В сути тут заминка оказалась. Как тогда быть?
|
|||
карма: 0 |
|
Редактировалось 2 раз(а), последний 2024-12-03 19:06:59