------------ Дoбавленo в 13.14:
Dilma, извеняюсь, вот правельная схема, но всёравно не работает! (функция на вставку!)
------------ Дoбавленo в 13.15:
Add(EntryPoint,2953706,21,105)
{
link(onStart,12249218:doConnect,[])
}
Add(mysql_connect,12249218,70,105)
{
Host="localhost"
Login="root"
Password="3678300"
DBName="test"
link(onConnect,3131671:doMakeManager,[])
}
Add(DataManager,3131671,119,105)
{
DataSource="hiasm_db"
link(onHeader,12422593:doPrint,[(156,111)(156,55)])
link(onItem,8260762:doPrint,[])
link(onEdit,13853251:doPrint,[(212,132)(212,293)])
link(onInsert,6231874:doPrint,[(212,139)(212,468)])
link(onFooter,12844543:doPrint,[(156,146)(156,433)])
}
Add(DS_MySQL,5598900,119,49)
{
Name="hiasm_db"
SelectState="SELECT *FROM hiasm_menu ORDER BY id"
InsertState="INSERT INTO hiasm_menu (name, fname, type) VALUES ('%name%', '%fname%', '%type%')"
UpdateState="UPDATE hiasm_menu SET name = '%name%',fname = '%fname%',type = '%type%' WHERE id = %id%"
DeleteState="DELETE FROM hiasm_menu WHERE id=%id%"
KeyField="id"
}
Add(HTM_Table,12422593,161,49)
{
PrintMode=1
}
Add(HTM_Table,12844543,161,427)
{
PrintMode=2
}
Add(HTM_Tr,8260762,273,112)
{
link(onPrint,6895766:doEvent,[])
}
Add(Hub,6895766,336,112)
{
OutCount=4
link(onEvent1,1266500:doPrint,[])
link(onEvent2,4072061:doPrint,[(360,125)(360,160)])
link(onEvent3,16707519:doPrint,[(360,132)(360,202)])
link(onEvent4,1179308:doPrint,[(360,139)(360,244)])
}
Add(HTM_Td,1266500,371,112)
{
link(onPrint,1001404:doPrint,[])
}
Add(HTM_Td,4072061,371,154)
{
link(onPrint,11500593:doPrint,[])
}
Add(HTM_Td,16707519,371,196)
{
link(onPrint,11337998:doPrint,[])
}
Add(DM_Label,1001404,420,112)
{
DataBind="name"
}
Add(DM_Label,11500593,420,154)
{
DataBind="fname"
}
Add(DM_Label,11337998,420,196)
{
DataBind="type"
}
Add(HTM_Tr,13853251,273,287)
{
link(onPrint,4637891:doEvent,[])
}
Add(Hub,4637891,336,287)
{
OutCount=4
link(onEvent1,13954948:doPrint,[])
link(onEvent2,5835934:doPrint,[(360,300)(360,335)])
link(onEvent3,479940:doPrint,[(360,307)(360,377)])
link(onEvent4,8722391:doPrint,[(360,314)(360,419)])
}
Add(HTM_Td,13954948,371,287)
{
link(onPrint,3607581:doPrint,[])
}
Add(HTM_Td,5835934,371,329)
{
link(onPrint,6109669:doPrint,[])
}
Add(HTM_Td,479940,371,371)
{
link(onPrint,7957645:doPrint,[])
}
Add(DM_Edit,3607581,420,287)
{
DataBind="name"
}
Add(DM_Edit,6109669,420,329)
{
DataBind="fname"
}
Add(DM_Edit,7957645,420,371)
{
DataBind="type"
}
Add(HTM_Td,1179308,371,238)
{
link(onPrint,10752363:doPrint,[])
}
Add(DM_Button,10752363,420,238)
{
Command=1
Caption="Правка"
link(onPrint,7621668:doPrint,[])
}
Add(HTM_Td,8722391,371,413)
{
link(onPrint,11031419:doPrint,[])
}
Add(DM_Button,11031419,420,413)
{
Command=4
Caption="OK"
}
Add(HTM_Tr,6231874,273,462)
{
link(onPrint,14825992:doEvent,[])
}
Add(Hub,14825992,336,462)
{
OutCount=4
link(onEvent1,7997275:doPrint,[])
link(onEvent2,7436095:doPrint,[(360,475)(360,510)])
link(onEvent3,12572935:doPrint,[(360,482)(360,552)])
link(onEvent4,4606760:doPrint,[(360,489)(360,594)])
}
Add(HTM_Td,7997275,371,462)
{
link(onPrint,3739026:doPrint,[])
}
Add(HTM_Td,7436095,371,504)
{
link(onPrint,7216765:doPrint,[])
}
Add(HTM_Td,12572935,371,546)
{
link(onPrint,9270806:doPrint,[])
}
Add(DM_Edit,3739026,420,462)
{
DataBind="name"
Mode=1
}
Add(DM_Edit,7216765,420,504)
{
DataBind="fname"
Mode=1
}
Add(DM_Edit,9270806,420,546)
{
DataBind="type"
Mode=1
}
Add(HTM_Td,4606760,371,588)
{
link(onPrint,13410248:doPrint,[])
}
Add(DM_Button,7621668,469,238)
{
Command=2
Caption="Удалить"
}
Add(DM_Button,13410248,420,588)
{
Caption="Вставка"
}
Dilma, Удаление и Правка работают!