Commit cdffe7ac authored by ysawant's avatar ysawant

*Added updated SRC,SQL ,metadata and SRD of Grade Site OT menu [12-11-19]

GradeSiteOTIC.java
grade_site_ot11.xml
grade_site_ot21.xml
d_grade_site_ot_brow.srd
d_grade_site_ot_edit.srd
w_grade_site_ot_v1.sql


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@211761 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 447de3dc
------------------------------------------------------------------Yashwant START [07/11/2019] ---------------------------------
-----1) Icon missing and content not configured
update OBJ_FORMS set DISP_METADATA =
'<html>
<span style="white-space: normal !important; word-break: break-word; "><b>{grade_descr} ({grade_code})</b>
<br/> Limit Hours :<b>({limit_hrs})</b> , Limit Type :<b> {limit_type}</b> , Limit Hours :<b>({limit_hrs})</b> , Site Code :<b>({site_code})</b>
</span>
</html>' where WIN_NAME= 'w_grade_site_ot';
update TRANSETUP set THUMB_ALT_COL = 'descr', THUMB_IMAGE_COL= 'grade_code', THUMB_OBJ = 'GradeImages' , REF_SER = 'GSOT', SITE_ACC_COL = null where TRAN_WINDOW = 'w_grade_site_ot';
update OBJ_FORMS set THUMB_ALT_COL = 'descr', THUMB_IMAGE_COL= 'grade_code', THUMB_OBJ = 'GradeImages' where WIN_NAME = 'w_grade_site_ot';
update ITM2MENU set ICON_PATH='GradeSiteOT.png',CLOSE_ICON='GradeSiteOTwht.png' where WIN_NAME='w_grade_site_ot';
-----2) Heading should be 'Grade site OT' instead of 'Site oth':
update OBJ_FORMS set TITLE='Grade Site OT' where WIN_NAME='w_grade_site_ot';
-----3) No images for actions and Export to Excel, Audit Trail NOT Working:
update OBJ_ACTIONS set IMAGE = 'ibase/resource/objaction/add.svg',DISPLAY_MODE = '0' where OBJ_NAME = 'grade_site_ot' and TITLE = 'Add';
update OBJ_ACTIONS set IMAGE = 'ibase/resource/objaction/edit.svg',DISPLAY_MODE = '0' where OBJ_NAME = 'grade_site_ot' and TITLE = 'Edit';
update OBJ_ACTIONS set IMAGE = 'ibase/resource/objaction/Audit-trail.svg',RIGHTS_CHAR = 'X',SHOW_IN_PANEL = '1' ,DISPLAY_MODE = '1' where OBJ_NAME = 'grade_site_ot' and TITLE = 'View Audit';
update OBJ_ACTIONS set IMAGE = 'ibase/resource/objaction/exprtExl.svg', SERVICE_CODE = 'a',INTERACTIVE = 'a', RIGHTS_CHAR = 'B', TITLE = 'Export2XLS',SERVICE_HANDLER = null,PLACEMENT = null, ACTION_TYPE = 'S',DISPLAY_MODE = '1' where OBJ_NAME = 'grade_site_ot' and DESCRIPTION = 'Export Excel';
------------------------------------------------------------------Yashwant END [07/11/2019] ---------------------------------
......@@ -64,15 +64,23 @@
</table_column>
<table_column>
<type precision="3">decimal</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>limit_hrs</name>
<dbname>grade_site_ot.limit_hrs</dbname>
<initial>0</initial>
</table_column>
<table_column>
<type size="1">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>limit_type</name>
<dbname>grade_site_ot.limit_type</dbname>
<initial>M</initial>
<values>
<item display="Monthly" data="M"/>
<item display="Quaterly" data="Q"/>
</values>
</table_column>
<table_column>
<type size="5">char</type>
......@@ -84,27 +92,32 @@
</table_column>
<table_column>
<type>datetime</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>chg_date</name>
<dbname>grade_site_ot.chg_date</dbname>
</table_column>
<table_column>
<type size="10">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>chg_user</name>
<dbname>grade_site_ot.chg_user</dbname>
</table_column>
<table_column>
<type size="15">char</type>
<type size="300">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>chg_term</name>
<dbname>grade_site_ot.chg_term</dbname>
</table_column>
<table_column>
<type precision="3">decimal</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<name>min_minutes</name>
<dbname>grade_site_ot.min_minutes</dbname>
<initial>0</initial>
</table_column>
<retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;grade_site_ot&quot; ) TABLE(NAME=&quot;grade&quot; ) COLUMN(NAME=&quot;grade_site_ot.grade_code&quot;) COLUMN(NAME=&quot;grade.descr&quot;) COLUMN(NAME=&quot;grade_site_ot.limit_hrs&quot;) COLUMN(NAME=&quot;grade_site_ot.limit_type&quot;) COLUMN(NAME=&quot;grade_site_ot.site_code&quot;) COLUMN(NAME=&quot;grade_site_ot.chg_date&quot;) COLUMN(NAME=&quot;grade_site_ot.chg_user&quot;) COLUMN(NAME=&quot;grade_site_ot.chg_term&quot;) COLUMN(NAME=&quot;grade_site_ot.min_minutes&quot;) JOIN (LEFT=&quot;grade_site_ot.grade_code&quot; OP =&quot;=&quot;RIGHT=&quot;grade.grade_code&quot; )WHERE( EXP1 =&quot;grade_site_ot.site_code&quot; OP =&quot;=&quot; EXP2 =&quot;:site_code&quot; ) ) ARG(NAME = &quot;site_code&quot; TYPE = string) </retrieve>
<update>GRADE_SITE_OT</update>
......@@ -230,7 +243,7 @@
<TextObject>
<band>Header</band>
<alignment>2</alignment>
<text>Site</text>
<text>Site Code</text>
<border>0</border>
<color>0</color>
<x>774</x>
......@@ -495,11 +508,10 @@
</html>
<name>limit_type</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>1</limit>
<case>upper</case>
<focusrectangle>no</focusrectangle>
<autoselect>no</autoselect>
<EditStyle style="ddlb">
<limit>0</limit>
<allowedit>no</allowedit>
<case>any</case>
<imemode>0</imemode>
</EditStyle>
<font>
......
......@@ -51,14 +51,6 @@
<name>grade_code</name>
<dbname>grade_site_ot.grade_code</dbname>
</table_column>
<table_column>
<type size="5">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<key>yes</key>
<name>site_code</name>
<dbname>grade_site_ot.site_code</dbname>
</table_column>
<table_column>
<type precision="3">decimal</type>
<update>yes</update>
......@@ -135,7 +127,15 @@
<name>chg_term</name>
<dbname>grade_site_ot.chg_term</dbname>
</table_column>
<retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;grade_site_ot&quot; ) TABLE(NAME=&quot;grade&quot; ) COLUMN(NAME=&quot;grade_site_ot.grade_code&quot;) COLUMN(NAME=&quot;grade_site_ot.site_code&quot;) COLUMN(NAME=&quot;grade_site_ot.limit_hrs&quot;) COLUMN(NAME=&quot;grade_site_ot.add_date&quot;) COLUMN(NAME=&quot;grade_site_ot.add_user&quot;) COLUMN(NAME=&quot;grade_site_ot.add_term&quot;) COLUMN(NAME=&quot;grade.descr&quot;) COLUMN(NAME=&quot;grade_site_ot.limit_type&quot;) COLUMN(NAME=&quot;grade_site_ot.min_minutes&quot;) COLUMN(NAME=&quot;grade_site_ot.chg_date&quot;) COLUMN(NAME=&quot;grade_site_ot.chg_user&quot;) COLUMN(NAME=&quot;grade_site_ot.chg_term&quot;) JOIN (LEFT=&quot;grade_site_ot.grade_code&quot; OP =&quot;=&quot;RIGHT=&quot;grade.grade_code&quot; )WHERE( EXP1 =&quot;grade_site_ot.grade_code&quot; OP =&quot;=&quot; EXP2 =&quot;:garde_code&quot; LOGIC =&quot;and&quot; ) WHERE( EXP1 =&quot;grade_site_ot.site_code&quot; OP =&quot;=&quot; EXP2 =&quot;:site_code&quot; ) ) ARG(NAME = &quot;site_code&quot; TYPE = string) ARG(NAME = &quot;garde_code&quot; TYPE = string) </retrieve>
<table_column>
<type size="5">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<key>yes</key>
<name>site_code</name>
<dbname>grade_site_ot.site_code</dbname>
</table_column>
<retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;grade_site_ot&quot; ) TABLE(NAME=&quot;grade&quot; ) COLUMN(NAME=&quot;grade_site_ot.grade_code&quot;) COLUMN(NAME=&quot;grade_site_ot.limit_hrs&quot;) COLUMN(NAME=&quot;grade_site_ot.add_date&quot;) COLUMN(NAME=&quot;grade_site_ot.add_user&quot;) COLUMN(NAME=&quot;grade_site_ot.add_term&quot;) COLUMN(NAME=&quot;grade.descr&quot;) COLUMN(NAME=&quot;grade_site_ot.limit_type&quot;) COLUMN(NAME=&quot;grade_site_ot.min_minutes&quot;) COLUMN(NAME=&quot;grade_site_ot.chg_date&quot;) COLUMN(NAME=&quot;grade_site_ot.chg_user&quot;) COLUMN(NAME=&quot;grade_site_ot.chg_term&quot;) COLUMN(NAME=&quot;grade_site_ot.site_code&quot;) JOIN (LEFT=&quot;grade_site_ot.grade_code&quot; OP =&quot;=&quot;RIGHT=&quot;grade.grade_code&quot; )WHERE( EXP1 =&quot;grade_site_ot.grade_code&quot; OP =&quot;=&quot; EXP2 =&quot;:garde_code&quot; LOGIC =&quot;and&quot; ) WHERE( EXP1 =&quot;grade_site_ot.site_code&quot; OP =&quot;=&quot; EXP2 =&quot;:site_code&quot; ) ) ARG(NAME = &quot;site_code&quot; TYPE = string) ARG(NAME = &quot;garde_code&quot; TYPE = string) </retrieve>
<update>GRADE_SITE_OT</update>
<updatewhere>0</updatewhere>
<updatekeyinplace>no</updatekeyinplace>
......@@ -153,9 +153,9 @@
<text>Basic</text>
<border>2</border>
<color>33554432</color>
<x>4</x>
<y>4</y>
<height>167</height>
<x>40</x>
<y>24</y>
<height>127</height>
<width>442</width>
<name>gb_1</name>
<visible>1</visible>
......@@ -177,10 +177,10 @@
<text>Other</text>
<border>2</border>
<color>33554432</color>
<x>8</x>
<y>190</y>
<height>100</height>
<width>437</width>
<x>39</x>
<y>166</y>
<height>91</height>
<width>443</width>
<name>gb_2</name>
<visible>1</visible>
<font>
......@@ -196,6 +196,34 @@
<color>134217739</color>
</background>
</GroupBox>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Grade Code :</text>
<border>0</border>
<color>0</color>
<x>73</x>
<y>47</y>
<height>16</height>
<width>99</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>grade_code_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>1</id>
......@@ -203,10 +231,10 @@
<tabsequence>10</tabsequence>
<border>5</border>
<color>0</color>
<x>131</x>
<y>38</y>
<x>177</x>
<y>47</y>
<height>16</height>
<width>44</width>
<width>83</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
......@@ -237,25 +265,25 @@
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>8</id>
<id>6</id>
<alignment>0</alignment>
<tabsequence>30</tabsequence>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>131</x>
<y>84</y>
<color>255</color>
<x>266</x>
<y>47</y>
<height>16</height>
<width>82</width>
<width>76</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>limit_type</name>
<name>grade_descr</name>
<visible>1</visible>
<EditStyle style="ddlb">
<limit>1</limit>
<allowedit>no</allowedit>
<case>upper</case>
<EditStyle style="edit">
<limit>40</limit>
<case>any</case>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
......@@ -268,33 +296,24 @@
</font>
<background>
<mode>2</mode>
<color>1090519039</color>
<color>79741120</color>
</background>
</ColumnObject>
<ColumnObject>
<TextObject>
<band>Detail</band>
<id>9</id>
<alignment>1</alignment>
<tabsequence>40</tabsequence>
<border>5</border>
<color>33554432</color>
<x>131</x>
<y>107</y>
<text>Limit Hours :</text>
<border>0</border>
<color>0</color>
<x>73</x>
<y>70</y>
<height>16</height>
<width>82</width>
<format>###,##0</format>
<width>99</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>min_minutes</name>
<name>limit_hrs_t</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>7</limit>
<case>any</case>
<format>###,##0</format>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
......@@ -304,19 +323,19 @@
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>16777215</color>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>3</id>
<id>2</id>
<alignment>1</alignment>
<tabsequence>20</tabsequence>
<border>5</border>
<color>0</color>
<x>131</x>
<y>61</y>
<x>177</x>
<y>70</y>
<height>16</height>
<width>82</width>
<format>###,##0.00</format>
......@@ -345,49 +364,29 @@
<color>1090519039</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Grade Code :</text>
<border>0</border>
<color>0</color>
<x>27</x>
<y>38</y>
<height>16</height>
<width>99</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>grade_code_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
</background>
</TextObject>
<TextObject>
<ColumnObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Limit Hours :</text>
<border>0</border>
<id>7</id>
<alignment>0</alignment>
<tabsequence>30</tabsequence>
<border>5</border>
<color>0</color>
<x>27</x>
<y>61</y>
<x>177</x>
<y>93</y>
<height>16</height>
<width>99</width>
<width>82</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>limit_hrs_t</name>
<name>limit_type</name>
<visible>1</visible>
<EditStyle style="ddlb">
<limit>1</limit>
<allowedit>no</allowedit>
<case>upper</case>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
......@@ -397,24 +396,24 @@
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
<mode>2</mode>
<color>1090519039</color>
</background>
</TextObject>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Limit Type :</text>
<text>Minimum Minutes :</text>
<border>0</border>
<color>0</color>
<x>27</x>
<y>84</y>
<color>33554432</color>
<x>56</x>
<y>116</y>
<height>16</height>
<width>99</width>
<width>116</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>limit_type_t</name>
<name>min_minutes_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
......@@ -425,25 +424,34 @@
<charset>0</charset>
</font>
<background>
<mode>1</mode>
<color>536870912</color>
<mode>2</mode>
<color>79741120</color>
</background>
</TextObject>
<TextObject>
<ColumnObject>
<band>Detail</band>
<id>8</id>
<alignment>1</alignment>
<text>Minimum Minutes :</text>
<border>0</border>
<tabsequence>40</tabsequence>
<border>5</border>
<color>33554432</color>
<x>10</x>
<y>107</y>
<x>177</x>
<y>116</y>
<height>16</height>
<width>116</width>
<width>82</width>
<format>###,##0</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>min_minutes_t</name>
<name>min_minutes</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>7</limit>
<case>any</case>
<format>###,##0</format>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
......@@ -454,26 +462,26 @@
</font>
<background>
<mode>2</mode>
<color>79741120</color>
<color>16777215</color>
</background>
</TextObject>
</ColumnObject>
<ColumnObject>
<band>Detail</band>
<id>11</id>
<id>12</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<tabsequence>50</tabsequence>
<border>5</border>
<color>0</color>
<x>323</x>
<y>217</y>
<color>255</color>
<x>348</x>
<y>47</y>
<height>16</height>
<width>86</width>
<width>82</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_user</name>
<visible>1</visible>
<name>site_code</name>
<visible>0</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
......@@ -493,29 +501,21 @@
<color>1090519039</color>
</background>
</ColumnObject>
<ColumnObject>
<TextObject>
<band>Detail</band>
<id>12</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<alignment>1</alignment>
<text>Limit Type :</text>
<border>0</border>
<color>0</color>
<x>134</x>
<y>241</y>
<x>73</x>
<y>93</y>
<height>16</height>
<width>87</width>
<format>[general]</format>
<width>99</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_term</name>
<name>limit_type_t</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
......@@ -525,24 +525,24 @@
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>1090519039</color>
<mode>1</mode>
<color>536870912</color>
</background>
</ColumnObject>
</TextObject>
<TextObject>
<band>Detail</band>
<alignment>0</alignment>
<text>Change Term :</text>
<alignment>1</alignment>
<text>Change Date :</text>
<border>0</border>
<color>33554432</color>
<x>52</x>
<y>241</y>
<x>78</x>
<y>196</y>
<height>16</height>
<width>77</width>
<width>82</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_term_t</name>
<name>chg_date_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
......@@ -557,21 +557,29 @@
<color>134217739</color>
</background>
</TextObject>
<TextObject>
<ColumnObject>
<band>Detail</band>
<id>9</id>
<alignment>0</alignment>
<text>Change User :</text>
<border>0</border>
<color>33554432</color>
<x>244</x>
<y>217</y>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>165</x>
<y>196</y>
<height>16</height>
<width>75</width>
<width>85</width>
<format>[shortdate] [time]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_user_t</name>
<name>chg_date</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<autoselect>yes</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Times New Roman</face>
<height>-10</height>
......@@ -582,23 +590,23 @@
</font>
<background>
<mode>2</mode>
<color>134217739</color>
<color>1090519039</color>
</background>
</TextObject>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>0</alignment>
<text>Change Date :</text>
<alignment>1</alignment>
<text>Change Term :</text>
<border>0</border>
<color>33554432</color>
<x>54</x>
<y>217</y>
<x>78</x>
<y>220</y>
<height>16</height>
<width>75</width>
<width>82</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_date_t</name>
<name>chg_term_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
......@@ -615,20 +623,20 @@
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>10</id>
<id>11</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>0</color>
<x>134</x>
<y>217</y>
<x>165</x>
<y>220</y>
<height>16</height>
<width>85</width>
<format>[shortdate] [time]</format>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_date</name>
<name>chg_term</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>0</limit>
......@@ -649,25 +657,53 @@
<color>1090519039</color>
</background>
</ColumnObject>
<TextObject>
<band>Detail</band>
<alignment>1</alignment>
<text>Change User :</text>
<border>0</border>
<color>33554432</color>
<x>276</x>
<y>196</y>
<height>16</height>
<width>82</width>
<html>
<valueishtml>0</valueishtml>
</html>
<name>chg_user_t</name>
<visible>1</visible>
<font>
<face>Times New Roman</face>
<height>-10</height>
<weight>400</weight>
<family>1</family>
<pitch>2</pitch>
<charset>0</charset>
</font>
<background>
<mode>2</mode>
<color>134217739</color>
</background>
</TextObject>
<ColumnObject>
<band>Detail</band>
<id>7</id>
<id>10</id>
<alignment>0</alignment>
<tabsequence>32766</tabsequence>
<border>5</border>
<color>255</color>
<x>181</x>
<y>38</y>
<color>0</color>
<x>363</x>
<y>196</y>
<height>16</height>
<width>218</width>
<width>85</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>grade_descr</name>
<name>chg_user</name>
<visible>1</visible>
<EditStyle style="edit">
<limit>40</limit>
<limit>0</limit>
<case>any</case>
<autoselect>yes</autoselect>
<imemode>0</imemode>
......@@ -682,7 +718,7 @@
</font>
<background>
<mode>2</mode>
<color>79741120</color>
<color>1090519039</color>
</background>
</ColumnObject>
<HtmlTable>
......
......@@ -8,32 +8,32 @@ footer(height=0 color="536870912" )
detail(height=20 color="536870912" )
table(column=(type=char(5) update=yes updatewhereclause=yes key=yes name=grade_code dbname="grade_site_ot.grade_code" )
column=(type=char(40) updatewhereclause=yes name=grade_descr dbname="grade.descr" )
column=(type=decimal(3) updatewhereclause=yes name=limit_hrs dbname="grade_site_ot.limit_hrs" )
column=(type=char(1) updatewhereclause=yes name=limit_type dbname="grade_site_ot.limit_type" )
column=(type=decimal(3) update=yes updatewhereclause=yes name=limit_hrs dbname="grade_site_ot.limit_hrs" initial="0" )
column=(type=char(1) update=yes updatewhereclause=yes name=limit_type dbname="grade_site_ot.limit_type" initial="M" values="Monthly M/Quaterly Q/" )
column=(type=char(5) update=yes updatewhereclause=yes key=yes name=site_code dbname="grade_site_ot.site_code" )
column=(type=datetime updatewhereclause=yes name=chg_date dbname="grade_site_ot.chg_date" )
column=(type=char(10) updatewhereclause=yes name=chg_user dbname="grade_site_ot.chg_user" )
column=(type=char(15) updatewhereclause=yes name=chg_term dbname="grade_site_ot.chg_term" )
column=(type=decimal(3) updatewhereclause=yes name=min_minutes dbname="grade_site_ot.min_minutes" )
column=(type=datetime update=yes updatewhereclause=yes name=chg_date dbname="grade_site_ot.chg_date" )
column=(type=char(10) update=yes updatewhereclause=yes name=chg_user dbname="grade_site_ot.chg_user" )
column=(type=char(300) update=yes updatewhereclause=yes name=chg_term dbname="grade_site_ot.chg_term" )
column=(type=decimal(3) update=yes updatewhereclause=yes name=min_minutes dbname="grade_site_ot.min_minutes" initial="0" )
retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"grade_site_ot~" ) TABLE(NAME=~"grade~" ) COLUMN(NAME=~"grade_site_ot.grade_code~") COLUMN(NAME=~"grade.descr~") COLUMN(NAME=~"grade_site_ot.limit_hrs~") COLUMN(NAME=~"grade_site_ot.limit_type~") COLUMN(NAME=~"grade_site_ot.site_code~") COLUMN(NAME=~"grade_site_ot.chg_date~") COLUMN(NAME=~"grade_site_ot.chg_user~") COLUMN(NAME=~"grade_site_ot.chg_term~") COLUMN(NAME=~"grade_site_ot.min_minutes~") JOIN (LEFT=~"grade_site_ot.grade_code~" OP =~"=~"RIGHT=~"grade.grade_code~" )WHERE( EXP1 =~"grade_site_ot.site_code~" OP =~"=~" EXP2 =~":site_code~" ) ) ARG(NAME = ~"site_code~" TYPE = string) " update="GRADE_SITE_OT" updatewhere=0 updatekeyinplace=no arguments=(("site_code", string)) )
text(band=header alignment="2" text="Grade Code" border="6" color="0" x="2" y="3" height="16" width="70" html.valueishtml="0" name=grade_code_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=header alignment="2" text="Description" border="6" color="0" x="74" y="3" height="16" width="201" html.valueishtml="0" name=grade_descr_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=header alignment="2" text="Limit Hours" border="6" color="0" x="277" y="3" height="16" width="74" html.valueishtml="0" name=limit_hrs_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=header alignment="2" text="Limit Type" border="6" color="0" x="353" y="3" height="16" width="68" html.valueishtml="0" name=limit_type_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=header alignment="2" text="Site" border="0" color="0" x="776" y="2" height="16" width="56" html.valueishtml="0" name=site_code_t visible="1~t~"false~"" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="79741120" )
text(band=header alignment="0" text="Minimum Minutes" border="6" color="0" x="423" y="3" height="16" width="105" html.valueishtml="0" name=min_minutes_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="79741120" )
text(band=header alignment="0" text="Change Date" border="6" color="0" x="530" y="3" height="16" width="80" html.valueishtml="0" name=chg_date_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="79741120" )
text(band=header alignment="0" text="Change User" border="6" color="0" x="612" y="3" height="16" width="80" html.valueishtml="0" name=chg_user_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="79741120" )
text(band=header alignment="0" text="Change Term" border="6" color="0" x="694" y="3" height="16" width="80" html.valueishtml="0" name=chg_term_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="79741120" )
text(band=header alignment="2" text="Limit Hours" border="6" color="0" x="277" y="3" height="16" width="73" html.valueishtml="0" name=limit_hrs_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=header alignment="2" text="Limit Type" border="6" color="0" x="352" y="3" height="16" width="68" html.valueishtml="0" name=limit_type_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=header alignment="2" text="Site Code" border="0" color="0" x="774" y="2" height="16" width="56" html.valueishtml="0" name=site_code_t visible="1~t~"false~"" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="79741120" )
text(band=header alignment="0" text="Minimum Minutes" border="6" color="0" x="422" y="3" height="16" width="104" html.valueishtml="0" name=min_minutes_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="79741120" )
text(band=header alignment="0" text="Change Date" border="6" color="0" x="528" y="3" height="16" width="80" html.valueishtml="0" name=chg_date_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="79741120" )
text(band=header alignment="0" text="Change User" border="6" color="0" x="610" y="3" height="16" width="80" html.valueishtml="0" name=chg_user_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="79741120" )
text(band=header alignment="0" text="Change Term" border="6" color="0" x="692" y="3" height="16" width="80" html.valueishtml="0" name=chg_term_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="79741120" )
column(band=detail id=1 alignment="0" tabsequence=10 border="5" color="0" x="2" y="1" height="16" width="70" format="[general]" html.valueishtml="0" name=grade_code tag="The grade code for which Over Time is allowed at the defined site" visible="1" edit.limit=5 edit.case=any edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="1090519039" )
column(band=detail id=2 alignment="0" tabsequence=20 border="5" color="0" x="74" y="1" height="16" width="201" format="[general]" html.valueishtml="0" name=grade_descr visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="1090519039" )
column(band=detail id=3 alignment="0" tabsequence=30 border="5" color="0" x="278" y="1" height="16" width="73" format="###,##0.00" html.valueishtml="0" name=limit_hrs visible="1" edit.limit=10 edit.case=any edit.format="###,##0.00" edit.autoselect=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="1090519039" )
column(band=detail id=4 alignment="0" tabsequence=40 border="5" color="0" x="353" y="1" height="16" width="68" format="[general]" html.valueishtml="0" name=limit_type visible="1" edit.limit=1 edit.case=upper edit.focusrectangle=no edit.autoselect=no edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="1090519039" )
column(band=detail id=9 alignment="0" tabsequence=50 border="5" color="0" x="424" y="1" height="16" width="104" format="###,##0" html.valueishtml="0" name=min_minutes visible="1" edit.limit=7 edit.case=any edit.format="###,##0" edit.autoselect=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="1090519039" )
column(band=detail id=6 alignment="0" tabsequence=32766 border="5" color="0" x="530" y="1" height="16" width="80" format="[shortdate] [time]" html.valueishtml="0" name=chg_date visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=7 alignment="0" tabsequence=32766 border="5" color="0" x="612" y="1" height="16" width="80" format="[general]" html.valueishtml="0" name=chg_user visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=8 alignment="0" tabsequence=32766 border="5" color="0" x="694" y="1" height="16" width="80" format="[general]" html.valueishtml="0" name=chg_term visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=5 alignment="0" tabsequence=32766 border="5" color="0" x="776" y="1" height="16" width="56" format="[general]" html.valueishtml="0" name=site_code visible="1~t~"false~"" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=3 alignment="0" tabsequence=30 border="5" color="0" x="277" y="1" height="16" width="73" format="###,##0.00" html.valueishtml="0" name=limit_hrs visible="1" edit.limit=10 edit.case=any edit.format="###,##0.00" edit.autoselect=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="1090519039" )
column(band=detail id=4 alignment="0" tabsequence=40 border="5" color="0" x="352" y="1" height="16" width="68" format="[general]" html.valueishtml="0" name=limit_type visible="1" ddlb.limit=0 ddlb.allowedit=no ddlb.case=any ddlb.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="1090519039" )
column(band=detail id=9 alignment="0" tabsequence=50 border="5" color="0" x="422" y="1" height="16" width="104" format="###,##0" html.valueishtml="0" name=min_minutes visible="1" edit.limit=7 edit.case=any edit.format="###,##0" edit.autoselect=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="1090519039" )
column(band=detail id=6 alignment="0" tabsequence=32766 border="5" color="0" x="528" y="1" height="16" width="80" format="[shortdate] [time]" html.valueishtml="0" name=chg_date visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=7 alignment="0" tabsequence=32766 border="5" color="0" x="610" y="1" height="16" width="80" format="[general]" html.valueishtml="0" name=chg_user visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=8 alignment="0" tabsequence=32766 border="5" color="0" x="692" y="1" height="16" width="80" format="[general]" html.valueishtml="0" name=chg_term visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=5 alignment="0" tabsequence=32766 border="5" color="0" x="774" y="1" height="16" width="56" format="[general]" html.valueishtml="0" name=site_code visible="1~t~"false~"" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
htmltable(border="1" )
htmlgen(clientevents="1" clientvalidation="1" clientcomputedfields="1" clientformatting="0" clientscriptable="0" generatejavascript="1" encodeselflinkargs="1" netscapelayers="0" )
export.xml(headgroups="1" includewhitespace="0" metadatatype=0 savemetadata=0 )
......
......@@ -6,7 +6,6 @@ summary(height=0 color="536870912" )
footer(height=0 color="536870912" )
detail(height=441 color="536870912" )
table(column=(type=char(5) update=yes updatewhereclause=yes key=yes name=grade_code dbname="grade_site_ot.grade_code" )
column=(type=char(5) update=yes updatewhereclause=yes key=yes name=site_code dbname="grade_site_ot.site_code" )
column=(type=decimal(3) update=yes updatewhereclause=yes name=limit_hrs dbname="grade_site_ot.limit_hrs" initial="0" )
column=(type=datetime update=yes updatewhereclause=yes name=add_date dbname="grade_site_ot.add_date" )
column=(type=char(10) update=yes updatewhereclause=yes name=add_user dbname="grade_site_ot.add_user" )
......@@ -17,24 +16,26 @@ table(column=(type=char(5) update=yes updatewhereclause=yes key=yes name=grade_c
column=(type=datetime update=yes updatewhereclause=yes name=chg_date dbname="grade_site_ot.chg_date" )
column=(type=char(10) update=yes updatewhereclause=yes name=chg_user dbname="grade_site_ot.chg_user" )
column=(type=char(300) update=yes updatewhereclause=yes name=chg_term dbname="grade_site_ot.chg_term" )
retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"grade_site_ot~" ) TABLE(NAME=~"grade~" ) COLUMN(NAME=~"grade_site_ot.grade_code~") COLUMN(NAME=~"grade_site_ot.site_code~") COLUMN(NAME=~"grade_site_ot.limit_hrs~") COLUMN(NAME=~"grade_site_ot.add_date~") COLUMN(NAME=~"grade_site_ot.add_user~") COLUMN(NAME=~"grade_site_ot.add_term~") COLUMN(NAME=~"grade.descr~") COLUMN(NAME=~"grade_site_ot.limit_type~") COLUMN(NAME=~"grade_site_ot.min_minutes~") COLUMN(NAME=~"grade_site_ot.chg_date~") COLUMN(NAME=~"grade_site_ot.chg_user~") COLUMN(NAME=~"grade_site_ot.chg_term~") JOIN (LEFT=~"grade_site_ot.grade_code~" OP =~"=~"RIGHT=~"grade.grade_code~" )WHERE( EXP1 =~"grade_site_ot.grade_code~" OP =~"=~" EXP2 =~":garde_code~" LOGIC =~"and~" ) WHERE( EXP1 =~"grade_site_ot.site_code~" OP =~"=~" EXP2 =~":site_code~" ) ) ARG(NAME = ~"site_code~" TYPE = string) ARG(NAME = ~"garde_code~" TYPE = string) " update="GRADE_SITE_OT" updatewhere=0 updatekeyinplace=no arguments=(("site_code", string),("garde_code", string)) )
groupbox(band=detail text="Basic"border="2" color="33554432" x="4" y="4" height="167" width="442" name=gb_1 visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
groupbox(band=detail text="Other"border="2" color="33554432" x="8" y="190" height="100" width="437" name=gb_2 visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="134217739" )
column(band=detail id=1 alignment="0" tabsequence=10 border="5" color="0" x="131" y="38" height="16" width="44" format="[general]" html.valueishtml="0" name=grade_code tag="The grade code for which Over Time is allowed at the defined site" visible="1" edit.limit=5 edit.case=upper edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="1090519039" )
column(band=detail id=8 alignment="0" tabsequence=30 border="5" color="0" x="131" y="84" height="16" width="82" format="[general]" html.valueishtml="0" name=limit_type visible="1" ddlb.limit=1 ddlb.allowedit=no ddlb.case=upper ddlb.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="1090519039" )
column(band=detail id=9 alignment="1" tabsequence=40 border="5" color="33554432" x="131" y="107" height="16" width="82" format="###,##0" html.valueishtml="0" name=min_minutes visible="1" edit.limit=7 edit.case=any edit.format="###,##0" edit.autoselect=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=3 alignment="1" tabsequence=20 border="5" color="0" x="131" y="61" height="16" width="82" format="###,##0.00" html.valueishtml="0" name=limit_hrs visible="1" edit.limit=10 edit.case=any edit.format="###,##0.00" edit.autoselect=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="1090519039" )
text(band=detail alignment="1" text="Grade Code :" border="0" color="0" x="27" y="38" height="16" width="99" html.valueishtml="0" name=grade_code_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="Limit Hours :" border="0" color="0" x="27" y="61" height="16" width="99" html.valueishtml="0" name=limit_hrs_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="Limit Type :" border="0" color="0" x="27" y="84" height="16" width="99" html.valueishtml="0" name=limit_type_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="Minimum Minutes :" border="0" color="33554432" x="10" y="107" height="16" width="116" html.valueishtml="0" name=min_minutes_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="79741120" )
column(band=detail id=11 alignment="0" tabsequence=32766 border="5" color="0" x="323" y="217" height="16" width="86" format="[general]" html.valueishtml="0" name=chg_user visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="1090519039" )
column(band=detail id=12 alignment="0" tabsequence=32766 border="5" color="0" x="134" y="241" height="16" width="87" format="[general]" html.valueishtml="0" name=chg_term visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="1090519039" )
text(band=detail alignment="0" text="Change Term :" border="0" color="33554432" x="52" y="241" height="16" width="77" html.valueishtml="0" name=chg_term_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="134217739" )
text(band=detail alignment="0" text="Change User :" border="0" color="33554432" x="244" y="217" height="16" width="75" html.valueishtml="0" name=chg_user_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="134217739" )
text(band=detail alignment="0" text="Change Date :" border="0" color="33554432" x="54" y="217" height="16" width="75" html.valueishtml="0" name=chg_date_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="134217739" )
column(band=detail id=10 alignment="0" tabsequence=32766 border="5" color="0" x="134" y="217" height="16" width="85" format="[shortdate] [time]" html.valueishtml="0" name=chg_date visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="1090519039" )
column(band=detail id=7 alignment="0" tabsequence=32766 border="5" color="255" x="181" y="38" height="16" width="218" format="[general]" html.valueishtml="0" name=grade_descr visible="1" edit.limit=40 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="79741120" )
column=(type=char(5) update=yes updatewhereclause=yes key=yes name=site_code dbname="grade_site_ot.site_code" )
retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"grade_site_ot~" ) TABLE(NAME=~"grade~" ) COLUMN(NAME=~"grade_site_ot.grade_code~") COLUMN(NAME=~"grade_site_ot.limit_hrs~") COLUMN(NAME=~"grade_site_ot.add_date~") COLUMN(NAME=~"grade_site_ot.add_user~") COLUMN(NAME=~"grade_site_ot.add_term~") COLUMN(NAME=~"grade.descr~") COLUMN(NAME=~"grade_site_ot.limit_type~") COLUMN(NAME=~"grade_site_ot.min_minutes~") COLUMN(NAME=~"grade_site_ot.chg_date~") COLUMN(NAME=~"grade_site_ot.chg_user~") COLUMN(NAME=~"grade_site_ot.chg_term~") COLUMN(NAME=~"grade_site_ot.site_code~") JOIN (LEFT=~"grade_site_ot.grade_code~" OP =~"=~"RIGHT=~"grade.grade_code~" )WHERE( EXP1 =~"grade_site_ot.grade_code~" OP =~"=~" EXP2 =~":garde_code~" LOGIC =~"and~" ) WHERE( EXP1 =~"grade_site_ot.site_code~" OP =~"=~" EXP2 =~":site_code~" ) ) ARG(NAME = ~"site_code~" TYPE = string) ARG(NAME = ~"garde_code~" TYPE = string) " update="GRADE_SITE_OT" updatewhere=0 updatekeyinplace=no arguments=(("site_code", string),("garde_code", string)) )
groupbox(band=detail text="Basic"border="2" color="33554432" x="40" y="24" height="127" width="442" name=gb_1 visible="1" font.face="Arial" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
groupbox(band=detail text="Other"border="2" color="33554432" x="39" y="166" height="91" width="443" name=gb_2 visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="134217739" )
text(band=detail alignment="1" text="Grade Code :" border="0" color="0" x="73" y="47" height="16" width="99" html.valueishtml="0" name=grade_code_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=1 alignment="0" tabsequence=10 border="5" color="0" x="177" y="47" height="16" width="83" format="[general]" html.valueishtml="0" name=grade_code tag="The grade code for which Over Time is allowed at the defined site" visible="1" edit.limit=5 edit.case=upper edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="1090519039" )
column(band=detail id=6 alignment="0" tabsequence=32766 border="5" color="255" x="266" y="47" height="16" width="76" format="[general]" html.valueishtml="0" name=grade_descr visible="1" edit.limit=40 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="79741120" )
text(band=detail alignment="1" text="Limit Hours :" border="0" color="0" x="73" y="70" height="16" width="99" html.valueishtml="0" name=limit_hrs_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
column(band=detail id=2 alignment="1" tabsequence=20 border="5" color="0" x="177" y="70" height="16" width="82" format="###,##0.00" html.valueishtml="0" name=limit_hrs visible="1" edit.limit=10 edit.case=any edit.format="###,##0.00" edit.autoselect=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="1090519039" )
column(band=detail id=7 alignment="0" tabsequence=30 border="5" color="0" x="177" y="93" height="16" width="82" format="[general]" html.valueishtml="0" name=limit_type visible="1" ddlb.limit=1 ddlb.allowedit=no ddlb.case=upper ddlb.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="1090519039" )
text(band=detail alignment="1" text="Minimum Minutes :" border="0" color="33554432" x="56" y="116" height="16" width="116" html.valueishtml="0" name=min_minutes_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="79741120" )
column(band=detail id=8 alignment="1" tabsequence=40 border="5" color="33554432" x="177" y="116" height="16" width="82" format="###,##0" html.valueishtml="0" name=min_minutes visible="1" edit.limit=7 edit.case=any edit.format="###,##0" edit.autoselect=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=12 alignment="0" tabsequence=50 border="5" color="255" x="348" y="47" height="16" width="82" format="[general]" html.valueishtml="0" name=site_code visible="0" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="1090519039" )
text(band=detail alignment="1" text="Limit Type :" border="0" color="0" x="73" y="93" height="16" width="99" html.valueishtml="0" name=limit_type_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="536870912" )
text(band=detail alignment="1" text="Change Date :" border="0" color="33554432" x="78" y="196" height="16" width="82" html.valueishtml="0" name=chg_date_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="134217739" )
column(band=detail id=9 alignment="0" tabsequence=32766 border="5" color="0" x="165" y="196" height="16" width="85" format="[shortdate] [time]" html.valueishtml="0" name=chg_date visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="1090519039" )
text(band=detail alignment="1" text="Change Term :" border="0" color="33554432" x="78" y="220" height="16" width="82" html.valueishtml="0" name=chg_term_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="134217739" )
column(band=detail id=11 alignment="0" tabsequence=32766 border="5" color="0" x="165" y="220" height="16" width="85" format="[general]" html.valueishtml="0" name=chg_term visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="1090519039" )
text(band=detail alignment="1" text="Change User :" border="0" color="33554432" x="276" y="196" height="16" width="82" html.valueishtml="0" name=chg_user_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="134217739" )
column(band=detail id=10 alignment="0" tabsequence=32766 border="5" color="0" x="363" y="196" height="16" width="85" format="[general]" html.valueishtml="0" name=chg_user visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="1090519039" )
htmltable(border="1" )
htmlgen(clientevents="1" clientvalidation="1" clientcomputedfields="1" clientformatting="0" clientscriptable="0" generatejavascript="1" encodeselflinkargs="1" netscapelayers="0" )
export.xml(headgroups="1" includewhitespace="0" metadatatype=0 savemetadata=0 )
......
......@@ -19,18 +19,17 @@ import ibase.webitm.utility.ITMException;
public class GradeSiteOTIC extends ValidatorEJB implements GradeSiteOTICLocal,GradeSiteOTICRemote
{
public String itemChanged(String xmlString, String xmlString1,
String xmlString2, String objContext, String currentColumn,
public String itemChanged(String xmlString, String xmlString1,String xmlString2, String objContext, String currentColumn,
String editFlag, String xtraParams) throws RemoteException,ITMException
{
Document dom1 = null;
Document dom = null;
Document dom2 = null;
String valueXmlString = "";
E12GenericUtility genericUtility = new E12GenericUtility();
E12GenericUtility genericUtility = null;
try
{
genericUtility = new E12GenericUtility();
if (xmlString != null && xmlString.trim().length() != 0)
{
dom = genericUtility.parseString(xmlString);
......@@ -43,99 +42,116 @@ public class GradeSiteOTIC extends ValidatorEJB implements GradeSiteOTICLocal,Gr
{
dom2 = genericUtility.parseString(xmlString2);
}
valueXmlString = itemChanged(dom, dom1, dom2, objContext,
currentColumn, editFlag, xtraParams);
valueXmlString = itemChanged(dom, dom1, dom2, objContext, currentColumn, editFlag, xtraParams);
}
catch (Exception e)
{
System.out.println("Exception :DeptIC :itemChanged(String,String):"+ e.getMessage() + ":");
System.out.println("Exception :GradeSiteOTIC :itemChanged(String,String):" + e.getMessage() + ":");
valueXmlString = genericUtility.createErrorString(e);
e.printStackTrace();
throw new ITMException(e);
}
System.out.println("returning from DeptIC itemChanged");
System.out.println("valueXmlString::["+valueXmlString+"]");
return valueXmlString;
}
public String itemChanged(Document dom, Document dom1, Document dom2,
String objContext, String currentColumn, String editFlag,
public String itemChanged(Document dom, Document dom1, Document dom2,String objContext, String currentColumn, String editFlag,
String xtraParams) throws RemoteException, ITMException
{
Connection conn = null;
int currentFormNo = 0;
StringBuffer valueXmlString = null;
ResultSet resultSet = null;
PreparedStatement pstmt = null;
String sql = " ";
ResultSet rs = null;
String sql = "";
String colname = "";
colname = currentColumn;
int currentFormNo = 0;
String siteCode = "";
String loginSiteCode = "";
String termId="";
String userId="";
String siteCode="";
String gradeCode="";
String descr="";
String todaydate="";
StringBuffer valueXmlString = null;
E12GenericUtility genericUtility = null;
SimpleDateFormat sdf=null;
E12GenericUtility genericUtility = new E12GenericUtility();
try
{
System.out.println("currentFormNo...." + currentFormNo);
genericUtility = new E12GenericUtility();
conn = getConnection();
if (objContext != null && objContext.trim().length() > 0)
if(objContext != null && objContext.trim().length() > 0)
{
currentFormNo = Integer.parseInt(objContext);
}
valueXmlString = new StringBuffer("<?xml version=\"1.0\"?>\r\n<Root>\r\n<Header>\r\n<editFlag>");
valueXmlString.append(editFlag).append("</editFlag>\r\n</Header>\r\n");
loginSiteCode = (genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginSiteCode"));
System.out.println("loginSiteCode:::::"+loginSiteCode);
System.out.println("current form no: " + currentFormNo);
switch (currentFormNo)
switch(currentFormNo)
{
case 1:
System.out.println("Case1");
{
System.out.println("currentColumn: " + currentColumn);
valueXmlString.append("<Detail1>\r\n");
if (currentColumn.trim().equals("itm_default"))
if("itm_default".equalsIgnoreCase(currentColumn))
{
siteCode = checkNull(genericUtility.getValueFromXTRA_PARAMS(xtraParams,"site_code"));
valueXmlString.append("<site_code><![CDATA[").append(siteCode).append("]]></site_code>\r\n");
System.out.println(":::Inside itm_default:::");
siteCode = checkNull(genericUtility.getValueFromXTRA_PARAMS(xtraParams, "site_code"));
System.out.println("::::SiteCode from ExtraParams ="+siteCode);
valueXmlString.append("<site_code>").append("<![CDATA["+siteCode+"]]>").append("</site_code>");
sdf=new SimpleDateFormat(genericUtility.getApplDateFormat());
todaydate=sdf.format(new java.util.Date());
valueXmlString.append("<add_date><![CDATA[").append(todaydate).append("]]></add_date>\r\n");
System.out.println("add_date---------------"+todaydate);
valueXmlString.append("<add_date>").append("<![CDATA["+todaydate+"]]>").append("</add_date>");
termId = checkNull(genericUtility.getValueFromXTRA_PARAMS(xtraParams,"termId"));
System.out.println("termId---------------"+termId);
valueXmlString.append("<add_term><![CDATA[").append(termId).append("]]></add_term>\r\n");
valueXmlString.append("<add_term>").append("<![CDATA["+termId+"]]>").append("</add_term>");
userId = checkNull(genericUtility.getValueFromXTRA_PARAMS(xtraParams,"loginCode"));
System.out.println("UserId---------------"+userId);
valueXmlString.append("<add_user><![CDATA[").append(userId).append("]]></add_user>\r\n");
valueXmlString.append("<add_user>").append("<![CDATA["+userId+"]]>").append("</add_user>");
}
else if (currentColumn.trim().equals("itm_defaultedit"))
else if("itm_defaultedit".equalsIgnoreCase(currentColumn))
{
siteCode=genericUtility.getColumnValue("site_code", dom);
valueXmlString.append("<site_code protect=\"0\"><![CDATA[").append(siteCode).append("]]></site_code>\r\n");
System.out.println(":::Inside itm_defaultedit:::");
siteCode = genericUtility.getColumnValue("site_code", dom);
System.out.println("itm_defaultedit site code = "+siteCode);
valueXmlString.append("<site_code protect=\"1\"><![CDATA[").append(siteCode).append("]]></site_code>\r\n");
}
else if (currentColumn.trim().equals("grade_code"))
else if("grade_code".equalsIgnoreCase(currentColumn))
{
System.out.println(":::Inside grade_code:::");
gradeCode =checkNull(genericUtility.getColumnValue("grade_code", dom));
if(gradeCode != null && gradeCode.trim().length()>0)
{
sql = "select descr as mdescr from grade where grade_code = ?";
sql = "select descr from grade where grade_code = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, gradeCode);
resultSet = pstmt.executeQuery();
if (resultSet.next())
rs = pstmt.executeQuery();
if (rs.next())
{
descr = resultSet.getString("mdescr");
descr = checkNull(rs.getString("descr"));
}
if (resultSet != null)
if (rs != null)
{
resultSet.close();
resultSet = null;
rs.close();
rs = null;
}
if (pstmt != null)
{
......@@ -147,159 +163,156 @@ public class GradeSiteOTIC extends ValidatorEJB implements GradeSiteOTICLocal,Gr
}
valueXmlString.append("</Detail1>");
}
break;
}
valueXmlString.append("</Root>");
}
catch (Exception e)
catch(Exception e)
{
System.out.println("Exception :GradeSiteOTIC :itemChanged(Document,String):"+ e.getMessage() + ":");
valueXmlString.delete(0, valueXmlString.length());
valueXmlString = valueXmlString.append(genericUtility.createErrorString(e));
e.printStackTrace();
System.out.println("Exception :GradeSiteOTIC [itemChanged(String xmlString)] : ==>\n" + e.getMessage());
throw new ITMException(e);
}
finally
{
try {
if (conn != null)
try
{
if(conn != null)
{
conn.close();
conn = null;
}
if (resultSet != null)
if(rs != null)
{
resultSet.close();
resultSet = null;
rs.close();
rs = null;
}
if (pstmt != null)
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
} catch (Exception e)
}
catch(Exception e)
{
e.printStackTrace();
throw new ITMException(e);
}
}
System.out.println("\n****ValueXmlString :" + valueXmlString + ":********");
System.out.println("returning from GradeSiteOTIC itemChanged ===" + valueXmlString.toString());
return valueXmlString.toString();
}
public String wfValData(String xmlString, String xmlString1,
String xmlString2, String objContext, String editFlag,
public String wfValData(String xmlString, String xmlString1, String xmlString2, String objContext, String editFlag,
String xtraParams) throws RemoteException,ITMException
{
System.out.println(xmlString);
Document dom = null;
Document dom1 = null;
Document dom2 = null;
String errString = null;
E12GenericUtility genericUtility = new E12GenericUtility();
String errString = "";
E12GenericUtility genericUtility = null;
try {
if (xmlString != null && xmlString.trim().length() != 0)
try
{
genericUtility = new E12GenericUtility();
if (xmlString != null && xmlString.trim().length() > 0)
{
dom = genericUtility.parseString(xmlString);
System.out.println("Print dom>>>> "+dom);
System.out.println("Print dom>>>> " + dom);
}
if (xmlString1 != null && xmlString1.trim().length() != 0)
if (xmlString1 != null && xmlString1.trim().length() > 0)
{
dom1 = genericUtility.parseString(xmlString1);
}
if (xmlString2 != null && xmlString2.trim().length() != 0)
if (xmlString2 != null && xmlString2.trim().length() > 0)
{
dom2 = genericUtility.parseString(xmlString2);
}
errString = wfValData(dom, dom1, dom2, objContext, editFlag,
xtraParams);
errString = wfValData(dom, dom1, dom2, objContext, editFlag, xtraParams);
System.out.println("ErrString :" + errString);
}
catch (Exception e)
{
System.out.println("Exception :DeptIC :wfValData(String xmlString):"
+ e.getMessage() + ":");
System.out.println("Exception :SiteHolTblIC :wfValData(String xmlString):" + e.getMessage() + ":");
errString = genericUtility.createErrorString(e);
e.printStackTrace();
throw new ITMException(e);
}
System.out.println("returning from DeptIC wfvaldata");
return errString;
}
public String wfValData(Document dom, Document dom1, Document dom2,String objContext, String editFlag, String xtraParams)throws RemoteException, ITMException
{
String sql = "";
String errString = "";
Connection conn = null;
ResultSet resultSet = null;
PreparedStatement pstmt = null;
NodeList parentList = null;
NodeList childList = null;
NodeList parentNodeList = null;
Node parentNode = null;
Node childNode = null;
String childNodeName = null;
String errCode="";
String errFldName = "";
ArrayList<String> errList = new ArrayList<String>();
ArrayList<String> errFields = new ArrayList<String>();
String msgType = "";
ITMDBAccessEJB itmDbAccess =null;
int childNodeListLength = 0;
NodeList childNodeList = null;
String sql = "";
PreparedStatement pstmt = null;
ResultSet rs = null;
StringBuffer errStringXml = null;
int counter;
int noOfChilds = 0;
String errString = "";
String userId = "";
int currentFormNo = 0;
Connection conn = null;
int cnt = 0;
ITMDBAccessEJB itmDbAcess = null;
E12GenericUtility genericUtility = null;
String siteCode = "";
String gradeCode="";
Double hrsLimit=0.0;
Double minuteMin=0.0;
String minMinutes="";
String siteCode="";
String userID="";
E12GenericUtility e12GenericUtility=new E12GenericUtility();
ArrayList<String> errList = new ArrayList<String>();
ArrayList<String> errFields = new ArrayList<String>();
try
{
itmDbAcess = new ITMDBAccessEJB();
genericUtility = new E12GenericUtility();
conn = getConnection();
itmDbAccess =new ITMDBAccessEJB();
errStringXml = new StringBuffer("<?xml version=\"1.0\"?>\r\n<Root><Errors>");
userId = genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginCode");
String userId = checkNull(e12GenericUtility.getValueFromXTRA_PARAMS(xtraParams,"loginCode"));
System.out.println("Line no--468");
if(objContext != null && objContext.trim().length() > 0)
if (objContext != null && objContext.trim().length() > 0)
{
currentFormNo = Integer.parseInt(objContext);
}
parentList = dom.getElementsByTagName("Detail" + currentFormNo);
parentNode = parentList.item(0);
childList = parentNode.getChildNodes();
noOfChilds = childList.getLength();
System.out.println("noOfChilds--->>>"+noOfChilds);
switch (currentFormNo)
{
case 1:
for (counter = 0; counter < noOfChilds; counter++)
parentNodeList = dom.getElementsByTagName("Detail1");
parentNode = parentNodeList.item(0);
childNodeList = parentNode.getChildNodes();
childNodeListLength = childNodeList.getLength();
System.out.println("child Node List Length::::::" + childNodeListLength);
for (int ctr = 0; ctr < childNodeListLength; ctr++)
{
childNode = childNodeList.item(ctr);
System.out.println("childNode" + childNode);
if (childNode.getNodeType() != Node.ELEMENT_NODE)
{
childNode = childList.item(counter);
continue;
}
childNodeName = childNode.getNodeName();
System.out.println("childNodeName>>>>>"+childNodeName);
System.out.println("childNode>>>>>>"+childNode);
System.out.println("counter>>>"+counter);
if(childNodeName.equals("grade_code"))
System.out.println("childNodeName.editFlag." + childNodeName + "@V@ Edit flag :-" + editFlag);
if("grade_code".equalsIgnoreCase(childNodeName))
{
gradeCode =checkNull(e12GenericUtility.getColumnValue("grade_code", dom));
System.out.println("EditFlag--------"+editFlag);
System.out.println(":::Validation of grade_code:::");
gradeCode =checkNull(genericUtility.getColumnValue("grade_code", dom));
siteCode =checkNull(genericUtility.getColumnValue("site_code", dom));
System.out.println("Grade Code::["+gradeCode+"]");
if(gradeCode == null || gradeCode.trim().length() == 0)
{
......@@ -311,41 +324,43 @@ public class GradeSiteOTIC extends ValidatorEJB implements GradeSiteOTICLocal,Gr
sql="select count(*) as cnt from grade where grade_code = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,gradeCode );
resultSet = pstmt.executeQuery();
rs = pstmt.executeQuery();
if(resultSet.next())
if(rs.next())
{
cnt = resultSet.getInt("cnt");
cnt = rs.getInt("cnt");
}
if (resultSet != null)
if (rs != null)
{
resultSet.close();
resultSet = null;
rs.close();
rs = null;
}
if (pstmt != null)
{
pstmt.close();
pstmt = null;
}
System.out.println("cnt ==="+cnt);
if(cnt==0)
{
errList.add("VMGRSTOT02");
errFields.add(childNodeName.toLowerCase());
}
sql="select count(*) as cnt from GRADE_SITE_OT where GRADE_CODE = ?";
//Added validation for duplicate grade code [Start]
cnt = 0;
sql="select count(*) as cnt from GRADE_SITE_OT where GRADE_CODE = ? and SITE_CODE = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,gradeCode );
resultSet = pstmt.executeQuery();
if(resultSet.next())
pstmt.setString(1,gradeCode);
pstmt.setString(2,siteCode);
rs = pstmt.executeQuery();
if(rs.next())
{
cnt = resultSet.getInt("cnt");
cnt = rs.getInt("cnt");
}
if (resultSet != null)
if (rs != null)
{
resultSet.close();
resultSet = null;
rs.close();
rs = null;
}
if (pstmt != null)
{
......@@ -357,13 +372,14 @@ public class GradeSiteOTIC extends ValidatorEJB implements GradeSiteOTICLocal,Gr
errList.add("VMGRSTOT08");
errFields.add(childNodeName.toLowerCase());
}
//Added validation [End]
}
}
else if(childNodeName.equalsIgnoreCase("limit_hrs"))
else if("limit_hrs".equalsIgnoreCase(childNodeName))
{
String limitHrs=checkInt(e12GenericUtility.getColumnValue("limit_hrs", dom));
System.out.println("::::validation of limit_hrs::::");
String limitHrs=checkInt(genericUtility.getColumnValue("limit_hrs", dom));
hrsLimit=Double.parseDouble(limitHrs);
if(limitHrs == null || hrsLimit < 0)
{
......@@ -372,9 +388,10 @@ public class GradeSiteOTIC extends ValidatorEJB implements GradeSiteOTICLocal,Gr
}
}
else if(childNodeName.equalsIgnoreCase("min_minutes"))
if("min_minutes".equalsIgnoreCase(childNodeName))
{
minMinutes=checkInt(e12GenericUtility.getColumnValue("min_minutes", dom));
System.out.println("::::validation of min_minutes::::");
minMinutes=checkInt(genericUtility.getColumnValue("min_minutes", dom));
minuteMin=Double.parseDouble(minMinutes);
if(minMinutes == null || minuteMin < 0)
{
......@@ -383,10 +400,14 @@ public class GradeSiteOTIC extends ValidatorEJB implements GradeSiteOTICLocal,Gr
}
}
else if(childNodeName.equalsIgnoreCase("site_code"))
if("site_code".equalsIgnoreCase(childNodeName))
{
siteCode = checkNull(e12GenericUtility.getColumnValue("site_code", dom));
System.out.println("::::validation of site_code::::");
siteCode = checkNull(genericUtility.getColumnValue("site_code", dom));
System.out.println("Validation Site code = "+siteCode);
cnt = 0;
if(siteCode == null || siteCode.trim().length() == 0)
{
errList.add("VMGRSTOT05");
......@@ -397,15 +418,15 @@ public class GradeSiteOTIC extends ValidatorEJB implements GradeSiteOTICLocal,Gr
sql = "select count(*) as cnt from site where site_code = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, siteCode);
resultSet = pstmt.executeQuery();
if(resultSet.next())
rs = pstmt.executeQuery();
if(rs.next())
{
cnt = resultSet.getInt("cnt");
cnt = rs.getInt("cnt");
}
if (resultSet != null)
if (rs != null)
{
resultSet.close();
resultSet = null;
rs.close();
rs = null;
}
if (pstmt != null)
{
......@@ -419,91 +440,98 @@ public class GradeSiteOTIC extends ValidatorEJB implements GradeSiteOTICLocal,Gr
}
else
{
cnt = 0;
sql = "select usr_lev as cnt from users where code = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, userID);
resultSet = pstmt.executeQuery();
if(resultSet.next())
pstmt.setString(1, userId);
rs = pstmt.executeQuery();
if(rs.next())
{
cnt = resultSet.getInt("cnt");
cnt = rs.getInt("cnt");
}
else if(cnt>1)
if (rs != null)
{
rs.close();
rs = null;
}
if (pstmt != null)
{
cnt=0;
pstmt.close();
pstmt = null;
}
if(cnt > 1)
{
cnt = 0;
sql="select count(1) as cnt from user_site where user_id =? and site_code =?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, userID);
pstmt.setString(1, userId);
pstmt.setString(2, siteCode);
resultSet = pstmt.executeQuery();
if(resultSet.next())
rs = pstmt.executeQuery();
if(rs.next())
{
cnt = resultSet.getInt("cnt");
cnt = rs.getInt("cnt");
}
else if(cnt==0)
{
errList.add("VMGRSTOT07");
errFields.add(childNodeName.toLowerCase());
}
if (resultSet != null)
if (rs != null)
{
resultSet.close();
resultSet = null;
rs.close();
rs = null;
}
if (pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(cnt == 0)
{
errList.add("VMGRSTOT07");
errFields.add(childNodeName.toLowerCase());
}
}//End of if(cnt > 1)
}
}
}
//end if
}
}
if ( errList != null && errList.size() > 0 )
System.out.println("errStringXml.toString()---1= "+errStringXml.toString());
if (errList != null && errList.size() > 0)
{
System.out.println("errList==[" + errList + "]");
int errListSize = errList.size();
System.out.println("errListSize:::::::["+errListSize+"]");
System.out.println("errListSize:::::::[" + errListSize + "]");
System.out.println("in error::::::::::");
for (int i = 0; i < errListSize; i++ )
for (int i = 0; i < errListSize; i++)
{
System.out.println("in error For:::::::::::::::");
errCode = (String)errList.get(i);
errFldName = (String)errFields.get(i);
System.out.println("errCode .........."+errCode);
errString = itmDbAccess.getErrorString(errFldName, errCode, userId, "", conn);
String errCode = (String) errList.get(i);
String errFldName = (String) errFields.get(i);
System.out.println("errCode .........." + errCode);
errString = itmDbAcess.getErrorString(errFldName, errCode, userId, "", conn);
System.out.println("errString is : ::::>>>> " + errString);
msgType = errorType( conn , errCode );
if ( errString.length() > 0)
String msgType = errorType(conn, errCode);
if (errString.length() > 0)
{
String bifurErrString = errString.substring( errString.indexOf("<Errors>") + 8,errString.indexOf("<trace>"));
bifurErrString =bifurErrString+errString.substring( errString.indexOf("</trace>") + 8,errString.indexOf("</Errors>"));
String bifurErrString = errString.substring(errString.indexOf("<Errors>") + 8,
errString.indexOf("<trace>"));
bifurErrString = bifurErrString + errString.substring(errString.indexOf("</trace>") + 8,
errString.indexOf("</Errors>"));
errStringXml.append(bifurErrString);
System.out.println("errStringXml .........."+errStringXml);
System.out.println("errStringXml .........." + errStringXml);
errString = "";
}
if ( msgType.equalsIgnoreCase("E"))
if (msgType.equalsIgnoreCase("E"))
{
break;
}
}
errList.clear();
errList = null;
errFields.clear();
errFields = null;
errStringXml.append("</Errors></Root>\r\n");
}
else
{
errStringXml = new StringBuffer( "" );
}
}
errStringXml.append("</Errors></Root>\r\n");
System.out.println("errStringXml.toString()---2= "+errStringXml.toString());
}
catch (Exception e)
catch(Exception e)
{
System.out.println("Exception :GradeSiteOTIC :wfValData(Document,String):"+ e.getMessage() + ":");
e.printStackTrace();
throw new ITMException(e);
}
......@@ -511,29 +539,31 @@ public class GradeSiteOTIC extends ValidatorEJB implements GradeSiteOTICLocal,Gr
{
try
{
if (conn != null)
if(conn != null)
{
conn.close();
conn = null;
}
if (resultSet != null)
if(rs != null)
{
resultSet.close();
resultSet = null;
rs.close();
rs = null;
}
if (pstmt != null)
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
}
catch (Exception e)
catch(Exception e)
{
e.printStackTrace();
throw new ITMException(e);
}
}
errString = errStringXml.toString();
System.out.println("testing : final errString : " + errString);
return errString;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment