예제 #1
0
        private string getMonthlyReport(string mac, string from_date, string to_date, string mac_list)
        {
            string methodName = string.Format("getMonthlyReport({0},{1},{2},{3})", mac, from_date, to_date, mac_list);

            LogHelper.DebugFormat("{0}.{1}:--- start ---", className, methodName);

            string   result = "";
            DateTime f_date = DateTime.MinValue;
            DateTime t_date = DateTime.MinValue;

            if (DateTime.TryParse(from_date, out f_date) && DateTime.TryParse(to_date, out t_date))
            {
                result = Retriever.getMonthlyReport(mac, f_date, t_date, mac_list);
            }

            LogHelper.DebugFormat("{0}.{1}:--- end ---", className, methodName);
            return(result);
        }
예제 #2
0
        private string getMonthlyReport(string mac, string from, string to, string mac_list)
        {
            string methodName = "getExcuseTypes()";

            log.DebugFormat("------------START---{0}-{1}-({2})-----------", className, methodName, "");

            string result = "";

            try
            {
                DateTime fdate = DateTime.Parse(from);
                DateTime tdate = DateTime.Parse(to);

                result = Retriever.getMonthlyReport(mac, fdate, tdate, mac_list);
            }
            catch (Exception ex)
            {
                log.Error(ex);
            }

            log.DebugFormat("------------END---{0}-{1}-({2})-----------", className, methodName, result);
            return(result);
        }