Пример #1
0
        //Retrieves the Appeal object with the given reference number from the database
        public Appeal retAppeal(Water_Board_Management.Database d, String rn)
        {
            if (!(d.hasEntry(rn)))
                return null;

            String[] det = d.getRow(rn);
            Appeal temp = new Appeal(Int32.Parse(det[0]), Int32.Parse(det[1]), det[2], det[3], det[6]);
            if (det[5].Equals("True"))
            {
                temp.complete();
                temp.setComplete(det[7]);
            }
            if (det[9].Equals("True"))
                temp.validate();
            temp.setAdditional(det[4]);
            temp.setProgress(det[8]);

            return temp;
        }
Пример #2
0
        //Retrieves the Appeal object with the given reference number from the database
        public Appeal retAppeal(Water_Board_Management.Database d, String rn)
        {
            if (!(d.hasEntry(rn)))
            {
                return(null);
            }

            String[] det  = d.getRow(rn);
            Appeal   temp = new Appeal(Int32.Parse(det[0]), Int32.Parse(det[1]), det[2], det[3], det[6]);

            if (det[5].Equals("True"))
            {
                temp.complete();
                temp.setComplete(det[7]);
            }
            if (det[9].Equals("True"))
            {
                temp.validate();
            }
            temp.setAdditional(det[4]);
            temp.setProgress(det[8]);

            return(temp);
        }