예제 #1
0
        public override string ToString()
        {
            string strVal;

            if (fDate == null)
            {
                strVal = "";
            }
            else
            {
                GlobalOptions glob = GlobalOptions.Instance;
                strVal = fDate.GetDisplayStringExt(glob.DefDateFormat, glob.ShowDatesSign, glob.ShowDatesCalendar);
            }

            return(strVal);
        }
예제 #2
0
        protected static object GetDateValue(GDMCustomDate date, bool isVisible)
        {
            object result;

            if (date == null)
            {
                result = (isVisible) ? null : (object)UDN.CreateEmpty();
            }
            else
            {
                if (isVisible)
                {
                    GlobalOptions glob = GlobalOptions.Instance;
                    result = date.GetDisplayStringExt(glob.DefDateFormat, glob.ShowDatesSign, glob.ShowDatesCalendar);
                }
                else
                {
                    result = date.GetUDN();
                }
            }

            return(result);
        }