コード例 #1
0
 public string UpdateEmployeeInfo(SMT.SaaS.Permission.DAL.views.EmployeeInfo employeeInfo)
 {
     using (InstantMessageBll bll = new InstantMessageBll())
     {
         string StrReturn = bll.UpdateEmployeeInfo(employeeInfo);
         return(StrReturn);
     }
 }
コード例 #2
0
 public string UpdateEmployeeInfo(SMT.HRM.CustomModel.Permission.EmployeeInfo employeeInfo)
 {
     using (InstantMessageBll bll = new InstantMessageBll())
     {
         string StrReturn = bll.UpdateEmployeeInfo(employeeInfo);
         return(StrReturn);
     }
 }
コード例 #3
0
 public string GetEmployeeInfo(string loginAccount)
 {
     using (InstantMessageBll bll = new InstantMessageBll())
     {
         string StrReturn = bll.GetEmployeeInfo(loginAccount);
         return(StrReturn);
     }
 }
コード例 #4
0
 public string GetEmployeeInfo(string loginAccount)
 {
     using (InstantMessageBll bll = new InstantMessageBll())
     {
         string StrReturn = bll.GetEmployeeInfo(loginAccount);
         return StrReturn;
     }
     
 }
コード例 #5
0
        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() + "毫秒");
            }
        }
コード例 #6
0
 public string UpdateEmployeeInfo(SMT.HRM.CustomModel.Permission.EmployeeInfo employeeInfo)
 {
     using (InstantMessageBll bll = new InstantMessageBll())
     {
         string StrReturn = bll.UpdateEmployeeInfo(employeeInfo);
         return StrReturn;
     }
 }
コード例 #7
0
        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() + "毫秒");

            }
        }
コード例 #8
0
 public string UpdateEmployeeInfo(SMT.SaaS.Permission.DAL.views.EmployeeInfo employeeInfo)
 {
     using (InstantMessageBll bll = new InstantMessageBll())
     {
         string StrReturn = bll.UpdateEmployeeInfo(employeeInfo);
         return StrReturn;
     }
 }