Medvedoc писал(а):
Но вопрос так и не решился Схема
Add(MainForm,12413584,77,175)
{
Width=1029
Height=578
link(onCreate,2739535:doSelect,[])
}
Add(DocumentTemplate,15557505,805,273)
{
Name="MainPage"
link(Bitmap,13572165:Bitmap,[(811,261)(794,261)(794,320)(762,320)])
}
BEGIN_SDK
Add(Print_Table,15348492,25,34)
{
Name="mtable"
X=28
Y=37
Width=903
Height=875
Columns=#10:ФИО|250|10|8:1|250|10|8:2|250|10|
RowHeight=20
Spacing=1
TableTrans=0
TBorderStyle=5
HeadFont=[Comic Sans MS,10,1,0,1]
HeadBackColor=12303291
CellBackColor=15658734
}
END_SDK
Add(PaintBox,13572165,756,273)
{
Left=10
Top=40
Width=905
Height=385
Color=16777215
Layout="horz"
WidthScale=100
HeightScale=100
ClearBeforeDraw=0
Point(doTop)
Point(doHeight)
link(onBeforeDraw,15557505:doDraw,[])
}
Add(PC_TableRow,1179918,224,273)
{
ItemName="mtable"
Document="MainPage"
link(onAddRow,13344997:doEvent1,[])
}
Add(PC_TableSetCell,3777948,357,273)
{
ItemName="mtable"
Document="MainPage"
link(onText,8075934:doText,[])
link(Text,2739535:String,[(363,215)(174,215)])
link(Col,1498554:Value,[])
}
Add(Hub,13344997,301,273)
{
link(onEvent1,3777948:doText,[])
link(onEvent2,2884650:doAdd,[(326,286)(326,447)])
}
Add(Memory,1498554,364,175)
{
Default=Integer(0)
}
Add(VBoxLayout,10551583,77,140)
{
Name="horz"
Space=3
Padding=2
}
Add(Button,9618318,133,273)
{
Left=15
Top=10
Caption="Add"
link(onClick,1179918:doAddRow,[])
}
Add(ComboBox,2739535,161,147)
{
Left=355
Top=5
Width=110
Height=21
Strings=#12:Название 1.1|12:Название 1.2|12:Название 1.3|
Point(doSelect)
Point(onSelect)
link(onClick,70667:doWork2,[])
link(onSelect,70667:doWork3,[(207,167)])
}
Add(StrList,5520690,224,112)
{
Strings=#3:100|3:200|3:300|
Point(doGetString)
Point(onGetString)
link(onGetString,10771192:doText,[])
}
Add(HubEx,70667,203,154)
{
link(onEvent,5520690:doGetString,[])
}
Add(Edit,10771192,420,119)
{
Left=480
Top=5
Width=80
Text="0"
DataType=1
}
Add(PC_TableSetCell,8075934,420,273)
{
ItemName="mtable"
Document="MainPage"
Col=1
link(onText,6199973:doOperation,[])
link(Text,566395:Var2,[])
link(Row,15322107:Var2,[])
}
Add(PC_TableSetCell,1709785,553,273)
{
ItemName="mtable"
Document="MainPage"
Col=2
link(onText,7361822:doWork2,[])
link(Row,15322107:Var3,[(573,243)])
}
Add(Math,6199973,476,273)
{
ResultType=0
AngleMode=1
link(onResult,1709785:doText,[])
link(Op1,566395:Var3,[(482,215)])
link(Op2,5678827:Var3,[(489,264)(517,264)(517,320)])
}
Add(GetDataEx,566395,420,210)
{
link(Data,10771192:Text,[])
}
Add(GetDataEx,5678827,476,315)
{
link(Data,6199973:Result,[])
}
Add(MT_MTArray,15261230,525,371)
{
}
Add(MT_MTArrayRW,11195959,525,427)
{
Point(Count)
link(Array,13675177:Var2,[])
}
Add(MT_AddData,2884650,406,441)
{
link(onAdd,11195959:doAdd,[])
link(Data1,566395:Var1,[(412,215)])
link(Data2,5678827:Var1,[(419,320)])
}
Add(Button,5588290,322,504)
{
Left=80
Top=10
Caption="Summ"
link(onClick,13593899:doAddRow,[])
}
Add(MT_MTArrayEnum,7872656,511,504)
{
link(onItem,651358:doSplit,[])
link(Array,13675177:Var1,[(517,418)])
}
Add(GetDataEx,13675177,525,413)
{
link(Data,15261230:Array,[])
}
Add(MT_Part,651358,560,504)
{
link(onSplit,10387915:doOperation,[])
link(onPart,1738135:doOperation,[(613,517)(613,545)])
}
Add(Math,10387915,679,504)
{
ResultType=0
AngleMode=1
link(Op1,14142590:Var3,[(685,495)(720,495)(720,544)])
}
Add(Math,1738135,623,539)
{
ResultType=0
AngleMode=1
link(Op1,11831410:Var3,[(629,530)(664,530)(664,579)])
}
Add(PC_TableSetCell,15279002,623,623)
{
ItemName="mtable"
Document="MainPage"
Col=1
link(onText,11449667:doText,[])
link(Text,11831410:Var2,[])
link(Row,9750795:Var2,[])
}
Add(Hub,11337918,455,504)
{
link(onEvent1,7872656:doEnum,[])
link(onEvent2,6729786:doText,[(487,517)(487,629)])
}
Add(PC_TableSetCell,6729786,504,623)
{
ItemName="mtable"
Document="MainPage"
Text="Итого:"
link(onText,15279002:doText,[])
link(Col,14035191:Value,[])
}
Add(Memory,14035191,511,546)
{
Default=Integer(0)
}
Add(GetDataEx,14142590,679,539)
{
link(Data,10387915:Result,[])
}
Add(PC_TableSetCell,11449667,679,623)
{
ItemName="mtable"
Document="MainPage"
Col=2
link(onText,7361822:doWork3,[(739,629)])
link(Text,14142590:Var2,[])
link(Row,9750795:Var3,[(699,603)])
}
Add(HubEx,7361822,735,273)
{
link(onEvent,13572165:doRefresh,[])
}
Add(GetDataEx,11831410,623,574)
{
link(Data,1738135:Result,[])
}
Add(PC_TableRow,13593899,406,504)
{
ItemName="mtable"
Document="MainPage"
link(onAddRow,11337918:doEvent1,[])
}
Add(GetDataEx,9750795,637,598)
{
Angle=3
link(Data,13593899:Row,[(412,603)])
}
Add(GetDataEx,15322107,434,238)
{
Angle=3
link(Data,1179918:Row,[(269,243)(269,313)(230,313)])
}