Ejemplo n.º 1
0
        /// <summary>
        /// 便于controller中把前端的值提交过来
        /// </summary>
        /// <param name="year">2014</param>
        /// <param name="smon">1</param>
        /// <param name="emon">2</param>
        public static void GetCMonthRange(string year, string smon, string emon, out string sCMonth, out string eCMonth)
        {
            int yearInt = PFDataHelper.ObjectToInt(year) ?? 0;

            sCMonth = PFDataHelper.DateToCMonth(new DateTime(yearInt, PFDataHelper.ObjectToInt(smon) ?? 0, 1));
            eCMonth = PFDataHelper.DateToCMonth(new DateTime(yearInt, PFDataHelper.ObjectToInt(emon) ?? 0, 1));
        }