if ii_action_flag = 0 then
select count(1) into vi_flag_week from LBI_SYS_VDF.t_s_det_week t where t.name = ov_return;
if vi_flag_week = 0 then
insert into LBI_SYS_VDF.t_s_det_week values(seq_det_week.nextval,ov_return);
commit;
end if;
elsif ii_action_flag = 1 then
select count(1) into vi_flag_week from LBI_SYS_VDF.t_s_det_week t where t.name = ov_return;
if vi_flag_week > 0 then
delete from LBI_SYS_VDF.t_s_det_week where name = ov_return;
commit;
end if;
end if;
/*
desription get The vd_flag_date's date
*/
return ov_return;
/*
desription return a number to notify some error had happened
*/