delete from FLOW_CONFIG_ACTIVITY;

insert into FLOW_CONFIG_ACTIVITY (ID, FID, IDENTIFICATION, NAME, DESC1, TYPE, ORDER1, ISSIGN, ASTRATEGY, CSTRATEGY, CNUM, OPENHELP, XYCSS, ATTTYPE, ATTNUM, ISNOTE, FORMPATH, ISMESSAGE, MESSAGE, ISSAVE1, ISSAVE2, ISLEAVE1, ISLEAVE2, ADDFORMPATH, ADDFORMWIDTH, ADDFORMHEIGHT, ADDFORMMESSAGE, ISBRANCH)
values ('0000000001', '0000000001', 'FA0000000001', '开始', null, '1', 0, null, null, null, null, null, '1/0/开始活动//1/831px/1559px', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null);
insert into FLOW_CONFIG_ACTIVITY (ID, FID, IDENTIFICATION, NAME, DESC1, TYPE, ORDER1, ISSIGN, ASTRATEGY, CSTRATEGY, CNUM, OPENHELP, XYCSS, ATTTYPE, ATTNUM, ISNOTE, FORMPATH, ISMESSAGE, MESSAGE, ISSAVE1, ISSAVE2, ISLEAVE1, ISLEAVE2, ADDFORMPATH, ADDFORMWIDTH, ADDFORMHEIGHT, ADDFORMMESSAGE, ISBRANCH)
values ('0000000003', '0000000001', 'FA0000000003', '结束', null, '2', 10000, null, null, null, null, null, '1/-1/结束活动/0000000006/2/6391px/1723px', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null);
insert into FLOW_CONFIG_ACTIVITY (ID, FID, IDENTIFICATION, NAME, DESC1, TYPE, ORDER1, ISSIGN, ASTRATEGY, CSTRATEGY, CNUM, OPENHELP, XYCSS, ATTTYPE, ATTNUM, ISNOTE, FORMPATH, ISMESSAGE, MESSAGE, ISSAVE1, ISSAVE2, ISLEAVE1, ISLEAVE2, ADDFORMPATH, ADDFORMWIDTH, ADDFORMHEIGHT, ADDFORMMESSAGE, ISBRANCH)
values ('0000000004', '0000000001', 'FA0000000004', '填表', null, '3', 1, '0', '1', '1', 0, '1', '1/0000000004/填表/0/3/2072px/1446px', '2', 0, null, null, null, null, '1', '1', '0', '0', null, null, null, null, '0');
insert into FLOW_CONFIG_ACTIVITY (ID, FID, IDENTIFICATION, NAME, DESC1, TYPE, ORDER1, ISSIGN, ASTRATEGY, CSTRATEGY, CNUM, OPENHELP, XYCSS, ATTTYPE, ATTNUM, ISNOTE, FORMPATH, ISMESSAGE, MESSAGE, ISSAVE1, ISSAVE2, ISLEAVE1, ISLEAVE2, ADDFORMPATH, ADDFORMWIDTH, ADDFORMHEIGHT, ADDFORMMESSAGE, ISBRANCH)
values ('0000000005', '0000000001', 'FA0000000005', '部门经理审批', null, '3', 2, '1', '1', '1', 0, '1', '1/0000000005/部门经理审批/0000000004/3/3365px/1364px', '4', 0, null, null, null, null, null, null, null, null, null, null, null, null, '1');
insert into FLOW_CONFIG_ACTIVITY (ID, FID, IDENTIFICATION, NAME, DESC1, TYPE, ORDER1, ISSIGN, ASTRATEGY, CSTRATEGY, CNUM, OPENHELP, XYCSS, ATTTYPE, ATTNUM, ISNOTE, FORMPATH, ISMESSAGE, MESSAGE, ISSAVE1, ISSAVE2, ISLEAVE1, ISLEAVE2, ADDFORMPATH, ADDFORMWIDTH, ADDFORMHEIGHT, ADDFORMMESSAGE, ISBRANCH)
values ('0000000006', '0000000001', 'FA0000000006', '总经理审批', null, '3', 3, '1', '1', '1', 0, '1', '1/0000000006/总经理审批/0000000005/3/4842px/1303px', '4', 0, null, null, null, null, null, null, null, null, null, null, null, null, '1');


delete from FLOW_CONFIG_ACTIVITY_BUTTON;

insert into FLOW_CONFIG_ACTIVITY_BUTTON (ID, FID, BUTTONID, BWHERE)
values ('000000000014', '0000000004', '00000008', null);
insert into FLOW_CONFIG_ACTIVITY_BUTTON (ID, FID, BUTTONID, BWHERE)
values ('000000000017', '0000000006', '00000007', null);
insert into FLOW_CONFIG_ACTIVITY_BUTTON (ID, FID, BUTTONID, BWHERE)
values ('000000000018', '0000000006', '00000003', null);
insert into FLOW_CONFIG_ACTIVITY_BUTTON (ID, FID, BUTTONID, BWHERE)
values ('000000000013', '0000000004', '00000007', null);
insert into FLOW_CONFIG_ACTIVITY_BUTTON (ID, FID, BUTTONID, BWHERE)
values ('000000000015', '0000000005', '00000007', null);
insert into FLOW_CONFIG_ACTIVITY_BUTTON (ID, FID, BUTTONID, BWHERE)
values ('000000000016', '0000000005', '00000008', null);
insert into FLOW_CONFIG_ACTIVITY_BUTTON (ID, FID, BUTTONID, BWHERE)
values ('000000000019', '0000000005', '00000005', null);


delete from FLOW_CONFIG_ACTIVITY_CONNE;

insert into FLOW_CONFIG_ACTIVITY_CONNE (ID, FID, CID, SID, EID, NAME, DESC1, WHERE1, TYPE, ISNEED, ISATT)
values ('0000000001', '0000000001', '0000000004', '0000000001', null, null, null, null, '7', '0', '0');
insert into FLOW_CONFIG_ACTIVITY_CONNE (ID, FID, CID, SID, EID, NAME, DESC1, WHERE1, TYPE, ISNEED, ISATT)
values ('0000000002', '0000000001', '0000000005', '0000000004', null, null, null, null, '7', '0', '0');
insert into FLOW_CONFIG_ACTIVITY_CONNE (ID, FID, CID, SID, EID, NAME, DESC1, WHERE1, TYPE, ISNEED, ISATT)
values ('0000000003', '0000000001', '0000000006', '0000000005', null, null, null, null, '7', '0', '0');
insert into FLOW_CONFIG_ACTIVITY_CONNE (ID, FID, CID, SID, EID, NAME, DESC1, WHERE1, TYPE, ISNEED, ISATT)
values ('0000000004', '0000000001', '0000000003', '0000000006', null, null, null, null, '7', '0', '0');


delete from FLOW_CONFIG_ACTIVITY_GROUP;

insert into FLOW_CONFIG_ACTIVITY_GROUP (ID, ACTIVITYID, GROUPID)
values ('0000000031', '0000000005', '2');
insert into FLOW_CONFIG_ACTIVITY_GROUP (ID, ACTIVITYID, GROUPID)
values ('0000000034', '0000000006', '2');
insert into FLOW_CONFIG_ACTIVITY_GROUP (ID, ACTIVITYID, GROUPID)
values ('0000000027', '0000000004', '1');
insert into FLOW_CONFIG_ACTIVITY_GROUP (ID, ACTIVITYID, GROUPID)
values ('0000000028', '0000000004', '2');
insert into FLOW_CONFIG_ACTIVITY_GROUP (ID, ACTIVITYID, GROUPID)
values ('0000000032', '0000000005', '3');
insert into FLOW_CONFIG_ACTIVITY_GROUP (ID, ACTIVITYID, GROUPID)
values ('0000000033', '0000000006', '1');
insert into FLOW_CONFIG_ACTIVITY_GROUP (ID, ACTIVITYID, GROUPID)
values ('0000000035', '0000000006', '3');
insert into FLOW_CONFIG_ACTIVITY_GROUP (ID, ACTIVITYID, GROUPID)
values ('0000000029', '0000000004', '3');
insert into FLOW_CONFIG_ACTIVITY_GROUP (ID, ACTIVITYID, GROUPID)
values ('0000000030', '0000000005', '1');


delete from FLOW_CONFIG_PACKAGE;

insert into FLOW_CONFIG_PACKAGE (ID, IDENTIFICATION, NAME, DESC1, STATUS, ICO, CREATEPSN, CREATEDATE, FID)
values ('001', 'FP520000001', '演示流程', null, '1', '4', '5200000000000001', '2012-07-30', '000');


delete from FLOW_CONFIG_PROCESS;

insert into FLOW_CONFIG_PROCESS (ID, IDENTIFICATION, NAME, DESC1, FLOWPACKAGE, DOCID, STATUS, CREATEPSN, CREATEDATE, CODE, ICO, TYPE, CNUM, FORMTYPE, ISDELETEFORM, DCODE)
values ('0000000001', 'WF00000001', '项目评审审批', null, '001', '00000002', '1', '0100000000000002', '2012-08-01', null, '1', '1', 0, '1', '1', '1af6cf46d363b0aa5da0d14236aaf8e4');


