Package beans.shedule.holiday

Examples of beans.shedule.holiday.SheduleHolidayDetails


           
            if(getDlgResult() == ModalDialog.DLG_CANCEL) {
                return null;
               
            } else if(oneDayBtn.isSelected()) {
                SheduleHolidayDetails details = new SheduleHolidayDetails();
                details.day = (Integer)day.getSelectedItem();
                details.month = (Integer)month.getSelectedItem();
                details.description = description.getText();
                return details;
               
            } else if(periodDayBtn.isSelected()) {
                try {
                    GregorianCalendar gcb = (GregorianCalendar) GregorianCalendar.getInstance();
                    gcb.set(Calendar.DAY_OF_MONTH, (Integer)dayBegin.getSelectedItem());
                    gcb.set(Calendar.MONTH, (Integer)monthBegin.getSelectedItem()-1);
                    GregorianCalendar gce = (GregorianCalendar) GregorianCalendar.getInstance();
                    gce.set(Calendar.DAY_OF_MONTH, (Integer)dayEnd.getSelectedItem());
                    gce.set(Calendar.MONTH, (Integer)monthEnd.getSelectedItem()-1);
                   
                    if(gce.get(Calendar.DAY_OF_YEAR) >= gcb.get(Calendar.DAY_OF_YEAR)
                            && index <= gce.get(Calendar.DAY_OF_YEAR) - gcb.get(Calendar.DAY_OF_YEAR)) {
                        gcb.add(Calendar.DAY_OF_YEAR, index);
                       
                        SheduleHolidayDetails details = new SheduleHolidayDetails();
                        details.day = gcb.get(Calendar.DAY_OF_MONTH);
                        details.month = gcb.get(Calendar.MONTH)+1;
                        details.description = description.getText();
                        return details;                       
                    }
View Full Code Here


        dlg.setVisible(true);
        if(dlg.getDlgResult() == DialogNewHoliday.DLG_OK) {
            try {
                Selector ii = dlg.getDays();
                for(int i=0; i<ii.size(); i++) {
                    SheduleHolidayDetails details = (SheduleHolidayDetails) ii.get(i);
                    if(details != null) {
                        SheduleHolidayData day = new SheduleHolidayData();                       
                        day.setDay(details.day);
                        day.setMonth(details.month);
                        day.setDescription(details.description);
View Full Code Here

*/
public class SheduleHolidayData extends DataChunk<SheduleHolidayDetails>
    implements Mappable<Integer> {
   
    public SheduleHolidayData() throws ClipsException {
        super(new SheduleHolidayDetails());
    }
View Full Code Here

TOP

Related Classes of beans.shedule.holiday.SheduleHolidayDetails

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.