Results 1 to 17 of 17
  1. #1
    Preethi is offline Member
    Join Date
    Jan 2008
    Posts
    83
    Rep Power
    0

    Unhappy Problem in repaint

    :confused: I'm doing a program in JApplet.In that i have a problem in
    dragging the shape...I can able to drag but the previous position remains in the same
    place,only a copy of it is,dragged..I'm calling the repaint method,even then i have this problem
    please help me

  2. #2
    hardwired's Avatar
    hardwired is offline Senior Member
    Join Date
    Jul 2007
    Posts
    1,576
    Rep Power
    8

    Default

    Can you show us your code?

  3. #3
    Preethi is offline Member
    Join Date
    Jan 2008
    Posts
    83
    Rep Power
    0

    Default

    import java.awt.BorderLayout;
    import java.awt.Color;
    import java.awt.Container;
    import java.awt.Dimension;
    import java.awt.Font;
    import java.awt.Graphics;
    import java.awt.Graphics2D;
    import java.awt.Point;
    import java.awt.Rectangle;
    import java.awt.RenderingHints;
    import java.awt.event.*;
    import java.awt.geom.*;
    import java.io.FileNotFoundException;

    import java.io.IOException;
    import java.sql.Time;

    import java.text.*;

    import java.util.ArrayList;
    import java.util.Calendar;
    import java.util.Date;
    import java.util.HashMap;
    import java.util.Iterator;
    import java.util.Map;
    import javax.swing.*;
    import org.xml.sax.*;
    import org.xml.sax.helpers.*;




    public class mousedrag extends javax.swing.JApplet {


    @Override
    public void init() {
    Container cont = getContentPane();
    cont.setLayout(new BorderLayout());
    setPreferredSize(new Dimension(300, 300));

    JScrollPane scroll = new JScrollPane();
    getContentPane().add(scroll, BorderLayout.CENTER);
    scroll.getViewport().add(new Imagepanel());
    }

    private class Imagepanel extends JPanel implements MouseListener,MouseMotionListener{
    public static final long serialVersionUID = 0;

    public Imagepanel()
    {
    panel();
    addMouseMotionListener(this);
    addMouseListener(this);

    }


    public void panel()
    {
    Graphics g1 = this.g;
    int dimension =0 ;

    setPreferredSize(new Dimension(33060,33060));
    setBorder(BorderFactory.createLineBorder(Color.BLA CK, border));
    }

    @Override
    public void paint(Graphics g)
    {
    super.paintComponent(g);
    Graphics2D g2 = (Graphics2D)g;
    g2.setRenderingHint(RenderingHints.KEY_ANTIALIASIN G, RenderingHints.VALUE_ANTIALIAS_ON);

    g2.setColor(getBackground());
    g2.fillRect(0, 0, getWidth(), getHeight());
    g2.setColor(getForeground());


    if(drawpanel){drawPanel(g2);}
    if(drawresource){drawResource(g2);}
    if(drawcalender)
    {
    drawCalendar(g2);
    }




    }

    public void drawPanel(Graphics g){
    int margin = 10;
    int imgborder = 10;
    int imgline1 = 300;
    int titlebarx = 300;
    int titlebary = 50;
    Graphics2D g2 = (Graphics2D) g;
    //g2.setRenderingHint(RenderingHints.KEY_ANTIALIASIN G, RenderingHints.VALUE_ANTIALIAS_ON);

    g2.drawLine(imgline1, 0, imgline1, getHeight());
    g2.setPaint(new Color(0, 128, 192));
    g2.fillRect(imgborder, imgborder, 290, 45);
    g2.setPaint(Color.WHITE);

    g2.drawLine(margin, margin, titlebarx, titlebary);
    g2.drawString("RESOURCE", 40, 40);
    g2.drawString("TIME", 200, 25);
    }
    public void drawResource(Graphics g){

    }

    public Date drawCalendar( Graphics g){



    }

    public Date [] drawwrk(Graphics g)
    {

    }



    public void mouseClicked(MouseEvent e)
    {

    }

    public void drawdig(Graphics g)
    {
    Graphics2Dn g2 = (Graphics2D)g;
    g2.setPaint(new Color(0,157,250));
    System.out.println(rectangles.size()+"SIZE");
    for(Rectangle ret : rectangles)
    {
    g2.draw(ret);
    g2.fill(ret);

    }


    }


    public void mousePressed(MouseEvent e)
    {

    }

    public void mouseReleased(MouseEvent e) {

    }

    public void mouseEntered(MouseEvent e) {}

    public void mouseExited(MouseEvent e) {}



    public void mouseDragged(MouseEvent e)

    public void mouseDragged(MouseEvent e)
    {
    Point p = e.getPoint();
    Rectangle[] r = rectangles.toArray(new Rectangle[rectangles.size()]);
    for(int i=0, j = rectangles.size(); i<j ; i++)
    {
    Point lastP = (Point)lastPos.get(r[i]);
    if(r[i].contains(p))
    {
    int new_x = (e.getX()+(int)r[i].getX()) - (int)r[i].getX();
    r[i].translate(new_x, e.getY());

    }

    lastPos.put(r[i], p);


    }
    }
    repaint();

    }
    public void actionPerformed(MouseEvent e)
    {

    }
    public void mouseMoved(MouseEvent e)
    {

    lastPos.clear();

    }

    }

    }

    Please help,me

  4. #4
    hardwired's Avatar
    hardwired is offline Senior Member
    Join Date
    Jul 2007
    Posts
    1,576
    Rep Power
    8

    Default

    Java Code:
    //  <applet code="MDRx" width="400" height="400"></applet>
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    
    public class MDRx extends JApplet {
        @Override
        public void init() {
            Container cont = getContentPane();
            cont.setLayout(new BorderLayout());
            setPreferredSize(new Dimension(300, 300));
    
            JScrollPane scroll = new JScrollPane();
            getContentPane().add(scroll, BorderLayout.CENTER);
            scroll.getViewport().add(new Imagepanel());
        }
    
        private class Imagepanel extends JPanel
                 implements MouseListener, MouseMotionListener {
            Rectangle[] rects;
            Rectangle selectedRect;
            Point offset = new Point();
            boolean dragging = false;
    
            public Imagepanel() {
                rects = new Rectangle[2];
                rects[0] = new Rectangle(25, 25, 100, 100);
                rects[1] = new Rectangle(200, 150, 150, 100);
                setPreferredSize(new Dimension(//33060,33060));
                                               400, 400));
                setBorder(BorderFactory.createLineBorder(Color.BLACK));
                addMouseMotionListener(this);
                addMouseListener(this);
            }
    
            @Override
            protected void paintComponent(Graphics g) {
                super.paintComponent(g);
                Graphics2D g2 = (Graphics2D)g;
                g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                                    RenderingHints.VALUE_ANTIALIAS_ON);
    
                g2.setColor(getBackground()); 
                g2.fillRect(0, 0, getWidth(), getHeight()); 
                g2.setColor(getForeground());
    //            drawPanel(g2);
                drawRects(g2);
            }
    
            public void drawPanel(Graphics2D g2) {
                int margin = 10;
                int imgborder = 10;
                int imgline1 = 300;
                int titlebarx = 300;
                int titlebary = 50;
    
                g2.drawLine(imgline1, 0, imgline1, getHeight());
                g2.setPaint(new Color(0, 128, 192));
                g2.fillRect(imgborder, imgborder, 290, 45);
                g2.setPaint(Color.WHITE);
    
                g2.drawLine(margin, margin, titlebarx, titlebary);
                g2.drawString("RESOURCE", 40, 40);
                g2.drawString("TIME", 200, 25);
            }
    
            public void drawRects(Graphics2D g2) {
                g2.setPaint(new Color(0,157,250));
                for(Rectangle ret : rects) { 
                    g2.draw(ret);
    //                g2.fill(ret);
                }
            }
    
            public void mousePressed(MouseEvent e) {
                Point p = e.getPoint();
                for(int j = 0; j < rects.length; j++) {
                    if(rects[j].contains(p)) {
                        selectedRect = rects[j];
                        offset.x = p.x - rects[j].x;
                        offset.y = p.y - rects[j].y;
                        dragging = true;
                        break;
                    }
                }
            }
    
            public void mouseReleased(MouseEvent e) {
                dragging = false;
            }
    
            public void mouseDragged(MouseEvent e) {
                if(dragging) {
                    int new_x = e.getX() - offset.x;
                    int new_y = e.getY() - offset.y;
                    selectedRect.setLocation(new_x, new_y);
                    repaint();
                }
            }
    
            public void mouseClicked(MouseEvent e) {}
            public void mouseEntered(MouseEvent e) {}
            public void mouseExited(MouseEvent e) {}
            public void mouseMoved(MouseEvent e) {}
        }
    }

  5. #5
    Preethi is offline Member
    Join Date
    Jan 2008
    Posts
    83
    Rep Power
    0

    Default

    Still i have the same problem...Please help me

  6. #6
    hardwired's Avatar
    hardwired is offline Senior Member
    Join Date
    Jul 2007
    Posts
    1,576
    Rep Power
    8

    Default

    I can able to drag but the previous position remains in the same
    place,only a copy of it is,dragged

    ...
    Still i have the same problem
    The applet posted above (post 4) does not show this behavior. To run it with the appletviewer from the prompt use:
    Java Code:
    prompt>appletviewer MDRx.java
    One difficulty in developing applets with an html file is that the Java plug–in and some browsers cache the applet and will not check for or use updated class files. You end up having to change the file name for each change. The appletviewer tool will use the current/latest class files.

  7. #7
    Preethi is offline Member
    Join Date
    Jan 2008
    Posts
    83
    Rep Power
    0

    Default

    I tried in that way too...But its still showing the same error...

  8. #8
    Preethi is offline Member
    Join Date
    Jan 2008
    Posts
    83
    Rep Power
    0

    Default

    package saxExamples;


    import javax.swing.*;
    import java.awt.*;
    import java.awt.BorderLayout;
    import java.awt.Color;
    import java.awt.Container;
    import java.awt.Dimension;
    import java.awt.Font;
    import java.awt.Graphics;
    import java.awt.Graphics2D;
    import java.awt.Point;
    import java.awt.Rectangle;
    import java.awt.RenderingHints;
    import java.awt.event.*;
    import java.awt.geom.*;
    import java.io.FileNotFoundException;
    import java.io.IOException;
    import java.sql.Time;
    import java.text.*;
    import java.util.ArrayList;
    import java.util.Calendar;
    import java.util.Date;
    import java.util.HashMap;
    import java.util.Iterator;
    import java.util.Map;
    import javax.swing.*;
    import org.xml.sax.*;
    import org.xml.sax.helpers.*;




    public class mousedrag extends javax.swing.JApplet
    {
    ArrayList <BasicDom> x_list ;

    int xPos,yPos;
    public mousedrag()
    {
    mousedrag.Imagepanel image = new mousedrag.Imagepanel();
    x_list = image.getData();
    }
    @Override
    public void init() {
    Container cont = getContentPane();


    cont.setLayout(new BorderLayout());
    setPreferredSize(new Dimension(300, 300));

    JScrollPane scroll = new JScrollPane();
    getContentPane().add(scroll, BorderLayout.CENTER);
    scroll.getViewport().add(new Imagepanel());
    }

    private class Imagepanel extends JPanel implements MouseListener,MouseMotionListener
    {
    public static final long serialVersionUID = 0;

    Imagepanel image;

    private int border = 2;

    boolean selected= false;
    boolean selected1= false;

    /*Iterator for drawing the resource tree(for the tag<res_mseg>)*/
    private Iterator<DataObject> it;
    /*Iteartor for the work order attribute in the tag <rev_mseg>*/
    private Iterator<DrawingData> it_wrk_drawing;
    /*Iterator for the attribute wo_from_date in the tag <rev_mseg>*/
    private Iterator<FromDateData> it_frmdate;
    /*Iterator for the attribute wo_to_date in the tag <rev_mseg>*/
    private Iterator<ToDateData> it_todate;

    protected ArrayList<DataObject> res_mseg;
    protected ArrayList<DrawingData> rev_list;
    protected ArrayList<FromDateData> frm_list;
    protected ArrayList<WrkorderData> wrk ;
    ArrayList<ToDateData> todate_list;
    ArrayList<FromTime>fromtime_list;
    ArrayList<ToTime> totime_list;
    ArrayList<FromDateData> frmdate_list = new ArrayList<FromDateData>();
    boolean drawpanel = true;
    boolean drawresource = true;
    boolean drawcalender = true;
    boolean canDrag = false;
    public Date date1;
    ArrayList str_wrk = new ArrayList();
    ArrayList <Date>str_frmdate ;
    ArrayList <Date>str_todate = new ArrayList<Date>();
    ArrayList <Date>str_frmtime = new ArrayList<Date>();
    ArrayList <Date>str_totime = new ArrayList<Date>();
    ArrayList resno_list = new ArrayList ();
    int noday;
    int no_of_days;
    Date fromDate;
    Graphics g;
    MouseEvent e;
    int rect_x;
    int rect_y;
    int rect_w;
    int rect_ht;
    int x,y,w,ht;
    //Rectangle r = new Rectangle();
    int r_x=100;
    int r_y =100;
    int r_w =15;
    int r_ht = 10;
    Rectangle r1 = new Rectangle(r_x,r_y,r_w,r_ht);
    ArrayList<Integer> x_cord_list = new ArrayList<Integer>();
    ArrayList<Integer> y_cord_list = new ArrayList<Integer>();
    ArrayList<Integer> width_list = new ArrayList<Integer> ();
    ArrayList<Rectangle> rectangles = new ArrayList<Rectangle> ();
    ArrayList<Rectangle> rectangle = new ArrayList<Rectangle> ();
    Rectangle clickedRectangle = null;
    Rectangle r = new Rectangle(rect_x,rect_y,rect_w,rect_ht);
    Rectangle [] panel;
    //mousedrag.Imagepanel[] panel ;
    Map <Rectangle , Point > lastPos = new HashMap <Rectangle ,Point > ();
    int x_Pos,y_Pos;
    // JOptionPane optionpane = new JOptionPane();
    JPanel optpane = new JPanel();

    Rectangle selectedRect;
    Point offset = new Point();
    boolean dragging = false;
    Rectangle[] rects;

    public Imagepanel()
    {
    panel();
    addMouseMotionListener(this);
    addMouseListener(this);

    }


    public void panel()
    {
    Graphics g1 = this.g;
    int dimension =0 ;

    setPreferredSize(new Dimension(33060,33060));

    Imagepanel imagepanel ;
    setBorder(BorderFactory.createLineBorder(Color.BLA CK, border));
    }

    @Override
    public void paint(Graphics g)
    {
    super.paintComponent(g);
    Graphics2D g2 = (Graphics2D)g;
    g2.setRenderingHint(RenderingHints.KEY_ANTIALIASIN G, RenderingHints.VALUE_ANTIALIAS_ON);

    g2.setColor(getBackground());
    g2.fillRect(0, 0, getWidth(), getHeight());
    g2.setColor(getForeground());


    if(drawpanel){drawPanel(g2);}
    if(drawresource){drawResource(g2);}
    if(drawcalender)
    {
    drawCalendar(g2);
    }


    g2.setPaint(new Color(0,157,250));
    System.out.println(rectangles.size()+"SIZE");
    rects = rectangles.toArray(new Rectangle[rectangles.size()]);
    for(Rectangle ret : rects)
    //for(Rectangle ret : rectangles)
    {
    g2.draw(ret);
    //g2.fill(ret);

    }

    }

    public void drawPanel(Graphics g){
    int margin = 10;
    int imgborder = 10;
    int imgline1 = 300;
    int titlebarx = 300;
    int titlebary = 50;
    Graphics2D g2 = (Graphics2D) g;
    //g2.setRenderingHint(RenderingHints.KEY_ANTIALIASIN G, RenderingHints.VALUE_ANTIALIAS_ON);

    g2.drawLine(imgline1, 0, imgline1, getHeight());
    g2.setPaint(new Color(0, 128, 192));
    g2.fillRect(imgborder, imgborder, 290, 45);
    g2.setPaint(Color.WHITE);

    g2.drawLine(margin, margin, titlebarx, titlebary);
    g2.drawString("RESOURCE", 40, 40);
    g2.drawString("TIME", 200, 25);
    }
    public void drawResource(Graphics g){
    int x_axis= 50;
    int y_axis = 80;
    Graphics2D g2 = (Graphics2D) g;
    g2.setRenderingHint(RenderingHints.KEY_ANTIALIASIN G, RenderingHints.VALUE_ANTIALIAS_ON);

    XMLReading xmlreadingObj = new XMLReading();
    try {
    xmlreadingObj.fileParsing("C:/Documents and Settings/8563/TEST/src/Gantt.xml");
    } catch (FileNotFoundException ex) {
    ex.printStackTrace();
    } catch (SAXException ex) {
    ex.printStackTrace();
    } catch (IOException ex) {
    ex.printStackTrace();
    }

    it = xmlreadingObj.getres_list().iterator();
    it_wrk_drawing = xmlreadingObj.getrev__wrkOrder_list().iterator();
    it_frmdate = xmlreadingObj.getrev_frmdate_list().iterator();
    it_todate = xmlreadingObj.getrev_todate_list().iterator();
    int size = xmlreadingObj.getres_list().size();
    //System.out.print("res"+size);
    g2.setPaint(new Color(0, 128, 192));
    //int y_line = 93;
    int y_rect = 72;
    int tree_rect_width = 13;
    int tree_rect_height = 10;
    int panel_line_x = 300;
    for (int len=0;len<size;len++)
    {
    while(it.hasNext()) {
    Font font_resourcetrees = new Font("Ariel",Font.PLAIN,9);
    g2.setFont(font_resourcetrees);
    g2.fillRect(30,y_rect,tree_rect_width,tree_rect_he ight);

    g2.drawLine(panel_line_x,y_axis+14,getWidth(),y_ax is+14);
    g2.drawString(""+it.next(),x_axis,y_axis);

    /*line for seperating the resource*/
    y_axis += 28;

    y_rect += 28;
    //y_line +=34;
    }
    }
    }

    public Date drawCalendar( Graphics g){

    Graphics2D g2 = (Graphics2D)g;
    //g2.setRenderingHint(RenderingHints.KEY_ANTIALIASIN G, RenderingHints.VALUE_ANTIALIAS_ON);
    //int nodays = date_difference(g2);
    int no_ofday = this.no_of_days;
    long from;
    long to;
    int n = 168;
    int x = 300;
    int x1_cal = 300;
    int x3 = x;
    int width1 = 180;
    int daydx = (width1 / 2);
    int dayx = (daydx + x);
    int f2 = x + n;
    String date[] = {"0", "4", "8", "12", "16", "20", "24"};

    int total_no_days = date_difference(g2);
    //System.out.println("from calendar"+total_no_days);
    long days =(long) total_no_days;
    no_ofday = (int) days ;

    Date [] arraydate = drawwrk(g2);
    g2.setPaint(Color.BLACK);
    Calendar c = Calendar.getInstance(); // current date*
    Calendar c1 = Calendar.getInstance();
    Date local_fromDate = arraydate[0];
    //System.out.println(fromDate +"frmdat:From calendar");

    Date toDate = arraydate[arraydate.length-1];
    c.setTime(local_fromDate);

    for (int i = 0; i < no_ofday; i++) {
    SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
    SimpleDateFormat sdf1 = new SimpleDateFormat("EEE");
    // use the pattern: day_of_month
    String str = sdf.format(c.getTime()); // fromat the date to string
    String str3 = sdf1.format(c1.getTime());
    for (int j = 0; j < 6; j++)
    {
    Font font1 = new Font("Ariel", Font.PLAIN, 9);
    g2.setFont(font1);
    g2.drawLine(x1_cal, 50, x1_cal, 55);
    g2.drawString(date[j], x1_cal, 45);
    x1_cal += 30;
    }
    g2.drawRect(x, 10, width1, 45);
    g2.drawString("24", f2, 45);
    f2 += width1;
    x += width1;
    g2.drawString(str, dayx-10, 35);
    g2.drawString(str3,dayx-5,20);
    dayx += 180;
    int nextdate = c.get(Calendar.DATE) + 1;
    c.set(Calendar.DATE, nextdate);
    int nextdate1 = c1.get(Calendar.DAY_OF_WEEK)+1;
    c1.set(Calendar.DAY_OF_WEEK,nextdate1);

    }
    return local_fromDate;


    }

    /*This method make the datas in the list in a order.
    It computes the date and time from the list..
    And it return the start date and end date & this was used in calender method*/
    public Date [] drawwrk(Graphics g)
    {
    Graphics2D g2 = (Graphics2D)g;
    XMLReading xmlreadingObj = new XMLReading();

    try
    {
    xmlreadingObj.fileParsing("C:/Documents and Settings/8563/TEST/src/Gantt.xml");
    } catch (FileNotFoundException ex)
    {
    ex.printStackTrace();
    } catch (SAXException ex) {
    ex.printStackTrace();
    } catch (IOException ex) {
    ex.printStackTrace();
    }

    res_mseg = xmlreadingObj.res_list;
    Object [] array = res_mseg.toArray();

    rev_list = xmlreadingObj.rev__wrkOrder_list;
    Object [] array1 = rev_list.toArray();

    String str1 = new String();
    String str2 = new String();

    wrk = xmlreadingObj.wrkorder_list;
    frm_list = xmlreadingObj.rev_frmdate_list;
    todate_list = xmlreadingObj.rev_todate_list;
    fromtime_list = xmlreadingObj.rev_frmtime_list;
    totime_list = xmlreadingObj.rev_totime_list;

    Date frmdate = new Date();
    Date todate = new Date();

    Date frm_time = null;
    Date to_time = null;
    Time frmTime = null;
    Time toTime = null;
    Date startdate= null;

    SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
    SimpleDateFormat sdf_time = new SimpleDateFormat("HH:mm:ss");
    int delay =(1000*60*60*24);
    Calendar c2 = Calendar.getInstance();
    Calendar c3 = Calendar.getInstance();
    int ftime = 0;
    int ttime = 0;
    int dif = 0;
    int x_1 = 0;
    int fromdate =0;
    int to_date =0;


    int size = res_mseg.size();
    int size1 = rev_list.size();
    ArrayList res_list = new ArrayList();
    String strtdate = frm_list.get(0).toString();

    String [] str_array = new String[size];
    String [] str1_array = new String[size1];

    double x_time;
    double y_time;
    double x1 ;
    double x2;
    int y_1 =80;
    int y_axis = 74;
    int x_cord = this.rect_x;
    //int y_axis = this.rect_y;
    int width = this.rect_w;


    str_frmdate = new ArrayList<Date>();
    for(int len = 0; len < array.length; len++)
    {
    int i =0;
    int j =0;
    str1 = array[len].toString();
    str_array [i] = str1;
    res_list.add(str1);

    for(int len1 = 0; len1 < array1.length; len1++)
    {

    str2 = array1[len1].toString();
    str1_array [j] = str2;
    if(str1.compareToIgnoreCase(str2) == 0 )
    {
    resno_list.add(str2);
    str_wrk.add(wrk.get(len1));
    String str_date = frm_list.get(len1).toString();
    String date_todate = todate_list.get(len1).toString();
    String totime = totime_list.get(len1).toString();
    String frmtime = fromtime_list.get(len1).toString();
    try
    {
    frmdate = sdf.parse(str_date);
    todate = sdf.parse(date_todate);


    frm_time = sdf_time.parse(frmtime);
    to_time = sdf_time.parse(totime);
    }
    catch (ParseException ex) {
    ex.printStackTrace();
    }
    c2.setTime(frm_time);
    c3.setTime(to_time);
    ftime = c2.get(Calendar.HOUR_OF_DAY);
    ttime = c3.get(Calendar.HOUR_OF_DAY);
    int time_diff = ttime - ftime;

    fromdate = Math.round((frmdate.getTime())/delay);
    to_date = Math.round((todate.getTime())/delay);

    str_frmtime.add(frm_time);
    str_totime.add(to_time);
    str_frmdate.add(frmdate);
    str_todate.add(todate);

    long datediff =((( todate.getTime())/delay)-((difference().getTime())/delay));
    long convr_datediff =(datediff*180)+300;

    /*calculating x-co_ordinate*/
    double hour = ftime*7.5;
    double x_hr = hour +convr_datediff;
    int conversion = (int)Math.round(x_hr);
    x_cord = conversion;

    /*calculating width*/
    double x_2 = ttime *7.5;
    double timediff = x_2 - hour;
    int width_hr =(int) Math.round(timediff);
    width =width_hr;
    //int width =width_hr;
    try
    {
    //drawRectangle(x_cord,y_axis,width,15);
    //g2.setPaint(new Color(0, 128, 192));

    x_cord_list.add(x_cord);
    y_cord_list.add(y_axis);
    width_list.add(width);
    //Rectangle rt = new Rectangle(x_cord,y_axis,width,15);
    rectangles.add(new Rectangle(x_cord,y_axis,width,15));
    //rectangles.add(rt);

    // r.setBounds(x_cord,y_axis,width,15);
    // g2.fill(r);
    }
    catch(Exception e2){
    System.out.print("EXCEPTION");
    }
    //g2.drawRect(x_cord,y_axis,width,10);


    // catch (ParseException ex) {
    // ex.printStackTrace();
    // }
    }
    // y_axis += 28;
    }
    y_axis += 28;
    //System.out.println(y_axis);

    }

    Date [] sorted_frmDate = (Date [])str_frmdate.toArray(new Date[str_frmdate.size()]);
    Date [] sorted_toDate = (Date [])str_todate.toArray(new Date[str_todate.size()]);
    java.util.Arrays.sort(sorted_frmDate);
    java.util.Arrays.sort(sorted_toDate);

    startdate = sorted_frmDate[0];
    Date enddate = sorted_toDate[sorted_toDate.length-1];
    //Date []myDate = new Date [] {startdate,enddate};
    //return myDate;
    return new Date [] {startdate,enddate};
    }

    public int date_difference(Graphics g)
    {
    int noofdays= this.no_of_days;
    Date [] date = null;
    Graphics2D g2 = (Graphics2D)g;

    long difference = 0;
    try
    {
    date = drawwrk(g2);
    }
    catch(NullPointerException nullptr_e){

    }
    Date startDate = date[0];
    Date endDate = date[date.length-1];
    Calendar c = Calendar.getInstance();
    Calendar c1 = Calendar.getInstance();
    c.setTime(startDate);
    c1.setTime(endDate);
    difference = (c1.getTime().getTime() - c.getTime().getTime());
    long total_no_days = Math.round((difference)/(1000*60*60*24));
    no_of_days = (int)total_no_days+1;

    //this.no_of_days = no_of_days;
    return this.no_of_days;
    //return no_of_days;
    }
    public Date difference()
    {
    Date dt = str_frmdate.get(0);
    return dt;
    }
    public ArrayList getfrmDate()
    {
    return str_frmdate;
    }
    public void mouseClicked(MouseEvent e)
    {

    }
    public void drawdig(Graphics2D g2)
    {
    g2.setPaint(new Color(0,157,250));
    for(Rectangle ret : rectangles)
    {
    g2.draw(ret);
    }
    }
    public void mousePressed(MouseEvent e)
    {
    Point p = e.getPoint();
    xPos = e.getX();
    yPos = e.getY();
    //Rectangle[] rects = rectangles.toArray(new Rectangle[rectangles.size()]);
    for(int j = 0; j < rects.length; j++)
    {
    if(rects[j].contains(p))
    {
    //selectedRect = rects[j];
    offset.x = p.x - rects[j].x;
    offset.y = p.y - rects[j].y;
    dragging = true;
    break;
    }
    }

    }

    public void mouseReleased(MouseEvent e)
    {
    rectangles.clear();
    dragging = false;
    }
    public void mouseEntered(MouseEvent e) {}
    public void mouseExited(MouseEvent e) {}
    public void mouseDragged(MouseEvent e)
    {
    if(dragging)
    {
    int new_x = e.getX() - offset.x;
    int new_y = e.getY() - offset.y;
    selectedRect.setLocation(new_x, new_y);
    repaint();
    }

    }
    public void actionPerformed(MouseEvent e)
    {

    }
    public void mouseMoved(MouseEvent e)
    {

    }
    public ArrayList<BasicDom> getData()
    {
    return x_list;
    }
    public void printData()
    {
    Iterator itr = x_list.iterator();

    while(itr.hasNext())
    {
    System.out.println(it.next());
    }
    }
    }

    }

  9. #9
    Preethi is offline Member
    Join Date
    Jan 2008
    Posts
    83
    Rep Power
    0

    Default

    Java Code:
    package saxExamples;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.BorderLayout;
    import java.awt.Color;
    import java.awt.Container;
    import java.awt.Dimension;
    import java.awt.Font;
    import java.awt.Graphics;
    import java.awt.Graphics2D;
    import java.awt.Point;
    import java.awt.Rectangle;
    import java.awt.RenderingHints;
    import java.awt.event.*;
    import java.awt.geom.*;
    import java.io.FileNotFoundException;
    import java.io.IOException;
    import java.sql.Time;
    import java.text.*;
    import java.util.ArrayList;
    import java.util.Calendar;
    import java.util.Date;
    import java.util.HashMap;
    import java.util.Iterator;
    import java.util.Map;
    import javax.swing.*;
    import org.xml.sax.*;
    import org.xml.sax.helpers.*;
    
    
    
    
    public class mousedrag extends javax.swing.JApplet   
    {
        @Override
        public void init()
        {
            Container cont = getContentPane();
            cont.setLayout(new BorderLayout());
            setPreferredSize(new Dimension(300, 300));
            JScrollPane scroll = new JScrollPane();
            getContentPane().add(scroll, BorderLayout.CENTER);
            scroll.getViewport().add(new Imagepanel());
        }
        
        private class Imagepanel extends JPanel implements MouseListener,MouseMotionListener
        {
            public static final long serialVersionUID = 0;
            private int border = 2;
            boolean selected= false;
            boolean selected1= false;
            /*Iterator for drawing the resource tree(for the tag<res_mseg>)*/
            private Iterator<DataObject> it;
            /*Iteartor for the work order attribute in the tag <rev_mseg>*/
            private Iterator<DrawingData> it_wrk_drawing;
            /*Iterator for the attribute wo_from_date in the tag <rev_mseg>*/
            private Iterator<FromDateData> it_frmdate;
            /*Iterator for the attribute wo_to_date in the tag <rev_mseg>*/
            private Iterator<ToDateData> it_todate;
            
            protected ArrayList<DataObject> res_mseg;
            protected ArrayList<DrawingData> rev_list;
            protected ArrayList<FromDateData> frm_list;
            protected ArrayList<WrkorderData> wrk ;
            ArrayList<ToDateData> todate_list;
            ArrayList<FromTime>fromtime_list;
            ArrayList<ToTime> totime_list;
            ArrayList<FromDateData> frmdate_list = new ArrayList<FromDateData>();
            boolean drawpanel = true;
            boolean drawresource = true;
            boolean drawcalender = true;
            boolean canDrag = false;
            public Date date1;
            ArrayList str_wrk = new ArrayList();
            ArrayList <Date>str_frmdate ;
            ArrayList <Date>str_todate = new ArrayList<Date>();
            ArrayList <Date>str_frmtime = new ArrayList<Date>();
            ArrayList <Date>str_totime = new ArrayList<Date>();
            ArrayList resno_list = new ArrayList ();
            int noday;
            int no_of_days;
            Date fromDate;
            Graphics g;
            MouseEvent e;
            int rect_x;
            int rect_y;
            int rect_w;
            int rect_ht;
            int x,y,w,ht;
            //Rectangle r = new Rectangle();
            int r_x=100;
            int r_y =100;
            int r_w =15; 
            int r_ht = 10;
            Rectangle r1 = new Rectangle(r_x,r_y,r_w,r_ht);
            ArrayList<Integer> x_cord_list = new ArrayList<Integer>();
            ArrayList<Integer> y_cord_list = new ArrayList<Integer>();
            ArrayList<Integer> width_list = new ArrayList<Integer> ();
            ArrayList<Rectangle> rectangles = new ArrayList<Rectangle> ();
            ArrayList<Rectangle> rectangle = new ArrayList<Rectangle> ();
            Rectangle clickedRectangle = null;
            Rectangle r = new Rectangle(rect_x,rect_y,rect_w,rect_ht);
            Rectangle [] panel;
            int x_Pos,y_Pos;
            Rectangle selectedRect;
            Point offset = new Point();
            boolean dragging = false;
            Rectangle[] rects;
            
            public Imagepanel() 
            { 
                panel();
                addMouseMotionListener(this);
                addMouseListener(this);
            }
            public void panel()
            {
                Graphics g1 = this.g;
                int dimension =0 ;
                setPreferredSize(new Dimension(33060,33060));
                Imagepanel imagepanel ;
                setBorder(BorderFactory.createLineBorder(Color.BLACK, border));
            }
    
            @Override
            public void paint(Graphics g)
            {
                super.paintComponent(g);
                Graphics2D g2 = (Graphics2D)g;
                g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
                g2.setColor(getBackground());   
                g2.fillRect(0, 0, getWidth(), getHeight()); 
                g2.setColor(getForeground());          
    
                if(drawpanel){drawPanel(g2);}
                if(drawresource){drawResource(g2);}
                if(drawcalender)
                {
                    drawCalendar(g2);
                }
                 
                g2.setPaint(new Color(0,157,250));
                System.out.println(rectangles.size()+"SIZE");
                rects = rectangles.toArray(new Rectangle[rectangles.size()]);
                for(Rectangle ret : rects)
                {   
                    g2.draw(ret);
                }
            
            }
    
            public void drawPanel(Graphics g){
                int margin = 10;
                int imgborder = 10;
                int imgline1 = 300;
                int titlebarx = 300;
                int titlebary = 50;
                Graphics2D g2 = (Graphics2D) g;
                g2.drawLine(imgline1, 0, imgline1, getHeight());
                g2.setPaint(new Color(0, 128, 192));
                g2.fillRect(imgborder, imgborder, 290, 45);
                g2.setPaint(Color.WHITE);
                g2.drawLine(margin, margin, titlebarx, titlebary);
                g2.drawString("RESOURCE", 40, 40);
                g2.drawString("TIME", 200, 25);
            }
            public void drawResource(Graphics g)
            {
                int x_axis= 50;
                int y_axis = 80;
                Graphics2D g2 = (Graphics2D) g;
                g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
                XMLReading xmlreadingObj = new XMLReading();
                try 
                {
                    xmlreadingObj.fileParsing("C:/Documents and Settings/8563/TEST/src/Gantt.xml");
                } 
                catch (FileNotFoundException ex) 
                {
                    ex.printStackTrace();
                }
                catch (SAXException ex)
                {
                    ex.printStackTrace();
                }
                catch (IOException ex) 
                {
                    ex.printStackTrace();
                }
                
                it = xmlreadingObj.getres_list().iterator();
                it_wrk_drawing = xmlreadingObj.getrev__wrkOrder_list().iterator();
                it_frmdate = xmlreadingObj.getrev_frmdate_list().iterator();
                it_todate = xmlreadingObj.getrev_todate_list().iterator();
                
                int size = xmlreadingObj.getres_list().size();
                
                g2.setPaint(new Color(0, 128, 192));
                
                int y_rect = 72;
                int tree_rect_width = 13;
                int tree_rect_height = 10;
                int panel_line_x = 300;
                
                for (int len=0;len<size;len++)
                {
                    while(it.hasNext()) 
                    {
                        Font font_resourcetrees = new Font("Ariel",Font.PLAIN,9);
                        g2.setFont(font_resourcetrees);
                        g2.fillRect(30,y_rect,tree_rect_width,tree_rect_height);
                        
                        g2.drawLine(panel_line_x,y_axis+14,getWidth(),y_axis+14);
                        g2.drawString(""+it.next(),x_axis,y_axis);
                        /*line for seperating the resource*/
                        y_axis += 28;
                        y_rect += 28;
                    }
                }
            }
            
            /*This method is for drawing the calender in the right top of the panel*/
            public Date  drawCalendar( Graphics g)
            {
                Graphics2D g2 = (Graphics2D)g;
                
                int no_ofday = this.no_of_days;
                long from;
                long to;
                int n = 168;
                int x = 300;
                int x1_cal = 300;
                int x3 = x;
                int width1 = 180;
                int daydx = (width1 / 2);
                int dayx = (daydx + x);
                int f2 = x + n;
                String date[] = {"0", "4", "8", "12", "16", "20", "24"};
                
                int total_no_days = date_difference(g2);
                long days =(long) total_no_days;
                no_ofday = (int) days ;
                           
                Date [] arraydate = drawwrk(g2);
                g2.setPaint(Color.BLACK);
                Calendar c = Calendar.getInstance(); // current date*
                Calendar c1 = Calendar.getInstance();
                Date local_fromDate = arraydate[0];
                           
                Date toDate  = arraydate[arraydate.length-1];
                c.setTime(local_fromDate);
                
                for (int i = 0; i < no_ofday; i++) 
                {
                    SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
                    SimpleDateFormat sdf1 = new SimpleDateFormat("EEE");
                    // use the pattern: day_of_month
                    String str = sdf.format(c.getTime()); // fromat the date to string
                    String str3 = sdf1.format(c1.getTime());
                    for (int j = 0; j < 6; j++)
                    {
                        Font font1 = new Font("Ariel", Font.PLAIN, 9);
                        g2.setFont(font1);
                        g2.drawLine(x1_cal, 50, x1_cal, 55);
                        g2.drawString(date[j], x1_cal, 45);
                        x1_cal += 30;
                    }
                    g2.drawRect(x, 10, width1, 45);
                    g2.drawString("24", f2, 45);
                    f2 += width1;
                    x += width1;
                    g2.drawString(str, dayx-10, 35);
                    g2.drawString(str3,dayx-5,20);
                    dayx += 180;
                    int nextdate = c.get(Calendar.DATE) + 1;
                    c.set(Calendar.DATE, nextdate);
                    int nextdate1 = c1.get(Calendar.DAY_OF_WEEK)+1;
                    c1.set(Calendar.DAY_OF_WEEK,nextdate1);
                   
                }
                
                return local_fromDate;
                
            }
    
            /*This method make the datas in the list in a order.
              It computes the date and time from the list..
              And it return the start date and end date & this was used in calender method*/
            public Date []  drawwrk(Graphics g)
             {
                Graphics2D g2 = (Graphics2D)g;
                XMLReading xmlreadingObj = new XMLReading();
                
                try 
                {
                    xmlreadingObj.fileParsing("C:/Documents and Settings/8563/TEST/src/Gantt.xml");
                } catch (FileNotFoundException ex) 
                {
                    ex.printStackTrace();
                } catch (SAXException ex) {
                    ex.printStackTrace();
                } catch (IOException ex) {
                    ex.printStackTrace();
                }
                
                res_mseg = xmlreadingObj.res_list;
                Object [] array = res_mseg.toArray();
                
                rev_list = xmlreadingObj.rev__wrkOrder_list;
                Object [] array1 = rev_list.toArray();
                
                String str1 = new String();
                String str2 = new String();
                
                wrk = xmlreadingObj.wrkorder_list;
                frm_list = xmlreadingObj.rev_frmdate_list;
                todate_list = xmlreadingObj.rev_todate_list;
                fromtime_list = xmlreadingObj.rev_frmtime_list;
                totime_list = xmlreadingObj.rev_totime_list;
                
                Date frmdate = new Date();
                Date todate = new Date();
                
                Date frm_time = null;
                Date to_time = null;
                Time frmTime = null;
                Time toTime = null;
                Date startdate= null;
                
                SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
                SimpleDateFormat sdf_time = new SimpleDateFormat("HH:mm:ss");
                int delay =(1000*60*60*24);
                Calendar c2 = Calendar.getInstance();
                Calendar c3 = Calendar.getInstance();
                int ftime = 0;
                int ttime = 0;
                int dif = 0;
                int x_1 = 0;
                int fromdate =0;
                int to_date =0;
                
               
                int size = res_mseg.size();
                int size1 = rev_list.size();
                ArrayList res_list = new ArrayList();
                String strtdate = frm_list.get(0).toString();
                
                String [] str_array = new String[size]; 
                String [] str1_array = new String[size1];
                
                double x_time;
                double y_time;
                double x1 ;
                double x2;
                int  y_1 =80;
                int y_axis = 74;
                int x_cord = this.rect_x;
                int width = this.rect_w;
                
                
                str_frmdate  = new ArrayList<Date>();
                for(int len = 0; len < array.length; len++)
                {
                    int i =0;
                    int j =0;
                    str1 = array[len].toString();
                    str_array [i] = str1;
                    res_list.add(str1);
                    
                    for(int len1 = 0; len1 < array1.length; len1++)
                    {
                        
                        str2 = array1[len1].toString();
                        str1_array [j] = str2;
                        if(str1.compareToIgnoreCase(str2) == 0 )
                        { 
                            resno_list.add(str2);
                            str_wrk.add(wrk.get(len1));
                            String str_date = frm_list.get(len1).toString();
                            String date_todate = todate_list.get(len1).toString();
                            String totime = totime_list.get(len1).toString();
                            String frmtime = fromtime_list.get(len1).toString();
                            try
                            {
                                frmdate = sdf.parse(str_date);
                                todate = sdf.parse(date_todate);
                                frm_time = sdf_time.parse(frmtime);
                                to_time = sdf_time.parse(totime);
                            }
                            catch (ParseException ex) 
                            {
                                ex.printStackTrace();
                            }
                            c2.setTime(frm_time);
                            c3.setTime(to_time);
                            ftime = c2.get(Calendar.HOUR_OF_DAY);
                            ttime = c3.get(Calendar.HOUR_OF_DAY);
                            int time_diff = ttime - ftime;
    
                            fromdate = Math.round((frmdate.getTime())/delay);
                            to_date = Math.round((todate.getTime())/delay);
    
                            str_frmtime.add(frm_time);
                            str_totime.add(to_time);
                            str_frmdate.add(frmdate);
                            str_todate.add(todate);
    
                            long datediff =((( todate.getTime())/delay)-((difference().getTime())/delay));
                            long convr_datediff =(datediff*180)+300;
    
                            /*calculating x-co_ordinate*/
                            double hour = ftime*7.5;
                            double x_hr = hour +convr_datediff;
                            int conversion = (int)Math.round(x_hr);
                            x_cord = conversion;    
    
                            /*calculating width*/
                            double x_2 = ttime *7.5;
                            double timediff = x_2 - hour;
                            int width_hr =(int) Math.round(timediff);
                            width =width_hr;
                            //int width =width_hr;
                            try
                            {                   
                                x_cord_list.add(x_cord);
                                y_cord_list.add(y_axis);
                                width_list.add(width);
                                rectangles.add(new Rectangle(x_cord,y_axis,width,15));
                            }
                            catch(Exception e2)
                            {
                                System.out.print("EXCEPTION");
                            }
        
                        }
                    }
                y_axis += 28;
            }
                
            Date [] sorted_frmDate = (Date [])str_frmdate.toArray(new Date[str_frmdate.size()]);
            Date [] sorted_toDate = (Date [])str_todate.toArray(new Date[str_todate.size()]);
            java.util.Arrays.sort(sorted_frmDate);
            java.util.Arrays.sort(sorted_toDate);
            startdate = sorted_frmDate[0];
            Date enddate = sorted_toDate[sorted_toDate.length-1];
            return new Date [] {startdate,enddate};
        } 
            
            public int date_difference(Graphics g)
             {  
                int noofdays= this.no_of_days;
                Date [] date = null;
                Graphics2D g2 = (Graphics2D)g;
                long difference = 0;
                try
                {
                    date = drawwrk(g2);
                }
                catch(NullPointerException nullptr_e)
                {
                   
                } 
                Date startDate = date[0];                                   
                Date endDate = date[date.length-1];
                Calendar c = Calendar.getInstance();
                Calendar c1 = Calendar.getInstance();
                c.setTime(startDate);
                c1.setTime(endDate);
                difference = (c1.getTime().getTime() - c.getTime().getTime());
                long total_no_days =  Math.round((difference)/(1000*60*60*24));
                no_of_days = (int)total_no_days+1;
                return this.no_of_days;
                
            }
            public Date difference()
            {
               Date dt = str_frmdate.get(0);
               return  dt;
            }
            public ArrayList getfrmDate()
            {
                return str_frmdate;
            }
            public void mouseClicked(MouseEvent e) 
            {
    
            }
            
            public void mousePressed(MouseEvent e) 
            {
                Point p = e.getPoint();
                for(int j = 0; j < rects.length; j++)
                {
                    if(rects[j].contains(p))
                    {
                        selectedRect = rects[j];
                        offset.x = p.x - rects[j].x;
                        offset.y = p.y - rects[j].y;
                        dragging = true;
                        break;
                    }
                }
            }
    
            public void mouseReleased(MouseEvent e) 
            {
                rectangles.clear();
                dragging = false;
            }
            public void mouseEntered(MouseEvent e) {}
            public void mouseExited(MouseEvent e) {}
            public void mouseDragged(MouseEvent e)
            {
                Point me_p = e.getPoint();   
                if(dragging == true)
                {
                    for(int x = 0, y = rects.length; x < y; x++)          
                    {     
                        selectedRect.setLocation(me_p.x - offset.x,me_p.y - offset.y);
                        this.repaint();
                    }
                }
            }
            public void actionPerformed(MouseEvent e)   
            {}
            public void mouseMoved(MouseEvent e) 
            {}
        }
    }

  10. #10
    Preethi is offline Member
    Join Date
    Jan 2008
    Posts
    83
    Rep Power
    0

    Default

    Java Code:
    <I resno="102" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-01-10" wo_end_date="2008-01-10" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="102" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-01-11" wo_end_date="2008-01-11" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="102" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-01-14" wo_end_date="2008-01-14" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="102" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-01-15" wo_end_date="2008-01-15" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="102" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-01-16" wo_end_date="2008-01-16" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="102" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-01-17" wo_end_date="2008-01-17" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="102" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-01-18" wo_end_date="2008-01-18" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="102" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-01-21" wo_end_date="2008-01-21" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="103" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-01-22" wo_end_date="2008-01-22" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="103" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-01-23" wo_end_date="2008-01-23" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="103" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-01-24" wo_end_date="2008-01-24" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="103" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-01-25" wo_end_date="2008-01-25" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="103" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-01-28" wo_end_date="2008-01-28" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="103" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-01-29" wo_end_date="2008-01-29" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="103" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-01-30" wo_end_date="2008-01-30" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="103" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-01-31" wo_end_date="2008-01-31" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="105" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-02-11" wo_end_date="2008-02-11" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="105" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-02-12" wo_end_date="2008-02-12" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="105" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-02-13" wo_end_date="2008-02-13" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="105" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-02-14" wo_end_date="2008-02-14" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="105" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-02-15" wo_end_date="2008-02-15" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="105" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-02-18" wo_end_date="2008-02-18" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="105" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-02-19" wo_end_date="2008-02-19" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="105" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-02-20" wo_end_date="2008-02-20" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="105" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-02-21" wo_end_date="2008-02-21" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="105" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-02-22" wo_end_date="2008-02-22" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="105" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-02-25" wo_end_date="2008-02-25" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="105" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-02-26" wo_end_date="2008-02-26" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="105" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-02-27" wo_end_date="2008-02-27" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="105" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-02-28" wo_end_date="2008-02-28" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="105" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-02-29" wo_end_date="2008-02-29" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="101" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-03-03" wo_end_date="2008-03-03" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="101" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-03-04" wo_end_date="2008-03-04" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="101" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-03-05" wo_end_date="2008-03-05" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="101" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-03-06" wo_end_date="2008-03-06" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="101" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-03-07" wo_end_date="2008-03-07" fromdate="09:00:00" todate="18:00:00" regen="N" />
    Last edited by Preethi; 03-15-2008 at 07:27 AM.

  11. #11
    Preethi is offline Member
    Join Date
    Jan 2008
    Posts
    83
    Rep Power
    0

    Default

    Java Code:
    <RC-BOD>
      <fw_context RecordCount="1">
        <I resno="000" component="sch" service="schscht_ser_sav" componentinstance="0" sectoken="DEMOUSER:demorole:1" ouinstance="2" language="1" user="DEMOUSER" txnid="3E89B3EC7E434AD1A913B17B38E7FC9A" transactionobject="0" txntime="11/9/2006 11:10:13 AM" txnoutcome="105" />
      </fw_context>
      <hdrseg RecordCount="1">
        <I dep="" fromresno="" fromtimeperiod="2007-11-01" guid="CA327CF4-7C5A-4017-888B-F3E556465154" hdncompanycode="COM001BU1" item_code1="" production_cont="WI" save_template="1" toresno="" totimeperiod="2008-04-30" wo_no="" />
      </hdrseg>
    
      <res_mseg >
        <I resno="101" shortdesc="assembly" category="1" capcheck="D" rescapacity="1.00000000" controlunit2="PWIL" />
        <I resno="102" shortdesc="assembly" category="1" capcheck="D" rescapacity="1.00000000" controlunit2="PWIL" />
        <I resno="103" shortdesc="assembly" category="1" capcheck="D" rescapacity="1.00000000" controlunit2="PWIL" />
        <I resno="104" shortdesc="assembly" category="1" capcheck="D" rescapacity="1.00000000" controlunit2="PWIL" />
        <I resno="105" shortdesc="assembly" category="1" capcheck="D" rescapacity="1.00000000" controlunit2="PWIL" />
        <I resno="106" shortdesc="assembly" category="1" capcheck="D" rescapacity="1.00000000" controlunit2="PWIL" />
        <I resno="201" shortdesc="assembly" category="1" capcheck="D" rescapacity="1.00000000" controlunit2="PWIL" />
        <I resno="202" shortdesc="assembly" category="1" capcheck="D" rescapacity="1.00000000" controlunit2="PWIL" />
        <I resno="203" shortdesc="assembly" category="1" capcheck="D" rescapacity="1.00000000" controlunit2="PWIL" />
        <I resno="204" shortdesc="assembly" category="1" capcheck="D" rescapacity="1.00000000" controlunit2="PWIL" />
        <I resno="205" shortdesc="assembly" category="1" capcheck="D" rescapacity="1.00000000" controlunit2="PWIL" />
        <I resno="206" shortdesc="assembly" category="1" capcheck="D" rescapacity="1.00000000" controlunit2="PWIL" />
      </res_mseg>
      <rev_mseg>
        <I resno="101" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2007-11-01" wo_end_date="2007-11-01" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="101" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2007-11-05" wo_end_date="2007-11-05" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="101" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2007-11-06" wo_end_date="2007-11-06" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="101" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2007-11-07" wo_end_date="2007-11-07" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="101" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2007-11-09" wo_end_date="2007-11-09" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="101" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2007-11-12" wo_end_date="2007-11-12" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="101" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2007-11-13" wo_end_date="2007-11-13" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="101" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2007-11-14" wo_end_date="2007-11-14" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="101" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2007-11-15" wo_end_date="2007-11-15" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="201" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2007-11-16" wo_end_date="2007-11-16" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="201" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2007-11-19" wo_end_date="2007-11-19" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="201" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2007-11-20" wo_end_date="2007-11-20" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="201" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2007-11-21" wo_end_date="2007-11-21" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="201" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2007-11-22" wo_end_date="2007-11-22" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="201" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2007-11-23" wo_end_date="2007-11-23" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="201" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2007-11-26" wo_end_date="2007-11-26" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="201" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2007-11-27" wo_end_date="2007-11-27" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="201" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2007-11-28" wo_end_date="2007-11-28" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="201" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2007-11-29" wo_end_date="2007-11-29" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="201" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2007-11-30" wo_end_date="2007-11-30" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="201" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2007-12-03" wo_end_date="2007-12-03" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="201" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2007-12-04" wo_end_date="2007-12-04" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="201" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2007-12-05" wo_end_date="2007-12-05" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="201" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2007-12-06" wo_end_date="2007-12-06" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="201" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2007-12-07" wo_end_date="2007-12-07" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="201" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2007-12-10" wo_end_date="2007-12-10" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="201" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2007-12-11" wo_end_date="2007-12-11" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="201" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2007-12-12" wo_end_date="2007-12-12" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="201" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2007-12-13" wo_end_date="2007-12-13" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="201" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2007-12-14" wo_end_date="2007-12-14" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="201" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2007-12-17" wo_end_date="2007-12-17" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="201" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2007-12-18" wo_end_date="2007-12-18" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="201" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2007-12-19" wo_end_date="2007-12-19" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="201" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2007-12-20" wo_end_date="2007-12-20" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="201" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2007-12-24" wo_end_date="2007-12-24" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="201" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2007-12-26" wo_end_date="2007-12-26" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="201" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2007-12-27" wo_end_date="2007-12-27" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="201" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2007-12-28" wo_end_date="2007-12-28" fromdate="09:00:00" todate="18:00:00" regen="N" />

  12. #12
    Preethi is offline Member
    Join Date
    Jan 2008
    Posts
    83
    Rep Power
    0

    Default

    Java Code:
    <RC-BOD>
      <fw_context RecordCount="1">
        <I resno="000" component="sch" service="schscht_ser_sav" componentinstance="0" sectoken="DEMOUSER:demorole:1" ouinstance="2" language="1" user="DEMOUSER" txnid="3E89B3EC7E434AD1A913B17B38E7FC9A" transactionobject="0" txntime="11/9/2006 11:10:13 AM" txnoutcome="105" />
      </fw_context>
      <hdrseg RecordCount="1">
        <I dep="" fromresno="" fromtimeperiod="2007-11-01" guid="CA327CF4-7C5A-4017-888B-F3E556465154" hdncompanycode="COM001BU1" item_code1="" production_cont="WI" save_template="1" toresno="" totimeperiod="2008-04-30" wo_no="" />
      </hdrseg>
    
      <res_mseg >
        <I resno="101" shortdesc="assembly" category="1" capcheck="D" rescapacity="1.00000000" controlunit2="PWIL" />
        <I resno="102" shortdesc="assembly" category="1" capcheck="D" rescapacity="1.00000000" controlunit2="PWIL" />
        <I resno="103" shortdesc="assembly" category="1" capcheck="D" rescapacity="1.00000000" controlunit2="PWIL" />
        <I resno="104" shortdesc="assembly" category="1" capcheck="D" rescapacity="1.00000000" controlunit2="PWIL" />
        <I resno="105" shortdesc="assembly" category="1" capcheck="D" rescapacity="1.00000000" controlunit2="PWIL" />
        <I resno="106" shortdesc="assembly" category="1" capcheck="D" rescapacity="1.00000000" controlunit2="PWIL" />
        <I resno="201" shortdesc="assembly" category="1" capcheck="D" rescapacity="1.00000000" controlunit2="PWIL" />
        <I resno="202" shortdesc="assembly" category="1" capcheck="D" rescapacity="1.00000000" controlunit2="PWIL" />
        <I resno="203" shortdesc="assembly" category="1" capcheck="D" rescapacity="1.00000000" controlunit2="PWIL" />
        <I resno="204" shortdesc="assembly" category="1" capcheck="D" rescapacity="1.00000000" controlunit2="PWIL" />
        <I resno="205" shortdesc="assembly" category="1" capcheck="D" rescapacity="1.00000000" controlunit2="PWIL" />
        <I resno="206" shortdesc="assembly" category="1" capcheck="D" rescapacity="1.00000000" controlunit2="PWIL" />
      </res_mseg>
    Last edited by Preethi; 03-15-2008 at 07:38 AM. Reason: NOT WELL FORMED

  13. #13
    Preethi is offline Member
    Join Date
    Jan 2008
    Posts
    83
    Rep Power
    0

    Default

    Java Code:
    <rev_mseg>
        <I resno="101" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2007-11-01" wo_end_date="2007-11-01" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="101" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2007-11-05" wo_end_date="2007-11-05" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="101" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2007-11-06" wo_end_date="2007-11-06" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="101" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2007-11-07" wo_end_date="2007-11-07" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="101" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2007-11-09" wo_end_date="2007-11-09" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="101" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2007-11-12" wo_end_date="2007-11-12" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="101" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2007-11-13" wo_end_date="2007-11-13" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="101" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2007-11-14" wo_end_date="2007-11-14" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="101" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2007-11-15" wo_end_date="2007-11-15" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="201" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2007-11-16" wo_end_date="2007-11-16" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="201" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2007-11-19" wo_end_date="2007-11-19" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="201" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2007-11-20" wo_end_date="2007-11-20" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="201" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2007-11-21" wo_end_date="2007-11-21" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="201" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2007-11-22" wo_end_date="2007-11-22" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="201" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2007-11-23" wo_end_date="2007-11-23" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="201" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2007-11-26" wo_end_date="2007-11-26" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="201" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2007-11-27" wo_end_date="2007-11-27" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="201" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2007-11-28" wo_end_date="2007-11-28" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="201" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2007-11-29" wo_end_date="2007-11-29" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="201" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2007-11-30" wo_end_date="2007-11-30" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="201" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2007-12-03" wo_end_date="2007-12-03" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="201" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2007-12-04" wo_end_date="2007-12-04" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="201" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2007-12-05" wo_end_date="2007-12-05" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="201" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2007-12-06" wo_end_date="2007-12-06" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="201" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2007-12-07" wo_end_date="2007-12-07" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="201" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2007-12-10" wo_end_date="2007-12-10" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="201" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2007-12-11" wo_end_date="2007-12-11" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="201" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2007-12-12" wo_end_date="2007-12-12" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="201" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2007-12-13" wo_end_date="2007-12-13" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="201" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2007-12-14" wo_end_date="2007-12-14" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="201" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2007-12-17" wo_end_date="2007-12-17" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="201" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2007-12-18" wo_end_date="2007-12-18" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="201" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2007-12-19" wo_end_date="2007-12-19" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="201" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2007-12-20" wo_end_date="2007-12-20" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="201" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2007-12-24" wo_end_date="2007-12-24" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="201" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2007-12-26" wo_end_date="2007-12-26" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="201" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2007-12-27" wo_end_date="2007-12-27" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="201" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2007-12-28" wo_end_date="2007-12-28" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="201" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2007-12-31" wo_end_date="2007-12-31" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="102" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-01-02" wo_end_date="2008-01-02" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="102" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-01-03" wo_end_date="2008-01-03" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="102" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-01-04" wo_end_date="2008-01-04" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="102" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-01-07" wo_end_date="2008-01-07" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="102" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-01-08" wo_end_date="2008-01-08" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="102" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-01-09" wo_end_date="2008-01-09" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="102" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-01-10" wo_end_date="2008-01-10" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="102" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-01-11" wo_end_date="2008-01-11" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="102" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-01-14" wo_end_date="2008-01-14" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="102" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-01-15" wo_end_date="2008-01-15" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="102" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-01-16" wo_end_date="2008-01-16" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="102" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-01-17" wo_end_date="2008-01-17" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="102" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-01-18" wo_end_date="2008-01-18" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="102" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-01-21" wo_end_date="2008-01-21" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="103" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-01-22" wo_end_date="2008-01-22" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="103" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-01-23" wo_end_date="2008-01-23" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="103" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-01-24" wo_end_date="2008-01-24" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="103" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-01-25" wo_end_date="2008-01-25" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="103" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-01-28" wo_end_date="2008-01-28" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="103" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-01-29" wo_end_date="2008-01-29" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="103" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-01-30" wo_end_date="2008-01-30" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="103" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-01-31" wo_end_date="2008-01-31" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="105" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-02-11" wo_end_date="2008-02-11" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="105" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-02-12" wo_end_date="2008-02-12" fromdate="09:00:00" todate="18:00:00" regen="N" />

  14. #14
    Preethi is offline Member
    Join Date
    Jan 2008
    Posts
    83
    Rep Power
    0

    Default

    Java Code:
    <I resno="105" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-02-13" wo_end_date="2008-02-13" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="105" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-02-14" wo_end_date="2008-02-14" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="105" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-02-15" wo_end_date="2008-02-15" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="105" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-02-18" wo_end_date="2008-02-18" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="105" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-02-19" wo_end_date="2008-02-19" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="105" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-02-20" wo_end_date="2008-02-20" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="105" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-02-21" wo_end_date="2008-02-21" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="105" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-02-22" wo_end_date="2008-02-22" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="105" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-02-25" wo_end_date="2008-02-25" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="105" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-02-26" wo_end_date="2008-02-26" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="105" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-02-27" wo_end_date="2008-02-27" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="105" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-02-28" wo_end_date="2008-02-28" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="105" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-02-29" wo_end_date="2008-02-29" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="101" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-03-03" wo_end_date="2008-03-03" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="101" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-03-04" wo_end_date="2008-03-04" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="101" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-03-05" wo_end_date="2008-03-05" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="101" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-03-06" wo_end_date="2008-03-06" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="101" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-03-07" wo_end_date="2008-03-07" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="101" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-03-10" wo_end_date="2008-03-10" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="102" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-04-07" wo_end_date="2008-04-07" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="102" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-04-08" wo_end_date="2008-04-08" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="102" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-04-09" wo_end_date="2008-04-09" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="102" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-04-10" wo_end_date="2008-04-10" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="102" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-04-11" wo_end_date="2008-04-11" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="102" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-04-14" wo_end_date="2008-04-14" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="102" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-04-15" wo_end_date="2008-04-15" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="102" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-04-16" wo_end_date="2008-04-16" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="102" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-04-17" wo_end_date="2008-04-17" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="102" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-04-18" wo_end_date="2008-04-18" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="102" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-04-21" wo_end_date="2008-04-21" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="102" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-04-22" wo_end_date="2008-04-22" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="102" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-04-23" wo_end_date="2008-04-23" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="102" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-04-24" wo_end_date="2008-04-24" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="102" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-04-25" wo_end_date="2008-04-25" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="102" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-04-28" wo_end_date="2008-04-28" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="102" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-04-29" wo_end_date="2008-04-29" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="102" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-04-30" wo_end_date="2008-04-30" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="106" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-04-01" wo_end_date="2008-04-01" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="106" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-04-02" wo_end_date="2008-04-02" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="106" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-04-03" wo_end_date="2008-04-03" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="106" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-04-04" wo_end_date="2008-04-04" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="203" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-03-21" wo_end_date="2008-03-21" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="203" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-03-24" wo_end_date="2008-03-24" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="203" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-03-25" wo_end_date="2008-03-25" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="203" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-03-26" wo_end_date="2008-03-26" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="203" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-03-27" wo_end_date="2008-03-27" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="203" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-03-28" wo_end_date="2008-03-28" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="203" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-03-31" wo_end_date="2008-03-31" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="102" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-04-07" wo_end_date="2008-04-07" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="102" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-04-08" wo_end_date="2008-04-08" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="102" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-04-09" wo_end_date="2008-04-09" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="102" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-04-10" wo_end_date="2008-04-10" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="102" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-04-11" wo_end_date="2008-04-11" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="102" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-04-14" wo_end_date="2008-04-14" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="102" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-04-15" wo_end_date="2008-04-15" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="102" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-04-16" wo_end_date="2008-04-16" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="102" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-04-17" wo_end_date="2008-04-17" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="102" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-04-18" wo_end_date="2008-04-18" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="102" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-04-21" wo_end_date="2008-04-21" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="102" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-04-22" wo_end_date="2008-04-22" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="102" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-04-23" wo_end_date="2008-04-23" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="102" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-04-24" wo_end_date="2008-04-24" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="102" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-04-25" wo_end_date="2008-04-25" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="102" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-04-28" wo_end_date="2008-04-28" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="102" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-04-29" wo_end_date="2008-04-29" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="102" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-04-30" wo_end_date="2008-04-30" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="101" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-02-01" wo_end_date="2008-02-01" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="101" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-02-04" wo_end_date="2008-02-04" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="101" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-02-05" wo_end_date="2008-02-05" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="101" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-02-06" wo_end_date="2008-02-06" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="101" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-02-07" wo_end_date="2008-02-07" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="101" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-02-08" wo_end_date="2008-02-08" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="105" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-03-11" wo_end_date="2008-03-11" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="105" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-03-12" wo_end_date="2008-03-12" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="105" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-03-13" wo_end_date="2008-03-13" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="105" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-03-14" wo_end_date="2008-03-14" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="105" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-03-17" wo_end_date="2008-03-17" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="105" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-03-18" wo_end_date="2008-03-18" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="105" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-03-19" wo_end_date="2008-03-19" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="105" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-03-20" wo_end_date="2008-03-20" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="203" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-03-21" wo_end_date="2008-03-21" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="203" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-03-24" wo_end_date="2008-03-24" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="203" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-03-25" wo_end_date="2008-03-25" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="203" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-03-26" wo_end_date="2008-03-26" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="203" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-03-27" wo_end_date="2008-03-27" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="203" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-03-28" wo_end_date="2008-03-28" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="203" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-03-31" wo_end_date="2008-03-31" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="106" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-04-01" wo_end_date="2008-04-01" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="106" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-04-02" wo_end_date="2008-04-02" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="106" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-04-03" wo_end_date="2008-04-03" fromdate="09:00:00" todate="18:00:00" regen="N" />
        <I resno="106" capcheck="D" rescapacity="1.00000000" time_buffer="219170989" timeindays1="1" avlqty="0" work_order_no="WO-W/000409/06" rsscheduleno="10" lineno="1" status="D" subactivity_code_mul="1" activitytimetype="0" actrep="1" chkflag="1" execute_online="1" io_flag_dp="1" mplannerchk="1" capplgtype="1" item_code="CVC022" sdesc3="" sdesc4="" flag="D" reqddate="Jan 1 2000" schdate="Jan 1 2000 12:00AM" wo_start_date="2008-04-04" wo_end_date="2008-04-04" fromdate="09:00:00" todate="18:00:00" regen="N" />
      </rev_mseg>
    </RC-BOD>

  15. #15
    hardwired's Avatar
    hardwired is offline Senior Member
    Join Date
    Jul 2007
    Posts
    1,576
    Rep Power
    8

    Default

    I was able to run your applet with some of the xml file bits (12 - 14 I think) you posted.
    I moved a few things around and made a few comments (marked and unmarked) in your applet code.
    A central difficulty with the way you have put things together is that you have mixed your file reading and data structure preparation up in your drawing code. This makes your applet very slow and unresponsive to user input. To get an idea of how often your guis painting method(s) are called try adding a System.out.println statement to the [i]paintComponent[/i[] method in the example I posted in your thread above and the doing things like partially covering/uncovering the applet. Set a very large preferredSize in the ImagePanel constructor, scroll the panel in the applet and see what happens with the paintComponent method. This will give you an idea of how important it is to keep paint code very lean with an absolute minimum of logic and absolutely no reading of files or data preparation. Try to isolate the file reading and data structure (arrays and Collections) code from the drawing/paint code and do it (reading/prep) only one time. Then your applet is free to draw itself at any time and will be very responsive to user input.
    Java Code:
    import javax.swing.*;
    import java.awt.*;
    import java.awt.BorderLayout;
    import java.awt.Color;
    import java.awt.Container;
    import java.awt.Dimension;
    import java.awt.Font;
    import java.awt.Graphics;
    import java.awt.Graphics2D;
    import java.awt.Point;
    import java.awt.Rectangle;
    import java.awt.RenderingHints;
    import java.awt.event.*;
    import java.awt.geom.*;
    import java.io.FileNotFoundException;
    import java.io.IOException;
    import java.sql.Time;
    import java.text.*;
    import java.util.ArrayList;
    import java.util.Calendar;
    import java.util.Date;
    import java.util.HashMap;
    import java.util.Iterator;
    import java.util.Map;
    import javax.swing.*;
    import org.xml.sax.*;
    import org.xml.sax.helpers.*;
    
    
    
    
    public class mousedrag extends javax.swing.JApplet   
    {
        @Override
        public void init()
        {
            Container cont = getContentPane();
            cont.setLayout(new BorderLayout());
            setPreferredSize(new Dimension(300, 300));
            JScrollPane scroll = new JScrollPane();
            getContentPane().add(scroll, BorderLayout.CENTER);
            scroll.getViewport().add(new Imagepanel());
        }
        
        private class Imagepanel extends JPanel implements 
    
    MouseListener,MouseMotionListener
        {
            public static final long serialVersionUID = 0;
            private int border = 2;
            boolean selected= false;
            boolean selected1= false;
            /*Iterator for drawing the resource tree(for the tag<res_mseg>)*/
            private Iterator<DataObject> it;
            /*Iteartor for the work order attribute in the tag <rev_mseg>*/
            private Iterator<DrawingData> it_wrk_drawing;
            /*Iterator for the attribute wo_from_date in the tag <rev_mseg>*/
            private Iterator<FromDateData> it_frmdate;
            /*Iterator for the attribute wo_to_date in the tag <rev_mseg>*/
            private Iterator<ToDateData> it_todate;
            
            protected ArrayList<DataObject> res_mseg;
            protected ArrayList<DrawingData> rev_list;
            protected ArrayList<FromDateData> frm_list;
            protected ArrayList<WrkorderData> wrk ;
            ArrayList<ToDateData> todate_list;
            ArrayList<FromTime>fromtime_list;
            ArrayList<ToTime> totime_list;
            ArrayList<FromDateData> frmdate_list = new ArrayList<FromDateData>();
            boolean drawpanel = true;
            boolean drawresource = true;
            boolean drawcalender = true;
            boolean canDrag = false;
            public Date date1;
            ArrayList str_wrk = new ArrayList();
            ArrayList <Date>str_frmdate ;
            ArrayList <Date>str_todate = new ArrayList<Date>();
            ArrayList <Date>str_frmtime = new ArrayList<Date>();
            ArrayList <Date>str_totime = new ArrayList<Date>();
            ArrayList resno_list = new ArrayList ();
            int noday;
            int no_of_days;
            Date fromDate;
            Graphics g;
            MouseEvent e;
            int rect_x;
            int rect_y;
            int rect_w;
            int rect_ht;
            int x,y,w,ht;
            //Rectangle r = new Rectangle();
            int r_x=100;
            int r_y =100;
            int r_w =15; 
            int r_ht = 10;
            Rectangle r1 = new Rectangle(r_x,r_y,r_w,r_ht);
            ArrayList<Integer> x_cord_list = new ArrayList<Integer>();
            ArrayList<Integer> y_cord_list = new ArrayList<Integer>();
            ArrayList<Integer> width_list = new ArrayList<Integer> ();
            ArrayList<Rectangle> rectangles = new ArrayList<Rectangle> ();
            ArrayList<Rectangle> rectangle = new ArrayList<Rectangle> ();
            Rectangle clickedRectangle = null;
            Rectangle r = new Rectangle(rect_x,rect_y,rect_w,rect_ht);
            Rectangle [] panel;
            int x_Pos,y_Pos;
            Rectangle selectedRect;
            Point offset = new Point();
            boolean dragging = false;
            Rectangle[] rects;
            
            public Imagepanel() 
            { 
                panel();
                addMouseMotionListener(this);
                addMouseListener(this);
            }
    
            public void panel()
            {
                Graphics g1 = this.g;
                int dimension = 0;
                // You do all the data reading and preparation each
                // time your applet tries to drawe itself and its
                // too much. You only need to read the xml file 
                // and prepare your data structures one tims.
                // So do it here and now. Then the drawing methods
                // can draw from the data structures. Why build a
                // new bicycle every time you want to go somewhere?
                prepareData();
                // Now you have the data prepared so you can
                // calculate/estimate how wide and high this
                // component needs to be. Then you can set a
                // reasonable preferredSize here:
                setPreferredSize(new Dimension(33060,33060));
    //???            Imagepanel imagepanel;
                setBorder(BorderFactory.createLineBorder(Color.BLACK, border));
            }
    
            @Override
            // You were using the wrong method here.
            // This is correct:
            protected void paintComponent(Graphics g)
            {
                super.paintComponent(g);
                Graphics2D g2 = (Graphics2D)g;
                g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                                    RenderingHints.VALUE_ANTIALIAS_ON);
                g2.setColor(getBackground());   
                g2.fillRect(0, 0, getWidth(), getHeight()); 
                g2.setColor(getForeground());          
    
                if(drawpanel)    { drawPanel(g2);    }
                if(drawresource) { drawResource(g2); }
                if(drawcalender) { drawCalendar(g2); }
                 
                g2.setPaint(new Color(0,157,250));
                System.out.println(rectangles.size()+"SIZE");
                rects = rectangles.toArray(new Rectangle[rectangles.size()]);
                for(Rectangle ret : rects)
                {   
                    g2.draw(ret);
                }
            }
    
            public void drawPanel(Graphics2D g2)
            {
                int margin = 10;
                int imgborder = 10;
                int imgline1 = 300;
                int titlebarx = 300;
                int titlebary = 50;
                g2.drawLine(imgline1, 0, imgline1, getHeight());
                g2.setPaint(new Color(0, 128, 192));
                g2.fillRect(imgborder, imgborder, 290, 45);
                g2.setPaint(Color.WHITE);
                g2.drawLine(margin, margin, titlebarx, titlebary);
                g2.drawString("RESOURCE", 40, 40);
                g2.drawString("TIME", 200, 25);
            }
    //166
            public void drawResource(Graphics2D g2)
            {
                int x_axis= 50;
                int y_axis = 80;
    /*
                XMLReading xmlreadingObj = new XMLReading();
                try 
                {
                    xmlreadingObj.fileParsing("xml3.xml");
    //                  "C:/Documents and Settings/8563/TEST/src/Gantt.xml");
                } 
                catch (FileNotFoundException ex) 
                {
                    ex.printStackTrace();
                }
                catch (SAXException ex)
                {
                    ex.printStackTrace();
                }
                catch (IOException ex) 
                {
                    ex.printStackTrace();
                }
                
                it = xmlreadingObj.getres_list().iterator();
                it_wrk_drawing = xmlreadingObj.getrev__wrkOrder_list().iterator();
                it_frmdate = xmlreadingObj.getrev_frmdate_list().iterator();
                it_todate = xmlreadingObj.getrev_todate_list().iterator();
    */
                int size = xmlreadingObj.getres_list().size();
                
                g2.setPaint(new Color(0, 128, 192));
                
                int y_rect = 72;
                int tree_rect_width = 13;
                int tree_rect_height = 10;
                int panel_line_x = 300;
                Font font_resourcetrees = new Font("Ariel",Font.PLAIN,9);
                g2.setFont(font_resourcetrees);
                
                for (int len=0;len<size;len++)
                {
                    while(it.hasNext()) 
                    {
                        // This only needs to happen one time.
    //                    Font font_resourcetrees = new Font("Ariel",Font.PLAIN,9);
    //                    g2.setFont(font_resourcetrees);
                        g2.fillRect(30,y_rect,tree_rect_width,tree_rect_height);
                        
                        g2.drawLine(panel_line_x,y_axis+14,getWidth(),y_axis+14);
                        g2.drawString(""+it.next(),x_axis,y_axis);
                        /*line for seperating the resource*/
                        y_axis += 28;
                        y_rect += 28;
                    }
                }
            }
            
            /*This method is for drawing the calender in the right top of the panel*/
            public Date  drawCalendar( Graphics2D g2)
            {
                // This was prepared in the [i]paintComponent[/i] method.
    //            Graphics2D g2 = (Graphics2D)g;
                
                int no_ofday = this.no_of_days;
                long from;
                long to;
                int n = 168;
                int x = 300;
                int x1_cal = 300;
                int x3 = x;
                int width1 = 180;
                int daydx = (width1 / 2);
                int dayx = (daydx + x);
                int f2 = x + n;
                String date[] = {"0", "4", "8", "12", "16", "20", "24"};
                
                int total_no_days = date_difference(g2);
                long days =(long) total_no_days;
                no_ofday = (int) days ;
    /****/
                // Make "arraydata" a member variable and do the
                // [i]drawwrk[/i] method work in or called from
                // prepare data. You don't need to do it every
                // time you draw/paint. I didn't see any drawing
                // inside the method so no graphics context
                // argument is necessary.
                Date[] arraydate = drawwrk(g2);
    /****/
                g2.setPaint(Color.BLACK);
                Calendar c = Calendar.getInstance(); // current date*
                Calendar c1 = Calendar.getInstance();
                Date local_fromDate = arraydate[0];
                           
                Date toDate  = arraydate[arraydate.length-1];
                c.setTime(local_fromDate);
                SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
                SimpleDateFormat sdf1 = new SimpleDateFormat("EEE");
                Font font1 = new Font("Ariel", Font.PLAIN, 9);
                g2.setFont(font1);
                
                for (int i = 0; i < no_ofday; i++) 
                {
                    // Only needed one time.
                    // This kind of thing slows down your applet.
    //                SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
    //                SimpleDateFormat sdf1 = new SimpleDateFormat("EEE");
                    // use the pattern: day_of_month
                    String str = sdf.format(c.getTime()); // fromat the date to string
                    String str3 = sdf1.format(c1.getTime());
                    for (int j = 0; j < 6; j++)
                    {
                        // Only needed one time.
    //                    Font font1 = new Font("Ariel", Font.PLAIN, 9);
    //                    g2.setFont(font1);
                        g2.drawLine(x1_cal, 50, x1_cal, 55);
                        g2.drawString(date[j], x1_cal, 45);
                        x1_cal += 30;
                    }
                    g2.drawRect(x, 10, width1, 45);
                    g2.drawString("24", f2, 45);
                    f2 += width1;
                    x += width1;
                    g2.drawString(str, dayx-10, 35);
                    g2.drawString(str3,dayx-5,20);
                    dayx += 180;
                    int nextdate = c.get(Calendar.DATE) + 1;
                    c.set(Calendar.DATE, nextdate);
                    int nextdate1 = c1.get(Calendar.DAY_OF_WEEK)+1;
                    c1.set(Calendar.DAY_OF_WEEK,nextdate1);
                }
                return local_fromDate;
            }
    
            /*This method make the datas in the list in a order.
              It computes the date and time from the list..
              And it return the start date and end date & this
              was used in calender method
             */
            public Date[] drawwrk(Graphics2D g2)
            {
                // This was prepared in the [i]paintComponent[/i] method.
    //            Graphics2D g2 = (Graphics2D)g;
    /****/
                // All of this work below should be done only one
                // time: either in or called from [i]prepareData[/i].
                // You should never do this kind of work in or
                // called from a painting method.
    /****/
                XMLReading xmlreadingObj = new XMLReading();
    
                try 
                {
                    xmlreadingObj.fileParsing("xml3.xml");
    //                  "C:/Documents and Settings/8563/TEST/src/Gantt.xml");
                } catch (FileNotFoundException ex) 
                {
                    ex.printStackTrace();
                } catch (SAXException ex) {
                    ex.printStackTrace();
                } catch (IOException ex) {
                    ex.printStackTrace();
                }
                
                res_mseg = xmlreadingObj.res_list;
                Object [] array = res_mseg.toArray();
                
                rev_list = xmlreadingObj.rev__wrkOrder_list;
                Object [] array1 = rev_list.toArray();
                
                String str1 = new String();
                String str2 = new String();
                
                wrk = xmlreadingObj.wrkorder_list;
                frm_list = xmlreadingObj.rev_frmdate_list;
                todate_list = xmlreadingObj.rev_todate_list;
                fromtime_list = xmlreadingObj.rev_frmtime_list;
                totime_list = xmlreadingObj.rev_totime_list;
                
                Date frmdate = new Date();
                Date todate = new Date();
                
                Date frm_time = null;
                Date to_time = null;
                Time frmTime = null;
                Time toTime = null;
                Date startdate= null;
                
                SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
                SimpleDateFormat sdf_time = new SimpleDateFormat("HH:mm:ss");
                int delay =(1000*60*60*24);
                Calendar c2 = Calendar.getInstance();
                Calendar c3 = Calendar.getInstance();
                int ftime = 0;
                int ttime = 0;
                int dif = 0;
                int x_1 = 0;
                int fromdate =0;
                int to_date =0;
                
               
                int size = res_mseg.size();
                int size1 = rev_list.size();
                ArrayList res_list = new ArrayList();
                String strtdate = frm_list.get(0).toString();
                
                String[] str_array = new String[size]; 
                String[] str1_array = new String[size1];
                
                double x_time;
                double y_time;
                double x1 ;
                double x2;
                int  y_1 =80;
                int y_axis = 74;
                int x_cord = this.rect_x;
                int width = this.rect_w;
                
                
                str_frmdate  = new ArrayList<Date>();
                for(int len = 0; len < array.length; len++)
                {
                    int i =0;
                    int j =0;
                    str1 = array[len].toString();
                    str_array [i] = str1;
                    res_list.add(str1);
                    
                    for(int len1 = 0; len1 < array1.length; len1++)
                    {
                        
                        str2 = array1[len1].toString();
                        str1_array [j] = str2;
                        if(str1.compareToIgnoreCase(str2) == 0 )
                        { 
                            resno_list.add(str2);
                            str_wrk.add(wrk.get(len1));
                            String str_date = frm_list.get(len1).toString();
                            String date_todate = todate_list.get(len1).toString();
                            String totime = totime_list.get(len1).toString();
                            String frmtime = fromtime_list.get(len1).toString();
                            try
                            {
                                frmdate = sdf.parse(str_date);
                                todate = sdf.parse(date_todate);
                                frm_time = sdf_time.parse(frmtime);
                                to_time = sdf_time.parse(totime);
                            }
                            catch (ParseException ex) 
                            {
                                ex.printStackTrace();
                            }
                            c2.setTime(frm_time);
                            c3.setTime(to_time);
                            ftime = c2.get(Calendar.HOUR_OF_DAY);
                            ttime = c3.get(Calendar.HOUR_OF_DAY);
                            int time_diff = ttime - ftime;
    
                            fromdate = Math.round((frmdate.getTime())/delay);
                            to_date = Math.round((todate.getTime())/delay);
    
                            str_frmtime.add(frm_time);
                            str_totime.add(to_time);
                            str_frmdate.add(frmdate);
                            str_todate.add(todate);
    
                            long datediff =((( todate.getTime())/delay)-
                                    ((difference().getTime())/delay));
                            long convr_datediff =(datediff*180)+300;
    
                            /*calculating x-co_ordinate*/
                            double hour = ftime*7.5;
                            double x_hr = hour +convr_datediff;
                            int conversion = (int)Math.round(x_hr);
                            x_cord = conversion;    
    
                            /*calculating width*/
                            double x_2 = ttime *7.5;
                            double timediff = x_2 - hour;
                            int width_hr =(int) Math.round(timediff);
                            width =width_hr;
                            //int width =width_hr;
                            try
                            {                   
                                x_cord_list.add(x_cord);
                                y_cord_list.add(y_axis);
                                width_list.add(width);
                                rectangles.add(new Rectangle(x_cord,y_axis,width,15));
                            }
                            catch(Exception e2)
                            {
                                System.out.print("EXCEPTION");
                            }
        
                        }
                    }
                y_axis += 28;
            }
                
            Date [] sorted_frmDate = 
                (Date[])str_frmdate.toArray(new Date[str_frmdate.size()]);
            Date[] sorted_toDate =
                (Date[])str_todate.toArray(new Date[str_todate.size()]);
            java.util.Arrays.sort(sorted_frmDate);
            java.util.Arrays.sort(sorted_toDate);
            startdate = sorted_frmDate[0];
            Date enddate = sorted_toDate[sorted_toDate.length-1];
            return new Date[] {startdate,enddate};
        } 
    
        // Why do we need a graphics context here?
        public int date_difference(Graphics g)
        {  
                int noofdays= this.no_of_days;
                Date [] date = null;
                Graphics2D g2 = (Graphics2D)g;
                long difference = 0;
                try
                {
                    date = drawwrk(g2);
                }
                catch(NullPointerException nullptr_e)
                {
                   
                } 
                Date startDate = date[0];                                   
                Date endDate = date[date.length-1];
                Calendar c = Calendar.getInstance();
                Calendar c1 = Calendar.getInstance();
                c.setTime(startDate);
                c1.setTime(endDate);
                difference = (c1.getTime().getTime() - c.getTime().getTime());
                long total_no_days =  Math.round((difference)/(1000*60*60*24));
                no_of_days = (int)total_no_days+1;
                return this.no_of_days;
            }
    /****/
            // Do all of your file reading and data structure
            // initialization and filling in this method.
            private void prepareData()
            {
                // Taken from the [i]drawResource[/i] method.
                XMLReading xmlreadingObj = new XMLReading();
                try 
                {
                    xmlreadingObj.fileParsing("xml3.xml");
    //                  "C:/Documents and Settings/8563/TEST/src/Gantt.xml");
                } 
                catch (FileNotFoundException ex) 
                {
                    ex.printStackTrace();
                }
                catch (SAXException ex)
                {
                    ex.printStackTrace();
                }
                catch (IOException ex) 
                {
                    ex.printStackTrace();
                }
                
                it = xmlreadingObj.getres_list().iterator();
                it_wrk_drawing = xmlreadingObj.getrev__wrkOrder_list().iterator();
                it_frmdate = xmlreadingObj.getrev_frmdate_list().iterator();
                it_todate = xmlreadingObj.getrev_todate_list().iterator();
    
                // more...
            }
    /****/
            public Date difference()
            {
               Date dt = str_frmdate.get(0);
               return  dt;
            }
    
            public ArrayList getfrmDate() { return str_frmdate; }
            
            public void mousePressed(MouseEvent e) 
            {
                Point p = e.getPoint();
                for(int j = 0; j < rects.length; j++)
                {
                    if(rects[j].contains(p))
                    {
                        selectedRect = rects[j];
                        offset.x = p.x - rects[j].x;
                        offset.y = p.y - rects[j].y;
                        dragging = true;
                        break;
                    }
                }
            }
    
            public void mouseReleased(MouseEvent e) 
            {
    /* ??? */   rectangles.clear();
                dragging = false;
            }
    
            public void mouseDragged(MouseEvent e)
            {
                Point me_p = e.getPoint();   
                if(dragging == true)
                {
    /****/
                    // See the example posted in your thread
                    // above for this implementation.
    //                for(int x = 0, y = rects.length; x < y; x++)          
    //                {     
                        selectedRect.setLocation(me_p.x - offset.x,me_p.y - offset.y);
                        this.repaint();
    //                }
    /****/
                }
            }
    
            public void mouseClicked(MouseEvent e) {}
            public void mouseEntered(MouseEvent e) {}
            public void mouseExited(MouseEvent e) {}
            public void mouseMoved(MouseEvent e) {}
    
            public void actionPerformed(MouseEvent e) {}
        }
    
        public static void main(String[] args) {
            JApplet applet = new mousedrag();
            JFrame f = new JFrame();
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.add(applet);
            f.setSize(400,400);
    //        f.setLocationRelativeTo(null);
            applet.init();
            f.setVisible(true);
        }
    }

  16. #16
    Preethi is offline Member
    Join Date
    Jan 2008
    Posts
    83
    Rep Power
    0

    Default

    Java Code:
    import javax.swing.*;
    import java.awt.*;
    import java.awt.BorderLayout;
    import java.awt.Color;
    import java.awt.Container;
    import java.awt.Dimension;
    import java.awt.Font;
    import java.awt.Graphics;
    import java.awt.Graphics2D;
    import java.awt.Point;
    import java.awt.Rectangle;
    import java.awt.RenderingHints;
    import java.awt.event.*;
    import java.awt.geom.*;
    import java.io.FileNotFoundException;
    import java.io.IOException;
    import java.sql.Time;
    import java.text.*;
    import java.util.ArrayList;
    import java.util.Calendar;
    import java.util.Date;
    import java.util.HashMap;
    import java.util.Iterator;
    import java.util.Map;
    import javax.swing.*;
    import org.xml.sax.*;
    import org.xml.sax.helpers.*;
    
    
    
    
    public class NewmouseDrag extends javax.swing.JApplet
    {
    
        @Override
        public void init()
        {
            Container cont = getContentPane();
            cont.setLayout(new BorderLayout());
            setPreferredSize(new Dimension(300, 300));
            JScrollPane scroll = new JScrollPane();
            getContentPane().add(scroll, BorderLayout.CENTER);
            scroll.getViewport().add(new Imagepanel());
        }
    
        private class Imagepanel extends JPanel implements MouseListener,MouseMotionListener
        {
    
    
            public static final long serialVersionUID = 0;
            private int border = 2;
            boolean selected= false;
            boolean selected1= false;
            /*Iterator for drawing the resource tree(for the tag<res_mseg>)*/
            private Iterator<DataObject> it;
            /*Iteartor for the work order attribute in the tag <rev_mseg>*/
            private Iterator<DrawingData> it_wrk_drawing;
            /*Iterator for the attribute wo_from_date in the tag <rev_mseg>*/
            private Iterator<FromDateData> it_frmdate;
            /*Iterator for the attribute wo_to_date in the tag <rev_mseg>*/
            private Iterator<ToDateData> it_todate;
    
            protected ArrayList<DataObject> res_mseg;
            protected ArrayList<DrawingData> rev_list;
            protected ArrayList<FromDateData> frm_list;
            protected ArrayList<WrkorderData> wrk ;
            ArrayList<ToDateData> todate_list;
            ArrayList<FromTime>fromtime_list;
            ArrayList<ToTime> totime_list;
            ArrayList<FromDateData> frmdate_list = new ArrayList<FromDateData>();
            boolean drawpanel = true;
            boolean drawresource = true;
            boolean drawcalender = true;
            boolean canDrag = false;
            public Date date1;
            ArrayList str_wrk = new ArrayList();
            ArrayList <Date>str_frmdate ;
            ArrayList <Date>str_todate = new ArrayList<Date>();
            ArrayList <Date>str_frmtime = new ArrayList<Date>();
            ArrayList <Date>str_totime = new ArrayList<Date>();
            ArrayList resno_list = new ArrayList ();
            int noday;
            int no_of_days;
            Date fromDate;
            Graphics g;
            MouseEvent e;
            int rect_x;
            int rect_y;
            int rect_w;
            int rect_ht;
            int x,y,w,ht;
    
            int r_x=100;
            int r_y =100;
            int r_w =15;
            int r_ht = 10;
            Rectangle r1 = new Rectangle(r_x,r_y,r_w,r_ht);
            ArrayList<Integer> x_cord_list = new ArrayList<Integer>();
            ArrayList<Integer> y_cord_list = new ArrayList<Integer>();
            ArrayList<Integer> width_list = new ArrayList<Integer> ();
            ArrayList<Rectangle> rectangles = new ArrayList<Rectangle> ();
            ArrayList<Rectangle> rectangle = new ArrayList<Rectangle> ();
    
            Rectangle r = new Rectangle(rect_x,rect_y,rect_w,rect_ht);
    
            int x_Pos,y_Pos;
            Rectangle selectedRect;
            Point offset = new Point();
            boolean dragging = false;
            Rectangle[] rects;
            int size;
    		Date[] arraydate;
    
    
            public Imagepanel()
            {
                panel();
                addMouseMotionListener(this);
                addMouseListener(this);
            }
            public void panel()
            {
                Graphics g1 = this.g;
                preparedDate();
                int dimension = 0;
                setPreferredSize(new Dimension(33060,33060));
                setBorder(BorderFactory.createLineBorder(Color.BLACK, border));
            }
    
            public void preparedDate()
            {
                XMLReading xmlreadingObj = new XMLReading();
                try
                {
                    xmlreadingObj.fileParsing("C:/Documents and Settings/Gantt.xml");
                }
                catch (FileNotFoundException ex)
                {
                    ex.printStackTrace();
                }
                catch (SAXException ex)
                {
                    ex.printStackTrace();
                }
                catch (IOException ex)
                {
                    ex.printStackTrace();
                }
    
                res_mseg = xmlreadingObj.res_list;
                rev_list = xmlreadingObj.rev__wrkOrder_list;
                wrk = xmlreadingObj.wrkorder_list;
    
                frm_list = xmlreadingObj.rev_frmdate_list;
                todate_list = xmlreadingObj.rev_todate_list;
                fromtime_list = xmlreadingObj.rev_frmtime_list;
                totime_list = xmlreadingObj.rev_totime_list;
    
                size = res_mseg.size();
    
                it = xmlreadingObj.getres_list().iterator();
                it_wrk_drawing = xmlreadingObj.getrev__wrkOrder_list().iterator();
                it_frmdate = xmlreadingObj.getrev_frmdate_list().iterator();
                it_todate = xmlreadingObj.getrev_todate_list().iterator();
    
    			arraydate = drawwrk();
    
    
            }
            @Override
            public void paintComponent(Graphics g)
            {
                super.paintComponent(g);
                Graphics2D g2 = (Graphics2D)g;
                g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,RenderingHints.VALUE_ANTIALIAS_ON);
                drawResource(g2);
    
                drawPanel(g2);
                draw(g2);
                drawwrk();
    
            }
    
            public void drawResource(Graphics g)
            {
                int x_axis= 50;
                int y_axis = 80;
                Graphics2D g2 = (Graphics2D) g;
                g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
                g2.setPaint(new Color(0, 128, 192));
    
                int y_rect = 72;
                int tree_rect_width = 13;
                int tree_rect_height = 10;
                int panel_line_x = 300;
    
                for (int len=0;len<size;len++)
                {
                    while(it.hasNext())
                    {
                        Font font_resourcetrees = new Font("Ariel",Font.PLAIN,9);
                        g2.setFont(font_resourcetrees);
                        g2.fillRect(30,y_rect,tree_rect_width,tree_rect_height);
    
                        g2.drawLine(panel_line_x,y_axis+14,getWidth(),y_axis+14);
                        g2.drawString(""+it.next(),x_axis,y_axis);
                        /*line for seperating the resource*/
                        y_axis += 28;
                        y_rect += 28;
                    }
                }
            }
            public void drawPanel(Graphics2D g2)
            {
                int margin = 10;
                int imgborder = 10;
                int imgline1 = 300;
                int titlebarx = 300;
                int titlebary = 50;
                g2.drawLine(imgline1, 0, imgline1, getHeight());
                g2.setPaint(new Color(0, 128, 192));
                g2.fillRect(imgborder, imgborder, 290, 45);
                g2.setPaint(Color.WHITE);
                g2.drawLine(margin, margin, titlebarx, titlebary);
                g2.drawString("RESOURCE", 40, 40);
                g2.drawString("TIME", 200, 25);
            }
    
            public Date [] drawwrk()
            {
                Object [] array = res_mseg.toArray();
                Object [] array1 = rev_list.toArray();
    
                String str1 = new String();
                String str2 = new String();
    
                Date frmdate = new Date();
                Date todate = new Date();
    
                Date frm_time = null;
                Date to_time = null;
                Time frmTime = null;
                Time toTime = null;
                Date startdate= null;
    
                SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
                SimpleDateFormat sdf_time = new SimpleDateFormat("HH:mm:ss");
                int delay =(1000*60*60*24);
                Calendar c2 = Calendar.getInstance();
                Calendar c3 = Calendar.getInstance();
                int ftime = 0;
                int ttime = 0;
                int dif = 0;
                int x_1 = 0;
                int fromdate =0;
                int to_date =0;
    
    
                int size = res_mseg.size();
                int size1 = rev_list.size();
                ArrayList res_list = new ArrayList();
                String strtdate = frm_list.get(0).toString();
    
                String[] str_array = new String[size];
                String[] str1_array = new String[size1];
    
                double x_time;
                double y_time;
                double x1 ;
                double x2;
                int  y_1 =80;
                int y_axis = 74;
                int x_cord = this.rect_x;
                int width = this.rect_w;
    
    
                str_frmdate  = new ArrayList<Date>();
                for(int len = 0; len < array.length; len++)
                {
                    int i =0;
                    int j =0;
                    str1 = array[len].toString();
                    str_array [i] = str1;
                    res_list.add(str1);
    
                    for(int len1 = 0; len1 < array1.length; len1++)
                    {
    
                        str2 = array1[len1].toString();
                        str1_array [j] = str2;
                        if(str1.compareToIgnoreCase(str2) == 0 )
                        {
                            resno_list.add(str2);
                            str_wrk.add(wrk.get(len1));
                            String str_date = frm_list.get(len1).toString();
                            String date_todate = todate_list.get(len1).toString();
                            String totime = totime_list.get(len1).toString();
                            String frmtime = fromtime_list.get(len1).toString();
                            try
                            {
                                frmdate = sdf.parse(str_date);
                                todate = sdf.parse(date_todate);
                                frm_time = sdf_time.parse(frmtime);
                                to_time = sdf_time.parse(totime);
                            }
                            catch (ParseException ex)
                            {
                                ex.printStackTrace();
                            }
                            c2.setTime(frm_time);
                            c3.setTime(to_time);
                            ftime = c2.get(Calendar.HOUR_OF_DAY);
                            ttime = c3.get(Calendar.HOUR_OF_DAY);
                            int time_diff = ttime - ftime;
    
                            fromdate = Math.round((frmdate.getTime())/delay);
                            to_date = Math.round((todate.getTime())/delay);
    
                            str_frmtime.add(frm_time);
                            str_totime.add(to_time);
                            str_frmdate.add(frmdate);
                            str_todate.add(todate);
    
                            long datediff =((( todate.getTime())/delay)-
                                    ((difference().getTime())/delay));
                            long convr_datediff =(datediff*180)+300;
    
                            /*calculating x-co_ordinate*/
                            double hour = ftime*7.5;
                            double x_hr = hour +convr_datediff;
                            int conversion = (int)Math.round(x_hr);
                            x_cord = conversion;
    
                            /*calculating width*/
                            double x_2 = ttime *7.5;
                            double timediff = x_2 - hour;
                            int width_hr =(int) Math.round(timediff);
                            width =width_hr;
                            //int width =width_hr;
                            try
                            {
                                x_cord_list.add(x_cord);
                                y_cord_list.add(y_axis);
                                width_list.add(width);
    
                            }
                            catch(Exception e2)
                            {
                                System.out.print("EXCEPTION");
                            }
    
                        }
                    }
                y_axis += 28;
            }
            Date [] sorted_frmDate = (Date[])str_frmdate.toArray(new Date[str_frmdate.size()]);
            Date[] sorted_toDate = (Date[])str_todate.toArray(new Date[str_todate.size()]);
            java.util.Arrays.sort(sorted_frmDate);
            java.util.Arrays.sort(sorted_toDate);
            startdate = sorted_frmDate[0];
            Date enddate = sorted_toDate[sorted_toDate.length-1];
            return new Date[] {startdate,enddate};
             }
    
    
    		public Date drawCalendar(Graphics2D g2)
    		{
    
    			int no_ofday = this.no_of_days;
    			long from;
    			long to;
    			int n = 168;
    			int x = 300;
    			int x1_cal = 300;
    			int x3 = x;
    			int width1 = 180;
    			int daydx = (width1 / 2);
    			int dayx = (daydx + x);
    			int f2 = x + n;
    			String date[] = {"0", "4", "8", "12", "16", "20", "24"};
    
    			int total_no_days = date_difference();
    			long days = (long) total_no_days;
    			no_ofday = (int) days;
    			/****/
    			// Make "arraydata" a member variable and do the
    			// drawwrk method work in or called from
    			// prepare data. You don't need to do it every
    			// time you draw/paint. I didn't see any drawing
    			// inside the method so no graphics context
    			// argument is necessary.
    			/****/
    			g2.setPaint(Color.BLACK);
    			Calendar c = Calendar.getInstance(); // current date*
    			Calendar c1 = Calendar.getInstance();
    			Date local_fromDate = arraydate[0];
    
    			Date toDate = arraydate[arraydate.length - 1];
    			c.setTime(local_fromDate);
    			SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
    			SimpleDateFormat sdf1 = new SimpleDateFormat("EEE");
    			Font font1 = new Font("Ariel", Font.PLAIN, 9);
    			g2.setFont(font1);
    
    			for (int i = 0; i < no_ofday; i++)
    			{
    
    				String str = sdf.format(c.getTime());
    				String str3 = sdf1.format(c1.getTime());
    				for (int j = 0; j < 6; j++)
    				{
    					g2.drawLine(x1_cal, 50, x1_cal, 55);
    					g2.drawString(date[j], x1_cal, 45);
    					x1_cal += 30;
    				}
    				g2.drawRect(x, 10, width1, 45);
    				g2.drawString("24", f2, 45);
    				f2 += width1;
    				x += width1;
    				g2.drawString(str, dayx - 10, 35);
    				g2.drawString(str3, dayx - 5, 20);
    				dayx += 180;
    				int nextdate = c.get(Calendar.DATE) + 1;
    				c.set(Calendar.DATE, nextdate);
    				int nextdate1 = c1.get(Calendar.DAY_OF_WEEK) + 1;
    				c1.set(Calendar.DAY_OF_WEEK, nextdate1);
    			}
    			return local_fromDate;
    		}
    
    
    
            public int date_difference()
            {
                int noofdays= this.no_of_days;
                Date [] date = null;
                long difference = 0;
                try
                {
                    date = drawwrk();
                }
                catch(NullPointerException nullptr_e)
                {
    
                }
                Date startDate = date[0];
                Date endDate = date[date.length-1];
                Calendar c = Calendar.getInstance();
                Calendar c1 = Calendar.getInstance();
                c.setTime(startDate);
                c1.setTime(endDate);
                difference = (c1.getTime().getTime() - c.getTime().getTime());
                long total_no_days =  Math.round((difference)/(1000*60*60*24));
                no_of_days = (int)total_no_days+1;
                return this.no_of_days;
            }
            public Date difference()
            {
               Date dt = str_frmdate.get(0);
               return  dt;
            }
    
            public void draw(Graphics2D g2)
            {
    
                Integer [] x = x_cord_list.toArray(new Integer[x_cord_list.size()]);
                Integer [] y = y_cord_list.toArray(new Integer[y_cord_list.size()]);
                Integer [] w = width_list.toArray(new Integer[width_list.size()]);
    
                for(int i=0;i<x_cord_list.size();i++)
                {
                    rectangles.add(new Rectangle((int)x[i],(int)y[i],(int)w[i],15));
                }
                g2.setPaint(new Color(0, 128, 192));
                rects = rectangles.toArray(new Rectangle[rectangles.size()]);
                for(int i=0;i<rects.length;i++)
                {
                    g2.draw(rects[i]);
                }
    
            }
    
            public void mouseClicked(MouseEvent e) {
    
            }
    
            public void mousePressed(MouseEvent e)
            {
                Point p = e.getPoint();
                for (int j = 0; j < rects.length; j++)
                {
                    if (rects[j].contains(p))
                    {
    
                        offset.x = p.x - rects[j].x;
                        offset.y = p.y - rects[j].y;
                        dragging = true;
                        break;
                    }
                }
            }
    
            public void mouseReleased(MouseEvent e)
            {
                this.repaint();
                dragging = false;
            }
    
            public void mouseEntered(MouseEvent e)
            {
    
            }
    
            public void mouseExited(MouseEvent e) {
    
            }
    
            public void mouseDragged(MouseEvent e)
            {
                Point me_p = e.getPoint();
    
                for(int i=0;i<rects.length;i++)
                {
                if (dragging == true)
                {
    
                  	selectedRect.setLocation(me_p.x - offset.x, me_p.y - offset.y);
                    this.repaint();
                }
                }
    
    
            }
    
            public void mouseMoved(MouseEvent e) {
                lastPos.clear();
            }
    
             }
            public static void main(String[] args)
            {
                JApplet applet = new NewmouseDrag();
                JFrame f = new JFrame();
                f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                f.add(applet);
                f.setSize(400,400);
    
                applet.init();
                f.setVisible(true);
            }
    
        }

  17. #17
    hardwired's Avatar
    hardwired is offline Senior Member
    Join Date
    Jul 2007
    Posts
    1,576
    Rep Power
    8

    Default

    Drags okay now but look at the 54 new Rectangles being added with each repaint event. This is caused by (see mouseReleased method comments) mixing up your initialization and rendering code.
    You want to separate the code that reads your file and initializes your data structures from the code that uses the data in the data structures for rendering/drawing. You want them to be squeaky–clean–separate. This makes it real easy to see what goes where, what is doing what and where to find things when you need to make changes. Easy–to–read/understand is a major goal in writing java code.
    I would start all over and do just the reading/initializing in a separate class. Make it concise, succinct and very clear.
    Then make your graphic component and have it get the data it needs from the separate data–storing class. See if you can figure out your drawing dimensions and store them (in one place) so you don't have to calculate them all over for each draw cycle.
    Also, the component is _very_ wide. Consider reorganizing your data presentation to keep the size within reason. Maybe use pages or a JTabbedPane or CardLayout or some JRadioButtons to select date regions/categories that you can draw/scroll in a managable way.
    Java Code:
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.geom.*;
    import java.io.FileNotFoundException;
    import java.io.IOException;
    import java.sql.Time;
    import java.text.*;
    import java.util.*;
    import javax.swing.*;
    import org.xml.sax.*;
    import org.xml.sax.helpers.*;
    
    public class MD extends JApplet   
    {
        public void init()
        {
            Container cont = getContentPane();
            cont.setLayout(new BorderLayout());
            setPreferredSize(new Dimension(300, 300));
            JScrollPane scroll = new JScrollPane();
            getContentPane().add(scroll, BorderLayout.CENTER);
            scroll.getViewport().add(new Imagepanel());
        }
        
        private class Imagepanel extends JPanel
                                 implements MouseListener,MouseMotionListener
        {
            public static final long serialVersionUID = 0;
            private int border = 2;
            boolean selected= false;
            boolean selected1= false;
            // Most of these iterator declarations can
            // be hidden as local variables.
            /*Iterator for drawing the resource tree(for the tag<res_mseg>)*/
            private Iterator<DataObject> it;
            /*Iteartor for the work order attribute in the tag <rev_mseg>*/
            private Iterator<DrawingData> it_wrk_drawing;
            /*Iterator for the attribute wo_from_date in the tag <rev_mseg>*/
            private Iterator<FromDateData> it_frmdate;
            /*Iterator for the attribute wo_to_date in the tag <rev_mseg>*/
            private Iterator<ToDateData> it_todate;
            
            protected ArrayList<DataObject> res_mseg;
            protected ArrayList<DrawingData> rev_list;
            protected ArrayList<FromDateData> frm_list;
            protected ArrayList<WrkorderData> wrk ;
            ArrayList<ToDateData> todate_list;
            ArrayList<FromTime> fromtime_list;
            ArrayList<ToTime> totime_list;
            ArrayList<FromDateData> frmdate_list = new ArrayList<FromDateData>();
            boolean drawpanel = true;
            boolean drawresource = true;
            boolean drawcalender = true;
            boolean canDrag = false;
            public Date date1;
            ArrayList str_wrk = new ArrayList();
            ArrayList<Date> str_frmdate;
            ArrayList<Date> str_todate = new ArrayList<Date>();
            ArrayList<Date> str_frmtime = new ArrayList<Date>();
            ArrayList<Date> str_totime = new ArrayList<Date>();
            ArrayList resno_list = new ArrayList ();
            int noday;
            int no_of_days;
            Date fromDate;
            Graphics g;
    //        MouseEvent e;
            int rect_x;
            int rect_y;
            int rect_w;
            int rect_ht;
            int x,y,w,ht;
    //        Rectangle r = new Rectangle();
            int r_x=100;
            int r_y =100;
            int r_w =15; 
            int r_ht = 10;
            Rectangle r1 = new Rectangle(r_x,r_y,r_w,r_ht);
            ArrayList<Integer> x_cord_list = new ArrayList<Integer>();
            ArrayList<Integer> y_cord_list = new ArrayList<Integer>();
            ArrayList<Integer> width_list = new ArrayList<Integer> ();
            ArrayList<Rectangle> rectangles = new ArrayList<Rectangle> ();
            ArrayList<Rectangle> rectangle = new ArrayList<Rectangle> ();
            Rectangle clickedRectangle = null;
            Rectangle r = new Rectangle(rect_x,rect_y,rect_w,rect_ht);
    //        Rectangle[] panel;
            int x_Pos,y_Pos;
            Rectangle selectedRect;
            Point offset = new Point();
            boolean dragging = false;
            Rectangle[] rects;
            XMLReading xmlreadingObj;
            Date[] arraydate;
            
            public Imagepanel() 
            {
                prepareData();
                panel();
                addMouseMotionListener(this);
                addMouseListener(this);
            }
    
            public void panel()
            {
    //            Graphics g1 = this.g;
                int dimension = 0;
                // Compute the height required for this component.
                int size = xmlreadingObj.getres_list().size();
                int height = 100 + size * 28;
                setPreferredSize(new Dimension(33060, height));
                setBorder(BorderFactory.createLineBorder(Color.BLACK, border));
            }
    
            protected void paintComponent(Graphics g)
            {
                super.paintComponent(g);
                Graphics2D g2 = (Graphics2D)g;
                g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                                    RenderingHints.VALUE_ANTIALIAS_ON);
                g2.setColor(getBackground());   
                g2.fillRect(0, 0, getWidth(), getHeight()); 
                g2.setColor(getForeground());          
    
                if(drawpanel)    { drawPanel(g2);    }
                if(drawresource) { drawResource(g2); }
                if(drawcalender) { drawCalendar(g2); }
                 
                g2.setPaint(new Color(0,157,250));
                // Note how the "rectangles" list grows.
                // Why does this happen?
                // See [i]mouseReleased[/i] method.
                System.out.printf("rectangles.size = %d  rects.length = %d%n",
                                   rectangles.size(), rects.length);
                // This only needs to be done one time.
                // Try moving it to [i]prepareData[/i]
    //            rects = rectangles.toArray(new Rectangle[rectangles.size()]);
                for(Rectangle ret : rects)
                {   
                    g2.draw(ret);
                }
            }
    
            public void drawPanel(Graphics2D g2)
            {
                int margin = 10;
                int imgborder = 10;
                int imgline1 = 300;
                int titlebarx = 300;
                int titlebary = 50;
                g2.drawLine(imgline1, 0, imgline1, getHeight());
                g2.setPaint(new Color(0, 128, 192));
                g2.fillRect(imgborder, imgborder, 290, 45);
                g2.setPaint(Color.WHITE);
                g2.drawLine(margin, margin, titlebarx, titlebary);
                g2.drawString("RESOURCE", 40, 40);
                g2.drawString("TIME", 200, 25);
            }
    
            public void drawResource(Graphics2D g2)
            {
                int x_axis= 50;
                int y_axis = 80;
    
                it = xmlreadingObj.getres_list().iterator();
                it_wrk_drawing = xmlreadingObj.getrev__wrkOrder_list().iterator();
                it_frmdate = xmlreadingObj.getrev_frmdate_list().iterator();
                it_todate = xmlreadingObj.getrev_todate_list().iterator();
    
                int size = xmlreadingObj.getres_list().size();
                
                g2.setPaint(new Color(0, 128, 192));
                
                int y_rect = 72;
                int tree_rect_width = 13;
                int tree_rect_height = 10;
                int panel_line_x = 300;
                Font font_resourcetrees = new Font("Ariel",Font.PLAIN,9);
                g2.setFont(font_resourcetrees);
                
                for (int len=0;len<size;len++)
                {
                    while(it.hasNext()) 
                    {
                        g2.fillRect(30,y_rect,tree_rect_width,tree_rect_height);
                        
                        g2.drawLine(panel_line_x,y_axis+14,getWidth(),y_axis+14);
                        g2.drawString(""+it.next(),x_axis,y_axis);
                        /*line for seperating the resource*/
                        y_axis += 28;
                        y_rect += 28;
                    }
                }
            }
            
            /*This method is for drawing the calender in the right top of the panel*/
            public Date drawCalendar( Graphics2D g2)
            {            
                int no_ofday = this.no_of_days;
                long from;
                long to;
                int n = 168;
                int x = 300;
                int x1_cal = 300;
                int x3 = x;
                int width1 = 180;
                int daydx = (width1 / 2);
                int dayx = (daydx + x);
                int f2 = x + n;
                String date[] = {"0", "4", "8", "12", "16", "20", "24"};
    
                // Removed the "g2" argument:
                int total_no_days = date_difference();
                long days =(long) total_no_days;
                no_ofday = (int) days ;
    
                g2.setPaint(Color.BLACK);
                Calendar c = Calendar.getInstance(); // current date*
                Calendar c1 = Calendar.getInstance();
                Date local_fromDate = arraydate[0];
                           
                Date toDate  = arraydate[arraydate.length-1];
                c.setTime(local_fromDate);
                SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
                SimpleDateFormat sdf1 = new SimpleDateFormat("EEE");
                Font font1 = new Font("Ariel", Font.PLAIN, 9);
                g2.setFont(font1);
                
                for (int i = 0; i < no_ofday; i++) 
                {
                    // use the pattern: day_of_month
                    String str = sdf.format(c.getTime());
                    String str3 = sdf1.format(c1.getTime());
                    for (int j = 0; j < 6; j++)
                    {
                        g2.drawLine(x1_cal, 50, x1_cal, 55);
                        g2.drawString(date[j], x1_cal, 45);
                        x1_cal += 30;
                    }
                    g2.drawRect(x, 10, width1, 45);
                    g2.drawString("24", f2, 45);
                    f2 += width1;
                    x += width1;
                    g2.drawString(str, dayx-10, 35);
                    g2.drawString(str3,dayx-5,20);
                    dayx += 180;
                    int nextdate = c.get(Calendar.DATE) + 1;
                    c.set(Calendar.DATE, nextdate);
                    int nextdate1 = c1.get(Calendar.DAY_OF_WEEK)+1;
                    c1.set(Calendar.DAY_OF_WEEK,nextdate1);
                }
                return local_fromDate;
            }
    
            /*This method make the datas in the list in a order.
              It computes the date and time from the list..
              And it return the start date and end date & this
              was used in calender method
             */
            public Date[] drawwrk()
            {
                res_mseg = xmlreadingObj.res_list;
                Object[] array = res_mseg.toArray();
                
                rev_list = xmlreadingObj.rev__wrkOrder_list;
                Object[] array1 = rev_list.toArray();
                
                String str1 = new String();
                String str2 = new String();
                
                wrk = xmlreadingObj.wrkorder_list;
                frm_list = xmlreadingObj.rev_frmdate_list;
                todate_list = xmlreadingObj.rev_todate_list;
                fromtime_list = xmlreadingObj.rev_frmtime_list;
                totime_list = xmlreadingObj.rev_totime_list;
                
                Date frmdate = new Date();
                Date todate = new Date();
                
                Date frm_time = null;
                Date to_time = null;
                Time frmTime = null;
                Time toTime = null;
                Date startdate= null;
                
                SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
                SimpleDateFormat sdf_time = new SimpleDateFormat("HH:mm:ss");
                int delay =(1000*60*60*24);
                Calendar c2 = Calendar.getInstance();
                Calendar c3 = Calendar.getInstance();
                int ftime = 0;
                int ttime = 0;
                int dif = 0;
                int x_1 = 0;
                int fromdate =0;
                int to_date =0;
                
               
                int size = res_mseg.size();
                int size1 = rev_list.size();
                ArrayList res_list = new ArrayList();
                String strtdate = frm_list.get(0).toString();
                
                String[] str_array = new String[size]; 
                String[] str1_array = new String[size1];
                
                double x_time;
                double y_time;
                double x1 ;
                double x2;
                int  y_1 =80;
                int y_axis = 74;
                int x_cord = this.rect_x;
                int width = this.rect_w;
                
                
                str_frmdate  = new ArrayList<Date>();
                for(int len = 0; len < array.length; len++)
                {
                    int i =0;
                    int j =0;
                    str1 = array[len].toString();
                    str_array [i] = str1;
                    res_list.add(str1);
                    
                    for(int len1 = 0; len1 < array1.length; len1++)
                    {
                        str2 = array1[len1].toString();
                        str1_array [j] = str2;
                        if(str1.compareToIgnoreCase(str2) == 0 )
                        { 
                            resno_list.add(str2);
                            str_wrk.add(wrk.get(len1));
                            String str_date = frm_list.get(len1).toString();
                            String date_todate = todate_list.get(len1).toString();
                            String totime = totime_list.get(len1).toString();
                            String frmtime = fromtime_list.get(len1).toString();
                            try
                            {
                                frmdate = sdf.parse(str_date);
                                todate = sdf.parse(date_todate);
                                frm_time = sdf_time.parse(frmtime);
                                to_time = sdf_time.parse(totime);
                            }
                            catch (ParseException ex) 
                            {
                                ex.printStackTrace();
                            }
                            c2.setTime(frm_time);
                            c3.setTime(to_time);
                            ftime = c2.get(Calendar.HOUR_OF_DAY);
                            ttime = c3.get(Calendar.HOUR_OF_DAY);
                            int time_diff = ttime - ftime;
    
                            fromdate = Math.round((frmdate.getTime())/delay);
                            to_date = Math.round((todate.getTime())/delay);
    
                            str_frmtime.add(frm_time);
                            str_totime.add(to_time);
                            str_frmdate.add(frmdate);
                            str_todate.add(todate);
    
                            long datediff =((( todate.getTime())/delay)-
                                    ((difference().getTime())/delay));
                            long convr_datediff =(datediff*180)+300;
    
                            /*calculating x-co_ordinate*/
                            double hour = ftime*7.5;
                            double x_hr = hour +convr_datediff;
                            int conversion = (int)Math.round(x_hr);
                            x_cord = conversion;    
    
                            /*calculating width*/
                            double x_2 = ttime *7.5;
                            double timediff = x_2 - hour;
                            int width_hr =(int) Math.round(timediff);
                            width =width_hr;
                            //int width =width_hr;
                            try
                            {                   
                                x_cord_list.add(x_cord);
                                y_cord_list.add(y_axis);
                                width_list.add(width);
                                rectangles.add(new Rectangle(x_cord,y_axis,width,15));
                            }
                            catch(Exception e2)
                            {
                                System.out.print("EXCEPTION");
                            }
        
                        }
                    }
                    y_axis += 28;
                }
                
                Date [] sorted_frmDate = 
                    (Date[])str_frmdate.toArray(new Date[str_frmdate.size()]);
                Date[] sorted_toDate =
                    (Date[])str_todate.toArray(new Date[str_todate.size()]);
                java.util.Arrays.sort(sorted_frmDate);
                java.util.Arrays.sort(sorted_toDate);
                startdate = sorted_frmDate[0];
                Date enddate = sorted_toDate[sorted_toDate.length-1];
                return new Date[] {startdate,enddate};
            } 
    
            // Why do we need a graphics context here?
            public int date_difference(/*Graphics2D g2*/)
            {
                int noofdays= this.no_of_days;
                Date [] date = null;
    //            Graphics2D g2 = (Graphics2D)g;
                long difference = 0;
                try
                {
                    date = drawwrk();
                }
                catch(NullPointerException nullptr_e)
                {
                   
                } 
                Date startDate = date[0];                                   
                Date endDate = date[date.length-1];
                Calendar c = Calendar.getInstance();
                Calendar c1 = Calendar.getInstance();
                c.setTime(startDate);
                c1.setTime(endDate);
                difference = (c1.getTime().getTime() - c.getTime().getTime());
                long total_no_days =  Math.round((difference)/(1000*60*60*24));
                no_of_days = (int)total_no_days+1;
                return this.no_of_days;
            }
    
            private void prepareData()
            {
                // Taken from the [i]drawResource[/i] method.
                xmlreadingObj = new XMLReading();
                try 
                {
                    xmlreadingObj.fileParsing("xml3.xml");
    //                  "C:/Documents and Settings/8563/TEST/src/Gantt.xml");
                } 
                catch (FileNotFoundException ex) 
                {
                    ex.printStackTrace();
                }
                catch (SAXException ex)
                {
                    ex.printStackTrace();
                }
                catch (IOException ex) 
                {
                    ex.printStackTrace();
                }
                
                it = xmlreadingObj.getres_list().iterator();
                it_wrk_drawing = xmlreadingObj.getrev__wrkOrder_list().iterator();
                it_frmdate = xmlreadingObj.getrev_frmdate_list().iterator();
                it_todate = xmlreadingObj.getrev_todate_list().iterator();
    
                arraydate = drawwrk();
                rects = rectangles.toArray(new Rectangle[rectangles.size()]);
            }
    
            public Date difference()
            {
               Date dt = str_frmdate.get(0);
               return  dt;
            }
    
            public ArrayList getfrmDate() { return str_frmdate; }
            
            public void mousePressed(MouseEvent e) 
            {
                Point p = e.getPoint();
                for(int j = 0; j < rects.length; j++)
                {
                    if(rects[j].contains(p))
                    {
                        selectedRect = rects[j];
                        offset.x = p.x - rects[j].x;
                        offset.y = p.y - rects[j].y;
                        dragging = true;
                        break;
                    }
                }
            }
    
            public void mouseReleased(MouseEvent e) 
            {
                // Where are the 54 extra rectangles being
                // added for each repaint? [i]drawCalendar[/i]
                // calls [i]date_difference[/i] which
                // calls [i]drawwrk[/i] which adds
                // to the "rectangles" list.
    //            rectangles.clear();
                dragging = false;
            }
    
            public void mouseDragged(MouseEvent e)
            {
                Point me_p = e.getPoint();   
                if(dragging)
                {
                    selectedRect.setLocation(me_p.x - offset.x,me_p.y - offset.y);
                    this.repaint();
                }
            }
    
            public void mouseClicked(MouseEvent e) {}
            public void mouseEntered(MouseEvent e) {}
            public void mouseExited(MouseEvent e) {}
            public void mouseMoved(MouseEvent e) {}
    
            public void actionPerformed(MouseEvent e) {}
        }
    
        public static void main(String[] args) {
            JApplet applet = new MD();
            JFrame f = new JFrame();
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.add(applet);
            f.setSize(400,400);
    //        f.setLocationRelativeTo(null);
            applet.init();
            f.setVisible(true);
        }
    }

Similar Threads

  1. Repaint problem
    By swimberl in forum Java 2D
    Replies: 1
    Last Post: 02-16-2008, 09:12 PM
  2. Repaint problem
    By swimberl in forum Java 2D
    Replies: 0
    Last Post: 01-06-2008, 03:28 AM
  3. repaint validate doLayout
    By Gajesh Tripathi in forum AWT / Swing
    Replies: 1
    Last Post: 10-27-2007, 06:53 PM
  4. Repaint fails when using threads
    By rjevans2000 in forum Threads and Synchronization
    Replies: 1
    Last Post: 09-21-2007, 11:22 PM
  5. Repaint fails when using threads
    By rjevans2000 in forum AWT / Swing
    Replies: 3
    Last Post: 08-15-2007, 05:42 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •