"rec_priority",
"maiyoubi_type",
"date",
+ "date1",
"start_hour",
"start_minute",
"end_hour",
int i = 1;
for ( String s : RPTPTN ) {
if ( s.equals(r.getRec_pattern()) == true ) {
- newdat.put("date", String.valueOf(i));
+ break;
}
i++;
}
+ if ( i <= RPTPTN_ID_SAT ) {
+ newdat.put("date1", String.valueOf(0x0001 << ((i + 5) % 7)));
+ }
+ else if ( i >= RPTPTN_ID_MON2FRI && i <= RPTPTN_ID_EVERYDAY ) {
+ newdat.put("date1", String.valueOf((0x0001 << (i - 4))-1));
+ }
}
newdat.put("start_hour", r.getAhh());