예제 #1
0
        private string getDailyReport(string mac, string from_date, string to_date, string mac_list, string type_list, string status_list)
        {
            string methodName = String.Format("getDailyReport({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.getDailyReport(mac, f_date, t_date, mac_list, type_list, status_list);
            }

            LogHelper.DebugFormat("{0}.{1}:--- end ---", className, methodName);
            return(result);
        }
예제 #2
0
        private string getDailyReport(string mac, string from, string to, string mac_list, string type_list, string status_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.getDailyReport(mac, fdate, tdate, mac_list, type_list, status_list);
            }
            catch (Exception ex)
            {
                log.Error(ex);
            }

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