private string getExcuseTypes() { string methodName = "getExcuseTypes()"; LogHelper.DebugFormat("{0}.{1}:--- start ---", className, methodName); string result = result = Retriever.getAllExcuseType(); LogHelper.DebugFormat("{0}.{1}:--- end ---", className, methodName); return(result); }
private bool getIsAllAccess(string mac) { string methodName = string.Format("getIsAllAccess({0})", mac); LogHelper.DebugFormat("{0}.{1}:--- start ---", className, methodName); bool result = Retriever.allAccess(mac); LogHelper.DebugFormat("{0}.{1}:--- {2} ---", className, methodName, result.ToString()); LogHelper.DebugFormat("{0}.{1}:--- end ---", className, methodName); return(result); }
public string getUsersMacs(string mac) { string methodName = String.Format("getUsersMacs({0})", mac); LogHelper.DebugFormat("{0}.{1}:--- start ---", className, methodName); string result = ""; result = Retriever.getUsersMacs(mac); LogHelper.DebugFormat("{0}.{1}:--- end ---", className, methodName); return(result); }
private string getWifiLists(string mac) { string methodName = string.Format("getWifiLists({0})", mac); LogHelper.DebugFormat("{0}.{1}:--- start ---", className, methodName); string result = ""; result = Retriever.getWifiList(mac); LogHelper.DebugFormat("{0}.{1}:--- end ---", className, methodName); return(result); }
private string resetPassword(string mac) { string methodName = string.Format("resetPassword({0})", mac); LogHelper.DebugFormat("{0}.{1}:--- start ---", className, methodName); string result = ""; result = Retriever.resetPassword(mac); LogHelper.DebugFormat("{0}.{1}:--- end ---", className, methodName); return(result); }
private string updatePaasword(string mac, string old_pass, string new_pass) { string methodName = string.Format("updatePaasword({0})", mac); LogHelper.DebugFormat("{0}.{1}:--- start ---", className, methodName); string result = ""; result = Retriever.updatePassword(mac, old_pass, new_pass); LogHelper.DebugFormat("{0}.{1}:--- end ---", className, methodName); return(result); }
private string Login(string ip, string mac) { string methodName = "Login()"; log.DebugFormat("------------START---{0}-{1}-({2})-----------", className, methodName, ""); int res = 0;// Absen.Login(mac, ip); string result = res.ToString(); result = Retriever.RetrieveLoginData(mac, ip); log.DebugFormat("------------END---{0}-{1}-({2})-----------", className, methodName, result); return(result); }
private string RetrieveExcuse(string macAdds, string from_date, string to_date, string approve, string excuse_type) { string methodName = "Login()"; log.DebugFormat("------------START---{0}-{1}-({2})-----------", className, methodName, ""); string result = ""; var fdate = DateTime.Parse(from_date); var tdate = DateTime.Parse(to_date); result = Retriever.pendingApproval(macAdds, fdate, tdate, approve, excuse_type); log.DebugFormat("------------END---{0}-{1}-({2})-----------", className, methodName, result); return(result); }
private string getExcuseTypes() { string methodName = "getExcuseTypes()"; log.DebugFormat("------------START---{0}-{1}-({2})-----------", className, methodName, ""); string result = ""; try { result = Retriever.getAllExcuseType(); }catch (Exception ex) { log.Error(ex); } log.DebugFormat("------------END---{0}-{1}-({2})-----------", className, methodName, result); return(result); }
private string getDeviceLog(string mac_list, string from_date, string to_date) { string methodName = string.Format("getMonthlyReport({0},{1},{2})", mac_list, from_date, to_date); 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(from_date, out t_date)) { result = Retriever.getDeviceLog(mac_list, f_date, t_date); } LogHelper.DebugFormat("{0}.{1}:--- end ---", className, methodName); return(result); }
private string retrieveExcuse(string mac, string from_date, string to_date, string approve, string reason_type) { string methodName = string.Format("retrieveExcuse({0},{1},{2})", mac, from_date, to_date); 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.pendingApproval(mac, f_date, t_date, approve, reason_type); } LogHelper.DebugFormat("{0}.{1}:--- end ---", className, methodName); return(result); }
private string login(string ip, string mac, string longitude, string latitude) { string methodName = string.Format("login({0},{1},{2},{3})", mac, ip, longitude, latitude); LogHelper.DebugFormat("{0}.{1}:--- start ---", className, methodName); double lon = 0.0; double lat = 0.0; double.TryParse(longitude, out lon); double.TryParse(latitude, out lat); int res = new Absen().Login(mac, ip, lon, lat); string result = res.ToString(); result = Retriever.RetrieveLoginData(mac, ip); LogHelper.DebugFormat("{0}.{1}:--- end ---", className, methodName); return(result); }
private string getDeviceLog(string mac_list, string from, string to) { string methodName = "getDeviceLog()"; log.DebugFormat("------------START---{0}-{1}-({2})-----------", className, methodName, ""); string result = ""; try { DateTime fdate = DateTime.Parse(from); DateTime tdate = DateTime.Parse(to); result = Retriever.getDeviceLog(mac_list, fdate, tdate); } catch (Exception ex) { log.Error(ex); } log.DebugFormat("------------END---{0}-{1}-({2})-----------", className, methodName, result); return(result); }
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); }