<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="dataconfig.xsl"?>
<!DOCTYPE dataconfig SYSTEM "dataconfig.dtd">

<!-- mcrewconfig.dtd -->
<!--
<!ELEMENT mcrewconfig (dataobject*, columndefn*)>
	<!ELEMENT dataobject (objectname, defnfile?, displayfile?, langfile?, dtdfile?, fileextension?)>
	<!ATTLIST dataobject type CDATA "control">
		<!ELEMENT objectname (#PCDATA)>
		<!ELEMENT defnfile (#PCDATA)>
		<!ELEMENT displayfile (#PCDATA)>
		<!ELEMENT langfile (#PCDATA)>
		<!ELEMENT dtdfile (#PCDATA>
		<!ELEMENT DBdir (#PCDATA)>
		<!ELEMENT fileextension (#PCDATA)>
		<!ELEMENT columndefn (columnnum, columndataobject, columnlabel, tagname)>
		<!ELEMENT columnnum (#PCDATA)>
		<!ELEMENT columndataobject (#PCDATA)> 
		<!ELEMENT columnlabel (#PCDATA)>
		<!ELEMENT tagname (#PCDATA)>
-->

<!-- NRCS specific version which specifies NRCS "*_display.xml" files for use with MCREW drilldown screens -->

<dataconfig>
	<dataobject type="control">
		<objectname>operation</objectname>
		<defnfile>operation_defn.xml</defnfile>
		<displayfile>nrcs_dev_operation_display.xml</displayfile>
		<langfile>operation_lang.xml</langfile>
		<fileextension>oprn</fileextension>
	</dataobject>

	<dataobject type="date">
		<objectname>date</objectname>
		<defnfile></defnfile>
		<displayfile></displayfile>
		<langfile></langfile>
		<fileextension></fileextension>
	</dataobject>

	<dataobject type="crop">
		<objectname>crop</objectname>
		<defnfile>crop_defn.xml</defnfile>
		<displayfile>nrcs_dev_crop_display.xml</displayfile>
		<langfile>crop_lang.xml</langfile>
		<fileextension>crop</fileextension>
	</dataobject>

	<dataobject type="UPGM">
		<objectname>UPGM</objectname>
		<defnfile>UPGM_defn.xml</defnfile>
		<displayfile>nrcs_dev_UPGM_display.xml</displayfile>
		<langfile>UPGM_lang.xml</langfile>
		<DBdir>upgm</DBdir>
		<fileextension>upgm</fileextension>
	</dataobject>

	<!-- The next 2 dataobjects is used for saving the data-->
	<dataobject type="management">
		<objectname>management template</objectname>
		<fileextension>xml</fileextension>
	</dataobject>

	<dataobject type="management">
		<objectname>management skeleton</objectname>
		<fileextension>skel</fileextension>
	</dataobject>

	<columndefn>
		<columnnum>0</columnnum>
		<columndataobject>date</columndataobject>
		<columnlabel>\n\n\nDate</columnlabel>
		<tagname>date</tagname>
                <datacellstyle>date</datacellstyle>
                <frozen>true</frozen>
                <columnminwidth>80</columnminwidth>
                <columnwidth>90</columnwidth>
                <columnmaxwidth>100</columnmaxwidth>
	</columndefn>

	<columndefn>
		<columnnum>1</columnnum>
		<columndataobject>operation</columndataobject>
		<columnlabel>\n\n\nOperation Name</columnlabel>
		<!--This values needs to be same as the data name
		    in XML which the user wants to display-->
		<tagname>operationname</tagname>
                <datacellstyle>opdata</datacellstyle>
                <frozen>true</frozen>
                <columnminwidth>150</columnminwidth>
                <columnwidth>400</columnwidth>
                <columnmaxwidth>700</columnmaxwidth>
	</columndefn>

	<columndefn>
		<columnnum>2</columnnum>
		<!-- The crop data is embedded inside an operation.
		     Crop Object is used only when a new crop is needed
		     to be added separately. Even then, finally the data
		     values are copied from crop obejct to operation object -->
		<columndataobject>crop</columndataobject>
		<columnlabel>Crop\nor\nResidue</columnlabel>
		<!--This values needs to be same as the data name
		    in XML which the user wants to display-->
		<tagname>gcropname</tagname>
                <datacellstyle>cropdata</datacellstyle>
                <frozen>true</frozen>
                <columnminwidth>75</columnminwidth>
                <columnwidth>175</columnwidth>
                <columnmaxwidth>300</columnmaxwidth>
	</columndefn>

	<misc>
		<table_file>nrcs_dev_tablecolumn.xml</table_file>
		<manformat_file>man_fileformat.xml</manformat_file>
		<view_file>nrcs_tableview.xml</view_file>
	</misc>

        <cellstyle>
            <styletag>headerdefault</styletag>
            <readonly>true</readonly>
            <defaultheader>true</defaultheader>
            <fontname>Times New Roman</fontname>
            <fontsize>14</fontsize>
            <fontcolor>#000000</fontcolor>
            <fontbold>true</fontbold>
            <cellcolor>#FFCC33</cellcolor>
            <softcolor>#FFFF00</softcolor>
            <hardcolor>#FF00FF</hardcolor>
            <bordercolor>#000000</bordercolor>  
            <bordercolormode>base_on_background</bordercolormode>
            <borderside>all</borderside>
            <rowminheight>55</rowminheight>
            <rowheight>55</rowheight>    
            <rowmaxheight>55</rowmaxheight>   
            <cellrenderer>multiline</cellrenderer> 
        </cellstyle>

        <cellstyle>
            <styletag>datadefault</styletag>
            <readonly>false</readonly>
            <defaultdata>true</defaultdata>
            <fontname>Courier</fontname>
            <fontsize>11</fontsize>
            <fontcolor>#000000</fontcolor>
            <fontbold>false</fontbold>
            <cellcolor>#FFFFFF</cellcolor>
            <softcolor>#FFFF00</softcolor>
            <hardcolor>#FF00FF</hardcolor>
	    	<initcolor>#B666D2</initcolor>
            <border>plain</border>
            <bordercolor>#000000</bordercolor>         
            <borderside>all</borderside>  
            <rowminheight>25</rowminheight>
            <rowheight>25</rowheight>
            <rowmaxheight>25</rowmaxheight>
        </cellstyle>

        <cellstyle>
            <styletag>date</styletag>
            <basestyle>datadefault</basestyle>
            <readonly>true</readonly>
            <cellrenderer>date</cellrenderer>
        </cellstyle>    

        <cellstyle>
            <styletag>comboboxdata</styletag>
            <basestyle>datadefault</basestyle>
            <cellrenderer>combobox</cellrenderer> <!-- Why is this not multiline like in "dataconfig.xml" 02/01/2021 -->
        </cellstyle>   

        <cellstyle>
            <styletag>fueldata</styletag>
            <basestyle>datadefault</basestyle>
            <cellrenderer>fuelcombobox</cellrenderer>
        </cellstyle>  
		
		<cellstyle>
            <styletag>killdata</styletag>
            <basestyle>datadefault</basestyle>
            <cellrenderer>killcombobox</cellrenderer>
        </cellstyle> 

        <cellstyle>
            <styletag>checkboxdata</styletag>
            <basestyle>datadefault</basestyle>
            <cellrenderer>checkbox</cellrenderer>
        </cellstyle>   

        <cellstyle>
            <styletag>multicheckdata</styletag>
            <basestyle>datadefault</basestyle>
            <cellrenderer>multicheck</cellrenderer>
        </cellstyle>

        <cellstyle>
            <styletag>readonlydata</styletag>
            <basestyle>datadefault</basestyle>
            <readonly>true</readonly>
        </cellstyle>    

        <cellstyle>
            <styletag>readonlycheckboxdata</styletag>
            <basestyle>checkboxdata</basestyle>
            <readonly>true</readonly>
		</cellstyle>

        <cellstyle>
            <styletag>opdata</styletag>
            <basestyle>datadefault</basestyle>
            <cellrenderer>opfilelist</cellrenderer>
		</cellstyle>

        <cellstyle>
            <styletag>cropdata</styletag>
            <basestyle>datadefault</basestyle>
            <cellrenderer>cropfilelist</cellrenderer>
		</cellstyle>

        <choicelist>
			<choicelisttag>cbaflag</choicelisttag>
			<prompt>Crop growth calibration selection</prompt>
			<choice value="1">Yes</choice>
			<choice value="0">No</choice>
		</choicelist>

        <choicelist>
			<choicelisttag>harv_calib_flg</choicelisttag>
			<prompt>Report Harvest, Calib?</prompt>
			<choice value="0">No</choice>
			<choice value="1">Yes</choice>
		</choicelist>

</dataconfig>
