public string UpdateEmployeeInfo(SMT.SaaS.Permission.DAL.views.EmployeeInfo employeeInfo) { using (InstantMessageBll bll = new InstantMessageBll()) { string StrReturn = bll.UpdateEmployeeInfo(employeeInfo); return(StrReturn); } }
public string UpdateEmployeeInfo(SMT.HRM.CustomModel.Permission.EmployeeInfo employeeInfo) { using (InstantMessageBll bll = new InstantMessageBll()) { string StrReturn = bll.UpdateEmployeeInfo(employeeInfo); return(StrReturn); } }
public string GetEmployeeInfo(string loginAccount) { using (InstantMessageBll bll = new InstantMessageBll()) { string StrReturn = bll.GetEmployeeInfo(loginAccount); return(StrReturn); } }
public string GetEmployeeInfo(string loginAccount) { using (InstantMessageBll bll = new InstantMessageBll()) { string StrReturn = bll.GetEmployeeInfo(loginAccount); return StrReturn; } }
public string EmployeeLogin(string loginAccount, string password) { DateTime dtstart = DateTime.Now; try { using (InstantMessageBll bll = new InstantMessageBll()) { T_SYS_USER plist = bll.GetUsers(loginAccount); //if (WCFCache.Current[keyString] == null) //{ // plist = bll.GetUsers(loginAccount); // WCFCache.Current.Insert(keyString, plist, DateTime.Now.AddMinutes(150)); //} //else //{ // plist = (T_SYS_USER)WCFCache.Current[keyString]; //} if (plist == null) { SMT.Foundation.Log.Tracer.Debug("即时通讯获取用户信息为空"); return("用户信息为空"); } string StrReturn = bll.EmployeeLogin(loginAccount, password, plist); return(StrReturn); } } catch (Exception ex) { SMT.Foundation.Log.Tracer.Debug("InstantMessagingServices-EmployeeLogin登录出错:" + ex.ToString()); return("EmployeeLogin登录失败"); } finally { DateTime dtend = DateTime.Now; TimeSpan ts = dtend - dtstart; SMT.Foundation.Log.Tracer.Debug(loginAccount + "即时通讯开始登录:" + dtstart.ToString() + " 即时通讯结束登录: " + dtend.ToString() + " 耗时:" + ts.Seconds.ToString() + "秒!" + ts.Milliseconds.ToString() + "毫秒"); } }
public string UpdateEmployeeInfo(SMT.HRM.CustomModel.Permission.EmployeeInfo employeeInfo) { using (InstantMessageBll bll = new InstantMessageBll()) { string StrReturn = bll.UpdateEmployeeInfo(employeeInfo); return StrReturn; } }
public string EmployeeLogin(string loginAccount, string password) { DateTime dtstart = DateTime.Now; try { using (InstantMessageBll bll = new InstantMessageBll()) { T_SYS_USER plist = bll.GetUsers(loginAccount); //if (WCFCache.Current[keyString] == null) //{ // plist = bll.GetUsers(loginAccount); // WCFCache.Current.Insert(keyString, plist, DateTime.Now.AddMinutes(150)); //} //else //{ // plist = (T_SYS_USER)WCFCache.Current[keyString]; //} if (plist == null) { SMT.Foundation.Log.Tracer.Debug("即时通讯获取用户信息为空"); return "用户信息为空"; } string StrReturn = bll.EmployeeLogin(loginAccount, password, plist); return StrReturn; } } catch (Exception ex) { SMT.Foundation.Log.Tracer.Debug("InstantMessagingServices-EmployeeLogin登录出错:" + ex.ToString()); return "EmployeeLogin登录失败"; } finally { DateTime dtend = DateTime.Now; TimeSpan ts = dtend - dtstart; SMT.Foundation.Log.Tracer.Debug(loginAccount + "即时通讯开始登录:" + dtstart.ToString() + " 即时通讯结束登录: " + dtend.ToString() + " 耗时:" + ts.Seconds.ToString() + "秒!" + ts.Milliseconds.ToString() + "毫秒"); } }
public string UpdateEmployeeInfo(SMT.SaaS.Permission.DAL.views.EmployeeInfo employeeInfo) { using (InstantMessageBll bll = new InstantMessageBll()) { string StrReturn = bll.UpdateEmployeeInfo(employeeInfo); return StrReturn; } }