dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #19532
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 8553: Commited Punjab Cancer MIS project for J2ME application on J2ME polish.
------------------------------------------------------------
revno: 8553
committer: thaichuong159 <thaichuong159@xxxxxxxxx>
branch nick: dhis2
timestamp: Wed 2012-10-17 17:53:47 +0700
message:
Commited Punjab Cancer MIS project for J2ME application on J2ME polish.
added:
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/.eclipseme
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/.polishSettings/
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/.polishSettings/obfuscation-map.txt
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/build.xml
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/deployed/
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/dist/
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/res/
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/i18n/
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/i18n/messages.txt
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/ScreenSize.176+x220+/
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/ScreenSize.176+x220+/readme.txt
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/ScreenSize.176x208/
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/ScreenSize.176x208/readme.txt
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/ScreenSize.176x220/
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/ScreenSize.176x220/readme.txt
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/ScreenSize.240+x320+/
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/ScreenSize.240+x320+/readme.txt
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/ScreenSize.240x320/
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/ScreenSize.240x320/readme.txt
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/ScreenSize.352x416/
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/ScreenSize.352x416/readme.txt
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/Splash.png
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-black/
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-black/busy01.png
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-black/busy02.png
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-black/busy03.png
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-black/busy04.png
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-black/busy05.png
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-black/busy06.png
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-black/busy07.png
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-black/busy08.png
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-black/busy09.png
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-black/busy10.png
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-black/busy11.png
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-black/busy12.png
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy01.png
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy02.png
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy03.png
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy04.png
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy05.png
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy06.png
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy07.png
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy08.png
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy09.png
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy10.png
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy11.png
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy12.png
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy_w01.png
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy_w02.png
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy_w03.png
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy_w04.png
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy_w05.png
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy_w06.png
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy_w07.png
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy_w08.png
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy_w09.png
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy_w10.png
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy_w11.png
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy_w12.png
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy01.png
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy02.png
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy03.png
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy04.png
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy05.png
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy06.png
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy07.png
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy08.png
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy09.png
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy10.png
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy11.png
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy12.png
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/exclamation.png
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/favicon.png
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/icon.png
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/kendo 256px.png
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/lung_cancer_awareness.jpg
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/question.png
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/readme.txt
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/success.png
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/readme.txt
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/sounds/
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/sounds/readme.txt
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/style/
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/style/polish.css
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/customization1/
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/customization1/images/
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/customization1/images/readme.txt
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/customization1/polish.css
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/customization1/readme.txt
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/customization1/sounds/
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/customization1/sounds/readme.txt
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/customization1/style/
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/customization2/
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/customization2/images/
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/customization2/images/readme.txt
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/customization2/polish.css
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/customization2/readme.txt
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/customization2/sounds/
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/customization2/sounds/readme.txt
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/src/
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/src/de/
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/src/de/enough/
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/src/de/enough/polish/
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/src/de/enough/polish/app/
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/src/de/enough/polish/app/App.java
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/src/de/enough/polish/app/control/
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/src/de/enough/polish/app/control/Compressor.java
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/src/de/enough/polish/app/control/Controller.java
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/src/de/enough/polish/app/model/
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/src/de/enough/polish/app/model/Configuration.java
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/src/de/enough/polish/app/view/
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/src/de/enough/polish/app/view/MainMenuList.java
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/src/de/enough/polish/app/view/TextField.java
local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/src/de/enough/polish/app/view/TheScreen.java
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== added directory 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS'
=== added file 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/.eclipseme'
--- local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/.eclipseme 1970-01-01 00:00:00 +0000
+++ local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/.eclipseme 2012-10-17 10:53:47 +0000
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<eclipsemeMetadata version="1.7.9">
+ <device group="Sun Java(TM) Wireless Toolkit 2.5.2_01 for CLDC" name="DefaultGrayPhone"/>
+ <signing signProject="false"/>
+</eclipsemeMetadata>
\ No newline at end of file
=== added directory 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/.polishSettings'
=== added file 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/.polishSettings/obfuscation-map.txt'
--- local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/.polishSettings/obfuscation-map.txt 1970-01-01 00:00:00 +0000
+++ local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/.polishSettings/obfuscation-map.txt 2012-10-17 10:53:47 +0000
@@ -0,0 +1,186 @@
+de.enough.polish.app.model.Configuration=a
+de.enough.polish.calendar.CalendarAlarm=b
+de.enough.polish.calendar.CalendarCategory=c
+de.enough.polish.calendar.CalendarEntry=d
+de.enough.polish.calendar.CalendarEntryModel=e
+de.enough.polish.calendar.CalendarTimeZone=f
+de.enough.polish.calendar.EventRepeatRule=g
+de.enough.polish.camera.CameraResolution=h
+de.enough.polish.content.ContentDescriptor=i
+de.enough.polish.content.storage.StorageReference=j
+de.enough.polish.format.atom.AtomAuthor=k
+de.enough.polish.format.atom.AtomEntry=l
+de.enough.polish.format.atom.AtomEntryLink=m
+de.enough.polish.format.atom.AtomFeed=n
+de.enough.polish.format.atom.AtomImage=o
+de.enough.polish.pim.PimChangeItem=p
+de.enough.polish.processing.ProcessingBackground=q
+de.enough.polish.ui.Background=r
+de.enough.polish.ui.Border=bu
+de.enough.polish.ui.Color=cq
+de.enough.polish.ui.ContainerView=cr
+de.enough.polish.ui.Dimension=dq
+de.enough.polish.ui.ItemView=ec
+de.enough.polish.ui.Point=ei
+de.enough.polish.ui.RgbFilter=ej
+de.enough.polish.ui.Style=er
+de.enough.polish.ui.TextEffect=es
+de.enough.polish.ui.backgrounds.AnimatedGifBackground=s
+de.enough.polish.ui.backgrounds.BallBackground=t
+de.enough.polish.ui.backgrounds.BorderedRoundRectBackground=u
+de.enough.polish.ui.backgrounds.BorderedRoundRectOpeningBackground=v
+de.enough.polish.ui.backgrounds.BorderedRoundTabBackground=w
+de.enough.polish.ui.backgrounds.BorderedSimpleBackground=x
+de.enough.polish.ui.backgrounds.CircleBackground=y
+de.enough.polish.ui.backgrounds.CombinedBackground=z
+de.enough.polish.ui.backgrounds.CombinedHorizontalBackground=aa
+de.enough.polish.ui.backgrounds.CombinedVerticalBackground=ab
+de.enough.polish.ui.backgrounds.DoubleGradientVerticalBackground=ac
+de.enough.polish.ui.backgrounds.FadeInBackground=ad
+de.enough.polish.ui.backgrounds.GradientHorizontalBackground=ae
+de.enough.polish.ui.backgrounds.GradientRadialBackground=af
+de.enough.polish.ui.backgrounds.GradientVerticalBackground=ag
+de.enough.polish.ui.backgrounds.HorizontalSplitBackground=ah
+de.enough.polish.ui.backgrounds.HorizontalSplitRoundRectBackground=ai
+de.enough.polish.ui.backgrounds.HorizontalStripesBackground=aj
+de.enough.polish.ui.backgrounds.ImageBackground=ak
+de.enough.polish.ui.backgrounds.ImageResourceBackground=al
+de.enough.polish.ui.backgrounds.LayerBackground=am
+de.enough.polish.ui.backgrounds.LayerVerticalBackground=an
+de.enough.polish.ui.backgrounds.MaskBackground=ao
+de.enough.polish.ui.backgrounds.OpeningBackground=ap
+de.enough.polish.ui.backgrounds.PartialGradientBackground=aq
+de.enough.polish.ui.backgrounds.PartialSimpleBackground=ar
+de.enough.polish.ui.backgrounds.PatchBackground=as
+de.enough.polish.ui.backgrounds.PolygonBackground=at
+de.enough.polish.ui.backgrounds.PulsatingBackground=au
+de.enough.polish.ui.backgrounds.PulsatingCircleBackground=av
+de.enough.polish.ui.backgrounds.PulsatingCirclesBackground=aw
+de.enough.polish.ui.backgrounds.PulsatingRoundRectBackground=ax
+de.enough.polish.ui.backgrounds.RepaintTestBackground=ay
+de.enough.polish.ui.backgrounds.RoundRectBackground=az
+de.enough.polish.ui.backgrounds.RoundRectCorneredBackground=ba
+de.enough.polish.ui.backgrounds.RoundRectDoubleGradientVerticalBackground=bb
+de.enough.polish.ui.backgrounds.RoundTabBackground=bc
+de.enough.polish.ui.backgrounds.ScalingImageBackground=bd
+de.enough.polish.ui.backgrounds.SimpleBackground=be
+de.enough.polish.ui.backgrounds.SlideShowBackground=bf
+de.enough.polish.ui.backgrounds.SmoothColorBackground=bg
+de.enough.polish.ui.backgrounds.TextBackground=bh
+de.enough.polish.ui.backgrounds.ThinSimpleBackground=bi
+de.enough.polish.ui.backgrounds.TigerStripesBackground=bj
+de.enough.polish.ui.backgrounds.TiledImageBackground=bk
+de.enough.polish.ui.backgrounds.TranslucentRoundRectBackground=bl
+de.enough.polish.ui.backgrounds.TranslucentSimpleBackground=bm
+de.enough.polish.ui.backgrounds.TriangleBackground=bn
+de.enough.polish.ui.backgrounds.VerticalSplitBackground=bo
+de.enough.polish.ui.backgrounds.VerticalSplitRoundRectBackground=bp
+de.enough.polish.ui.backgrounds.VerticalStripesBackground=bq
+de.enough.polish.ui.backgrounds.VideoBackground=br
+de.enough.polish.ui.backgrounds.Web20RoundRectBackground=bs
+de.enough.polish.ui.backgrounds.XmasSnowBackground=bt
+de.enough.polish.ui.borders.BottomBorder=bv
+de.enough.polish.ui.borders.BottomRightShadowBorder=bw
+de.enough.polish.ui.borders.CircleBorder=bx
+de.enough.polish.ui.borders.DropShadowBorder=by
+de.enough.polish.ui.borders.DropShadowRoundRectBorder=bz
+de.enough.polish.ui.borders.ImageBorder=ca
+de.enough.polish.ui.borders.LeftBorder=cb
+de.enough.polish.ui.borders.MultiImageBorder=cc
+de.enough.polish.ui.borders.PulsatingRoundRectBorder=cd
+de.enough.polish.ui.borders.PulsatingSimpleBorder=ce
+de.enough.polish.ui.borders.RightBorder=cf
+de.enough.polish.ui.borders.RoundRectBorder=cg
+de.enough.polish.ui.borders.SimpleBorder=ch
+de.enough.polish.ui.borders.SquareSonarBorder=ci
+de.enough.polish.ui.borders.TopBorder=cj
+de.enough.polish.ui.borders.TopBottomLeftRightBorder=ck
+de.enough.polish.ui.borders.TranslucentRoundRectBorder=cl
+de.enough.polish.ui.chartviews.PieChartView=cm
+de.enough.polish.ui.chartviews.VerticalBarChartView=cn
+de.enough.polish.ui.clockviews.BinaryTextClockView=co
+de.enough.polish.ui.clockviews.HexTextClockView=cp
+de.enough.polish.ui.containerviews.AlignAtContentContainerView=cs
+de.enough.polish.ui.containerviews.AnimationContainerView=ct
+de.enough.polish.ui.containerviews.CarouselContainerView=cu
+de.enough.polish.ui.containerviews.CenterNavigationContainerView=cv
+de.enough.polish.ui.containerviews.CoverFlowContainerView=cw
+de.enough.polish.ui.containerviews.DroppingView=cx
+de.enough.polish.ui.containerviews.ExclusiveSingleLineView=cy
+de.enough.polish.ui.containerviews.FishEyeContainerView=cz
+de.enough.polish.ui.containerviews.HorizontalChoiceView=da
+de.enough.polish.ui.containerviews.HorizontalContainerView=db
+de.enough.polish.ui.containerviews.HorizontalGrayOutContainerView=dc
+de.enough.polish.ui.containerviews.LayerContainerView=dd
+de.enough.polish.ui.containerviews.LeftHorizontalContainerView=de
+de.enough.polish.ui.containerviews.MIDP2LayoutView=dg
+de.enough.polish.ui.containerviews.Midp2ContainerView=df
+de.enough.polish.ui.containerviews.NumberedContainerView=dh
+de.enough.polish.ui.containerviews.RelativeLayoutView=di
+de.enough.polish.ui.containerviews.RemoveTextContainerView=dj
+de.enough.polish.ui.containerviews.ShuffleView=dk
+de.enough.polish.ui.containerviews.SlideContainerView=dl
+de.enough.polish.ui.containerviews.SpringContainerView=dm
+de.enough.polish.ui.containerviews.TabbedContainerView=dn
+de.enough.polish.ui.containerviews.TextContainerView=do
+de.enough.polish.ui.containerviews.VerticalFixedContainerView=dp
+de.enough.polish.ui.gaugeviews.ClockInstrumentGaugeView=dr
+de.enough.polish.ui.gaugeviews.CyclingIconsGaugeView=ds
+de.enough.polish.ui.gaugeviews.CyclingSpheresGaugeView=dt
+de.enough.polish.ui.gaugeviews.HorizontalIconsGaugeView=du
+de.enough.polish.ui.gaugeviews.HorizontalSpheresGaugeView=dv
+de.enough.polish.ui.gaugeviews.ImagesGaugeView=dw
+de.enough.polish.ui.gaugeviews.RecLineGaugeView=dx
+de.enough.polish.ui.gaugeviews.RotatingArcsGaugeView=dy
+de.enough.polish.ui.gaugeviews.RotatingCirclesGaugeView=dz
+de.enough.polish.ui.gaugeviews.ScanningGaugeView=ea
+de.enough.polish.ui.gaugeviews.TachometerGaugeView=eb
+de.enough.polish.ui.itemviews.ExplodingParticlesItemView=ed
+de.enough.polish.ui.itemviews.FadeInItemView=ee
+de.enough.polish.ui.itemviews.FadeOutItemView=ef
+de.enough.polish.ui.itemviews.SizeDecreaseItemView=eg
+de.enough.polish.ui.itemviews.SizeIncreaseItemView=eh
+de.enough.polish.ui.rgbfilters.AlphaRgbFilter=ek
+de.enough.polish.ui.rgbfilters.DropShadowRgbFilter=el
+de.enough.polish.ui.rgbfilters.GaussianBlurRgbFilter=em
+de.enough.polish.ui.rgbfilters.GrayscaleRgbFilter=en
+de.enough.polish.ui.rgbfilters.OpacityRgbFilter=eo
+de.enough.polish.ui.rgbfilters.RotateRgbFilter=ep
+de.enough.polish.ui.rgbfilters.ScaleRgbFilter=eq
+de.enough.polish.ui.texteffects.AlienGlowTextEffect=et
+de.enough.polish.ui.texteffects.BitmapFontTextEffect=eu
+de.enough.polish.ui.texteffects.CyclingTextEffect=ev
+de.enough.polish.ui.texteffects.DropShadowTextEffect=ew
+de.enough.polish.ui.texteffects.FadeTextEffect=ex
+de.enough.polish.ui.texteffects.FadingAlienGlowTextEffect=ey
+de.enough.polish.ui.texteffects.FlashTextEffect=ez
+de.enough.polish.ui.texteffects.HtmlTextEffect=fb
+de.enough.polish.ui.texteffects.HtmlTextEffect$HtmlTextContainerView=fa
+de.enough.polish.ui.texteffects.LighthouseTextEffect=fc
+de.enough.polish.ui.texteffects.MessageTextEffect=fd
+de.enough.polish.ui.texteffects.OutlineTextEffect=fe
+de.enough.polish.ui.texteffects.RotateTextEffect=ff
+de.enough.polish.ui.texteffects.RotatingTextEffect=fg
+de.enough.polish.ui.texteffects.SegmentTextEffect=fh
+de.enough.polish.ui.texteffects.ShadowTextEffect=fi
+de.enough.polish.ui.texteffects.SmileyTextEffect=fj
+de.enough.polish.ui.texteffects.TypeWriterTextEffect=fk
+de.enough.polish.ui.texteffects.VerticalGradientTextEffect=fl
+de.enough.polish.ui.texteffects.VerticalMirrorTextEffect=fm
+de.enough.polish.ui.texteffects.VerticalScrollTextEffect=fn
+de.enough.polish.ui.texteffects.VerticalSplitTextEffect=fo
+de.enough.polish.util.ArrayList=fp
+de.enough.polish.util.BooleanList=fq
+de.enough.polish.util.BooleanStack=fr
+de.enough.polish.util.IdentityArrayList=fs
+de.enough.polish.util.IntList=ft
+de.enough.polish.util.IntStack=fu
+de.enough.polish.util.KeyValueList=fv
+de.enough.polish.util.LongList=fw
+de.enough.polish.util.Properties=fx
+de.enough.polish.util.TableData=fy
+de.enough.polish.util.TimePeriod=fz
+de.enough.polish.util.TimePoint=ga
+de.enough.polish.util.WrappedText=gb
+de.enough.polish.video.CaptureSource=gc
+de.enough.polish.video.VideoSource=gd
=== added file 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/build.xml'
--- local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/build.xml 1970-01-01 00:00:00 +0000
+++ local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/build.xml 2012-10-17 10:53:47 +0000
@@ -0,0 +1,218 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project
+ name="Cancer MIS"
+ default="j2mepolish">
+
+ <!-- import user specific properties -->
+ <property file="${user.name}.properties" />
+
+ <!-- The wtk.home property should point to the directory -->
+ <!-- containing the Wireless Toolkit. -->
+<!-- <property name="wtk.home" location="C:\Program Files (x86)\NetBeans 7.1\mobility\Java_ME_platform_SDK_3.0\toolkit-lib" /> -->
+ <property name="wtk.home" location="C:\WTK2.5.2_01" />
+
+ <!-- The polish.home property needs to point to the directory -->
+ <!-- containing the J2ME Polish installation. -->
+ <property name="polish.home" location="c:\Users\Thai Chuong\J2ME-Polish2.3\" />
+
+ <!-- import global properties -->
+ <property file="${polish.home}/global.properties" />
+
+ <!-- the device for the test mode - you can define it on the command-line using the -D switch, e.g. ant -Ddevice=Generic/midp2 emulator -->
+ <!--<property name="device" value="Generic/AnyPhone"/>-->
+ <!--<property name="devices" value="${device},Generic/AnyMsaPhone,Nokia/Series40E3,Nokia/Series60E3,Sony-Ericsson/JavaPlatform7,Sony-Ericsson/JavaPlatform8"/>-->
+ <!-- <property name="device" value="Generic/midp2"/> -->
+ <property name="device" value="Nokia/2630"/>
+
+ <!-- Definition of the J2ME Polish task: -->
+ <taskdef name="j2mepolish"
+ classname="de.enough.polish.ant.PolishTask"
+ classpath="${polish.home}/lib/enough-j2mepolish-build.jar"
+ />
+
+
+ <!-- build targets, each target can be called via "ant [name]",
+ e.g. "ant clean", "ant test j2mepolish" or just "ant" for calling the default-target -->
+
+ <target name="setdeploy"
+ description="Call this target first to set the OTA download-URL, e.g. ant setdeploy j2mepolish"
+ >
+ <property name="deploy-url" value="http://www.company.com/download/" />
+ </target>
+
+ <target name="enableDebug"
+ description="Call this target first to skip the obfuscation step, call the emulator and start the debugger, e.g. ant enableDebug j2mepolish"
+ >
+ <property name="debug" value="true" />
+ </target>
+
+
+ <target name="test"
+ description="Call this target first to skip the obfuscation step and call the emulator, e.g. ant test j2mepolish"
+ >
+ <property name="test" value="true" />
+ <property name="dir.work" value="build/test" />
+ </target>
+
+ <target name="init">
+ <property name="test" value="true" />
+ <property name="dir.work" value="build/real" />
+ <property name="deploy-url" value="" />
+ <property name="resource.dir" value="resource" />
+ </target>
+
+ <!-- In this target the J2ME Polish task is used. -->
+ <!-- It has 3 sections: -->
+ <!-- 1. The info-section defines some general information -->
+ <!-- 2. The deviceRequirements-section chooses the devices -->
+ <!-- for which the application is optimized. -->
+ <!-- 3. The build-section controls the actual build -->
+ <!-- process. -->
+ <target name="j2mepolish"
+ depends="init"
+ description="This is the controller for the J2ME build process."
+ >
+ <j2mepolish>
+ <!-- general settings, these settings basically form the JAD-attributes. -->
+ <!-- Have a look at the <jad>-section for setting specialised attributes. You can also define localized attributes in the resources/messages.txt files -->
+ <info
+ license="GPL"
+ name="Cancer MIS"
+ version="1.0.0"
+ description="J2ME Polish Hello World Application"
+ vendorName="J2ME Developer"
+ infoUrl=" http://sfaruq.blogspot.com/"
+ jarName="Cancer MIS.jar"
+ jarUrl="${deploy-url}${polish.jarName}"
+ copyright=""
+ icon="favicon.png"
+ />
+ <!-- selection of supported devices -->
+ <!-- In the test mode the application is build only for the -->
+ <!-- Generic/midp1 phone, but when the test-property is set to false, -->
+ <!-- the second deviceRequirements will be used instead. -->
+ <deviceRequirements if="test">
+ <requirement name="Identifier" value="${device}" />
+ </deviceRequirements>
+ <deviceRequirements unless="test">
+ <!--<requirement name="Identifier" value="${devices}" />--> <!-- on could use other devices for real builds, e.g. : -->
+ <or>
+ <and>
+
+ <requirement name="Identifier" value="Nokia/2630"/>
+ <!--
+ <requirement name="Identifier" value="Sony-Ericsson/J300"/>
+ <requirement name="Identifier" value="Nokia/E65"/>
+ <requirement name="Identifier" value="i-mate/K-Jam"/>
+ <requirement name="Identifier" value="Generic/midp2"/>
+ -->
+ </and>
+ </or>
+ </deviceRequirements>
+
+ <!-- build settings -->
+ <build
+ symbols=""
+ fullscreen="menu"
+ usePolishGui="true"
+ workDir="${dir.work}"
+ srcDir="src"
+ >
+
+ <!-- midlets definition -->
+ <midlet class="de.enough.polish.app.App" name="MainMidlet" />
+
+ <!-- project-wide variables - used for preprocessing. -->
+ <!-- You can set localized variables in the resources/messages.txt files as well. -->
+ <variables includeAntProperties="true" >
+ <variable name="polish.TextField.useDirectInput" value="true" />
+ <variable name="polish.TextField.usePredictiveInput" value="false" />
+ <variable name="polish.TextField.includeInputInfo" value="true" />
+ <variable name="polish.TextField.supportSymbolsEntry" value="true" />
+ <variable name="polish.MenuBar.useExtendedMenuBar" value="true" />
+ <variable name="polish.useScrollBar" value="true" />
+ </variables>
+
+
+ <!-- Here you can set the dir attribute to "resources2" for an alternative design. -->
+ <resources
+ dir="resources/base"
+ defaultexcludes="yes"
+ excludes="readme.txt"
+ >
+ <root dir="resources/base/i18n" />
+ <root dir="resources/base/images" />
+ <root dir="resources/base/sounds" />
+ <root dir="resources/base/style" />
+ <!-- add the localization element for created localized
+ versions of your application:
+ -->
+ <localization>
+ <locale name="en_US" />
+ <locale name="de_DE" encoding="utf-8" unless="test" />
+ </localization>
+ </resources>
+
+ <!-- obfuscator settings: do not obfuscate when the test-property is true -->
+ <obfuscator name="ProGuard" unless="polish.blackberry">
+ <!-- You can set additional parameters here, e.g.:
+ <parameter name="optimize" value="false" />
+ -->
+ <parameter name="optimize" value="true" />
+ <parameter name="optimizationpasses" value="3"/>
+ </obfuscator>
+ </build>
+
+ <!-- execution of emulator(s) -->
+ <emulator
+ wait="true"
+ securityDomain="trusted"
+ enableProfiler="true"
+ enableMemoryMonitor="true"
+ enableNetworkMonitor="true"
+ if="debug"
+ >
+ </emulator>
+
+ <emulator
+ wait="true"
+ trace="none"
+ securityDomain="trusted"
+ enableProfiler="false"
+ enableMemoryMonitor="true"
+ enableNetworkMonitor="true"
+ if="test and not debug"
+ >
+ </emulator>
+
+ </j2mepolish>
+ </target>
+
+ <target
+ name="emulator"
+ depends="test,j2mepolish"
+ description="invokes the emulator"
+ >
+ </target>
+
+ <target
+ name="clean"
+ description="allows a clean build. You should call [ant clean] whenever you made changes to devices.xml, vendors.xml or groups.xml">
+ <delete dir="build" />
+
+ <delete dir="dist" includes="**/*" />
+ </target>
+
+ <target
+ name="cleanbuild"
+ description="allows a clean build. You should call [ant cleanbuild] whenever you made changes to devices.xml, vendors.xml or groups.xml"
+ depends="clean, j2mepolish"
+ />
+
+
+ <target name="debug" description="debugs the project" depends="enableDebug, test, j2mepolish"
+ />
+
+
+</project>
+
=== added directory 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/deployed'
=== added directory 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/dist'
=== added directory 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/res'
=== added directory 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources'
=== added directory 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base'
=== added directory 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/i18n'
=== added file 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/i18n/messages.txt'
--- local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/i18n/messages.txt 1970-01-01 00:00:00 +0000
+++ local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/i18n/messages.txt 2012-10-17 10:53:47 +0000
@@ -0,0 +1,113 @@
+########################################################################################################
+# #
+# This file contains translations, use messages_de.txt, messages_en.txt etc to add further languages. #
+# You can also use this to customize strings like the MIDlet-Name or MIDlet-Description for #
+# different apps. #
+# Lines starting with a '#' are comments and will not be processed. #
+# #
+########################################################################################################
+
+# common commands:
+cmd.exit=Exit
+cmd.back=Back
+cmd.next=Next
+cmd.save=Save
+cmd.ok=OK
+cmd.send=Send
+cmd.select=Select
+
+##############################
+# main menu list screen:
+##############################
+main.title= Cancer Campaign
+lastChoiceLabel = Select
+lastChoiceYes = YES
+lastChoiceNo = NO
+Settings = Settings
+RegisterDate = Register Date
+registerDateTitle = Choose date to register patient
+Yes= \u0a39\u0a3e\u0a02
+No = \u0a28\u0a3e
+
+#################################
+# CRTIS Facility Form
+#################################
+CRTISFacilityForm = CRTIS Facility Form
+1.CRTISFacilityForm = \u0a35\u0a3f\u0a05\u0a15\u0a24\u0a40\u0a17\u0a24 \u0a2a\u0a30\u0a2b\u0a3e\u0a30\u0a2e\u0a3e
+2.CRTISFacilityForm =
+3.CRTISFacilityForm = \u0a15\u0a3f\u0a70\u0a28\u0a47 \u0a2a\u0a3f\u0a70\u0a21
+4.CRTISFacilityForm = \u0a15\u0a3f\u0a70\u0a28\u0a47 \u0a38\u0a70\u0a2c- \u0a38\u0a47\u0a02\u0a1f\u0a30
+5.CRTISFacilityForm = \u0a15\u0a3f\u0a70\u0a28\u0a47 \u0a2a\u0a3f.\u0a10\u0a1a.\u0a38\u0a40
+6.CRTISFacilityForm = \u0a15\u0a3f\u0a70\u0a28\u0a47 \u0a2c\u0a4d\u0a32\u0a3e\u0a15
+7.CRTISFacilityForm = \u0a09\u0a2e\u0a30
+8.CRTISFacilityForm = <10
+9.CRTISFacilityForm = 10--19
+10.CRTISFacilityForm = 20--29
+11.CRTISFacilityForm = 30--44
+12.CRTISFacilityForm = 45--60
+13.CRTISFacilityForm = >60
+14.CRTISFacilityForm = \u0a32\u0a3f\u0a70\u0a17
+15.CRTISFacilityForm = \u0a15\u0a3f\u0a70\u0a28\u0a47 \u0a2a\u0a41\u0a30\u0a36
+16.CRTISFacilityForm = \u0a15\u0a3f\u0a70\u0a28\u0a40 \u0a07\u0a38\u0a24\u0a30\u0a40\u0a06\u0a02
+17.CRTISFacilityForm = \u0a36\u0a3e\u0a26\u0a40-\u0a36\u0a41\u0a26\u0a3e
+18.CRTISFacilityForm = \u0a39\u0a3e\u0a02
+19.CRTISFacilityForm = \u0a28\u0a3e
+20.CRTISFacilityForm = \u0a15\u0a48\u0a02\u0a38\u0a30
+21.CRTISFacilityForm = \u0a39\u0a3e\u0a02
+22.CRTISFacilityForm = \u0a28\u0a3e
+23.CRTISFacilityForm = \u0a15\u0a3f\u0a38 \u0a05\u0a70\u0a17 \u0a26\u0a3e \u0a15\u0a48\u0a02\u0a38\u0a30
+24.CRTISFacilityForm = \u0a1b\u0a3e\u0a24\u0a40
+25.CRTISFacilityForm = \u0a2c\u0a71\u0a1a\u0a47\u0a26\u0a3e\u0a28\u0a40
+26.CRTISFacilityForm = \u0a06\u0a02\u0a24\u0a5c\u0a40
+27.CRTISFacilityForm = \u0a2b\u0a47\u0a2b\u0a5c\u0a3e
+28.CRTISFacilityForm = \u0a15\u0a4b\u0a08 \u0a39\u0a4b\u0a30
+29.CRTISFacilityForm = \u0a15\u0a40 \u0a1c\u0a40\u0a35\u0a24 \u0a39\u0a48
+30.CRTISFacilityForm = \u0a39\u0a3e\u0a02
+31.CRTISFacilityForm = \u0a28\u0a3e
+32.CRTISFacilityForm = \u0a05\u0a32\u0a3e\u0a2e\u0a24 \u0a15\u0a4b\u0a21
+33.CRTISFacilityForm = \u0a1b\u0a3e\u0a24\u0a40/\u0a26\u0a42\u0a27\u0a40 \u0a35\u0a3f\u0a1a \u0a17\u0a20\u0a4b\u0a32\u0a40/ \u0a17\u0a70\u0a21/ \u0a24\u0a3e\u0a1c\u0a3e \u0a24\u0a3e\u0a1c\u0a3e \u0a28\u0a3f\u0a2a\u0a32 \u0a26\u0a3e \u0a05\u0a70\u0a26\u0a30 \u0a27\u0a38\u0a23\u0a3e/ \u0a28\u0a3f\u0a2a\u0a32 \u0a35\u0a3f\u0a1a \u0a16\u0a42\u0a28 \u0a2e\u0a3f\u0a32\u0a3f\u0a06 \u0a28\u0a35\u0a3e\u0a26 \u0a35\u0a17\u0a23\u0a3e
+34.CRTISFacilityForm = \u0a38\u0a70\u0a2d\u0a4b\u0a17 \u0a24\u0a4b\u0a02 \u0a2c\u0a3e\u0a05\u0a26 \u0a16\u0a42\u0a28 \u0a35\u0a17\u0a23\u0a3e /\u0a17\u0a41\u0a2a\u0a24 \u0a05\u0a70\u0a17 \u0a35\u0a3f\u0a1a\u0a4b\u0a02 \u0a2a\u0a40\u0a15 \u0a35\u0a17\u0a23\u0a3e/\u0a2e\u0a3e\u0a39\u0a35\u0a3e\u0a30\u0a40 \u0a26\u0a4c\u0a30\u0a3e\u0a28 \u0a2c\u0a47\u0a39\u0a26 \u0a16\u0a42\u0a28 \u0a2a\u0a48\u0a23\u0a3e/ \u0a2e\u0a3e\u0a39\u0a35\u0a3e\u0a30\u0a40 \u0a26\u0a47 \u0a35\u0a3f\u0a1a \u0a35\u0a3f\u0a1a\u0a3e\u0a32\u0a47 \u0a16\u0a42\u0a28 \u0a2a\u0a48\u0a23\u0a3e
+35.CRTISFacilityForm = \u0a1f\u0a71\u0a1f\u0a40 \u0a35\u0a3f\u0a1a \u0a2c\u0a3f\u0a28\u0a3e \u0a26\u0a30\u0a26 \u0a16\u0a42\u0a28 \u0a06\u0a0a\u0a23\u0a3e/\u0a2c\u0a3f\u0a28\u0a3e \u0a15\u0a3e\u0a30\u0a23 \u0a07\u0a15 \u0a26\u0a2e \u0a35\u0a1c\u0a28 \u0a18\u0a1f \u0a1c\u0a3e\u0a23\u0a3e/\u0a16\u0a42\u0a28 \u0a26\u0a40 \u0a15\u0a2e\u0a40 (\u0a10\u0a28\u0a40\u0a2e\u0a40\u0a06)
+36.CRTISFacilityForm = \u0a2e\u0a42\u0a70\u0a39/\u0a2e\u0a38\u0a42\u0a5c\u0a47/\u0a24\u0a3e\u0a32\u0a42\u0a0f \u0a1c\u0a3e\u0a02 \u0a1c\u0a40\u0a2d \u0a24\u0a47 \u0a23\u0a3e \u0a20\u0a40\u0a15 \u0a39\u0a4b\u0a23 \u0a35\u0a3e\u0a32\u0a3e \u0a1c\u0a16\u0a2e / \u0a2a\u0a41\u0a30\u0a3e\u0a23\u0a47 \u0a1c\u0a16\u0a2e \u0a35\u0a3f\u0a1a\u0a4b\u0a02 \u0a16\u0a42\u0a28 \u0a35\u0a17\u0a23\u0a3e / \u0a1c\u0a40\u0a2d \u0a24\u0a47 \u0a17\u0a1f\u0a4b\u0a32\u0a40/\u0a17\u0a70\u0a21
+37.CRTISFacilityForm = \u0a05\u0a35\u0a3e\u0a1c\u0a3c \u0a26\u0a3e \u0a32\u0a70\u0a2c\u0a47 \u0a38\u0a2e\u0a47 \u0a24\u0a15 \u0a2c\u0a48\u0a20/\u0a2c\u0a26\u0a32 \u0a1c\u0a3e\u0a23\u0a3e /\u0a32\u0a17\u0a3e\u0a24\u0a3e\u0a30 \u0a32\u0a70\u0a2c\u0a40 \u0a16\u0a3e\u0a02\u0a38\u0a40/\u0a2d\u0a4b\u0a1c\u0a28 \u0a28\u0a3f\u0a17\u0a32\u0a28 \u0a35\u0a3f\u0a1a \u0a30\u0a41\u0a15\u0a3e\u0a35\u0a1f/\u0a2c\u0a32\u0a17\u0a2e \u0a35\u0a3f\u0a1a \u0a16\u0a42\u0a28
+38.CRTISFacilityForm = \u0a2e\u0a4c\u0a15\u0a47 \u0a1c\u0a3e\u0a02\u00a0 \u0a24\u0a3f\u0a32 \u0a26\u0a47 \u0a06\u0a15\u0a3e\u0a30/ \u0a30\u0a70\u0a17 \u0a35\u0a3f\u0a1a \u0a07\u0a15 \u0a32\u0a16\u0a3c\u0a24 \u0a1c\u0a3e\u0a02 \u0a09\u0a38 \u0a35\u0a3f\u0a1a\u0a4b\u0a02 \u0a06\u0a2a\u0a23\u0a47 \u0a06\u0a2a \u0a16\u0a42\u0a28 \u0a35\u0a17\u0a23\u0a3e \u0a36\u0a41\u0a30\u0a42 \u0a39\u0a4b \u0a1c\u0a3e\u0a23\u0a3e
+39.CRTISFacilityForm = \u0a2c\u0a3f\u0a28\u0a3e \u0a26\u0a30\u0a26 \u0a2a\u0a3f\u0a36\u0a3e\u0a2c \u0a35\u0a3f\u0a1a\u0a4b\u0a02 \u0a16\u0a42\u0a28 \u0a06\u0a0a\u0a23\u0a3e/ \u0a2a\u0a3f\u0a36\u0a3e\u0a2c \u0a35\u0a3f\u0a1a \u0a30\u0a41\u0a15\u0a3e\u0a35\u0a1f /\u00a0 \u0a38\u0a3e\u0a32 \u0a26\u0a47 \u0a35\u0a21\u0a47 \u0a2a\u0a41\u0a30\u0a36 \u0a28\u0a42 \u0a30\u0a3e\u0a24 \u0a28\u0a42 \u0a35\u0a3e\u0a30 \u0a35\u0a3e\u0a30 \u0a2a\u0a3f\u0a36\u0a3e\u0a2c \u0a06\u0a0a\u0a23\u0a3e
+40.CRTISFacilityForm = \u0a2a\u0a24\u0a3e\u0a32\u0a41 \u0a05\u0a70\u0a21\u0a15\u0a4b\u0a36 \u0a35\u0a3f\u0a1a \u0a38\u0a16\u0a3c\u0a24 \u0a17\u0a20\u0a4b\u0a32\u0a40
+41.CRTISFacilityForm = \u0a36\u0a30\u0a40\u0a30 \u0a35\u0a3f\u0a1a \u0a15\u0a40\u0a24\u0a47 \u0a35\u0a40 \u0a17\u0a70\u0a21 \u0a1c\u0a3e\u0a02 \u0a17\u0a4b\u0a32\u0a3e \u0a1c\u0a3e\u0a02 \u0a17\u0a20\u0a4b\u0a32\u0a40/\u0a23\u0a3e \u0a20\u0a40\u0a15 \u0a39\u0a4b\u0a23 \u0a35\u0a3e\u0a32\u0a3e \u0a1c\u0a16\u0a2e
+42.CRTISFacilityForm = \u0a28\u0a3e \u0a20\u0a40\u0a15 \u0a39\u0a4b\u0a23 \u0a35\u0a3e\u0a32\u0a3e \u0a2a\u0a40\u0a32\u0a40\u0a06
+43.CRTISFacilityForm = \u0a15\u0a3f\u0a38\u0a47 \u0a15\u0a41\u0a26\u0a30\u0a24\u0a40 \u0a1b\u0a47\u0a26 \u0a35\u0a3f\u0a1a\u0a4b\u0a02 \u0a2c\u0a3f\u0a28\u0a3e \u0a15\u0a3e\u0a30\u0a23 \u0a16\u0a42\u0a28 \u0a35\u0a17\u0a23\u0a3e
+44.CRTISFacilityForm = \u0a2c\u0a3f\u0a28\u0a3e \u0a15\u0a3e\u0a30\u0a23 \u0a24\u0a3f\u0a70\u0a28 \u0a2e\u0a39\u0a40\u0a28\u0a3f\u0a06\u0a02 \u0a24\u0a4b\u0a02 \u0a35\u0a71\u0a27 \u0a2c\u0a41\u0a16\u0a3e\u0a30
+
+
+############################
+#CRTIS Individual Form
+############################
+CRTISIndividualForm = Patient Form
+1.CRTISIndividualForm = \u0a35\u0a3f\u0a05\u0a15\u0a24\u0a40\u0a17\u0a24 \u0a2a\u0a30\u0a2b\u0a3e\u0a30\u0a2e\u0a3e
+2.CRTISIndividualForm =
+3.CRTISIndividualForm = 1. \u0a2b\u0a3e\u0a30\u0a2e \u0a28\u0a70:
+4.CRTISIndividualForm = 2. \u0a2a\u0a3f\u0a70\u0a21/\u0a36\u0a39\u0a3f\u0a30 \u0a15\u0a4b\u0a21
+5.CRTISIndividualForm = 3. \u0a2e\u0a15\u0a3e\u0a28 \u0a28\u0a70:
+6.CRTISIndividualForm = 4. \u0a35\u0a3e\u0a30\u0a21 \u0a15\u0a4b\u0a21
+7.CRTISIndividualForm = 5. \u0a16\u0a47\u0a24\u0a30\u0a40 \u0a15\u0a3e\u0a2e\u0a3e \u0a15\u0a4b\u0a21
+8.CRTISIndividualForm = 6. \u0a28\u0a3e\u0a2e
+9.CRTISIndividualForm = 7. \u0a2a\u0a3f\u0a24\u0a3e/\u0a2a\u0a24\u0a40 \u0a26\u0a3e \u0a28\u0a3e\u0a2e
+10.CRTISIndividualForm = 8. \u0a38\u0a70\u0a2a\u0a30\u0a15 \u0a28\u0a70:
+11.CRTISIndividualForm = 9. \u0a32\u0a3f\u0a70\u0a17
+12.CRTISIndividualForm = 10. \u0a09\u0a2e\u0a30
+13.CRTISIndividualForm = 11. \u0a15\u0a40 \u0a1c\u0a3e\u0a02\u0a1a \u0a39\u0a4b \u0a15\u0a47 \u0a15\u0a48\u0a02\u0a38\u0a30 \u0a28\u0a3f\u0a15\u0a32\u0a3f\u0a06 \u0a39\u0a48?
+14.CRTISIndividualForm = 12. \u0a06\u0a2e \u0a24\u0a15\u0a32\u0a40\u0a2b/\u0a32\u0a71\u0a1b\u0a23 (\u0a15\u0a4b\u0a21 \u0a2d\u0a30\u0a4b)
+15.CRTISIndividualForm = 13. \u0a15\u0a48\u0a02\u0a38\u0a30 \u0a26\u0a40 \u0a1c\u0a3e\u0a02\u0a1a \u0a15\u0a3f\u0a71\u0a25\u0a47 \u0a39\u0a4b\u0a08?
+16.CRTISIndividualForm = 14. \u0a15\u0a3f\u0a38 \u0a05\u0a70\u0a17 \u0a26\u0a3e \u0a15\u0a48\u0a02\u0a38\u0a30? (\u0a15\u0a4b\u0a21 \u0a2d\u0a30\u0a4b)
+17.CRTISIndividualForm = 15. \u0a1c\u0a3e\u0a02\u0a1a \u0a39\u0a4b \u0a15\u0a47 \u0a15\u0a48\u0a02\u0a38\u0a30 \u0a26\u0a3e \u0a15\u0a26 \u0a2a\u0a24\u0a3e \u0a1a\u0a71\u0a32\u0a3f\u0a06
+18.CRTISIndividualForm = 16. \u0a07\u0a32\u0a3e\u0a1c \u0a15\u0a3f\u0a71\u0a25\u0a4b\u0a02 \u0a15\u0a30\u0a35\u0a3e\u0a07\u0a06 ?
+19.CRTISIndividualForm = 17. \u0a15\u0a40 \u0a15\u0a48\u0a02\u0a38\u0a30 \u0a26\u0a3e \u0a2e\u0a30\u0a40\u0a1c ?
+20.CRTISIndividualForm = 18. \u0a06\u0a30\u0a25\u0a3f\u0a15 \u0a38\u0a39\u0a3e\u0a07\u0a24\u0a3e
+21.CRTISIndividualForm = 19. \u0a1c\u0a47 \u0a39\u0a3e\u0a02 \u0a24\u0a3e\u0a02 \u0a15\u0a3f\u0a71\u0a25\u0a4b\u0a02 ?
+22.CRTISIndividualForm = 20. \u0a15\u0a40 \u0a24\u0a41\u0a39\u0a3e\u0a21\u0a47 \u0a35\u0a3f\u0a1a \u0a15\u0a4b\u0a08 \u0a15\u0a3e\u0a30\u0a15 \u0a39\u0a48? (\u0a15\u0a4b\u0a21 \u0a2d\u0a30\u0a4b)
+23.CRTISIndividualForm = 21. \u0a36\u0a3e\u0a26\u0a40
+24.CRTISIndividualForm = 22. \u0a2a\u0a5c\u0a4d\u0a39\u0a3e\u0a08 \u0a26\u0a3e \u0a2a\u0a71\u0a27\u0a30
+25.CRTISIndividualForm = 23. \u0a15\u0a70\u0a2e-\u0a15\u0a3e\u0a30
+26.CRTISIndividualForm = 24. \u0a2a\u0a30\u0a3f\u0a35\u0a3e\u0a30\u0a15 \u0a06\u0a2e\u0a26\u0a28 \u0a2e\u0a3e\u0a38\u0a3f\u0a15
+27.CRTISIndividualForm = 25. \u0a2a\u0a40\u0a23 \u0a26\u0a47 \u0a2a\u0a3e\u0a23\u0a40 \u0a26\u0a3e \u0a38\u0a4d\u0a30\u0a4b\u0a24
+28.CRTISIndividualForm = 26. \u0a16\u0a3e\u0a26/\u0a30\u0a47\u0a39 \u0a1c\u0a4b \u0a39\u0a71\u0a25\u0a40\u0a02 \u0a35\u0a30\u0a24\u0a3f\u0a06
\ No newline at end of file
=== added directory 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images'
=== added directory 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/ScreenSize.176+x220+'
=== added file 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/ScreenSize.176+x220+/readme.txt'
--- local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/ScreenSize.176+x220+/readme.txt 1970-01-01 00:00:00 +0000
+++ local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/ScreenSize.176+x220+/readme.txt 2012-10-17 10:53:47 +0000
@@ -0,0 +1,1 @@
+Place images for devices with screen resolutions larger than or equals 176x208 here.
=== added directory 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/ScreenSize.176x208'
=== added file 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/ScreenSize.176x208/readme.txt'
--- local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/ScreenSize.176x208/readme.txt 1970-01-01 00:00:00 +0000
+++ local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/ScreenSize.176x208/readme.txt 2012-10-17 10:53:47 +0000
@@ -0,0 +1,1 @@
+Place images for devices with a screen resolutions of 176x208 here.
=== added directory 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/ScreenSize.176x220'
=== added file 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/ScreenSize.176x220/readme.txt'
--- local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/ScreenSize.176x220/readme.txt 1970-01-01 00:00:00 +0000
+++ local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/ScreenSize.176x220/readme.txt 2012-10-17 10:53:47 +0000
@@ -0,0 +1,1 @@
+Place images for devices with a screen resolutions of 176x220 here.
=== added directory 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/ScreenSize.240+x320+'
=== added file 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/ScreenSize.240+x320+/readme.txt'
--- local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/ScreenSize.240+x320+/readme.txt 1970-01-01 00:00:00 +0000
+++ local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/ScreenSize.240+x320+/readme.txt 2012-10-17 10:53:47 +0000
@@ -0,0 +1,1 @@
+Place images for devices with screen resolutions larger than or equals 240x320 here.
=== added directory 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/ScreenSize.240x320'
=== added file 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/ScreenSize.240x320/readme.txt'
--- local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/ScreenSize.240x320/readme.txt 1970-01-01 00:00:00 +0000
+++ local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/ScreenSize.240x320/readme.txt 2012-10-17 10:53:47 +0000
@@ -0,0 +1,1 @@
+Place images for devices with a screen resolutions of 240x320 here.
=== added directory 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/ScreenSize.352x416'
=== added file 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/ScreenSize.352x416/readme.txt'
--- local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/ScreenSize.352x416/readme.txt 1970-01-01 00:00:00 +0000
+++ local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/ScreenSize.352x416/readme.txt 2012-10-17 10:53:47 +0000
@@ -0,0 +1,1 @@
+Place images for devices with a screen resolutions of 352x416 here.
=== added file 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/Splash.png'
Binary files local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/Splash.png 1970-01-01 00:00:00 +0000 and local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/Splash.png 2012-10-17 10:53:47 +0000 differ
=== added directory 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-black'
=== added file 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-black/busy01.png'
Binary files local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-black/busy01.png 1970-01-01 00:00:00 +0000 and local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-black/busy01.png 2012-10-17 10:53:47 +0000 differ
=== added file 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-black/busy02.png'
Binary files local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-black/busy02.png 1970-01-01 00:00:00 +0000 and local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-black/busy02.png 2012-10-17 10:53:47 +0000 differ
=== added file 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-black/busy03.png'
Binary files local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-black/busy03.png 1970-01-01 00:00:00 +0000 and local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-black/busy03.png 2012-10-17 10:53:47 +0000 differ
=== added file 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-black/busy04.png'
Binary files local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-black/busy04.png 1970-01-01 00:00:00 +0000 and local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-black/busy04.png 2012-10-17 10:53:47 +0000 differ
=== added file 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-black/busy05.png'
Binary files local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-black/busy05.png 1970-01-01 00:00:00 +0000 and local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-black/busy05.png 2012-10-17 10:53:47 +0000 differ
=== added file 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-black/busy06.png'
Binary files local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-black/busy06.png 1970-01-01 00:00:00 +0000 and local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-black/busy06.png 2012-10-17 10:53:47 +0000 differ
=== added file 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-black/busy07.png'
Binary files local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-black/busy07.png 1970-01-01 00:00:00 +0000 and local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-black/busy07.png 2012-10-17 10:53:47 +0000 differ
=== added file 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-black/busy08.png'
Binary files local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-black/busy08.png 1970-01-01 00:00:00 +0000 and local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-black/busy08.png 2012-10-17 10:53:47 +0000 differ
=== added file 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-black/busy09.png'
Binary files local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-black/busy09.png 1970-01-01 00:00:00 +0000 and local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-black/busy09.png 2012-10-17 10:53:47 +0000 differ
=== added file 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-black/busy10.png'
Binary files local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-black/busy10.png 1970-01-01 00:00:00 +0000 and local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-black/busy10.png 2012-10-17 10:53:47 +0000 differ
=== added file 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-black/busy11.png'
Binary files local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-black/busy11.png 1970-01-01 00:00:00 +0000 and local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-black/busy11.png 2012-10-17 10:53:47 +0000 differ
=== added file 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-black/busy12.png'
Binary files local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-black/busy12.png 1970-01-01 00:00:00 +0000 and local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-black/busy12.png 2012-10-17 10:53:47 +0000 differ
=== added directory 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white'
=== added file 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy01.png'
Binary files local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy01.png 1970-01-01 00:00:00 +0000 and local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy01.png 2012-10-17 10:53:47 +0000 differ
=== added file 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy02.png'
Binary files local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy02.png 1970-01-01 00:00:00 +0000 and local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy02.png 2012-10-17 10:53:47 +0000 differ
=== added file 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy03.png'
Binary files local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy03.png 1970-01-01 00:00:00 +0000 and local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy03.png 2012-10-17 10:53:47 +0000 differ
=== added file 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy04.png'
Binary files local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy04.png 1970-01-01 00:00:00 +0000 and local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy04.png 2012-10-17 10:53:47 +0000 differ
=== added file 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy05.png'
Binary files local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy05.png 1970-01-01 00:00:00 +0000 and local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy05.png 2012-10-17 10:53:47 +0000 differ
=== added file 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy06.png'
Binary files local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy06.png 1970-01-01 00:00:00 +0000 and local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy06.png 2012-10-17 10:53:47 +0000 differ
=== added file 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy07.png'
Binary files local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy07.png 1970-01-01 00:00:00 +0000 and local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy07.png 2012-10-17 10:53:47 +0000 differ
=== added file 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy08.png'
Binary files local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy08.png 1970-01-01 00:00:00 +0000 and local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy08.png 2012-10-17 10:53:47 +0000 differ
=== added file 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy09.png'
Binary files local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy09.png 1970-01-01 00:00:00 +0000 and local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy09.png 2012-10-17 10:53:47 +0000 differ
=== added file 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy10.png'
Binary files local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy10.png 1970-01-01 00:00:00 +0000 and local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy10.png 2012-10-17 10:53:47 +0000 differ
=== added file 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy11.png'
Binary files local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy11.png 1970-01-01 00:00:00 +0000 and local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy11.png 2012-10-17 10:53:47 +0000 differ
=== added file 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy12.png'
Binary files local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy12.png 1970-01-01 00:00:00 +0000 and local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy12.png 2012-10-17 10:53:47 +0000 differ
=== added file 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy_w01.png'
Binary files local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy_w01.png 1970-01-01 00:00:00 +0000 and local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy_w01.png 2012-10-17 10:53:47 +0000 differ
=== added file 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy_w02.png'
Binary files local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy_w02.png 1970-01-01 00:00:00 +0000 and local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy_w02.png 2012-10-17 10:53:47 +0000 differ
=== added file 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy_w03.png'
Binary files local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy_w03.png 1970-01-01 00:00:00 +0000 and local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy_w03.png 2012-10-17 10:53:47 +0000 differ
=== added file 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy_w04.png'
Binary files local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy_w04.png 1970-01-01 00:00:00 +0000 and local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy_w04.png 2012-10-17 10:53:47 +0000 differ
=== added file 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy_w05.png'
Binary files local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy_w05.png 1970-01-01 00:00:00 +0000 and local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy_w05.png 2012-10-17 10:53:47 +0000 differ
=== added file 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy_w06.png'
Binary files local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy_w06.png 1970-01-01 00:00:00 +0000 and local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy_w06.png 2012-10-17 10:53:47 +0000 differ
=== added file 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy_w07.png'
Binary files local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy_w07.png 1970-01-01 00:00:00 +0000 and local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy_w07.png 2012-10-17 10:53:47 +0000 differ
=== added file 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy_w08.png'
Binary files local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy_w08.png 1970-01-01 00:00:00 +0000 and local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy_w08.png 2012-10-17 10:53:47 +0000 differ
=== added file 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy_w09.png'
Binary files local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy_w09.png 1970-01-01 00:00:00 +0000 and local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy_w09.png 2012-10-17 10:53:47 +0000 differ
=== added file 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy_w10.png'
Binary files local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy_w10.png 1970-01-01 00:00:00 +0000 and local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy_w10.png 2012-10-17 10:53:47 +0000 differ
=== added file 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy_w11.png'
Binary files local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy_w11.png 1970-01-01 00:00:00 +0000 and local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy_w11.png 2012-10-17 10:53:47 +0000 differ
=== added file 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy_w12.png'
Binary files local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy_w12.png 1970-01-01 00:00:00 +0000 and local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy-white/busy_w12.png 2012-10-17 10:53:47 +0000 differ
=== added file 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy01.png'
Binary files local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy01.png 1970-01-01 00:00:00 +0000 and local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy01.png 2012-10-17 10:53:47 +0000 differ
=== added file 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy02.png'
Binary files local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy02.png 1970-01-01 00:00:00 +0000 and local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy02.png 2012-10-17 10:53:47 +0000 differ
=== added file 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy03.png'
Binary files local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy03.png 1970-01-01 00:00:00 +0000 and local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy03.png 2012-10-17 10:53:47 +0000 differ
=== added file 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy04.png'
Binary files local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy04.png 1970-01-01 00:00:00 +0000 and local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy04.png 2012-10-17 10:53:47 +0000 differ
=== added file 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy05.png'
Binary files local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy05.png 1970-01-01 00:00:00 +0000 and local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy05.png 2012-10-17 10:53:47 +0000 differ
=== added file 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy06.png'
Binary files local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy06.png 1970-01-01 00:00:00 +0000 and local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy06.png 2012-10-17 10:53:47 +0000 differ
=== added file 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy07.png'
Binary files local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy07.png 1970-01-01 00:00:00 +0000 and local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy07.png 2012-10-17 10:53:47 +0000 differ
=== added file 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy08.png'
Binary files local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy08.png 1970-01-01 00:00:00 +0000 and local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy08.png 2012-10-17 10:53:47 +0000 differ
=== added file 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy09.png'
Binary files local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy09.png 1970-01-01 00:00:00 +0000 and local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy09.png 2012-10-17 10:53:47 +0000 differ
=== added file 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy10.png'
Binary files local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy10.png 1970-01-01 00:00:00 +0000 and local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy10.png 2012-10-17 10:53:47 +0000 differ
=== added file 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy11.png'
Binary files local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy11.png 1970-01-01 00:00:00 +0000 and local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy11.png 2012-10-17 10:53:47 +0000 differ
=== added file 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy12.png'
Binary files local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy12.png 1970-01-01 00:00:00 +0000 and local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/busy12.png 2012-10-17 10:53:47 +0000 differ
=== added file 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/exclamation.png'
Binary files local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/exclamation.png 1970-01-01 00:00:00 +0000 and local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/exclamation.png 2012-10-17 10:53:47 +0000 differ
=== added file 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/favicon.png'
Binary files local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/favicon.png 1970-01-01 00:00:00 +0000 and local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/favicon.png 2012-10-17 10:53:47 +0000 differ
=== added file 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/icon.png'
Binary files local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/icon.png 1970-01-01 00:00:00 +0000 and local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/icon.png 2012-10-17 10:53:47 +0000 differ
=== added file 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/kendo 256px.png'
Binary files local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/kendo 256px.png 1970-01-01 00:00:00 +0000 and local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/kendo 256px.png 2012-10-17 10:53:47 +0000 differ
=== added file 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/lung_cancer_awareness.jpg'
Binary files local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/lung_cancer_awareness.jpg 1970-01-01 00:00:00 +0000 and local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/lung_cancer_awareness.jpg 2012-10-17 10:53:47 +0000 differ
=== added file 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/question.png'
Binary files local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/question.png 1970-01-01 00:00:00 +0000 and local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/question.png 2012-10-17 10:53:47 +0000 differ
=== added file 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/readme.txt'
--- local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/readme.txt 1970-01-01 00:00:00 +0000
+++ local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/readme.txt 2012-10-17 10:53:47 +0000
@@ -0,0 +1,1 @@
+Place images in this directory and subdirectories like "resource/base/images/ScreenSize.176x208" or "resource/base/images/ScreenSize.320+x240+".
=== added file 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/success.png'
Binary files local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/success.png 1970-01-01 00:00:00 +0000 and local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/images/success.png 2012-10-17 10:53:47 +0000 differ
=== added file 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/readme.txt'
--- local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/readme.txt 1970-01-01 00:00:00 +0000
+++ local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/readme.txt 2012-10-17 10:53:47 +0000
@@ -0,0 +1,1 @@
+Edit the basic design of your application in the polish.css file.
=== added directory 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/sounds'
=== added file 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/sounds/readme.txt'
--- local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/sounds/readme.txt 1970-01-01 00:00:00 +0000
+++ local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/sounds/readme.txt 2012-10-17 10:53:47 +0000
@@ -0,0 +1,1 @@
+Place sound resources in this directory.
=== added directory 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/style'
=== added file 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/style/polish.css'
--- local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/style/polish.css 1970-01-01 00:00:00 +0000
+++ local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/base/style/polish.css 2012-10-17 10:53:47 +0000
@@ -0,0 +1,285 @@
+/**
+ * This polish.css file contains all
+ * design information about this project.
+ * It can be customized for specific devices
+ * or device groups by putting it in the
+ * appropriate sub-folder or by using preprocessing.
+ *
+ * If you want to adjust a design for all
+ * Nokia devices, define it in "resources/Nokia/polish.css"
+ * and so on. Only new and different settings
+ * need to be specified in such polish.css files, this means that
+ * styles inherit all attributes of their "parent" style.
+ *
+ * For customizations of the base style, use
+ * resources/customization1/polish.css, for example.
+ */
+
+/**
+ * the colors which are defined in
+ * the colors section can later be referenced.
+ * This makes changes easy, since the color
+ * just needs to be changed in one position.
+ * Even default colors (like blue, green, lime, etc)
+ * can be changed here.
+ *
+ * Tip: use names that describe their meaning, not names that describe the color:
+ * Good name: backgroundColor
+ * Bad name: lightGreen
+ * This allows you to change the design later onwards without ending up with
+ * color definitions like "lightGreen: red;".
+ */
+colors {
+ fontColor: #ccc;
+ focusedFontColor: #000;
+ pressedFontColor: #666;
+ bgColor: #0040FF; /*header color*/
+ focusedBgColor: #ee4;
+ borderColor: fontColor;
+ focusedBorderColor: focusedFontColor;
+ screenBackgroundColor: #333;
+}
+
+/**
+ * When you use the same background several times,
+ * you can design it in the backgrounds section.
+ * In this case only one instance of the background
+ * is used, which reduces the memory footprint.
+ */
+backgrounds {
+ /* sample:
+ screenBackground {
+ color: bgColor;
+ image: url( bg.png );
+ anchor: top | left;
+ top: menu;
+ }
+ */
+}
+
+/**
+ * When you use the same border several times,
+ * you can design it in the borders section.
+ * In this case only one instance of the border
+ * is used, which reduces the memory footprint.
+ */
+borders {
+ /* sample:
+ focusedBorder {
+ type: round-rect;
+ color: focusedBorderColor;
+ }
+ */
+}
+
+
+
+/**
+ * The title style is a predefined style which is used
+ * for all screen-titles unless you specify a 'title-style' attribute within a screen style.
+ */
+title {
+ padding: 2px;
+ font-size: large;
+ font-style: bold;
+ font-color: fontColor;
+ background-color: bgColor;
+ border: none;
+ layout: horizontal-center | horizontal-expand;
+ layout: center | vertical-center | expand;
+ min-height: imageheight( busy01.png );
+}
+
+/********************* MAIN MENU ******************************************************************************************************/
+.screenMainMenu {
+ background-color: screenBackgroundColor;
+ layout: vertical-center;
+}
+
+.itemMainMenuEntry {
+ margin-left: 5%;
+ margin-right: 5%;
+ font-color: fontColor;
+ layout: expand | left;
+}
+
+.itemMainMenuEntry:hover {
+ background-color: focusedBgColor;
+ font-color: focusedFontColor;
+}
+
+.itemMainMenuEntry:pressed {
+ background-color: focusedBgColor;
+ font-color: pressedFontColor;
+}
+
+
+/********************* SCROLL BAR ******************************************************************************************************/
+/* You need to activate the scrollbar by setting the "polish.useScrollBar" variable to "true" in your build.xml script. */
+scrollbar {
+ scrollbar-slider-color: #333;
+ scrollbar-slider-width: 3;
+ /*
+ when the scrollbar should be faded out when not used:
+ scrollbar-fadeout: true;
+ opacity: 80%;
+ */
+}
+
+/********************* BUSY INDICATOR ******************************************************************************************************/
+.busyGauge {
+ padding-top: 9px;
+ padding-left: 1px;
+ view-type: gauge-images;
+ gauge-images-sources: busy01.png,busy02.png,busy03.png,busy04.png,busy05.png,busy06.png,busy07.png,busy08.png,busy09.png,busy10.png,busy11.png,busy12.png;
+ gauge-images-interval: 100;
+}
+
+
+/********************* MENU BAR *******************************************************************************************************/
+/* You need to activate the extended menubar that allows this finetuned design by setting the
+ "polish.MenuBar.useExtendedMenuBar" variable to "true" in your build.xml script. */
+
+menubar
+{
+ padding-top: 3px;
+ padding: 2px;
+ background-color: bgColor;
+}
+
+menu {
+ margin-left: 2px;
+ margin-right: 2px;
+ min-width: 60%;
+ padding: 2px;
+ background {
+ type: round-rect;
+ color: bgColor;
+ }
+}
+
+/** Style for the first layer of subcommands: **/
+menu1 extends menu {
+ background-color: argb(150, 255, 255, 0 );
+ background-type: simple;
+ layout: right;
+ margin-bottom: 4px;
+ margin-right: 4px;
+}
+
+
+/**
+ * The menuItem style is a predefined style
+ * for the actual commands in a fullscreen-menu.
+ * When the menuItem style is not defined,
+ * the menu style will be used instead.
+ */
+menuItem {
+ margin-top: 2px;
+ padding: 2px;
+ padding-left: 5px;
+ font {
+ color: focusedBgColor;
+ size: medium;
+ style: bold;
+ }
+ layout: left;
+ /**
+ * Yes, it's possible to use preprocessing within CSS files. Use any preprocessing
+ * variables like polish.midp2 or polish.api.nokia-ui. You can also access resource
+ * information using these property functions:
+ * - exists( resourcename ): checks whether a resource is defined for the current target device
+ * - imagewidth( imagename ): retrieves the width of the given image
+ * - imageheight( imagename ): retrieves the height of the given image
+ */
+ //#if ${ exists( arrowRight.png ) }
+ command-child-indicator: url(arrowRight.png);
+ //#else
+ command-child-indicator-color: blue;
+ command-child-indicator-width: 8;
+ command-child-indicator-height: 10;
+ //#endif
+}
+
+.menuItem:hover {
+ background-color: focusedBgColor;
+ font-color: focusedFontColor;
+ layout: left | horizontal-expand;
+}
+
+.menuItem:pressed {
+ background-color: focusedBgColor;
+ font-color: pressedFontColor;
+ layout: left | horizontal-expand;
+}
+
+leftcommand
+{
+ margin: 0px; /* default */
+ padding-top: 3px;
+ padding-bottom: 0px;
+ font-color: fontColor;
+ font-style: bold;
+ layout: left;
+}
+
+leftcommand:pressed {
+ font-color: focusedBgColor;
+}
+
+rightcommand extends leftcommand
+{
+ layout: right;
+}
+
+rightcommand:pressed {
+ font-color: focusedBgColor;
+}
+
+.formScreen {
+ padding-top: 10;
+ padding-bottom: 10;
+ padding-left: 10;
+ padding-right: 10;
+
+ background
+ {
+ type: horizontal-stripes;
+ first-top-color: black;
+ first-bottom-color: black;
+ second-top-color: rgb( 110, 97, 89 );
+ second-bottom-color: rgb( 110, 97, 89 );
+ }
+ font-color: white;
+ layout: horizontal-expand | top;
+}
+
+label {
+ font-color: #151515;
+ font-size: 12px;
+ layout: newline-after;
+}
+
+TextField {
+ border-width: 1px;
+ border-style: solid;
+ border-color: #A83838;
+ font-size: 12px;
+ color: #199C2D;
+ width: 100%;
+ background-color: #FFF;
+}
+
+DisabledTextField {
+ border-width: 1px;
+ border-style: solid;
+ border-color: #A83838;
+ font-size: 12px;
+ color: #808080;
+ width: 100%;
+ background-color: #808080;
+}
+
+scroll {
+ scroll-mode: normal;
+}
=== added directory 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/customization1'
=== added directory 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/customization1/images'
=== added file 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/customization1/images/readme.txt'
--- local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/customization1/images/readme.txt 1970-01-01 00:00:00 +0000
+++ local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/customization1/images/readme.txt 2012-10-17 10:53:47 +0000
@@ -0,0 +1,1 @@
+Place customized images in this directory and subdirectories like "resource/base/images/ScreenSize.176x208" or "resource/base/images/ScreenSize.320+x240+".
=== added file 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/customization1/polish.css'
--- local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/customization1/polish.css 1970-01-01 00:00:00 +0000
+++ local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/customization1/polish.css 2012-10-17 10:53:47 +0000
@@ -0,0 +1,30 @@
+/**
+ * This polish.css file is used for customizing the base style
+ * which is situated in resources/base/polish.css
+ * When overriding a style you only need to specify the "new"
+ * CSS attributes.
+ */
+
+/**
+ * Overwrite the colors defined in resources/base/polish.css
+ */
+colors {
+}
+
+/**
+ * Overwrite the backgrounds defined in resources/base/polish.css
+ */
+backgrounds {
+}
+
+/**
+ * Overwrite the borders defined in resources/base/polish.css
+ */
+borders {
+}
+
+/** Place styles here... */
+
+
+
+
=== added file 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/customization1/readme.txt'
--- local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/customization1/readme.txt 1970-01-01 00:00:00 +0000
+++ local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/customization1/readme.txt 2012-10-17 10:53:47 +0000
@@ -0,0 +1,1 @@
+Customize the design of your application in the polish.css file.
=== added directory 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/customization1/sounds'
=== added file 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/customization1/sounds/readme.txt'
--- local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/customization1/sounds/readme.txt 1970-01-01 00:00:00 +0000
+++ local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/customization1/sounds/readme.txt 2012-10-17 10:53:47 +0000
@@ -0,0 +1,1 @@
+Place customized sound resources in this directory.
=== added directory 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/customization1/style'
=== added directory 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/customization2'
=== added directory 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/customization2/images'
=== added file 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/customization2/images/readme.txt'
--- local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/customization2/images/readme.txt 1970-01-01 00:00:00 +0000
+++ local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/customization2/images/readme.txt 2012-10-17 10:53:47 +0000
@@ -0,0 +1,1 @@
+Place customized images in this directory and subdirectories like "resource/base/images/ScreenSize.176x208" or "resource/base/images/ScreenSize.320+x240+".
=== added file 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/customization2/polish.css'
--- local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/customization2/polish.css 1970-01-01 00:00:00 +0000
+++ local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/customization2/polish.css 2012-10-17 10:53:47 +0000
@@ -0,0 +1,30 @@
+/**
+ * This polish.css file is used for customizing the base style
+ * which is situated in resources/base/polish.css
+ * When overriding a style you only need to specify the "new"
+ * CSS attributes.
+ */
+
+/**
+ * Overwrite the colors defined in resources/base/polish.css
+ */
+colors {
+}
+
+/**
+ * Overwrite the backgrounds defined in resources/base/polish.css
+ */
+backgrounds {
+}
+
+/**
+ * Overwrite the borders defined in resources/base/polish.css
+ */
+borders {
+}
+
+/** Place styles here... */
+
+
+
+
=== added file 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/customization2/readme.txt'
--- local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/customization2/readme.txt 1970-01-01 00:00:00 +0000
+++ local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/customization2/readme.txt 2012-10-17 10:53:47 +0000
@@ -0,0 +1,1 @@
+Customize the design of your application in the polish.css file.
=== added directory 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/customization2/sounds'
=== added file 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/customization2/sounds/readme.txt'
--- local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/customization2/sounds/readme.txt 1970-01-01 00:00:00 +0000
+++ local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/resources/customization2/sounds/readme.txt 2012-10-17 10:53:47 +0000
@@ -0,0 +1,1 @@
+Place customized sound resources in this directory.
=== added directory 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/src'
=== added directory 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/src/de'
=== added directory 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/src/de/enough'
=== added directory 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/src/de/enough/polish'
=== added directory 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/src/de/enough/polish/app'
=== added file 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/src/de/enough/polish/app/App.java'
--- local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/src/de/enough/polish/app/App.java 1970-01-01 00:00:00 +0000
+++ local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/src/de/enough/polish/app/App.java 2012-10-17 10:53:47 +0000
@@ -0,0 +1,86 @@
+/*
+ * Created on Mar 13, 2008 at 12:58:57 PM.
+ *
+ * Copyright (c) 2005 Robert Virkus / Enough Software
+ *
+ * This file is part of J2ME Polish.
+ *
+ * J2ME Polish is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * J2ME Polish is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with J2ME Polish; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ *
+ * Commercial licenses are also available, please
+ * refer to the accompanying LICENSE.txt or visit
+ * http://www.j2mepolish.org for details.
+ */
+package de.enough.polish.app;
+
+import javax.microedition.midlet.MIDlet;
+import javax.microedition.midlet.MIDletStateChangeException;
+
+import de.enough.polish.app.control.Controller;
+
+/**
+ * A simple MIDlet that can be used as a starting point for your own apps. <br>
+ * Copyright Enough Software 2005 - 2012
+ *
+ * @author Richard Nkrumah, Robert Virkus
+ */
+public class App extends MIDlet {
+
+ private Controller controller;
+
+ /**
+ * Creates a new app
+ */
+ public App() {
+ // nothing to init
+ }
+
+ protected void startApp() {
+ if (this.controller == null) {
+ this.controller = new Controller(this);
+ this.controller.appStart();
+ } else {
+ this.controller.appContinue();
+ }
+ }
+
+ protected void pauseApp() {
+ this.controller.appPause();
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see javax.microedition.midlet.MIDlet#destroyApp(boolean)
+ */
+ protected void destroyApp(boolean unconditional)
+ throws MIDletStateChangeException {
+ this.controller = null;
+ }
+
+ /**
+ * Exits this application
+ */
+ public void exit() {
+ try {
+ destroyApp(true);
+ } catch (MIDletStateChangeException e) {
+ // #debug error
+ System.out.println("Unable to destroyApp" + e);
+ }
+ notifyDestroyed();
+ }
+
+}
=== added directory 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/src/de/enough/polish/app/control'
=== added file 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/src/de/enough/polish/app/control/Compressor.java'
--- local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/src/de/enough/polish/app/control/Compressor.java 1970-01-01 00:00:00 +0000
+++ local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/src/de/enough/polish/app/control/Compressor.java 2012-10-17 10:53:47 +0000
@@ -0,0 +1,281 @@
+/**
+ * Implementation of Range Coding Compression/Decompression
+ * Range encoding is a lossless data compression method defined by G N N Martin in his
+ * 1979 paper on "Range encoding: an algorithm for removing redundancy from a
+ * digitized message".
+ *
+ * This code was written to provide simple data compression for J2ME.
+ *
+ * Based on reference materials and code from http://www.bodden.de/studies/ac/
+ *
+ * The homepage for this software is http://winterwell.com/software/compressor.php
+ *
+ * (c) 2008 Joe Halliwell <joe.halliwell@xxxxxxxxx>
+ *
+ * This program is free software: you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as published by the
+ * Free Software Foundation, either version 3 of the License, or (at your
+ * option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
+ * for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+package de.enough.polish.app.control;
+
+import java.io.IOException;
+import java.io.ByteArrayOutputStream;
+
+public class Compressor {
+
+ /* Tailored to int as 32bit signed */
+ private final static int FIRST_QUARTER = 0x200000;
+ private final static int THIRD_QUARTER = 0x600000;
+ private final static int HALF = 0x400000;
+ private final static int HIGH = 0x7fffff;
+ private final static int INITIAL_READ = 23;
+
+ public static byte[] compress(byte[] in) {
+
+ class BitOutputBuffer {
+
+ ByteArrayOutputStream buf;
+ byte[] currentByte;
+ byte currentBit;
+
+ BitOutputBuffer() {
+ buf = new ByteArrayOutputStream();
+ currentByte = new byte[1];
+ currentByte[0] = 0;
+ currentBit = 0;
+ }
+
+ void writeBit(byte bit) throws IOException {
+ currentByte[0] = (byte) ((currentByte[0]) << 1);
+ currentByte[0] += bit;
+ currentBit += 1;
+ if (currentBit == 8) {
+ buf.write(currentByte);
+ currentByte[0] = 0;
+ currentBit = 0;
+ }
+ }
+
+ void flush() throws IOException {
+ /* Pad the buffer with zeros */
+ while (currentBit != 0) {
+ writeBit((byte) 0);
+ }
+ buf.flush();
+ }
+
+ byte[] toByteArray() {
+ try {
+ buf.flush();
+ return buf.toByteArray();
+ } catch (IOException e) {
+ return null;
+ }
+ }
+ }
+
+ BitOutputBuffer bitBuf = new BitOutputBuffer();
+
+ int low = 0, high = HIGH, total;
+ int mLow = low, mHigh = high, mStep = 0;
+ int mScale = 0;
+ int current = 0;
+
+ /* Initialize frequency table */
+ int[] freq = new int[257];
+ for (int i = 0; i < 257; i++) {
+ freq[i] = 1;
+ }
+ total = 257;
+
+ try {
+
+ for (int i = 0; i < in.length + 1; i++) {
+
+ if (i == in.length) {
+ /* Encode terminator if necessary */
+ low = total - 1;
+ high = total;
+ } else {
+ /* Otherwise retrieve cumulative freq */
+ current = in[i] & 0xff; // Get unsigned value
+ low = 0;
+ for (int j = 0; j < current; j++) {
+ low += freq[j];
+ }
+ high = low + freq[current];
+ }
+
+ /* 2. Update the coder */
+ mStep = (mHigh - mLow + 1) / total;
+ mHigh = (mLow + mStep * high) - 1;
+ mLow = mLow + mStep * low;
+
+ /* Renormalize if possible */
+ while ((mHigh < HALF) || (mLow >= HALF)) {
+ if (mHigh < HALF) {
+ bitBuf.writeBit((byte) 0);
+ mLow = mLow * 2;
+ mHigh = mHigh * 2 + 1;
+
+ /* Perform e3 mappings */
+ for (; mScale > 0; mScale--) {
+ bitBuf.writeBit((byte) 1);
+ }
+ } else if (mLow >= HALF) {
+ bitBuf.writeBit((byte) 1);
+ mLow = (mLow - HALF) * 2;
+ mHigh = (mHigh - HALF) * 2 + 1;
+
+ /* Perform e3 mappings */
+ for (; mScale > 0; mScale--) {
+ bitBuf.writeBit((byte) 0);
+ }
+ }
+ }
+
+ while ((FIRST_QUARTER <= mLow) && (mHigh < THIRD_QUARTER)) {
+ mScale++;
+ mLow = (mLow - FIRST_QUARTER) * 2;
+ mHigh = (mHigh - FIRST_QUARTER) * 2 + 1;
+ }
+
+ /* 3. Update model */
+ freq[current] += 1;
+ total += 1;
+
+ }
+ /* Finish encoding */
+ if (mLow < FIRST_QUARTER) {
+ /* Case: mLow < FirstQuarter < Half <= mHigh */
+ bitBuf.writeBit((byte) 0);
+ /* Perform e3-scaling */
+ for (int i = 0; i < mScale + 1; i++) {
+ bitBuf.writeBit((byte) 1);
+ }
+ } else {
+ /* Case: mLow < Half < ThirdQuarter <= mHigh */
+ bitBuf.writeBit((byte) 1);
+ }
+ bitBuf.flush();
+ } catch (IOException e) {
+ return null;
+ }
+ return bitBuf.toByteArray();
+ }
+
+ public static byte[] decompress(byte[] in) {
+
+ class BitInputBuffer {
+
+ byte[] source;
+ int bytep = 0, bitp = 0;
+ byte currentByte = 0;
+
+ BitInputBuffer(byte[] source) {
+ this.source = source;
+ currentByte = source[0];// & 0xff;
+ }
+
+ int readBit() {
+ int result = (currentByte >> 7) & 1;
+ currentByte = (byte) (currentByte << 1);
+ if (bitp++ == 7) {
+ bytep++;
+ if (bytep > source.length - 1) {
+ currentByte = 0;
+ } else {
+ currentByte = source[bytep];
+ bitp = 0;
+ }
+ }
+ return result;
+ }
+ }
+
+ ByteArrayOutputStream buf = new ByteArrayOutputStream();
+ /* Initialise frequency table */
+
+ int[] freq = new int[257];
+ for (int i = 0; i < 257; i++) {
+ freq[i] = 1;
+ }
+ int total = 257;
+ int current = 0;
+ int value;
+ int low = 0, high = HIGH;
+ int mLow = low, mHigh = high, mStep = 0, mScale = 0, mBuffer = 0;
+ BitInputBuffer inbuf = new BitInputBuffer(in);
+ /* Fill buffer with bits from the input stream */
+
+ for (int i = 0; i < INITIAL_READ; i++) {
+ mBuffer = 2 * mBuffer;
+ mBuffer += inbuf.readBit();
+ }
+
+ while (true) {
+ /* 1. Retrieve current byte */
+ mStep = (mHigh - mLow + 1) / total;
+ value = (mBuffer - mLow) / mStep;
+ low = 0;
+ for (current = 0; current < 256 && low + freq[current] <= value; current++) {
+ low += freq[current];
+ }
+
+ if (current == 256) {
+ break;
+ }
+
+ buf.write(current);
+ high = low + freq[current];
+
+ /* 2. Update the decoder */
+ mHigh = mLow + mStep * high - 1; // interval open at the top => -1
+
+ /* Update lower bound */
+ mLow = mLow + mStep * low;
+
+ /* e1/e2 mapping */
+ while ((mHigh < HALF) || (mLow >= HALF)) {
+ if (mHigh < HALF) {
+ mLow = mLow * 2;
+ mHigh = ((mHigh * 2) + 1);
+ mBuffer = (2 * mBuffer);
+ } else if (mLow >= HALF) {
+ mLow = 2 * (mLow - HALF);
+ mHigh = 2 * (mHigh - HALF) + 1;
+ mBuffer = 2 * (mBuffer - HALF);
+ }
+
+ mBuffer += inbuf.readBit();
+ mScale = 0;
+ }
+
+ /* e3 mapping */
+ while ((FIRST_QUARTER <= mLow) && (mHigh < THIRD_QUARTER)) {
+ mScale++;
+ mLow = 2 * (mLow - FIRST_QUARTER);
+ mHigh = 2 * (mHigh - FIRST_QUARTER) + 1;
+ mBuffer = 2 * (mBuffer - FIRST_QUARTER);
+ mBuffer += inbuf.readBit();
+ }
+
+ /* 3. Update frequency table */
+ freq[current] += 1;
+ total += 1;
+ }
+
+ return buf.toByteArray();
+ }
+}
+
=== added file 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/src/de/enough/polish/app/control/Controller.java'
--- local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/src/de/enough/polish/app/control/Controller.java 1970-01-01 00:00:00 +0000
+++ local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/src/de/enough/polish/app/control/Controller.java 2012-10-17 10:53:47 +0000
@@ -0,0 +1,2317 @@
+/*
+ * Created on Dec 15, 2010 at 9:19:09 AM.
+ *
+ * Copyright (c) 2010 Robert Virkus / Enough Software
+ *
+ * This file is part of J2ME Polish.
+ *
+ * J2ME Polish is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * J2ME Polish is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with J2ME Polish; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ *
+ * Commercial licenses are also available, please
+ * refer to the accompanying LICENSE.txt or visit
+ * http://www.j2mepolish.org for details.
+ */
+package de.enough.polish.app.control;
+
+import java.io.IOException;
+import java.io.UnsupportedEncodingException;
+import java.util.Calendar;
+import java.util.Date;
+import java.util.Vector;
+
+import javax.microedition.io.Connector;
+import javax.microedition.lcdui.Canvas;
+import javax.microedition.lcdui.Graphics;
+import javax.microedition.lcdui.Image;
+import javax.microedition.rms.RecordStore;
+import javax.microedition.rms.RecordStoreException;
+import javax.wireless.messaging.BinaryMessage;
+import javax.wireless.messaging.MessageConnection;
+
+import de.enough.polish.app.App;
+import de.enough.polish.app.view.MainMenuList;
+import de.enough.polish.app.view.TextField;
+import de.enough.polish.app.view.TheScreen;
+import de.enough.polish.ui.Alert;
+import de.enough.polish.ui.AlertType;
+import de.enough.polish.ui.Choice;
+import de.enough.polish.ui.ChoiceGroup;
+import de.enough.polish.ui.Command;
+import de.enough.polish.ui.CommandListener;
+import de.enough.polish.ui.DateField;
+import de.enough.polish.ui.Display;
+import de.enough.polish.ui.Displayable;
+import de.enough.polish.ui.ImageItem;
+import de.enough.polish.ui.Item;
+import de.enough.polish.ui.ItemStateListener;
+import de.enough.polish.ui.SimpleScreenHistory;
+import de.enough.polish.ui.StringItem;
+import de.enough.polish.ui.splash2.ApplicationInitializer;
+import de.enough.polish.ui.splash2.InitializerSplashScreen;
+import de.enough.polish.util.Locale;
+
+/**
+ * <p>
+ * Controls the UI of the mobile app
+ * </p>
+ *
+ * <p>
+ * Copyright Enough Software 2010 - 2012
+ * </p>
+ *
+ * @author Robert Virkus, j2mepolish@xxxxxxxxx
+ */
+public class Controller
+ implements ApplicationInitializer, CommandListener, ItemStateListener
+{
+
+ private java.util.Hashtable __previousDisplayables = new java.util.Hashtable();
+
+ private final App midlet;
+
+ private Display display;
+
+ private boolean savedMsg = false;
+
+ private boolean firstRun = false;
+
+ private RecordStore lastMsgStore = null;
+
+ private StringItem sendMsgLabel;
+
+ private Image question;
+
+ private TheScreen loadPage;
+
+ private TheScreen sentPage;
+
+ private StringItem questionLabel;
+
+ private ChoiceGroup lastChoice;
+
+ private DateField dateField;
+
+ private boolean editingLastReport = false;
+
+ private TextField individualtextfield1;
+
+ private TextField individualtextfield2;
+
+ private TextField individualtextfield3;
+
+ private TextField individualtextfield4;
+
+ private TextField individualtextfield5;
+
+ private TextField individualtextfield6;
+
+ private TextField individualtextfield7;
+
+ private TextField individualtextfield8;
+
+ private TextField individualtextfield9;
+
+ private TextField individualtextfield10;
+
+ private TextField individualtextfield11;
+
+ private TextField individualtextfield12;
+
+ private TextField individualtextfield13;
+
+ private TextField individualtextfield14;
+
+ private TextField individualtextfield15;
+
+ private TextField individualtextfield16;
+
+ private TextField individualtextfield17;
+
+ private TextField individualtextfield18;
+
+ private TextField individualtextfield19;
+
+ private TextField individualtextfield20;
+
+ private TextField individualtextfield21;
+
+ private TextField individualtextfield22;
+
+ private TextField individualtextfield23;
+
+ private TextField individualtextfield24;
+
+ private TextField individualtextfield25;
+
+ private TextField individualtextfield26;
+
+ // ******
+
+ // ****
+
+ private ChoiceGroup diagnosed;
+
+ private ImageItem imgItem = new ImageItem( null, null, ImageItem.LAYOUT_TOP, null );
+
+ private Command cmdExit = new Command( Locale.get( "cmd.exit" ), Command.EXIT, 10 );
+
+ private Command cmdBack = new Command( Locale.get( "cmd.back" ), Command.BACK, 2 );
+
+ private Command cmdSelect = new Command( Locale.get( "cmd.select" ), Command.OK, 3 );
+
+ private Command cmdOK = new Command( Locale.get( "cmd.ok" ), Command.OK, 4 );
+
+ private Command cmdSave = new Command( Locale.get( "cmd.save" ), Command.OK, 5 );
+
+ private Command cmdNext = new Command( Locale.get( "cmd.next" ), Command.OK, 6 );
+
+ private Command cmdSend = new Command( Locale.get( "cmd.send" ), Command.OK, 7 );
+
+ // **********
+ int formID = 0;
+
+ // **********
+
+ // *********
+ private MainMenuList screenMainMenu;
+
+ private TheScreen screen1;
+
+ private TheScreen screen2;
+
+ private TheScreen screen3;
+
+ private TheScreen screen4;
+
+ private TheScreen screen5;
+
+ private TheScreen screen6;
+
+ private TheScreen screen7;
+
+ private TheScreen screen8;
+
+ private TheScreen dataCollectionScreen;
+
+ private TheScreen registrationScreen;
+
+ private TheScreen settingScreen;
+
+ private TheScreen dateFieldScreen;
+
+ // *************
+
+ // ****
+ private TextField phone1;
+
+ private TextField phone2;
+
+ private TextField phone3;
+
+ // ****
+
+ // *****
+ private TextField textfield1;
+
+ private TextField textfield2;
+
+ private TextField textfield3;
+
+ private TextField textfield4;
+
+ private TextField textfield5;
+
+ private TextField textfield6;
+
+ private TextField textfield7;
+
+ private TextField textfield8;
+
+ private TextField textfield9;
+
+ private TextField textfield10;
+
+ private TextField textfield11;
+
+ private TextField textfield12;
+
+ private TextField textfield13;
+
+ private TextField textfield14;
+
+ private TextField textfield15;
+
+ private TextField textfield16;
+
+ private TextField textfield17;
+
+ private TextField textfield18;
+
+ private TextField textfield19;
+
+ private TextField textfield20;
+
+ private TextField textfield21;
+
+ private TextField textfield22;
+
+ private TextField textfield23;
+
+ private TextField textfield24;
+
+ private TextField textfield25;
+
+ private TextField textfield26;
+
+ private TextField textfield27;
+
+ private TextField textfield28;
+
+ private TextField textfield29;
+
+ private TextField textfield30;
+
+ private TextField textfield31;
+
+ private TextField textfield32;
+
+ private TextField textfield33;
+
+ private TextField textfield34;
+
+ private TextField textfield35;
+
+ // ****
+
+
+ private SimpleScreenHistory screenHistory;
+
+ /**
+ * Creates a new controller.
+ *
+ * @param midlet the main application
+ */
+ public Controller( App midlet )
+ {
+ this.midlet = midlet;
+ this.display = Display.getDisplay( midlet );
+ this.screenHistory = new SimpleScreenHistory( this.display );
+ }
+
+ /**
+ * Lifecycle: starts the application for the first time.
+ */
+ public void appStart()
+ {
+ String splashUrl = "/lung_cancer_awareness.jpg";
+ Image splashImage = null;
+ try
+ {
+ splashImage = Image.createImage( splashUrl );
+ }
+ catch ( Exception e )
+ {
+ // #debug error
+ // System.out.println( "Unable to load splash image " + splashUrl +
+ // e );
+ }
+ int backgroundColor = 0xffffff;
+ InitializerSplashScreen splash = new InitializerSplashScreen( splashImage, backgroundColor, this );
+ this.display.setCurrent( splash );
+ }
+
+ /**
+ * Lifecycle: pauses the application, e.g. when there is an incoming call.
+ */
+ public void appPause()
+ {
+ // TODO implement pauseApp, e.g. stop streaming
+ }
+
+ /**
+ * Lifecycle: continues the application after it has been paused.
+ */
+ public void appContinue()
+ {
+ // TODO implement continueApp, e.g. start streaming again
+ }
+
+ /**
+ * Initializes this application in a background thread that is called from
+ * within the splash screen.
+ */
+ public void initApp()
+ {
+ long initStartTime = System.currentTimeMillis();
+
+ try
+ {
+ lastMsgStore = RecordStore.openRecordStore( "lastMsgStore", true );
+ if ( lastMsgStore.getNumRecords() == 0 )
+ {
+ firstRun = true;
+ }
+ else
+ {
+ firstRun = false;
+ }
+
+ if ( firstRun )
+ {
+ for ( int i = 0; i < 100; i++ )
+ {
+ try
+ {
+ lastMsgStore.addRecord( "".getBytes(), 0, "".getBytes().length );
+ }
+ catch ( RecordStoreException rsex )
+ {
+ rsex.printStackTrace();
+ }
+ }
+ }
+ else
+ {
+ if ( lastMsgStore.getRecord( 4 ) != null )
+ {
+ String checkSaved = new String( lastMsgStore.getRecord( 4 ) );
+ if ( checkSaved.equals( "true" ) )
+ {
+ savedMsg = true;
+ }
+ }
+ }
+ }
+ catch ( RecordStoreException ex )
+ {
+ ex.printStackTrace();
+ }
+
+ // this.storage = new RmsStorage();
+
+ // this.configuration = configurationLoad();
+ // create main menu:
+ this.screenMainMenu = createMainMenu();
+ this.loadPage = getLoadPage();
+ long currentTime = System.currentTimeMillis();
+ long maxTime = 1500;
+ if ( currentTime - initStartTime < maxTime )
+ { // show the splash at least
+ // for 1500 ms / 2
+ // seconds:
+ try
+ {
+ Thread.sleep( maxTime - currentTime + initStartTime );
+ }
+ catch ( InterruptedException e )
+ {
+ // ignore
+ }
+ }
+ if ( true == this.firstRun )
+ this.display.setCurrent( this.screenMainMenu );
+ else
+ this.display.setCurrent( this.loadPage );
+ }
+
+ /**
+ * Init screen
+ *
+ * @return
+ */
+ private MainMenuList createMainMenu()
+ {
+ MainMenuList list = new MainMenuList();
+ list.setCommandListener( this );
+ list.addCommand( this.cmdExit );
+ // list.addEntry( Locale.get( "CRTISFacilityForm" ), "/icon.png" );
+ list.addEntry( Locale.get( "CRTISIndividualForm" ), "/icon.png" );
+ list.addEntry( Locale.get( "Settings" ), "/icon.png" );
+ return list;
+ }
+
+ /**
+ *
+ * Facility Forms
+ *
+ * @return
+ */
+
+ private TheScreen createScreen1()
+ {
+ TheScreen screen = new TheScreen( Locale.get( "1.CRTISFacilityForm" ) );
+ if ( null == this.textfield1 )
+ {
+ String value = getRecordValue( 11 );
+ this.textfield1 = new TextField( Locale.get( "3.CRTISFacilityForm" ), value, 4, TextField.NUMERIC );
+ screen.addTextField( this.textfield1 );
+ }
+ if ( null == this.textfield2 )
+ {
+ String value = getRecordValue( 12 );
+ this.textfield2 = new TextField( Locale.get( "4.CRTISFacilityForm" ), value, 4, TextField.NUMERIC );
+ screen.addTextField( this.textfield2 );
+ }
+ if ( null == this.textfield3 )
+ {
+ String value = getRecordValue( 13 );
+ this.textfield3 = new TextField( Locale.get( "5.CRTISFacilityForm" ), value, 4, TextField.NUMERIC );
+ screen.addTextField( this.textfield3 );
+ }
+ if ( null == this.textfield4 )
+ {
+ String value = getRecordValue( 14 );
+ this.textfield4 = new TextField( Locale.get( "6.CRTISFacilityForm" ), value, 4, TextField.NUMERIC );
+ screen.addTextField( this.textfield4 );
+ }
+ screen.setCommandListener( this );
+ screen.addCommand( this.cmdBack );
+ screen.addCommand( this.cmdNext );
+ return screen;
+ }
+
+ private TheScreen createScreen2()
+ {
+ TheScreen screen = new TheScreen( Locale.get( "7.CRTISFacilityForm" ) );
+ if ( null == this.textfield5 )
+ {
+ String value = getRecordValue( 15 );
+ this.textfield5 = new TextField( Locale.get( "8.CRTISFacilityForm" ), value, 4, TextField.NUMERIC );
+ screen.addTextField( this.textfield5 );
+ }
+ if ( null == this.textfield6 )
+ {
+ String value = getRecordValue( 16 );
+ this.textfield6 = new TextField( Locale.get( "9.CRTISFacilityForm" ), value, 4, TextField.NUMERIC );
+ screen.addTextField( this.textfield6 );
+ }
+ if ( null == this.textfield7 )
+ {
+ String value = getRecordValue( 17 );
+ this.textfield7 = new TextField( Locale.get( "10.CRTISFacilityForm" ), value, 4, TextField.NUMERIC );
+ screen.addTextField( this.textfield7 );
+ }
+ if ( null == this.textfield8 )
+ {
+ String value = getRecordValue( 18 );
+ this.textfield8 = new TextField( Locale.get( "11.CRTISFacilityForm" ), value, 4, TextField.NUMERIC );
+ screen.addTextField( this.textfield8 );
+ }
+ if ( null == this.textfield9 )
+ {
+ String value = getRecordValue( 19 );
+ this.textfield9 = new TextField( Locale.get( "12.CRTISFacilityForm" ), value, 4, TextField.NUMERIC );
+ screen.addTextField( this.textfield9 );
+ }
+ if ( null == this.textfield10 )
+ {
+ String value = getRecordValue( 20 );
+ this.textfield10 = new TextField( Locale.get( "13.CRTISFacilityForm" ), value, 4, TextField.NUMERIC );
+ screen.addTextField( this.textfield10 );
+ }
+ screen.setCommandListener( this );
+ screen.addCommand( this.cmdBack );
+ screen.addCommand( this.cmdNext );
+ return screen;
+ }
+
+ private TheScreen createScreen3()
+ {
+ TheScreen screen = new TheScreen( Locale.get( "14.CRTISFacilityForm" ) );
+ if ( null == this.textfield11 )
+ {
+ String value = getRecordValue( 21 );
+ this.textfield11 = new TextField( Locale.get( "15.CRTISFacilityForm" ), value, 4, TextField.NUMERIC );
+ screen.addTextField( this.textfield11 );
+ }
+ if ( null == this.textfield12 )
+ {
+ String value = getRecordValue( 22 );
+ this.textfield12 = new TextField( Locale.get( "16.CRTISFacilityForm" ), value, 4, TextField.NUMERIC );
+ screen.addTextField( this.textfield12 );
+ }
+
+ screen.setCommandListener( this );
+ screen.addCommand( this.cmdBack );
+ screen.addCommand( this.cmdNext );
+ return screen;
+ }
+
+ private TheScreen createScreen4()
+ {
+ TheScreen screen = new TheScreen( Locale.get( "17.CRTISFacilityForm" ) );
+ if ( null == this.textfield13 )
+ {
+ String value = getRecordValue( 23 );
+ this.textfield13 = new TextField( Locale.get( "18.CRTISFacilityForm" ), value, 4, TextField.NUMERIC );
+ screen.addTextField( this.textfield13 );
+ }
+ if ( null == this.textfield14 )
+ {
+ String value = getRecordValue( 24 );
+ this.textfield14 = new TextField( Locale.get( "19.CRTISFacilityForm" ), value, 4, TextField.NUMERIC );
+ screen.addTextField( this.textfield14 );
+ }
+
+ screen.setCommandListener( this );
+ screen.addCommand( this.cmdBack );
+ screen.addCommand( this.cmdNext );
+ return screen;
+ }
+
+ private TheScreen createScreen5()
+ {
+ TheScreen screen = new TheScreen( Locale.get( "20.CRTISFacilityForm" ) );
+ if ( null == this.textfield15 )
+ {
+ String value = getRecordValue( 25 );
+ this.textfield15 = new TextField( Locale.get( "21.CRTISFacilityForm" ), value, 4, TextField.NUMERIC );
+ screen.addTextField( this.textfield15 );
+ }
+ if ( null == this.textfield16 )
+ {
+ String value = getRecordValue( 26 );
+ this.textfield16 = new TextField( Locale.get( "22.CRTISFacilityForm" ), value, 4, TextField.NUMERIC );
+ screen.addTextField( this.textfield16 );
+ }
+
+ screen.setCommandListener( this );
+ screen.addCommand( this.cmdBack );
+ screen.addCommand( this.cmdNext );
+ return screen;
+ }
+
+ private TheScreen createScreen6()
+ {
+ TheScreen screen = new TheScreen( Locale.get( "23.CRTISFacilityForm" ) );
+ if ( null == this.textfield17 )
+ {
+ String value = getRecordValue( 27 );
+ this.textfield17 = new TextField( Locale.get( "24.CRTISFacilityForm" ), value, 4, TextField.NUMERIC );
+ screen.addTextField( this.textfield17 );
+ }
+ if ( null == this.textfield18 )
+ {
+ String value = getRecordValue( 28 );
+ this.textfield18 = new TextField( Locale.get( "25.CRTISFacilityForm" ), value, 4, TextField.NUMERIC );
+ screen.addTextField( this.textfield18 );
+ }
+ if ( null == this.textfield19 )
+ {
+ String value = getRecordValue( 29 );
+ this.textfield19 = new TextField( Locale.get( "26.CRTISFacilityForm" ), value, 4, TextField.NUMERIC );
+ screen.addTextField( this.textfield19 );
+ }
+ if ( null == this.textfield20 )
+ {
+ String value = getRecordValue( 30 );
+ this.textfield20 = new TextField( Locale.get( "27.CRTISFacilityForm" ), value, 4, TextField.NUMERIC );
+ screen.addTextField( this.textfield20 );
+ }
+ if ( null == this.textfield21 )
+ {
+ String value = getRecordValue( 31 );
+ this.textfield21 = new TextField( Locale.get( "28.CRTISFacilityForm" ), value, 4, TextField.NUMERIC );
+ screen.addTextField( this.textfield21 );
+ }
+
+ screen.setCommandListener( this );
+ screen.addCommand( this.cmdBack );
+ screen.addCommand( this.cmdNext );
+ return screen;
+ }
+
+ private TheScreen createScreen7()
+ {
+ TheScreen screen = new TheScreen( Locale.get( "29.CRTISFacilityForm" ) );
+ if ( null == this.textfield22 )
+ {
+ String value = getRecordValue( 32 );
+ this.textfield22 = new TextField( Locale.get( "30.CRTISFacilityForm" ), value, 4, TextField.NUMERIC );
+ screen.addTextField( this.textfield22 );
+ }
+ if ( null == this.textfield23 )
+ {
+ String value = getRecordValue( 33 );
+ this.textfield23 = new TextField( Locale.get( "31.CRTISFacilityForm" ), value, 4, TextField.NUMERIC );
+ screen.addTextField( this.textfield23 );
+ }
+
+ screen.setCommandListener( this );
+ screen.addCommand( this.cmdBack );
+ screen.addCommand( this.cmdNext );
+ return screen;
+ }
+
+ private TheScreen createScreen8()
+ {
+ TheScreen screen = new TheScreen( Locale.get( "32.CRTISFacilityForm" ) );
+ if ( null == this.textfield24 )
+ {
+ String value = getRecordValue( 34 );
+ this.textfield24 = new TextField( Locale.get( "33.CRTISFacilityForm" ), value, 4, TextField.NUMERIC );
+ screen.addTextField( this.textfield24 );
+ }
+ if ( null == this.textfield25 )
+ {
+ String value = getRecordValue( 35 );
+ this.textfield25 = new TextField( Locale.get( "34.CRTISFacilityForm" ), value, 4, TextField.NUMERIC );
+ screen.addTextField( this.textfield25 );
+ }
+ if ( null == this.textfield26 )
+ {
+ String value = getRecordValue( 36 );
+ this.textfield26 = new TextField( Locale.get( "35.CRTISFacilityForm" ), value, 4, TextField.NUMERIC );
+ screen.addTextField( this.textfield26 );
+ }
+ if ( null == this.textfield27 )
+ {
+ String value = getRecordValue( 37 );
+ this.textfield27 = new TextField( Locale.get( "36.CRTISFacilityForm" ), value, 4, TextField.NUMERIC );
+ screen.addTextField( this.textfield27 );
+ }
+ if ( null == this.textfield28 )
+ {
+ String value = getRecordValue( 38 );
+ this.textfield28 = new TextField( Locale.get( "37.CRTISFacilityForm" ), value, 4, TextField.NUMERIC );
+ screen.addTextField( this.textfield28 );
+ }
+
+ if ( null == this.textfield29 )
+ {
+ String value = getRecordValue( 39 );
+ this.textfield29 = new TextField( Locale.get( "38.CRTISFacilityForm" ), value, 4, TextField.NUMERIC );
+ screen.addTextField( this.textfield29 );
+ }
+ if ( null == this.textfield30 )
+ {
+ String value = getRecordValue( 40 );
+ this.textfield30 = new TextField( Locale.get( "39.CRTISFacilityForm" ), value, 4, TextField.NUMERIC );
+ screen.addTextField( this.textfield30 );
+ }
+ if ( null == this.textfield31 )
+ {
+ String value = getRecordValue( 41 );
+ this.textfield31 = new TextField( Locale.get( "40.CRTISFacilityForm" ), value, 4, TextField.NUMERIC );
+ screen.addTextField( this.textfield31 );
+ }
+ if ( null == this.textfield32 )
+ {
+ String value = getRecordValue( 42 );
+ this.textfield32 = new TextField( Locale.get( "41.CRTISFacilityForm" ), value, 4, TextField.NUMERIC );
+ screen.addTextField( this.textfield32 );
+ }
+ if ( null == this.textfield33 )
+ {
+ String value = getRecordValue( 43 );
+ this.textfield33 = new TextField( Locale.get( "42.CRTISFacilityForm" ), value, 4, TextField.NUMERIC );
+ screen.addTextField( this.textfield33 );
+ }
+
+ if ( null == this.textfield34 )
+ {
+ String value = getRecordValue( 44 );
+ this.textfield34 = new TextField( Locale.get( "43.CRTISFacilityForm" ), value, 4, TextField.NUMERIC );
+ screen.addTextField( this.textfield34 );
+ }
+ if ( null == this.textfield35 )
+ {
+ String value = getRecordValue( 45 );
+ this.textfield35 = new TextField( Locale.get( "44.CRTISFacilityForm" ), value, 4, TextField.NUMERIC );
+ screen.addTextField( this.textfield35 );
+ }
+
+ screen.setCommandListener( this );
+ screen.addCommand( this.cmdBack );
+ screen.addCommand( this.cmdNext );
+ return screen;
+ }
+
+ /**
+ * Individual Forms
+ *
+ * @return
+ */
+
+ // private boolean loadChoiceGroupMultipleStore( ChoiceGroup choiceGroup,
+ // int recordNumber )
+ // {
+ // if ( editingLastReport && !getRecordValue( recordNumber
+ // ).equalsIgnoreCase( "" ) )
+ // {
+ // int Index[] = null;
+ // String indexValue[] = null;
+ //
+ // indexValue = split( getRecordValue( 58 ), "," );
+ // if ( indexValue.length > 1 )
+ // Index = new int[indexValue.length - 1];
+ // for ( int i = 0; i < indexValue.length - 1; i++ )
+ // try
+ // {
+ // Index[i] = Integer.parseInt( indexValue[i] );
+ // }
+ // catch ( NumberFormatException nfe )
+ // {
+ // // do nothing
+ // }
+ //
+ // for ( int i = 0; i < Index.length; i++ )
+ // choiceGroup.setSelectedIndex( Index[i], true );
+ // return true;
+ // }
+ // return false;
+ // }
+
+ private boolean saveChoiceGroupMultipleStore( ChoiceGroup choiceGroup, int recordNumber )
+ {
+ try
+ {
+ boolean get[] = new boolean[choiceGroup.size()];
+ choiceGroup.getSelectedFlags( get );
+ String str = "";
+ for ( int i = 0; i < get.length; i++ )
+ {
+ if ( get[i] )
+ {
+ str += i + ",";
+ }
+ }
+ lastMsgStore.setRecord( recordNumber, str.getBytes(), 0, str.length() );
+ return true;
+ }
+ catch ( RecordStoreException ex )
+ {
+ ex.printStackTrace();
+ }
+ catch ( NullPointerException npe )
+ {
+ npe.printStackTrace();
+ }
+ return false;
+ }
+
+ private boolean saveTextfield()
+ {
+ new Thread( new Runnable()
+ {
+
+ public void run()
+ {
+ try
+ {
+
+ lastMsgStore.setRecord( 11, textfield1.getString().getBytes(), 0, textfield1.getString().length() );
+ lastMsgStore.setRecord( 12, textfield2.getString().getBytes(), 0, textfield2.getString().length() );
+ lastMsgStore.setRecord( 13, textfield3.getString().getBytes(), 0, textfield3.getString().length() );
+ lastMsgStore.setRecord( 14, textfield4.getString().getBytes(), 0, textfield4.getString().length() );
+ lastMsgStore.setRecord( 15, textfield5.getString().getBytes(), 0, textfield5.getString().length() );
+ lastMsgStore.setRecord( 16, textfield6.getString().getBytes(), 0, textfield6.getString().length() );
+ lastMsgStore.setRecord( 17, textfield7.getString().getBytes(), 0, textfield7.getString().length() );
+ lastMsgStore.setRecord( 18, textfield8.getString().getBytes(), 0, textfield8.getString().length() );
+ lastMsgStore.setRecord( 19, textfield9.getString().getBytes(), 0, textfield9.getString().length() );
+ lastMsgStore
+ .setRecord( 20, textfield10.getString().getBytes(), 0, textfield10.getString().length() );
+ lastMsgStore
+ .setRecord( 21, textfield11.getString().getBytes(), 0, textfield11.getString().length() );
+ lastMsgStore
+ .setRecord( 22, textfield12.getString().getBytes(), 0, textfield12.getString().length() );
+ lastMsgStore
+ .setRecord( 23, textfield13.getString().getBytes(), 0, textfield13.getString().length() );
+ lastMsgStore
+ .setRecord( 24, textfield14.getString().getBytes(), 0, textfield14.getString().length() );
+ lastMsgStore
+ .setRecord( 25, textfield15.getString().getBytes(), 0, textfield15.getString().length() );
+ lastMsgStore
+ .setRecord( 26, textfield16.getString().getBytes(), 0, textfield16.getString().length() );
+ lastMsgStore
+ .setRecord( 27, textfield17.getString().getBytes(), 0, textfield17.getString().length() );
+ lastMsgStore
+ .setRecord( 28, textfield18.getString().getBytes(), 0, textfield18.getString().length() );
+ lastMsgStore
+ .setRecord( 29, textfield19.getString().getBytes(), 0, textfield19.getString().length() );
+ lastMsgStore
+ .setRecord( 30, textfield20.getString().getBytes(), 0, textfield20.getString().length() );
+ lastMsgStore
+ .setRecord( 31, textfield21.getString().getBytes(), 0, textfield21.getString().length() );
+ lastMsgStore
+ .setRecord( 32, textfield22.getString().getBytes(), 0, textfield22.getString().length() );
+ lastMsgStore
+ .setRecord( 33, textfield23.getString().getBytes(), 0, textfield23.getString().length() );
+ lastMsgStore
+ .setRecord( 34, textfield24.getString().getBytes(), 0, textfield24.getString().length() );
+ lastMsgStore
+ .setRecord( 35, textfield25.getString().getBytes(), 0, textfield25.getString().length() );
+ lastMsgStore
+ .setRecord( 36, textfield26.getString().getBytes(), 0, textfield26.getString().length() );
+ lastMsgStore
+ .setRecord( 37, textfield27.getString().getBytes(), 0, textfield27.getString().length() );
+ lastMsgStore
+ .setRecord( 38, textfield28.getString().getBytes(), 0, textfield28.getString().length() );
+ lastMsgStore
+ .setRecord( 39, textfield29.getString().getBytes(), 0, textfield29.getString().length() );
+ lastMsgStore
+ .setRecord( 40, textfield30.getString().getBytes(), 0, textfield30.getString().length() );
+ lastMsgStore
+ .setRecord( 41, textfield31.getString().getBytes(), 0, textfield31.getString().length() );
+ lastMsgStore
+ .setRecord( 42, textfield32.getString().getBytes(), 0, textfield32.getString().length() );
+ lastMsgStore
+ .setRecord( 43, textfield33.getString().getBytes(), 0, textfield33.getString().length() );
+ lastMsgStore
+ .setRecord( 44, textfield34.getString().getBytes(), 0, textfield34.getString().length() );
+ lastMsgStore
+ .setRecord( 45, textfield35.getString().getBytes(), 0, textfield35.getString().length() );
+
+ lastMsgStore.setRecord( 4, "true".getBytes(), 0, "true".getBytes().length ); // record
+ // for
+ // edit
+ // or
+ // not
+ // edit
+ // option
+ // (on
+ // load
+ // page)
+ savedMsg = true;
+ }
+ catch ( RecordStoreException ex )
+ {
+ ex.printStackTrace();
+ }
+ catch ( NullPointerException npe )
+ {
+ npe.printStackTrace();
+ }
+ }
+ } ).start();
+
+ return true;
+ }
+
+ private String getMyBaseDataAggregate()
+ {
+ String formId = "02";
+ String myData = formId + "#" + textfield1.getString() + ":" + textfield2.getString() + ":"
+ + textfield3.getString() + ":" + textfield4.getString() + ":" + textfield5.getString() + ":"
+ + textfield6.getString() + ":" + textfield7.getString() + ":" + textfield8.getString() + ":"
+ + textfield9.getString() + ":" + textfield10.getString() + ":" + textfield11.getString() + ":"
+ + textfield12.getString() + ":" + textfield13.getString() + ":" + textfield14.getString() + ":"
+ + textfield15.getString() + ":" + textfield16.getString() + ":" + textfield17.getString() + ":"
+ + textfield18.getString() + ":" + textfield19.getString() + ":" + textfield20.getString() + ":"
+ + textfield21.getString() + ":" + textfield22.getString() + ":" + textfield23.getString() + ":"
+ + textfield24.getString() + ":" + textfield25.getString() + ":" + textfield26.getString() + ":"
+ + textfield27.getString() + ":" + textfield28.getString() + ":" + textfield29.getString() + ":"
+ + textfield30.getString() + ":" + textfield31.getString() + ":" + textfield32.getString() + ":"
+ + textfield33.getString() + ":" + textfield34.getString() + ":" + textfield35.getString();
+
+ // System.out.println(myData);
+ return myData;
+ }
+
+ private TheScreen dataCollectScreen()
+ {
+ TheScreen screen = new TheScreen( "Data Collection" );
+ screen.append( imgItem );
+ screen.setCommandListener( this );
+ screen.addCommand( this.cmdBack );
+ screen.addCommand( this.cmdSave );
+ screen.addCommand( this.cmdSend );
+ return screen;
+ }
+
+ private boolean savePatientInfo()
+ {
+ new Thread( new Runnable()
+ {
+
+ public void run()
+ {
+ try
+ {
+
+ lastMsgStore.setRecord( 5, getRegistrationTime().getBytes(), 0, getRegistrationTime().length() );
+ lastMsgStore.setRecord( 46, individualtextfield1.getString().getBytes(), 0, individualtextfield1
+ .getString().length() );
+ lastMsgStore.setRecord( 47, individualtextfield2.getString().getBytes(), 0, individualtextfield2
+ .getString().length() );
+ lastMsgStore.setRecord( 48, individualtextfield3.getString().getBytes(), 0, individualtextfield3
+ .getString().length() );
+ lastMsgStore.setRecord( 49, individualtextfield4.getString().getBytes(), 0, individualtextfield4
+ .getString().length() );
+ lastMsgStore.setRecord( 50, individualtextfield5.getString().getBytes(), 0, individualtextfield5
+ .getString().length() );
+ lastMsgStore.setRecord( 51, individualtextfield6.getString().getBytes(), 0, individualtextfield6
+ .getString().length() );
+ lastMsgStore.setRecord( 52, individualtextfield7.getString().getBytes(), 0, individualtextfield7
+ .getString().length() );
+ lastMsgStore.setRecord( 53, individualtextfield8.getString().getBytes(), 0, individualtextfield8
+ .getString().length() );
+ lastMsgStore.setRecord( 54, individualtextfield9.getString().getBytes(), 0, individualtextfield9
+ .getString().length() );
+ lastMsgStore.setRecord( 55, individualtextfield10.getString().getBytes(), 0, individualtextfield10
+ .getString().length() );
+ // lastMsgStore.setRecord( 56,
+ // individualtextfield11.getString().getBytes(), 0,
+ // individualtextfield11
+ // .getString().length() );
+ lastMsgStore.setRecord( 56, ("" + diagnosed.getSelectedIndex()).getBytes(), 0,
+ ("" + diagnosed.getSelectedIndex()).length() );
+
+ lastMsgStore.setRecord( 57, individualtextfield12.getString().getBytes(), 0, individualtextfield12
+ .getString().length() );
+ lastMsgStore.setRecord( 58, individualtextfield13.getString().getBytes(), 0, individualtextfield13
+ .getString().length() );
+ lastMsgStore.setRecord( 59, individualtextfield14.getString().getBytes(), 0, individualtextfield14
+ .getString().length() );
+ lastMsgStore.setRecord( 60, individualtextfield15.getString().getBytes(), 0, individualtextfield15
+ .getString().length() );
+ lastMsgStore.setRecord( 61, individualtextfield16.getString().getBytes(), 0, individualtextfield16
+ .getString().length() );
+ lastMsgStore.setRecord( 62, individualtextfield17.getString().getBytes(), 0, individualtextfield17
+ .getString().length() );
+ lastMsgStore.setRecord( 63, individualtextfield18.getString().getBytes(), 0, individualtextfield18
+ .getString().length() );
+ lastMsgStore.setRecord( 64, individualtextfield19.getString().getBytes(), 0, individualtextfield19
+ .getString().length() );
+ lastMsgStore.setRecord( 65, individualtextfield20.getString().getBytes(), 0, individualtextfield20
+ .getString().length() );
+ lastMsgStore.setRecord( 66, individualtextfield21.getString().getBytes(), 0, individualtextfield21
+ .getString().length() );
+ lastMsgStore.setRecord( 67, individualtextfield22.getString().getBytes(), 0, individualtextfield22
+ .getString().length() );
+ lastMsgStore.setRecord( 68, individualtextfield23.getString().getBytes(), 0, individualtextfield23
+ .getString().length() );
+ lastMsgStore.setRecord( 69, individualtextfield24.getString().getBytes(), 0, individualtextfield24
+ .getString().length() );
+ lastMsgStore.setRecord( 70, individualtextfield25.getString().getBytes(), 0, individualtextfield25
+ .getString().length() );
+ lastMsgStore.setRecord( 71, individualtextfield26.getString().getBytes(), 0, individualtextfield26
+ .getString().length() );
+ }
+ catch ( RecordStoreException ex )
+ {
+ ex.printStackTrace();
+ }
+ catch ( NullPointerException npe )
+ {
+ npe.printStackTrace();
+ }
+ }
+ } ).start();
+
+ return true;
+
+ }
+
+ private TheScreen settingScreen()
+ {
+ TheScreen screen = new TheScreen( "Settings" );
+ String value = getRecordValue( 1 );
+ this.phone1 = new TextField( "Enter Server Number", value, 10, TextField.NUMERIC );
+ screen.addTextField( this.phone1 );
+
+ String value1 = getRecordValue( 2 );
+ this.phone2 = new TextField( "Phone number 2", value1, 10, TextField.NUMERIC );
+// screen.addTextField( this.phone2 );
+
+ String value2 = getRecordValue( 3 );
+ this.phone3 = new TextField( "Phone number 3", value2, 10, TextField.NUMERIC );
+// screen.addTextField( this.phone3 );
+
+ screen.setCommandListener( this );
+ screen.addCommand( this.cmdSave );
+ screen.addCommand( this.cmdBack );
+ return screen;
+ }
+
+ private TheScreen createDateFieldScreen()
+ {
+ TheScreen screen = new TheScreen( Locale.get( "registerDateTitle" ) );
+ if (editingLastReport)
+ {
+ if (null == this.dateField){
+ // read from RMS
+ String dateTime = getRecordValue( 5 );
+ if (dateTime != ""){
+ String [] dateTimeArray = split( dateTime, "-" );
+ String dyStr = dateTimeArray[2];
+ String mtStr = dateTimeArray[1];
+ String yrStr = dateTimeArray[0];
+ Calendar cal = Calendar.getInstance();
+ int dy = Integer.parseInt(dyStr);
+ int mt = Integer.parseInt(mtStr);
+ int yr = Integer.parseInt(yrStr);
+ cal.set(Calendar.DATE, dy);
+ cal.set(Calendar.MONTH, mt - 1);
+ cal.set(Calendar.YEAR, yr);
+
+ //set Time
+ Date myDate = new Date();
+ myDate = cal.getTime();
+
+ //#style TextField
+ this.dateField = new DateField( Locale.get( "RegisterDate" ), DateField.DATE );
+ this.dateField.setDateFormatPattern( "dd/MM/yyyy" );
+ this.dateField.setDate( myDate );
+ screen.append (dateField);
+ }
+ }
+ }
+ if ( null == this.dateField )
+ {
+ this.dateField = screen.addDateField();
+ this.dateField.setDateFormatPattern( "dd/MM/yyyy" );
+ }
+
+ screen.setCommandListener( this );
+ screen.addCommand( this.cmdBack );
+ screen.addCommand( this.cmdSelect );
+ screen.addCommand( this.cmdNext );
+ return screen;
+ }
+
+ private TheScreen createIndividualForm1()
+ {
+ TheScreen screen = new TheScreen( Locale.get( "1.CRTISIndividualForm" ) );
+
+ // screen.addDateField();
+ if ( null == this.individualtextfield1 )
+ {
+ String value = getRecordValue( 46 );
+ this.individualtextfield1 = new TextField( Locale.get( "3.CRTISIndividualForm" ), value, 7,
+ TextField.NUMERIC );
+ screen.addTextField( this.individualtextfield1 );
+ }
+ if ( null == this.individualtextfield2 )
+ {
+ String value = getRecordValue( 47 );
+ this.individualtextfield2 = new TextField( Locale.get( "4.CRTISIndividualForm" ), value, 5,
+ TextField.NUMERIC );
+ screen.addTextField( this.individualtextfield2 );
+ }
+ if ( null == this.individualtextfield3 )
+ {
+ String value = getRecordValue( 48 );
+ this.individualtextfield3 = new TextField( Locale.get( "5.CRTISIndividualForm" ), value, 5,
+ TextField.NUMERIC );
+ screen.addTextField( this.individualtextfield3 );
+ }
+ if ( null == this.individualtextfield4 )
+ {
+ String value = getRecordValue( 49 );
+ this.individualtextfield4 = new TextField( Locale.get( "6.CRTISIndividualForm" ), value, 5,
+ TextField.NUMERIC );
+ screen.addTextField( this.individualtextfield4 );
+ }
+ if ( null == this.individualtextfield5 )
+ {
+ String value = getRecordValue( 50 );
+ this.individualtextfield5 = new TextField( Locale.get( "7.CRTISIndividualForm" ), value, 6,
+ TextField.NUMERIC );
+ screen.addTextField( this.individualtextfield5 );
+ }
+ if ( null == this.individualtextfield6 )
+ {
+ String value = getRecordValue( 51 );
+ this.individualtextfield6 = new TextField( Locale.get( "8.CRTISIndividualForm" ), value, 30, TextField.ANY );
+ screen.addTextField( this.individualtextfield6 );
+ }
+ if ( null == this.individualtextfield7 )
+ {
+ String value = getRecordValue( 52 );
+ this.individualtextfield7 = new TextField( Locale.get( "9.CRTISIndividualForm" ), value, 30, TextField.ANY );
+ screen.addTextField( this.individualtextfield7 );
+ }
+ if ( null == this.individualtextfield8 )
+ {
+ String value = getRecordValue( 53 );
+ this.individualtextfield8 = new TextField( Locale.get( "10.CRTISIndividualForm" ), value, 10,
+ TextField.NUMERIC );
+ screen.addTextField( this.individualtextfield8 );
+ }
+ if ( null == this.individualtextfield9 )
+ {
+ String value = getRecordValue( 54 );
+ this.individualtextfield9 = new TextField( Locale.get( "11.CRTISIndividualForm" ), value, 1,
+ TextField.NUMERIC );
+ screen.addTextField( this.individualtextfield9 );
+ }
+ if ( null == this.individualtextfield10 )
+ {
+ String value = getRecordValue( 55 );
+ this.individualtextfield10 = new TextField( Locale.get( "12.CRTISIndividualForm" ), value, 1,
+ TextField.NUMERIC );
+ screen.addTextField( this.individualtextfield10 );
+ }
+ // if ( null == this.individualtextfield11 )
+ // {
+ // String value = getRecordValue( 56 );
+ // this.individualtextfield11 = new TextField( Locale.get(
+ // "13.CRTISIndividualForm" ), value, 2,
+ // TextField.NUMERIC );
+ // screen.addTextField( this.individualtextfield11 );
+ // }
+ if ( null == this.diagnosed )
+ {
+ String value = getRecordValue( 56 );
+ int index = 0;
+ try
+ {
+ index = Integer.parseInt( value );
+ }
+ catch ( NumberFormatException nfe )
+ {
+ // do nothing
+ }
+ String[] diagnosed = { Locale.get( "Yes" ), Locale.get( "No" ) };
+ this.diagnosed = screen.addChoiceGroupSingle( Locale.get( "13.CRTISIndividualForm" ), diagnosed, null );
+ this.diagnosed.setSelectedIndex( index, true );
+
+ }
+
+ if ( null == this.individualtextfield12 )
+ {
+ String value = getRecordValue( 57 );
+ this.individualtextfield12 = new TextField( Locale.get( "14.CRTISIndividualForm" ), value, 2,
+ TextField.NUMERIC );
+ screen.addTextField( this.individualtextfield12 );
+ }
+ if ( null == this.individualtextfield13 )
+ {
+ String value = getRecordValue( 58 );
+ this.individualtextfield13 = new TextField( Locale.get( "15.CRTISIndividualForm" ), value, 1,
+ TextField.NUMERIC );
+ screen.addTextField( this.individualtextfield13 );
+ }
+ if ( null == this.individualtextfield14 )
+ {
+ String value = getRecordValue( 59 );
+ this.individualtextfield14 = new TextField( Locale.get( "16.CRTISIndividualForm" ), value, 2,
+ TextField.NUMERIC );
+ screen.addTextField( this.individualtextfield14 );
+ }
+ if ( null == this.individualtextfield15 )
+ {
+ String value = getRecordValue( 60 );
+ this.individualtextfield15 = new TextField( Locale.get( "17.CRTISIndividualForm" ), value, 1,
+ TextField.NUMERIC );
+ screen.addTextField( this.individualtextfield15 );
+ }
+ if ( null == this.individualtextfield16 )
+ {
+ String value = getRecordValue( 61 );
+ this.individualtextfield16 = new TextField( Locale.get( "18.CRTISIndividualForm" ), value, 1,
+ TextField.NUMERIC );
+ screen.addTextField( this.individualtextfield16 );
+ }
+ if ( null == this.individualtextfield17 )
+ {
+ String value = getRecordValue( 62 );
+ this.individualtextfield17 = new TextField( Locale.get( "19.CRTISIndividualForm" ), value, 1,
+ TextField.NUMERIC );
+ screen.addTextField( this.individualtextfield17 );
+ }
+ if ( null == this.individualtextfield18 )
+ {
+ String value = getRecordValue( 63 );
+ this.individualtextfield18 = new TextField( Locale.get( "20.CRTISIndividualForm" ), value, 1,
+ TextField.NUMERIC );
+ screen.addTextField( this.individualtextfield18 );
+ }
+ if ( null == this.individualtextfield19 )
+ {
+ String value = getRecordValue( 64 );
+ this.individualtextfield19 = new TextField( Locale.get( "21.CRTISIndividualForm" ), value, 1,
+ TextField.NUMERIC );
+ screen.addTextField( this.individualtextfield19 );
+ }
+ if ( null == this.individualtextfield20 )
+ {
+ String value = getRecordValue( 65 );
+ this.individualtextfield20 = new TextField( Locale.get( "22.CRTISIndividualForm" ), value, 1,
+ TextField.NUMERIC );
+ screen.addTextField( this.individualtextfield20 );
+ }
+ if ( null == this.individualtextfield21 )
+ {
+ String value = getRecordValue( 66 );
+ this.individualtextfield21 = new TextField( Locale.get( "23.CRTISIndividualForm" ), value, 1,
+ TextField.NUMERIC );
+ screen.addTextField( this.individualtextfield21 );
+ }
+ if ( null == this.individualtextfield22 )
+ {
+ String value = getRecordValue( 67 );
+ this.individualtextfield22 = new TextField( Locale.get( "24.CRTISIndividualForm" ), value, 1,
+ TextField.NUMERIC );
+ screen.addTextField( this.individualtextfield22 );
+ }
+ if ( null == this.individualtextfield23 )
+ {
+ String value = getRecordValue( 68 );
+ this.individualtextfield23 = new TextField( Locale.get( "25.CRTISIndividualForm" ), value, 1,
+ TextField.NUMERIC );
+ screen.addTextField( this.individualtextfield23 );
+ }
+ if ( null == this.individualtextfield24 )
+ {
+ String value = getRecordValue( 69 );
+ this.individualtextfield24 = new TextField( Locale.get( "26.CRTISIndividualForm" ), value, 1,
+ TextField.NUMERIC );
+ screen.addTextField( this.individualtextfield24 );
+ }
+ if ( null == this.individualtextfield25 )
+ {
+ String value = getRecordValue( 70 );
+ this.individualtextfield25 = new TextField( Locale.get( "27.CRTISIndividualForm" ), value, 1,
+ TextField.NUMERIC );
+ screen.addTextField( this.individualtextfield25 );
+ }
+ if ( null == this.individualtextfield26 )
+ {
+ String value = getRecordValue( 71 );
+ this.individualtextfield26 = new TextField( Locale.get( "28.CRTISIndividualForm" ), value, 1,
+ TextField.NUMERIC );
+ this.individualtextfield26.setEnableGameKey( false );
+ screen.addTextField( this.individualtextfield26 );
+ }
+ if ( screen instanceof TheScreen )
+ {
+ ((TheScreen) screen).setItemStateListener( (de.enough.polish.ui.ItemStateListener) this );
+ }
+
+ this.disable_enable();
+ screen.setCommandListener( this );
+ screen.addCommand( this.cmdBack );
+ // screen.addCommand( this.cmdSave );
+ screen.addCommand( this.cmdNext );
+
+ return screen;
+ }
+
+ public void commandAction( Command arg0, Item arg1 )
+ {
+ // TODO Auto-generated method stub
+
+ }
+
+ private String getRegistrationTime(){
+ // Convert the date format
+ Calendar cal = Calendar.getInstance();
+ cal.setTime( dateField.getDate() );
+ String date = cal.get( Calendar.YEAR ) + "-" + (cal.get( Calendar.MONTH ) + 1) + "-"
+ + cal.get( Calendar.DAY_OF_MONTH );
+// System.out.println( date );
+ return date;
+ }
+
+ private String getMyBaseDataRegistration()
+ {
+ String formID = "01";
+
+ String date = getRegistrationTime();
+
+ String myData = formID + "#" + date + "$" + collectRegistrationData();
+
+ // System.out.println(myData);
+
+ return myData;
+ }
+
+ private String collectRegistrationData()
+ {
+ String diagnosed = "Y";
+ if ( 1 == this.diagnosed.getSelectedIndex() )
+ {
+ diagnosed = "N";
+ }
+ return this.individualtextfield1.getString() + ":" + this.individualtextfield2.getString() + ":"
+ + this.individualtextfield3.getString() + ":" + this.individualtextfield4.getString() + ":"
+ + this.individualtextfield5.getString() + ":" + this.individualtextfield6.getString() + ":"
+ + this.individualtextfield7.getString() + ":" + this.individualtextfield8.getString() + ":"
+ + this.individualtextfield9.getString() + ":" + this.individualtextfield10.getString() + ":" + diagnosed
+ + ":" + this.individualtextfield12.getString() + ":" + this.individualtextfield13.getString() + ":"
+ + this.individualtextfield14.getString() + ":" + this.individualtextfield15.getString() + ":"
+ + this.individualtextfield16.getString() + ":" + this.individualtextfield17.getString() + ":"
+ + this.individualtextfield18.getString() + ":" + this.individualtextfield19.getString() + ":"
+ + this.individualtextfield20.getString() + ":" + this.individualtextfield21.getString() + ":"
+ + this.individualtextfield22.getString() + ":" + this.individualtextfield23.getString() + ":"
+ + this.individualtextfield24.getString() + ":" + this.individualtextfield25.getString() + ":"
+ + this.individualtextfield26.getString();
+ }
+
+ private boolean saveTextPhoneNumber()
+ {
+ if (phone1.getString().length() < 10)
+ {
+ Alert myAlert = new Alert( "Warning", "Phone number has 10 digits!", null, AlertType.INFO );
+ myAlert.setTimeout( 2000 );
+ switchDisplayable( myAlert, settingScreen );
+ return false;
+ }
+ else
+ {
+ new Thread( new Runnable()
+ {
+
+ public void run()
+ {
+ try
+ {
+ // lastMsgStore.setRecord(8, msgVersion.getBytes(), 0,
+ // msgVersion.length());
+ // lastMsgStore.setRecord(9, intToByteArray(formID), 0,
+ // intToByteArray(formID).length);
+ // lastMsgStore.setRecord(10, monthStr.getBytes(), 0,
+ // monthStr.length()); // record for month
+ // lastMsgStore.setRecord(7, freqString.getBytes(), 0,
+ // freqString.length()); // record for frequency
+ lastMsgStore.setRecord( 1, phone1.getString().getBytes(), 0, phone1.getString().length() );
+ lastMsgStore.setRecord( 2, phone2.getString().getBytes(), 0, phone2.getString().length() );
+ lastMsgStore.setRecord( 3, phone3.getString().getBytes(), 0, phone3.getString().length() );
+
+ }
+ catch ( RecordStoreException ex )
+ {
+ ex.printStackTrace();
+ }
+ catch ( NullPointerException npe )
+ {
+ npe.printStackTrace();
+ }
+ }
+ } ).start();
+ }
+ return true;
+
+ }
+
+ /**
+ * Init flow
+ */
+ /*
+ * (non-Javadoc)
+ *
+ * @see
+ * de.enough.polish.ui.CommandListener#commandAction(de.enough.polish.ui
+ * .Command, de.enough.polish.ui.Displayable)
+ */
+ public void commandAction( Command cmd, Displayable disp )
+ {
+ if ( cmd == this.cmdExit )
+ {
+ exit();
+ }
+ else if ( disp == loadPage )
+ {
+ if ( this.cmdOK == cmd )
+ {
+ int lastSelected = lastChoice.getSelectedIndex();
+ if ( lastSelected == 0 )
+ {
+ editingLastReport = true;
+ }
+ else
+ {
+ editingLastReport = false;
+ }
+ //switchDisplayable( null, this.screenMainMenu );
+ if ( null == this.dateFieldScreen )
+ this.dateFieldScreen = this.createDateFieldScreen();
+ switchDisplayable( null, this.dateFieldScreen );
+ }
+ }
+ else if ( disp == this.screenMainMenu )
+ {
+ if ( handleCommandMainMenu( cmd ) )
+ {
+ return;
+ }
+ }
+ else if ( disp == this.screen1 )
+ {
+ if ( null == this.screen2 )
+ {
+ this.screen2 = this.createScreen2();
+ Alert myAlert = new Alert( "screen 1", "screen 1!", null, AlertType.INFO );
+ myAlert.setTimeout( 2000 );
+ switchDisplayable( myAlert, this.screen1 );
+ }
+ if ( handleCommandTheScreen( this.screenMainMenu, this.screen2, cmd ) )
+ {
+ return;
+ }
+ }
+ else if ( disp == this.screen2 )
+ {
+ if ( null == this.screen3 )
+ this.screen3 = this.createScreen3();
+ if ( handleCommandTheScreen( this.screen1, this.screen3, cmd ) )
+ {
+ return;
+ }
+ }
+ else if ( disp == this.screen3 )
+ {
+ if ( null == this.screen4 )
+ this.screen4 = this.createScreen4();
+ if ( handleCommandTheScreen( this.screen2, this.screen4, cmd ) )
+ {
+ return;
+ }
+ }
+ else if ( disp == this.screen4 )
+ {
+ if ( null == this.screen5 )
+ this.screen5 = this.createScreen5();
+ if ( handleCommandTheScreen( this.screen3, this.screen5, cmd ) )
+ {
+ return;
+ }
+ }
+ else if ( disp == this.screen5 )
+ {
+ if ( null == this.screen6 )
+ this.screen6 = this.createScreen6();
+ if ( handleCommandTheScreen( this.screen4, this.screen6, cmd ) )
+ {
+ return;
+ }
+ }
+ else if ( disp == this.screen6 )
+ {
+ if ( null == this.screen7 )
+ this.screen7 = this.createScreen7();
+ if ( handleCommandTheScreen( this.screen5, this.screen7, cmd ) )
+ {
+ return;
+ }
+ }
+ else if ( disp == this.screen7 )
+ {
+ if ( null == this.screen8 )
+ this.screen8 = this.createScreen8();
+ if ( handleCommandTheScreen( this.screen6, this.screen8, cmd ) )
+ {
+ return;
+ }
+ }
+ else if ( disp == this.screen8 )
+ {
+ if ( null == this.dataCollectionScreen )
+ this.dataCollectionScreen = this.dataCollectScreen();
+ getEmptyFields();
+ if ( handleCommandTheScreen( this.screen7, this.dataCollectionScreen, cmd ) )
+ {
+ return;
+ }
+ }
+ else if ( disp == this.dataCollectionScreen )
+ {
+ if ( this.cmdSave == cmd )
+ {
+ savePatientInfo();
+ Alert myAlert = new Alert( "Save success", "Your patient's information has been saved!", null,
+ AlertType.INFO );
+ myAlert.setTimeout( 2000 );
+ switchDisplayable( myAlert, this.dataCollectionScreen );
+ return;
+ }
+ else if ( this.cmdBack == cmd )
+ {
+ handleCommandTheScreen( this.registrationScreen, this.dataCollectionScreen, cmd );
+ }
+ else
+ {
+ getSendMsgLabel();
+ sentPage = getSentPage();
+ sendDataViaSMS( getMyBaseDataRegistration() );
+ savePatientInfo();
+ this.screenHistory.show( sentPage );
+ }
+ }
+ else if ( disp == this.registrationScreen )
+ {
+ // if ( null == this.dataCollectionScreen )
+ this.dataCollectionScreen = this.dataCollectScreen();
+ getEmptyFieldsRegistration();
+ if ( handleCommandTheScreen( this.dateFieldScreen, this.dataCollectionScreen, cmd ) )
+ {
+ return;
+ }
+ }
+ else if ( disp == this.settingScreen )
+ {
+ if ( this.cmdSave == cmd )
+ {
+ if (saveTextPhoneNumber()){
+ Alert myAlert = new Alert( "Save success", "saved!", null, AlertType.INFO );
+ myAlert.setTimeout( 2000 );
+ switchDisplayable( myAlert, this.screenMainMenu );
+ }
+ return;
+ }
+ if ( handleCommandTheScreen( this.screenMainMenu, null, cmd ) )
+ {
+ return;
+ }
+ }
+ else if ( disp == this.sentPage )
+ {
+ if ( this.cmdOK == cmd )
+ {
+ this.screenHistory.show( this.screenMainMenu );
+ }
+ }
+ else if ( disp == this.dateFieldScreen )
+ {
+ if ( null == this.registrationScreen )
+ this.registrationScreen = this.createIndividualForm1();
+ if ( handleCommandTheScreen( this.screenMainMenu, this.registrationScreen, cmd ) )
+ {
+ return;
+ }
+ }
+
+ }
+
+ /**
+ * handle command
+ */
+
+ /**
+ * Handles commands for the main menu
+ *
+ * @param cmd the command of the main menu
+ * @return true when a command was handled
+ */
+ private boolean handleCommandMainMenu( Command cmd )
+ {
+ if ( cmd == MainMenuList.SELECT_COMMAND )
+ {
+ int index = this.screenMainMenu.getSelectedIndex();
+ switch ( index )
+ {
+ // case MAIN_ACTION_START:
+ // if ( null == this.screen1 )
+ // this.screen1 = createScreen1();
+ // this.screenHistory.push( screenMainMenu );
+ // this.screenHistory.show( this.screen1 );
+ // break;
+ // case MAIN_ACTION_REGISTRATIOIN:
+ // if( null == this.dateFieldScreen)
+ // this.dateFieldScreen = this.createDateFieldScreen();
+ // this.screenHistory.push( screenMainMenu );
+ // this.screenHistory.show( this.dateFieldScreen );
+ // break;
+ // case MAIN_ACTION_SETTINGS:
+ // if ( null == this.settingScreen )
+ // this.settingScreen = settingScreen();
+ // this.screenHistory.push( screenMainMenu );
+ // this.screenHistory.show( this.settingScreen );
+ // break;
+ // case MAIN_ACTION_EXIT:
+ // exit();
+ // return true;
+ case 0:
+ if ( null == this.dateFieldScreen )
+ this.dateFieldScreen = this.createDateFieldScreen();
+ this.screenHistory.push( screenMainMenu );
+ this.screenHistory.show( this.dateFieldScreen );
+ break;
+ case 1:
+ if ( null == this.settingScreen )
+ this.settingScreen = settingScreen();
+ this.screenHistory.push( screenMainMenu );
+ this.screenHistory.show( this.settingScreen );
+ break;
+ }
+ }
+ else if ( cmd == this.cmdExit )
+ this.exit();
+ else
+ {
+ }
+ return false;
+ }
+
+ private boolean handleCommandTheScreen( Displayable backScr, Displayable nextScr, Command cmd )
+ {
+ if ( cmd == this.cmdBack )
+ {
+ this.screenHistory.show( backScr );
+ return true;
+ }
+ else if ( cmd == this.cmdNext )
+ {
+ this.screenHistory.show( nextScr );
+ return true;
+ }
+ return false;
+ }
+
+ /**
+ * Exits this app
+ */
+ private void exit()
+ {
+ this.midlet.exit();
+ }
+
+ public void switchDisplayable( Alert alert, Displayable nextDisplayable )
+ {
+ Display display = getDisplay();
+ Displayable __currentDisplayable = display.getCurrent();
+ if ( __currentDisplayable != null && nextDisplayable != null )
+ {
+ __previousDisplayables.put( nextDisplayable, __currentDisplayable );
+ }
+ if ( alert == null )
+ {
+ display.setCurrent( nextDisplayable );
+ }
+ else
+ {
+ display.setCurrent( alert, nextDisplayable );
+ }
+ }
+
+ private String[] split( String original, String separator )
+ {
+ Vector nodes = new Vector();
+
+ // Parse nodes into vector
+ int index = original.indexOf( separator );
+ while ( index >= 0 )
+ {
+ nodes.addElement( original.substring( 0, index ) );
+ original = original.substring( index + separator.length() );
+ index = original.indexOf( separator );
+ }
+ // Get the last node
+ nodes.addElement( original );
+
+ // Create splitted string array
+ String[] result = new String[nodes.size()];
+ if ( nodes.size() > 0 )
+ {
+ for ( int loop = 0; loop < nodes.size(); loop++ )
+ {
+ result[loop] = (String) nodes.elementAt( loop );
+ }
+ }
+ return result;
+ }
+
+ private void getEmptyFields()
+ {
+
+ String fullStr = "";
+ int j = 0;
+
+ fullStr = getMyBaseDataAggregate();
+ String[] allContent = split( fullStr, ":" );
+
+ for ( int i = 0; i < allContent.length; i++ )
+ {
+ if ( allContent[i].equals( "" ) )
+ {
+ j++;
+ }
+ }
+
+ try
+ {
+ if ( j != 0 )
+ {
+ Image missingImg = Image.createImage( "/exclamation.png" );
+ imgItem.setImage( missingImg );
+ if ( j == 1 )
+ {
+ imgItem.setLabel( j + " field is not filled. Please verify..." );
+ }
+ else
+ {
+ imgItem.setLabel( j + " fields are not filled. Please verify..." );
+ }
+ imgItem.setLayout( ImageItem.LAYOUT_DEFAULT );
+ }
+ else
+ {
+ Image completeImg = Image.createImage( "/success.png" );
+ imgItem.setImage( completeImg );
+ imgItem.setLabel( "All fields are filled" );
+ imgItem.setLayout( ImageItem.LAYOUT_DEFAULT );
+ }
+ }
+ catch ( IOException ex )
+ {
+ ex.printStackTrace();
+ }
+ }
+
+ private void getEmptyFieldsRegistration()
+ {
+
+ String fullStr = "";
+ int j = 0;
+
+ fullStr = collectRegistrationData();
+ String[] allContent = split( fullStr, ":" );
+
+ for ( int i = 0; i < allContent.length; i++ )
+ {
+ if ( 0 == this.diagnosed.getSelectedIndex() && 11 == i )
+ {
+ continue;
+ }
+ if ( 1 == this.diagnosed.getSelectedIndex()
+ && (12 == i || 13 == i || 14 == i || 15 == i || 16 == i || 17 == i || 18 == i) )
+ {
+ continue;
+ }
+ if ( allContent[i].equals( "" ) )
+ {
+ j++;
+ }
+ }
+
+ try
+ {
+ if ( j != 0 )
+ {
+ //this.dataCollectionScreen.removeCommand( this.cmdSend );
+ Image missingImg = Image.createImage( "/exclamation.png" );
+ imgItem.setImage( missingImg );
+ if ( j == 1 )
+ {
+ imgItem.setLabel( j + " field is not filled. Please verify..." );
+ //imgItem.setLabel("These many fields are not filled please verify" );
+
+ }
+ else
+ {
+ imgItem.setLabel( j + " fields are not filled. Please verify..." );
+ //imgItem.setLabel("These many fields are not filled please verify" );
+
+ }
+ imgItem.setLayout( ImageItem.LAYOUT_DEFAULT );
+ }
+ else
+ {
+ Image completeImg = Image.createImage( "/success.png" );
+ imgItem.setImage( completeImg );
+ imgItem.setLabel( "All fields are filled" );
+ imgItem.setLayout( ImageItem.LAYOUT_DEFAULT );
+ }
+ }
+ catch ( IOException ex )
+ {
+ ex.printStackTrace();
+ }
+ }
+
+
+
+ public StringItem getSendMsgLabel()
+ {
+ if ( sendMsgLabel == null )
+ {
+ sendMsgLabel = new StringItem( "Info:", "Processing...", Item.PLAIN );
+ sendMsgLabel.setLayout( ImageItem.LAYOUT_CENTER );
+ }
+ return sendMsgLabel;
+ }
+
+ private void sendDataViaSMS( final String scForm1Data )
+ {
+ new Thread( new Runnable()
+ {
+
+ public void run()
+ {
+ try
+ {
+ int j = 0;
+ for ( int i = 0; i < 3; i++ )
+ {
+ if ( lastMsgStore.getRecord( i + 1 ) != null )
+ {
+ j++;
+ MessageConnection smsConn = (MessageConnection) Connector.open( "sms://"
+ + new String( lastMsgStore.getRecord( i + 1 ) ) );
+
+ // send TextMessage
+// TextMessage sms = (TextMessage) smsConn.newMessage( MessageConnection.TEXT_MESSAGE );
+// sms.setPayloadText( scForm1Data );
+// smsConn.send( sms );
+// smsConn.close();
+
+ // send BinaryMessage
+ BinaryMessage sms = (BinaryMessage)
+ smsConn.newMessage(MessageConnection.BINARY_MESSAGE);
+ byte[] compressedData = null;
+ compressedData =
+ Compressor.compress(scForm1Data.getBytes("UTF-8"));
+ sms.setPayloadData(compressedData);
+ smsConn.send(sms);
+ smsConn.close();
+ }
+ }
+ if ( j == 0 )
+ {
+ sendMsgLabel
+ .setText( "No number to send SMS... Please go to settings and enter a phone number" );
+ }
+ else
+ {
+
+ sendMsgLabel
+ .setText( "Message Sent Successfully. You can go back and edit or exit the application now." );
+ }
+ }
+ catch ( UnsupportedEncodingException ex )
+ {
+ ex.printStackTrace();
+ }
+ catch ( RecordStoreException rsex )
+ {
+ rsex.printStackTrace();
+ }
+ catch ( IOException ex )
+ {
+ ex.printStackTrace();
+ }
+ catch ( SecurityException ex )
+ {
+ ex.printStackTrace();
+ }
+ catch ( NullPointerException npe )
+ {
+ npe.printStackTrace();
+ }
+ catch ( IllegalArgumentException ex )
+ {
+ ex.printStackTrace();
+ }
+ }
+ } ).start();
+ }
+
+ public Display getDisplay()
+ {
+ return Display.getDisplay( midlet );
+ }
+
+ /*
+ * Author : Thai Chuong This function use to get value from RecordStore
+ * return String : the value of the record int recordNumber: the numberic of
+ * the record in RecordStore
+ */
+ public String getRecordValue( int recordNumber )
+ {
+ String str = "";
+ if ( editingLastReport )
+ {
+ try
+ {
+ byte[] myValue = lastMsgStore.getRecord( recordNumber );
+ // fixed the problem that the textField was defined "numeric"
+ // still accept "-" character
+ if ( myValue != null )
+ {
+ str = new String( myValue );
+ }
+
+ }
+ catch ( RecordStoreException rsex )
+ {
+ rsex.printStackTrace();
+ }
+ }
+ return str;
+ }
+
+ public static final byte[] intToByteArray( int value )
+ {
+ return new byte[] { (byte) (value >>> 24), (byte) (value >>> 16), (byte) (value >>> 8), (byte) value };
+ }
+
+ /**
+ * Returns an initialized instance of question component.
+ *
+ * @return the initialized component instance
+ */
+ public Image getQuestion()
+ {
+ if ( question == null )
+ {
+ try
+ {
+ question = Image.createImage( "/question.png" );
+ }
+ catch ( java.io.IOException e )
+ {
+ e.printStackTrace();
+ }
+ }
+ return question;
+ }
+
+ /**
+ * Returns an initialized instance of loadPage component.
+ *
+ * @return the initialized component instance
+ */
+ public TheScreen getLoadPage()
+ {
+ if ( loadPage == null )
+ {
+ // loadPage = new Form("Edit Last Report", new
+ // Item[]{getQuestionImage(), getQuestionLabel(), getLastChoice()});
+ loadPage = new TheScreen( "Edit Last Report" );
+
+ loadPage.addObject( getQuestion() );
+ loadPage.addObject( getQuestionLabel() );
+ loadPage.addObject( getLastChoice() );
+
+ loadPage.addCommand( this.cmdOK );
+ loadPage.addCommand( this.cmdExit );
+ loadPage.setCommandListener( this );
+ }
+ return loadPage;
+ }
+
+ public TheScreen getSentPage()
+ {
+ if ( sentPage == null )
+ {
+ sentPage = new TheScreen( "Sent" );
+
+ sentPage.addObject( sendMsgLabel );
+
+ sentPage.addCommand( this.cmdOK );
+ sentPage.addCommand( this.cmdExit );
+ sentPage.setCommandListener( this );
+ }
+ if ( sentPage.size() > 1 )
+ {
+ sentPage.delete( sentPage.size() - 1 );
+ }
+ return sentPage;
+ }
+
+ /**
+ * Returns an initialized instance of questionLabel component.
+ *
+ * @return the initialized component instance
+ */
+ public StringItem getQuestionLabel()
+ {
+ if ( questionLabel == null )
+ {
+ questionLabel = new StringItem( "", "Do You Want To Edit Your Last Submitted Report?" );
+ }
+ return questionLabel;
+ }
+
+ /**
+ * Returns an initialized instance of lastChoice component.
+ *
+ * @return the initialized component instance
+ */
+ public ChoiceGroup getLastChoice()
+ {
+ if ( lastChoice == null )
+ {
+ lastChoice = new ChoiceGroup( Locale.get( "lastChoiceLabel" ), Choice.EXCLUSIVE );
+ lastChoice.append( Locale.get( "lastChoiceYes" ), null );
+ lastChoice.append( Locale.get( "lastChoiceNo" ), null );
+ lastChoice.setFitPolicy( Choice.TEXT_WRAP_DEFAULT );
+ lastChoice.setSelectedFlags( new boolean[] { false, false } );
+ }
+ return lastChoice;
+ }
+
+ public void itemStateChanged( Item item )
+ {
+ // TODO Auto-generated method stub
+ if ( item == this.diagnosed )
+ {
+ this.disable_enable();
+ }
+
+ else if (item == this.individualtextfield18)
+ {
+
+ if(this.individualtextfield18.getText().equalsIgnoreCase( "2" ))
+ {
+ //#style DisabledTextField
+ this.individualtextfield19.setStyle();
+ this.individualtextfield19.setString( "" );
+ this.individualtextfield19
+ .setConstraints( (this.individualtextfield19.getConstraints() & TextField.CONSTRAINT_MASK)
+ | TextField.UNEDITABLE );
+
+ }
+ else{
+ //#style TextField
+ this.individualtextfield19.setStyle();
+ this.individualtextfield19
+ .setConstraints( (this.individualtextfield19.getConstraints() & TextField.CONSTRAINT_MASK) );
+ }
+ }
+
+ else if (item == this.individualtextfield9)
+ {
+ String[] list = {"1","2"};
+ if(valueValidation(this.individualtextfield9, list))
+ {
+ this.individualtextfield9.setText( "" );
+ }
+ }
+ else if (item == this.individualtextfield10)
+ {
+ String[] list = {"1","2","3","4"};
+ if(valueValidation(this.individualtextfield10, list))
+ {
+ this.individualtextfield10.setText( "" );
+ }
+ }
+ else if (item == this.individualtextfield12)
+ {
+ String[] list = {"1","2","3","4","5","6","7","8","9","10","11","12"};
+ if(valueValidation(this.individualtextfield12, list))
+ {
+ this.individualtextfield12.setText( "" );
+ }
+ }
+ else if (item == this.individualtextfield13)
+ {
+ String[] list = {"1","2"};
+ if(valueValidation(this.individualtextfield13, list))
+ {
+ this.individualtextfield13.setText( "" );
+ }
+ }
+ else if (item == this.individualtextfield14)
+ {
+ String[] list = {"1","2","3","4","5","6","7","8","9","10","11","12"};
+ if(valueValidation(this.individualtextfield14, list))
+ {
+ this.individualtextfield14.setText( "" );
+ }
+ }
+ else if (item == this.individualtextfield15)
+ {
+ String[] list = {"1","2","3","4"};
+ if(valueValidation(this.individualtextfield15, list))
+ {
+ this.individualtextfield15.setText( "" );
+ }
+ }
+ else if (item == this.individualtextfield16)
+ {
+ String[] list = {"1","2","3","4"};
+ if(valueValidation(this.individualtextfield16, list))
+ {
+ this.individualtextfield16.setText( "" );
+ }
+ }
+ else if (item == this.individualtextfield17)
+ {
+ String[] list = {"1","2"};
+ if(valueValidation(this.individualtextfield17, list))
+ {
+ this.individualtextfield17.setText( "" );
+ }
+ }
+ else if (item == this.individualtextfield18)
+ {
+ String[] list = {"1","2"};
+ if(valueValidation(this.individualtextfield18, list))
+ {
+ this.individualtextfield18.setText( "" );
+ }
+ }
+ else if (item == this.individualtextfield19)
+ {
+ String[] list = {"1","2"};
+ if(valueValidation(this.individualtextfield19, list))
+ {
+ this.individualtextfield19.setText( "" );
+ }
+ }
+ else if (item == this.individualtextfield20)
+ {
+ String[] list = {"1","2","3","4","5","6"};
+ if(valueValidation(this.individualtextfield20, list))
+ {
+ this.individualtextfield20.setText( "" );
+ }
+ }
+ else if (item == this.individualtextfield21)
+ {
+ String[] list = {"1","2","3","4"};
+ if(valueValidation(this.individualtextfield21, list))
+ {
+ this.individualtextfield21.setText( "" );
+ }
+ }
+ else if (item == this.individualtextfield22)
+ {
+ String[] list = {"1","2"};
+ if(valueValidation(this.individualtextfield22, list))
+ {
+ this.individualtextfield22.setText( "" );
+ }
+ }
+ else if (item == this.individualtextfield23)
+ {
+ String[] list = {"1","2","3","4","5","6","7"};
+ if(valueValidation(this.individualtextfield23, list))
+ {
+ this.individualtextfield23.setText( "" );
+ }
+ }
+ else if (item == this.individualtextfield24)
+ {
+ String[] list = {"1","2","3","4","5","6"};
+ if(valueValidation(this.individualtextfield24, list))
+ {
+ this.individualtextfield24.setText( "" );
+ }
+ }
+ else if (item == this.individualtextfield25)
+ {
+ String[] list = {"1","2","3","4","5","6","7","8"};
+ if(valueValidation(this.individualtextfield25, list))
+ {
+ this.individualtextfield25.setText( "" );
+ }
+ }
+ else if (item == this.individualtextfield26)
+ {
+ String[] list = {"1","2","3","4","5","6"};
+ if(valueValidation(this.individualtextfield26, list))
+ {
+ this.individualtextfield26.setText( "" );
+ }
+ }
+ }
+
+ private boolean valueValidation(TextField myTextField, String[] mylist){
+ for (int i = 0; i < mylist.length; i++)
+ {
+ if (myTextField.getText().equalsIgnoreCase( mylist[i] ))
+ return false;
+ }
+ return true;
+
+ }
+
+ private void disable_enable(){
+ if ( 0 == this.diagnosed.getSelectedIndex() )
+ {
+ //#style DisabledTextField
+ this.individualtextfield12.setStyle();
+ this.individualtextfield12.setString( "" );
+ this.individualtextfield12
+ .setConstraints( (this.individualtextfield12.getConstraints() & TextField.CONSTRAINT_MASK)
+ | TextField.UNEDITABLE );
+
+ //#style TextField
+ this.individualtextfield13.setStyle();
+ this.individualtextfield13
+ .setConstraints( (this.individualtextfield13.getConstraints() & TextField.CONSTRAINT_MASK) );
+ //#style TextField
+ this.individualtextfield14.setStyle();
+ this.individualtextfield14
+ .setConstraints( (this.individualtextfield14.getConstraints() & TextField.CONSTRAINT_MASK) );
+ //#style TextField
+ this.individualtextfield15.setStyle();
+ this.individualtextfield15
+ .setConstraints( (this.individualtextfield15.getConstraints() & TextField.CONSTRAINT_MASK) );
+ //#style TextField
+ this.individualtextfield16.setStyle();
+ this.individualtextfield16
+ .setConstraints( (this.individualtextfield16.getConstraints() & TextField.CONSTRAINT_MASK) );
+ //#style TextField
+ this.individualtextfield17.setStyle();
+ this.individualtextfield17
+ .setConstraints( (this.individualtextfield17.getConstraints() & TextField.CONSTRAINT_MASK) );
+ //#style TextField
+ this.individualtextfield18.setStyle();
+ this.individualtextfield18
+ .setConstraints( (this.individualtextfield18.getConstraints() & TextField.CONSTRAINT_MASK) );
+ //#style TextField
+ this.individualtextfield19.setStyle();
+ this.individualtextfield19
+ .setConstraints( (this.individualtextfield19.getConstraints() & TextField.CONSTRAINT_MASK) );
+
+ }
+ if ( 1 == this.diagnosed.getSelectedIndex() )
+ {
+ //#style TextField
+ this.individualtextfield12.setStyle();
+ this.individualtextfield12
+ .setConstraints( (this.individualtextfield12.getConstraints() & TextField.CONSTRAINT_MASK) );
+
+ // disable textfield
+ //#style DisabledTextField
+ this.individualtextfield13.setStyle();
+ this.individualtextfield13.setString( "" );
+ this.individualtextfield13
+ .setConstraints( (this.individualtextfield13.getConstraints() & TextField.CONSTRAINT_MASK)
+ | TextField.UNEDITABLE );
+ //#style DisabledTextField
+ this.individualtextfield14.setStyle();
+ this.individualtextfield14.setString( "" );
+ this.individualtextfield14
+ .setConstraints( (this.individualtextfield14.getConstraints() & TextField.CONSTRAINT_MASK)
+ | TextField.UNEDITABLE );
+ //#style DisabledTextField
+ this.individualtextfield15.setStyle();
+ this.individualtextfield15.setString( "" );
+ this.individualtextfield15
+ .setConstraints( (this.individualtextfield15.getConstraints() & TextField.CONSTRAINT_MASK)
+ | TextField.UNEDITABLE );
+ //#style DisabledTextField
+ this.individualtextfield16.setStyle();
+ this.individualtextfield16.setString( "" );
+ this.individualtextfield16
+ .setConstraints( (this.individualtextfield16.getConstraints() & TextField.CONSTRAINT_MASK)
+ | TextField.UNEDITABLE );
+ //#style DisabledTextField
+ this.individualtextfield17.setStyle();
+ this.individualtextfield17.setString( "" );
+ this.individualtextfield17
+ .setConstraints( (this.individualtextfield17.getConstraints() & TextField.CONSTRAINT_MASK)
+ | TextField.UNEDITABLE );
+ //#style DisabledTextField
+ this.individualtextfield18.setStyle();
+ this.individualtextfield18.setString( "" );
+ this.individualtextfield18
+ .setConstraints( (this.individualtextfield18.getConstraints() & TextField.CONSTRAINT_MASK)
+ | TextField.UNEDITABLE );
+ //#style DisabledTextField
+ this.individualtextfield19.setStyle();
+ this.individualtextfield19.setString( "" );
+ this.individualtextfield19
+ .setConstraints( (this.individualtextfield19.getConstraints() & TextField.CONSTRAINT_MASK)
+ | TextField.UNEDITABLE );
+ }
+ }
+}
=== added directory 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/src/de/enough/polish/app/model'
=== added file 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/src/de/enough/polish/app/model/Configuration.java'
--- local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/src/de/enough/polish/app/model/Configuration.java 1970-01-01 00:00:00 +0000
+++ local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/src/de/enough/polish/app/model/Configuration.java 2012-10-17 10:53:47 +0000
@@ -0,0 +1,129 @@
+/*
+ * Created on Dec 15, 2010 at 4:15:44 PM.
+ *
+ * Copyright (c) 2010 Robert Virkus / Enough Software
+ *
+ * This file is part of J2ME Polish.
+ *
+ * J2ME Polish is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * J2ME Polish is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with J2ME Polish; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ *
+ * Commercial licenses are also available, please
+ * refer to the accompanying LICENSE.txt or visit
+ * http://www.j2mepolish.org for details.
+ */
+package de.enough.polish.app.model;
+
+import java.io.DataInputStream;
+import java.io.DataOutputStream;
+import java.io.IOException;
+
+import de.enough.polish.io.Externalizable;
+
+/**
+ * <p>Contains the application configuration</p>
+ *
+ * <p>Copyright Enough Software 2010</p>
+ * @author Robert Virkus, j2mepolish@xxxxxxxxx
+ */
+public class Configuration implements Externalizable {
+
+ /**
+ * The key under which a configuration is typically stored.
+ */
+ public final static String KEY = "_cfg";
+ /**
+ * Version for serialization.
+ */
+ private final static int VERSION = 100;
+
+ /**
+ * Dirty flag, indicates if the configuration has been changed since the last reset or load.
+ */
+ private boolean isDirty;
+
+ /**
+ * Just an example for a field.
+ */
+ private String userName;
+
+ /**
+ * Creates a new standard configuration.
+ */
+ public Configuration() {
+ //TODO specify default values
+ }
+
+ /**
+ * Checks if the configuration has been changed since the creation or the last reset.
+ * @return true when the configuration has been changed.
+ * @see #resetDirtyFlag()
+ */
+ public boolean isDirty() {
+ return this.isDirty;
+ }
+
+ /**
+ * Resets the dirty flag.
+ * @see #isDirty()
+ */
+ public void resetDirtyFlag() {
+ this.isDirty = false;
+ }
+
+ /**
+ * Example: user name retrieval
+ * @return the user name
+ */
+ public String getUserName() {
+ return this.userName;
+ }
+
+ /**
+ * Example: sets the user name
+ * @param name the user name
+ */
+ public void setUserName( String name ) {
+ this.isDirty = true;
+ this.userName = name;
+ }
+
+ /* (non-Javadoc)
+ * @see de.enough.polish.io.Externalizable#write(java.io.DataOutputStream)
+ */
+ public void write(DataOutputStream out) throws IOException {
+ out.writeInt( VERSION );
+ boolean notNull = (this.userName != null);
+ out.writeBoolean( notNull );
+ if (notNull) {
+ out.writeUTF(this.userName);
+ }
+ }
+
+ /* (non-Javadoc)
+ * @see de.enough.polish.io.Externalizable#read(java.io.DataInputStream)
+ */
+ public void read(DataInputStream in) throws IOException {
+ int version = in.readInt();
+ if (version > VERSION) {
+ throw new IOException("for invalid version " + version);
+ }
+ boolean notNull = in.readBoolean();
+ if (notNull) {
+ this.userName = in.readUTF();
+ }
+ }
+
+
+}
=== added directory 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/src/de/enough/polish/app/view'
=== added file 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/src/de/enough/polish/app/view/MainMenuList.java'
--- local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/src/de/enough/polish/app/view/MainMenuList.java 1970-01-01 00:00:00 +0000
+++ local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/src/de/enough/polish/app/view/MainMenuList.java 2012-10-17 10:53:47 +0000
@@ -0,0 +1,66 @@
+/*
+ * Created on Dec 15, 2010 at 6:49:51 PM.
+ *
+ * Copyright (c) 2010 Robert Virkus / Enough Software
+ *
+ * This file is part of J2ME Polish.
+ *
+ * J2ME Polish is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * J2ME Polish is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with J2ME Polish; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ *
+ * Commercial licenses are also available, please
+ * refer to the accompanying LICENSE.txt or visit
+ * http://www.j2mepolish.org for details.
+ */
+package de.enough.polish.app.view;
+
+import javax.microedition.lcdui.Image;
+
+import de.enough.polish.ui.List;
+import de.enough.polish.util.Locale;
+
+/**
+ * <p>The main menu of the application.</p>
+ * <p>Often you can use List directly instead of using a specialized class.</p>
+ *
+ * <p>Copyright Enough Software 2010</p>
+ * @author Robert Virkus, j2mepolish@xxxxxxxxx
+ */
+public class MainMenuList extends List {
+
+ /**
+ * Creates a new main menu screen.
+ */
+ public MainMenuList() {
+ //#style screenMainMenu
+ super( Locale.get("main.title"), List.IMPLICIT);
+ }
+
+ /**
+ * Adds a main menu entry to this screen.
+ * @param name the name of the entry
+ */
+ public void addEntry( String name, String image ) {
+ Image icon = null;
+ try {
+ icon = Image.createImage(image);
+ } catch (Exception e) {
+ //#debug error
+ System.out.println("Unable to load splash image " + image + e);
+ }
+
+ //#style itemMainMenuEntry
+ append(name, icon);
+ }
+}
=== added file 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/src/de/enough/polish/app/view/TextField.java'
--- local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/src/de/enough/polish/app/view/TextField.java 1970-01-01 00:00:00 +0000
+++ local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/src/de/enough/polish/app/view/TextField.java 2012-10-17 10:53:47 +0000
@@ -0,0 +1,43 @@
+package de.enough.polish.app.view;
+
+import de.enough.polish.ui.Canvas;
+
+public class TextField
+ extends de.enough.polish.ui.TextField
+{
+ private boolean enableGameKey = true;
+
+ public boolean isEnableGameKey()
+ {
+ return enableGameKey;
+ }
+
+ public void setEnableGameKey( boolean enableGameKey )
+ {
+ this.enableGameKey = enableGameKey;
+ }
+
+ public TextField( String label, String text, int maxSize, int constraints )
+ {
+ super( label, text, maxSize, constraints );
+ // TODO Auto-generated constructor stub
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see de.enough.polish.ui.Item#handleKeyPressed(int, int)
+ */
+ protected boolean handleKeyPressed( int keyCode, int gameAction )
+ {
+ if(enableGameKey)
+ return super.handleKeyPressed( keyCode, gameAction );
+ else{
+ if ((gameAction == Canvas.DOWN && keyCode != Canvas.KEY_NUM8)){
+ return true;
+ }
+ return super.handleKeyPressed( keyCode, gameAction );
+ }
+ }
+
+}
=== added file 'local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/src/de/enough/polish/app/view/TheScreen.java'
--- local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/src/de/enough/polish/app/view/TheScreen.java 1970-01-01 00:00:00 +0000
+++ local/in/dhis-mobile/J2ME/PUNJAB/Cancer MIS/src/de/enough/polish/app/view/TheScreen.java 2012-10-17 10:53:47 +0000
@@ -0,0 +1,102 @@
+package de.enough.polish.app.view;
+
+import java.util.Date;
+
+import javax.microedition.lcdui.Image;
+
+import de.enough.polish.ui.ChoiceGroup;
+import de.enough.polish.ui.DateField;
+import de.enough.polish.ui.FramedForm;
+import de.enough.polish.ui.Graphics;
+import de.enough.polish.ui.Item;
+import de.enough.polish.ui.StringItem;
+import de.enough.polish.util.Locale;
+
+public class TheScreen
+ extends FramedForm
+{
+ public TheScreen( String title )
+ {
+
+ // #style formScreen
+ super( title );
+
+ // TODO Auto-generated constructor stub
+
+ }
+
+ public TextField addtextField( String myStr )
+ {
+ TextField myTextField = new TextField( myStr, null, 10, TextField.NUMERIC );
+ //#style TextField
+ append( myTextField );
+ return myTextField;
+ }
+
+ public ChoiceGroup addChoiceGroup( String label, String[] stringElements, Image[] imageElements )
+ {
+ //#style TextField
+ ChoiceGroup myChoiceGroup = new ChoiceGroup( label, ChoiceGroup.POPUP, stringElements, imageElements );
+ append( myChoiceGroup );
+ return myChoiceGroup;
+ }
+
+ public ChoiceGroup addChoiceGroupSingle( String label, String[] stringElements, Image[] imageElements )
+ {
+ // #style TextField
+ ChoiceGroup myChoiceGroup = new ChoiceGroup( label, ChoiceGroup.EXCLUSIVE, stringElements, imageElements );
+ append( myChoiceGroup );
+ return myChoiceGroup;
+ }
+
+ public ChoiceGroup addChoiceGroupMultiple( String label, String[] stringElements, Image[] imageElements )
+ {
+ // #style TextField
+ ChoiceGroup myChoiceGroup = new ChoiceGroup( label, ChoiceGroup.MULTIPLE, stringElements, imageElements );
+ append( myChoiceGroup );
+ return myChoiceGroup;
+ }
+
+ public DateField addDateField ()
+ {
+ //#style TextField
+ DateField myDateField = new DateField( Locale.get( "RegisterDate" ), DateField.DATE );
+ myDateField.setDateFormatPattern( "dd/MM/yyyy" );
+
+ Date myDate = new Date();
+
+ myDateField.setDate( myDate );
+ append (myDateField);
+ return myDateField;
+ }
+
+ public void addObject( Object myObject )
+ {
+ if ( myObject instanceof Item )
+ append( (Item) myObject );
+ else if ( myObject instanceof Image )
+ append( (Image) myObject );
+ else if ( myObject instanceof String )
+ append( (String) myObject );
+ else if ( myObject instanceof StringItem )
+ append( (StringItem) myObject );
+ else if ( myObject instanceof ChoiceGroup )
+ append( (ChoiceGroup) myObject );
+ else
+ {
+ }
+ }
+
+ public void addTextField( TextField myTextField )
+ {
+ append(myTextField );
+ }
+
+ public void addLastTextField( TextField myTextField )
+ {
+
+ append( Graphics.BOTTOM, myTextField);
+ }
+
+
+}