Пример #1
0
        public PFNumberRangeBox()
        {
            _smonBox = new PFNumberBox();
            //_smonBox.SetStyle("width:30px;padding-right:0px");
            _smonBox.SetStyle("padding-right:0px");
            //_smonBox.SetRequired();

            _emonBox = new PFNumberBox();
            //_emonBox.SetStyle("width:30px;padding-right:0px");
            _emonBox.SetStyle("padding-right:0px");
            //_emonBox.SetRequired();
        }
Пример #2
0
        public PFMonthRangeInOneYearBox()
        {
            _yearBox = new PFNumberBox();
            _yearBox.SetStyle("width:50px;padding-right:0px");
            _yearBox.SetRequired();
            _yearBox.SetHtmlAttributes(new { isYear = true });//自定义jquery validate

            _smonBox = new PFNumberBox();
            _smonBox.SetStyle("width:30px;padding-right:0px");
            _smonBox.SetRequired();
            _smonBox.SetHtmlAttributes(new { isMonth = true });//自定义jquery validate
            _smonBox.SetMin(1);
            _smonBox.SetMax(12);

            _emonBox = new PFNumberBox();
            _emonBox.SetStyle("width:30px;padding-right:0px");
            _emonBox.SetRequired();
            _emonBox.SetHtmlAttributes(new { isMonth = true });//自定义jquery validate
            _emonBox.SetMin(1);
            _emonBox.SetMax(12);
        }