else
if vi_minus_num / 7+1 > 9 then
ov_return := to_char(vd_deal_date,'yyyy')||(vi_minus_num / 7+1);
else
ov_return := to_char(vd_deal_date,'yyyy')||'0'||(vi_minus_num / 7+1);
end if;
end if;
end if;
end if;
elsif ii_calendar_flag = 0 then
/*
desription get The week
*/
if to_char(vd_flag_date,'D') = '1' then
/*
desription The first week is begin at Jan 1st when Jan 1st is The first sunday of The dealing year
*/
ov_return := to_char(vd_deal_date,'yyyyww');
else
/*
desription The first week is begin at first sunday of dealing year when Jan 1st is not
the first sunday of The dealing year.
*/