require({cache:{
'url:chy/form/templates/DropDownBox.html':"<div class=\"dijit dijitReset dijitInline dijitLeft\"\r\n\tid=\"widget_${id}\"\r\n\trole=\"combobox\"\r\n\t><div class='dijitReset dijitRight dijitButtonNode dijitArrowButton dijitDownArrowButton dijitArrowButtonContainer'\r\n\t\tdata-dojo-attach-point=\"_buttonNode, _popupStateNode\" role=\"presentation\"\r\n\t\t><span class=\"dijitInputField ${iconClass}\" value=\"&#9660; \" type=\"text\" tabIndex=\"-1\" readonly=\"readonly\" role=\"presentation\"\r\n\t\t\t${_buttonInputDisabled}\r\n\t/></div\r\n\t><div class='dijitReset dijitValidationContainer'\r\n\t\t><input class=\"dijitReset dijitInputField dijitValidationIcon dijitValidationInner\" value=\"&#935; \" type=\"text\" tabIndex=\"-1\" readonly=\"readonly\" role=\"presentation\"\r\n\t/></div\r\n\t><div class=\"dijitReset dijitInputField dijitInputContainer\"\r\n\t\t><input class='dijitReset dijitInputInner' ${!nameAttrSetting} type=\"text\" autocomplete=\"off\"\r\n\t\t\tdata-dojo-attach-point=\"textbox,focusNode\" role=\"textbox\" aria-haspopup=\"true\"\r\n\t/></div\r\n></div>\r\n"}});
define("chy/form/DateTextBox", ["dojo/_base/declare","dijit/form/DateTextBox","dojox/widget/Calendar","dojo/date/locale",
	"dojo/text!./templates/DropDownBox.html"],function(declare,DateTextBox,Calendar,locale,template)
{
	return declare("chy.form.DateTextBox", DateTextBox, {
            ddFormat: {
                selector: 'date',
                datePattern: 'dd-MM-yyyy'
            },
            autoWidth : false,
            dateFormat: "%d-%m-%Y",
            //popupClass: Calendar,
            templateString: template,
            nameAttrSetting: "icon-chevron-down",
            iconClass: "fa fa-calendar",
            //cssClass: "dijitCalendarPopup",
            value: "",
            // prevent parser from trying to convert to Date object
            postMixInProperties: function() { // change value string to Date object
            	//this.popupClass=Calendar;
            	this.autoWidth=false;
            	this.forceWidth=false;
                this.inherited(arguments);
                // convert value to Date object
                //alert(this.value);
                this.value = locale.parse(this.value, this.ddFormat);
            },
            // To write back to the server in Oracle format, override the serialize method:
            serialize: function(dateObject, options) {
            	//alert('serialize');
            	var retVal = locale.format(dateObject, this.ddFormat);
            	var re = new RegExp("/", "g");
                return retVal.replace(re,"-");
            }
        });
});