Tad писал(а):
После ввода 20-й строки заметил ошибку во 2-й строке. Что будешь делать ?Вариант с возможностью замены ошибочных значений
Схема
Add(MainForm,12413584,210,98)
{
Width=968
Height=459
Position=1
link(onCreate,2739535:doSelect,[])
}
Add(DocumentTemplate,15557505,1050,637)
{
Name="MainPage"
link(Bitmap,5860135:Var1,[(1056,628)(1091,628)(1091,677)(1000,677)])
}
BEGIN_SDK
Add(Print_Table,15348492,-3,-3)
{
Name="mtable"
Width=903
Height=21
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
}
END_SDK
Add(PC_TableRow,1179918,350,189)
{
ItemName="mtable"
Document="MainPage"
link(onAddRow,13344997:doEvent1,[])
}
Add(PC_TableSetCell,3777948,581,196)
{
ItemName="mtable"
Document="MainPage"
link(onText,8075934:doText,[])
link(Text,2739535:String,[(587,180)(307,180)])
link(Col,4583763:Text,[])
}
Add(Hub,13344997,399,189)
{
OutCount=5
link(onEvent1,11670148:doOperation,[(424,195)(424,90)])
link(onEvent2,7601617:doWork2,[])
link(onEvent3,6199973:doOperation,[(522,209)(522,244)])
link(onEvent4,2884650:doAdd,[(480,216)(480,468)])
link(onEvent5,13593899:doAddRow,[(424,223)(424,559)])
}
Add(VBoxLayout,10551583,210,63)
{
Name="horz"
Space=3
Padding=2
}
Add(Button,9618318,133,189)
{
Left=15
Top=10
TabOrder=-1
Caption="Add"
link(onClick,15304608:doEvent1,[])
}
Add(ComboBox,2739535,294,70)
{
Left=355
Top=10
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,[(340,90)])
}
Add(StrList,5520690,357,35)
{
Strings=#3:100|3:200|3:300|
Point(doGetString)
Point(onGetString)
link(onGetString,10771192:doText,[])
}
Add(HubEx,70667,336,77)
{
link(onEvent,5520690:doGetString,[])
}
Add(Edit,10771192,651,42)
{
Left=480
Top=10
Width=80
Text="0"
DataType=1
}
Add(PC_TableSetCell,8075934,651,196)
{
ItemName="mtable"
Document="MainPage"
Col=1
link(Text,566395:Var2,[])
link(Row,15322107:Var2,[])
}
Add(PC_TableSetCell,1709785,763,238)
{
ItemName="mtable"
Document="MainPage"
Col=2
link(Row,15322107:Var3,[(783,173)])
}
Add(Math,6199973,700,238)
{
ResultType=0
AngleMode=1
Point(doClear)
link(onResult,1709785:doText,[])
link(Op1,566395:Var3,[(706,180)])
link(Op2,5678827:Var3,[(713,222)(741,222)(741,285)])
}
Add(GetDataEx,566395,651,175)
{
link(Data,10771192:Text,[])
}
Add(GetDataEx,5678827,700,280)
{
link(Data,6199973:Result,[])
}
Add(MT_MTArray,15261230,700,301)
{
}
Add(MT_MTArrayRW,11195959,700,448)
{
Point(Count)
link(Array,13675177:Var2,[])
}
Add(MT_AddData,2884650,637,462)
{
link(onAdd,11195959:doAdd,[])
link(Data1,11240441:Var2,[])
link(Data2,5678827:Var1,[(650,285)])
}
Add(MT_MTArrayEnum,7872656,742,532)
{
link(onItem,7271569:doSeparateMT,[])
link(onEndEnum,6729786:doText,[(781,545)(781,650)])
link(Array,13675177:Var3,[(748,411)])
}
Add(GetDataEx,13675177,700,406)
{
link(Data,4828172:Var2,[])
}
Add(Math,10387915,917,532)
{
ResultType=0
AngleMode=1
Point(doClear)
link(Op1,14142590:Var3,[(923,516)(958,516)(958,572)])
}
Add(Math,1738135,861,560)
{
ResultType=0
AngleMode=1
Point(doClear)
link(Op1,11831410:Var3,[(867,551)(902,551)(902,600)])
}
Add(PC_TableSetCell,15279002,861,644)
{
ItemName="mtable"
Document="MainPage"
Col=2
link(onText,11449667:doText,[])
link(Text,11831410:Var2,[])
link(Row,9750795:Var2,[])
}
Add(Hub,11337918,686,518)
{
InCount=2
OutCount=3
link(onEvent1,10387915:doClear,[(858,524)(858,545)])
link(onEvent2,1738135:doClear,[(711,531)(711,573)])
link(onEvent3,7872656:doEnum,[])
}
Add(PC_TableSetCell,6729786,805,644)
{
ItemName="mtable"
Document="MainPage"
Text="Итого:"
link(onText,15279002:doText,[])
link(Col,10571649:Text,[])
link(Row,427523:Var2,[])
}
Add(GetDataEx,14142590,917,567)
{
link(Data,10387915:Result,[])
}
Add(PC_TableSetCell,11449667,917,644)
{
ItemName="mtable"
Document="MainPage"
Col=1
link(onText,4375836:doWork2,[])
link(Text,14142590:Var2,[])
link(Row,9750795:Var3,[(937,607)])
}
Add(GetDataEx,11831410,861,595)
{
link(Data,1738135:Result,[])
}
Add(PC_TableRow,13593899,532,553)
{
ItemName="mtable"
Document="MainPage"
link(onAddRow,11337918:doEvent2,[(676,559)(676,531)])
}
Add(GetDataEx,9750795,875,602)
{
Angle=3
link(Data,427523:Var3,[])
}
Add(GetDataEx,15322107,665,168)
{
Angle=3
link(Data,8516229:Var3,[(636,173)(636,236)])
}
Add(DoData,10662880,210,189)
{
link(onEventData,3354835:doCase,[])
link(Data,7425230:Var1,[(216,180)(55,180)(55,502)])
}
Add(Hub,15304608,175,189)
{
link(onEvent1,10662880:doData,[])
link(onEvent2,1179918:doAddRow,[(200,202)(200,230)(326,230)(326,195)])
}
Add(Case,3354835,252,189)
{
Value=Integer(0)
link(onNextCase,1125141:doEvent1,[])
}
Add(Button,12778667,133,266)
{
Left=135
Top=10
TabOrder=-1
Caption="Clear"
link(onClick,10703500:doEvent1,[])
}
Add(PC_Size,3120505,917,84)
{
ItemName="mtable"
Document="MainPage"
link(Width,3120505:CurrentWidth,[(923,75)(909,75)(909,124)(923,124)])
}
Add(Math,11670148,784,84)
{
Op2=63
ResultType=0
link(onResult,15688878:doWork2,[])
link(Op1,64692:Var2,[])
}
Add(HubEx,15688878,833,84)
{
link(onEvent,11484306:doEvent1,[])
}
Add(HubEx,4375836,966,644)
{
link(onEvent,5860135:doWork2,[])
}
Add(Hub,10703500,175,266)
{
OutCount=5
link(onEvent1,1052613:doText,[])
link(onEvent2,9640631:doText,[(242,279)(242,293)])
link(onEvent3,6199973:doClear,[(200,286)(200,251)])
link(onEvent4,15261230:doClear,[(228,293)(228,307)])
link(onEvent5,4375836:doWork3,[(200,300)(200,692)(970,692)])
}
Add(VisualStrings,9640631,252,287)
{
Lines=#2:21|
Point(doText)
Point(onText)
link(onText,9725585:doWork3,[(837,293)])
}
Add(VisualStrings,1052613,252,266)
{
Lines=#2:-1|
Point(doText)
Point(onText)
link(onText,8029963:doWork3,[(333,272)])
}
Add(HubEx,8029963,329,196)
{
link(onEvent,1179918:doRemoveRow,[])
}
Add(Math,392035,763,119)
{
OpType=1
Op2=42
ResultType=0
link(onResult,9725585:doWork2,[])
link(Op1,64692:Var1,[(769,68)])
}
Add(HubEx,9725585,833,119)
{
Angle=3
link(onEvent,15688878:doWork3,[])
}
Add(Hub,1125141,294,189)
{
link(onEvent1,392035:doOperation,[(319,195)(319,125)])
link(onEvent2,8029963:doWork2,[])
}
Add(MT_MultiData,7271569,805,532)
{
link(onData1,10387915:doOperation,[])
link(onData2,1738135:doOperation,[(851,545)(851,566)])
}
Add(VisualStrings,10571649,812,616)
{
Lines=#1:0|
Point(doText)
Point(onText)
}
Add(VisualStrings,4583763,588,154)
{
Lines=#1:0|
Point(doText)
Point(onText)
}
Add(GetDataEx,64692,784,63)
{
Angle=1
link(Data,3120505:CurrentHeight,[(958,68)(958,124)(930,124)])
}
Add(GetDataEx,427523,819,602)
{
Angle=3
link(Data,13593899:Row,[(538,607)])
}
Add(ChildScrollBox,5860135,994,637)
{
link(onEvent1,15557505:doDraw,[])
link(Data1,8805158:Var3,[(1000,502)])
}
BEGIN_SDK
Add(EditMulti,12865450,21,21)
{
EventCount=1
WorkCount=2
DataCount=1
VarCount=2
Width=585
Height=354
VOffset=56
HOffset=84
link(doWork1,3597375:doHeight,[(32,83)(32,97)])
link(doWork2,12276302:doEvent1,[(39,90)(39,83)])
link(Var1,3597375:Bitmap,[])
link(Var2,2730771:Var1,[(118,306)])
}
Add(ScrollBox,1941766,189,28)
{
Left=15
Top=35
Width=926
Height=378
WinStyle=1
}
Add(PaintBox,3597375,105,77)
{
Width=905
Height=21
WidthScale=100
HeightScale=100
ClearBeforeDraw=0
Point(doHeight)
Point(MouseY)
Point(onMouseDown)
Point(onMouseMove)
link(onBeforeDraw,12865450:onEvent1,[])
link(onMouseDown,5192956:doCompare,[(207,90)(207,258)])
link(onMouseMove,15405536:doOperation,[(144,97)(144,174)])
}
Add(Hub,12276302,49,77)
{
link(onEvent1,6561917:doWork2,[])
link(onEvent2,4736296:doText,[(74,90)(74,41)])
}
Add(VisualStrings,4736296,126,35)
{
Lines=#6:100000|
Width=46
Point(doText)
Point(onText)
link(onText,1941766:doVScroll,[])
}
Add(Math,15405536,168,168)
{
OpType=7
Op2=21
ResultType=0
link(onResult,7289202:doOperation,[])
link(Op1,3597375:MouseY,[(174,124)(118,124)])
}
Add(Math,7289202,224,168)
{
OpType=1
Op2=1
ResultType=0
link(onResult,8640528:doData,[])
}
Add(ChangeMon,8640528,280,168)
{
link(onData,8186517:doValue,[])
}
Add(If_else,5192956,224,252)
{
Type=1
link(onTrue,2179159:doCompare,[])
link(onFalse,11712762:doWork2,[(263,265)(263,328)])
link(Op1,11597676:Var1,[(230,208)])
link(Op2,12865450:Data1,[(237,243)(216,243)(216,68)(111,68)])
}
Add(PC_TableCellStyle,5674435,371,259)
{
ItemName="mtable"
Document="parent.MainPage"
BgApply=0
Background=13358067
link(onSetStyle,13465616:doSetStyle,[])
link(Col,13231802:Var2,[])
link(Row,3833245:Var2,[])
}
Add(VisualStrings,11869035,336,217)
{
Lines=#1:0|
Point(doText)
Point(onText)
}
Add(Memory,8186517,378,168)
{
}
Add(HubEx,6561917,84,77)
{
link(onEvent,3597375:doRefresh,[])
}
Add(Memory,2765817,532,259)
{
Default=Integer(-1)
Point(Data)
link(onData,12449382:doWork1,[(578,265)])
link(Data,5058899:Var3,[(538,236)])
}
Add(PC_TableCellStyle,4264972,406,322)
{
ItemName="mtable"
Document="parent.MainPage"
BgApply=0
link(onSetStyle,2415346:doSetStyle,[])
link(Col,13231802:Var3,[(412,243)])
link(Row,2730771:Var2,[])
}
Add(GetDataEx,3833245,378,231)
{
link(Data,8711154:Var2,[])
}
Add(Hub,6947198,322,252)
{
link(onEvent1,1524262:doWork1,[(357,258)])
link(onEvent2,5674435:doSetStyle,[])
}
Add(GetDataEx,13231802,371,238)
{
Angle=3
link(Data,11869035:Text,[(342,243)])
}
Add(HubEx,12449382,574,322)
{
Angle=1
link(onEvent,6561917:doWork3,[(578,363)(88,363)])
}
Add(If_else,2179159,273,252)
{
Type=4
Op2=Integer(0)
link(onTrue,6947198:doEvent1,[])
link(onFalse,11712762:doWork1,[(312,265)])
link(Op1,11597676:Var2,[])
}
Add(GetDataEx,8711154,378,203)
{
link(Data,8186517:Value,[])
}
Add(GetDataEx,11597676,273,203)
{
Angle=1
link(Data,8711154:Var1,[])
}
Add(PC_TableCellStyle,13465616,427,259)
{
ItemName="mtable"
Document="parent.MainPage"
Col=1
BgApply=0
Background=13358067
link(onSetStyle,8155034:doSetStyle,[])
link(Row,4397146:Var2,[])
}
Add(PC_TableCellStyle,8155034,483,259)
{
ItemName="mtable"
Document="parent.MainPage"
Col=2
BgApply=0
Background=13358067
link(onSetStyle,2765817:doValue,[])
link(Row,5058899:Var2,[])
}
Add(PC_TableCellStyle,2415346,469,322)
{
ItemName="mtable"
Document="parent.MainPage"
Col=1
BgApply=0
link(onSetStyle,15429595:doSetStyle,[])
link(Row,14455385:Var2,[])
}
Add(PC_TableCellStyle,15429595,525,322)
{
ItemName="mtable"
Document="parent.MainPage"
Col=2
BgApply=0
link(onSetStyle,12449382:doWork2,[])
link(Row,15045997:Var2,[])
}
Add(GetDataEx,15045997,532,301)
{
link(Data,2765817:Value,[])
}
Add(GetDataEx,14455385,476,301)
{
Angle=1
link(Data,15045997:Var1,[])
}
Add(GetDataEx,4397146,434,231)
{
Angle=3
link(Data,3833245:Var3,[])
}
Add(GetDataEx,5058899,490,231)
{
Angle=3
link(Data,4397146:Var3,[])
}
Add(GetDataEx,2730771,413,301)
{
Angle=1
link(Data,14455385:Var1,[])
}
Add(HubEx,1524262,353,322)
{
link(onEvent,4264972:doSetStyle,[])
}
Add(HubEx,11712762,308,322)
{
link(onEvent,1524262:doWork2,[])
}
END_SDK
Add(Hub,11484306,861,84)
{
link(onEvent1,3120505:doSize,[])
link(onEvent2,5860135:doWork1,[(900,97)(900,132)(977,132)(977,643)])
}
Add(GetDataEx,8805158,707,497)
{
link(Data,11195959:Count,[])
}
Add(Button,3771244,63,413)
{
Left=75
Top=10
TabOrder=-1
Caption="Replace"
link(onClick,6470782:doMessage,[])
}
Add(DoData,16592592,231,420)
{
link(onEventData,984048:doCompare,[])
link(Data,5860135:Var2,[(237,411)(216,411)(216,684)(1007,684)])
}
Add(If_else,984048,280,420)
{
Type=1
link(onTrue,10956124:doCompare,[])
link(Op2,7425230:Var3,[(293,411)(384,411)])
}
Add(If_else,10956124,329,420)
{
Type=4
Op2=Integer(0)
link(onTrue,15016046:doEvent1,[])
}
Add(GetDataEx,7425230,378,497)
{
Angle=1
link(Data,11588391:Var1,[])
}
Add(Memory,14016018,532,196)
{
link(onData,3777948:doText,[])
}
Add(MT_AddData,11112204,532,427)
{
Count=3
link(onAdd,13578428:doWork2,[])
link(Data1,8516229:Var2,[])
link(Data2,11240441:Var1,[(545,411)])
link(Data3,6384592:Text,[])
}
Add(GetDataEx,11240441,637,406)
{
link(Data,566395:Var1,[(643,180)])
}
Add(GetDataEx,8516229,532,231)
{
link(Data,14016018:Value,[])
}
Add(Hub,15016046,441,420)
{
OutCount=5
link(onEvent1,7601617:doWork3,[(494,426)])
link(onEvent2,11112204:doAdd,[])
link(onEvent3,8531621:doClear,[(501,440)(501,349)(837,349)(837,370)])
link(onEvent4,3026413:doEnum,[(508,447)(508,363)])
link(onEvent5,5644278:doData,[(473,454)(473,524)])
}
Add(HubEx,7601617,490,196)
{
link(onEvent,14016018:doValue,[])
}
Add(MT_MTArrayEnum,3026413,749,357)
{
link(onItem,15032242:doValue,[])
link(Array,4828172:Var3,[(755,341)])
}
Add(Math,8531621,875,357)
{
ResultType=0
AngleMode=1
Point(doClear)
link(onResult,13536930:doEvent1,[])
link(Op1,2025114:Var1,[(881,348)(853,348)])
link(Op2,7438036:Var3,[(888,348)(916,348)(916,404)])
}
Add(GetDataEx,7438036,875,399)
{
link(Data,8531621:Result,[])
}
Add(MT_AddData,11491350,861,448)
{
Count=3
link(onAdd,13578428:doWork3,[(900,454)(900,489)(753,489)(753,433)])
link(Data1,15905038:Var2,[])
link(Data2,2025114:Var3,[(874,404)])
link(Data3,7438036:Var2,[])
}
Add(HubEx,13578428,686,427)
{
Angle=1
link(onEvent,11195959:doWrite,[(690,461)])
}
Add(GetDataEx,4828172,700,336)
{
link(Data,15261230:Array,[])
}
Add(Hub,13536930,924,357)
{
link(onEvent1,11701648:doText,[])
link(onEvent2,11491350:doAdd,[(949,370)(949,419)(851,419)(851,454)])
}
Add(VisualStrings,6384592,546,378)
{
Lines=#1:0|
Point(doText)
Point(onText)
}
Add(PC_TableSetCell,11701648,994,357)
{
ItemName="mtable"
Document="MainPage"
Col=2
link(Row,15905038:Var3,[(1014,348)(1035,348)(1035,432)])
}
Add(GetDataEx,15905038,861,427)
{
Angle=3
link(Data,3026413:Index,[(762,432)])
}
Add(DoData,5644278,532,518)
{
link(onEventData,11337918:doEvent1,[])
link(Data,11588391:Var2,[])
}
Add(GetDataEx,11588391,532,497)
{
Angle=1
link(Data,8805158:Var1,[])
}
Add(MT_MultiMem,15032242,798,357)
{
Count=1
link(onData,8531621:doOperation,[])
}
Add(GetDataEx,2025114,847,399)
{
Angle=3
link(Data,15032242:Value1,[(804,404)])
}
Add(Message,6470782,119,413)
{
Message="Произвести замену значений\r\nвыбранной строки?"
Caption="test"
Type=2
Icon=3
Point(onYES)
link(onYES,16592592:doData,[])
}
--- Добавлено в 2018-07-03 23:41:46
Выкладываю архив с последними компонентами DocumentTemplate. Необходимо скопировать все элементы в одноименные папки поверх существующих. Компонентов должно быть 16, если каких-то нет на вкладке, можете добавить их сами.