| 发表于:2007-11-09 10:18:082楼 得分:0 |
使用两个表 configtable纪录定义的发布设定 configdetailtable纪录各个发布设定的时间起讫 首先定义类型,系统预先设定 txid txmod 1 tmbeginend 2 daybeginendweek 3 daybeginendmonth 4 daysinglemonth 5 daydoublemonth configtable结构如下 instanceid txid begindate setscope setemp 00001 1 2007-11-09 0000000 20 john 00002 2 2007-11-09 0000000 13-14,25 john 00003 5 2007-11-09 0000000 john 其中setscope栏位用来定义时间区间或则离散值, 前段需要增加对setscope值逻辑正确性查核的程序。 ***在configtable增加触发器, ***自动生成configdetailtable数据。 configdetailtable结构如下 instanceid begindate enddate 00001 2007-11-09 0000000 2007-11-09 1959999 00002 2007-11-13 0000000 2007-11-14 2359999 00002 2007-11-25 0000000 2007-11-25 2359999 00003 2007-11-10 0000000 2007-11-10 2359999 00003 2007-11-12 0000000 2007-11-12 2359999 00003 2007-11-14 0000000 2007-11-14 2359999 。。。 | | |
|