Вверх ↑
Ответов: 783
Рейтинг: 168
#1: 2024-02-13 14:25:34 ЛС | профиль | цитата
prostov писал(а):
как сделать сортировку чисел от большего к меньшему и наоборот

Будет сортироваться по тому столбцу, на заголовок которого будешь кликать.

StringTableMT
Add(MainForm,16384747,231,133)
{
Width=550
Height=425
link(onCreate,6046155:doWork1,[])
}
Add(MultiElement,6046155,294,147)
{
link(onEvent1,5499133:doAdd,[])
}
BEGIN_SDK
Add(EditMulti,13554181,21,21)
{
EventCount=1
WorkCount=1
Width=262
Height=225
link(doWork1,2349744:doTimer,[(63,27)(63,69)])
}
Add(FormatStr,7792619,154,70)
{
DataCount=0
Mask="ertert;ytuiuyi;8 000 000;ghbjgjguit"
link(onFString,5020440:doEvent1,[(194,76)(194,118)])
}
Add(FormatStr,5278433,154,105)
{
DataCount=0
Mask="vsdcas;nmhgff;18 000 000;y56hytrfygj"
link(onFString,5020440:doEvent2,[(194,111)(194,125)])
}
Add(FormatStr,9568085,154,140)
{
DataCount=0
Mask="lkvmbn.jhg;dvcvcx;1 000 000;fdgbfygnuy"
link(onFString,5020440:doEvent3,[(194,146)(194,132)])
}
Add(FormatStr,15217098,154,175)
{
DataCount=0
Mask="fghftg;fdghulo;4 000 000;vsdedrhgdrftgse"
link(onFString,5020440:doEvent4,[(194,181)(194,139)])
}
Add(Hub,5020440,203,112)
{
InCount=4
OutCount=1
link(onEvent1,13554181:onEvent1,[(250,118)(250,27)])
}
Add(Timer,2349744,70,63)
{
Interval=250
Enable=1
AutoStop=1
link(onTimer,14932434:doEvent1,[])
}
Add(Timer,11296269,70,105)
{
Interval=250
Enable=1
AutoStop=1
link(onTimer,8366962:doEvent1,[])
}
Add(Hub,14932434,112,63)
{
link(onEvent1,7792619:doString,[(140,69)(140,76)])
link(onEvent2,11296269:doTimer,[(138,76)(138,94)(58,94)(58,111)])
}
Add(Hub,8366962,112,105)
{
link(onEvent1,5278433:doString,[])
link(onEvent2,4707685:doTimer,[(138,118)(138,136)(58,136)(58,153)])
}
Add(Timer,4707685,70,147)
{
Interval=250
Enable=1
AutoStop=1
link(onTimer,11751497:doEvent1,[])
}
Add(Hub,11751497,119,147)
{
link(onEvent1,9568085:doString,[(143,153)(143,146)])
link(onEvent2,11572336:doTimer,[(145,160)(145,178)(58,178)(58,195)])
}
Add(Timer,11572336,70,189)
{
Interval=250
Enable=1
AutoStop=1
link(onTimer,15217098:doString,[(128,195)(128,181)])
}
END_SDK
Add(StringTableMT,5499133,364,147)
{
Left=10
Top=40
Width=515
Height=335
Columns=#15:описание 1 =100|15:описание 2 =100|9:цена =100|17:доп описание =100|
ColumnClick=1
SelectFind=1
MultiSelect=0
MethodSort=1
IconsCheck=[]
MiscIcons=[]
Icons=[]
Point(Matrix)
Point(onMT_EMatrix)
Point(doMT_EMatrix)
Point(doSelect)
Point(doAddTextStrLst)
Point(doLoadFStream)
Point(doAddStrLst)
Point(doMT_Add)
Point(Strings)
Point(FTblStream)
Point(StrLst)
Point(onColumnClick)
Point(doSort)
Point(doSortDigit)
Point(doSortExtCmp)
Point(doRefresh)
Point(onMT_GetCol)
Point(ExtCmp)
Point(doMethodSort)
link(onColumnClick,12279164:doEvent1,[(403,167)(403,258)(249,258)(249,230)])
}
Add(Edit,13947856,385,91)
{
Left=140
Top=10
Width=190
Text="‹1"
}
Add(Hub,12279164,259,224)
{
OutCount=3
link(onEvent1,4024209:doSwitch,[(305,230)(305,244)])
link(onEvent2,5499133:doSort,[(284,237)(284,216)])
link(onEvent3,5499133:doSortDigit,[(291,244)(291,223)])
}
Add(Switch,4024209,315,238)
{
DataOn=Integer(0)
DataOff=Integer(1)
link(onSwitch,5499133:doMethodSort,[])
}


MTStrTb
Add(MainForm,1495570,126,119)
{
Width=608
Height=479
link(onCreate,27875:doConvert,[])
}
Add(StrList,3013988,175,84)
{
Strings=#42:Артикул;Название;Кол-во;Ед.изм.;Цена;Сумма|56:23544122;Carbon disc ?44,7/38,3x5,8mm;10;PC;16,92;169,20|56:23544122;Carbon disc ?44,7/38,3x5,8mm;10;PC;16,92;169,20|54:23544122;Carbon disc ?44,7/38,3x5,8mm;2;PC;16,92;33,84|64:21200159;Top part UNIFL3/4 for steel bot.part;25;PC;30,09;752,25|57:24400111;Hose f. pump compl. UNIWASH;153;PC;10,58;1618,74|58:13225;Piston complete for valve UNIWASH3;4;PC;27,09;108,36|60:12200105;Vacuumgauge glycerine ?100mm 3/8";5;PC;40,57;202,85|54:21200141;Thread bush UNIFLOW3 steel;130;PC;1,93;250,90|45:25100146;O-ring ?16,1x1,6mm;175;PC;0,36;63,00|57:21200127;Holder rocking lever, UNIFLOW3;170;PC;0,26;44,20|50:21200131;Rocking lever UNIFLOW3;150;PC;0,89;133,50|65:25200132;Valve button inside UNIFLOW3 steel FA;225;PC;0,72;162,00|61:21200129;Bar closing device UNIFLOW3 steel;225;PC;1,09;245,25|55:25200124;Valve flap outside UNIFLOW3;225;PC;1,56;351,00|60:14400212;Solenoid valve sgl. invensys 230vac;5;PC;8,50;42,50|62:14400213;Solenoid valve dobb. invensys 230vac;5;PC;14,13;70,65|48:21200131;Rocking lever UNIFLOW3;20;PC;0,89;17,80|63:25200132;Valve button inside UNIFLOW3 steel FA;20;PC;0,72;14,40|43:25100146;O-ring ?16,1x1,6mm;20;PC;0,36;7,20|55:21200127;Holder rocking lever, UNIFLOW3;20;PC;0,26;5,20|58:21200130;Bar closing device UNIFLOW3 steel;20;PC;0,34;6,80|58:25200119;Guard bracket UNIFLOW3 steel SBS;20;PC;3,38;67,60|55:13474;Valve flap exterior UNIFLOW3 SBS;20;PC;1,56;31,20|59:26400104;Terminal wheel for lock guide str;20;PC;1,12;22,40|67:25215022;Rubber liner UNIFL. 15022-?22 UNIFLEX FA;96;PC;2,39;229,44|55:14800695;Hose guide f. SAC115 complete;10;PC;9,17;91,70|36:14306;Filter for IDC;20;PC;0,40;8,00|51:25515435;Rubber hose ?27/16 mm - FA;15;M;5,24;78,60|63:13930;Double-action Quickstart II rem. L=740mm;1;PC;98,66;98,66|54:13100201;Spray gun for udder washer;20;PC;17,77;355,40|0:|
}
Add(StreamConvertor,27875,175,133)
{
Mode=7
Point(Data)
link(onResult,5630780:doLoadFromStream,[])
link(Data,3013988:Text,[])
}
Add(MST_Load,5630780,224,126)
{
MSTControl="MTStrTbl"
link(onLoadFromStream,14674062:doColAction,[])
}
Add(MST_ColAction,14674062,280,133)
{
Action=9
Index=-2
MSTControl="MTStrTbl"
}
Add(MTStrTbl,4593529,119,203)
{
Top=50
Width=592
Height=285
Align=5
Name="MTStrTbl"
ColumnClick=1
MultiSelect=0
Point(onSelect)
link(onColumnClick,5741106:doEvent1,[])
}
Add(ChangeMon,244368,224,210)
{
link(onData,4024209:doReset,[])
}
Add(MST_SortInCol,1054904,350,210)
{
MSTControl="MTStrTbl"
Point(doMethodSort)
Point(doSortDigit)
}
Add(Switch,4024209,273,203)
{
DataOn=Integer(0)
DataOff=Integer(1)
link(onSwitch,1054904:doMethodSort,[(340,209)(340,223)])
}
Add(Hub,5741106,175,210)
{
OutCount=4
link(onEvent1,244368:doData,[])
link(onEvent2,4024209:doSwitch,[(207,223)(207,209)])
link(onEvent3,1054904:doSort,[(312,230)(312,216)])
link(onEvent4,1054904:doSortDigit,[(319,237)(319,230)])
}

карма: 15

1
Голосовали:prostov
Редактировалось 3 раз(а), последний 2024-02-13 14:38:40