コード例 #1
0
ファイル: cUserService.cs プロジェクト: radtek/crm
        /// <summary>
        /// 修改用户凭证
        /// </summary>
        /// <param name="loggingSessionInfo">用户登录信息</param>
        /// <param name="userInfo">修改用户model</param>
        /// <param name="strError">错误信息输出</param>
        /// <returns></returns>
        private bool SetDexUpdateUserCertificate(LoggingSessionInfo loggingSessionInfo, UserInfo userInfo, out string strError)
        {
            try
            {
                cPos.ExchangeService.DexAuthService dexAuthService = new cPos.ExchangeService.DexAuthService();
                Hashtable _ht = dexAuthService.UpdateUserCertificate(loggingSessionInfo.CurrentUser.User_Id
                                                                     , loggingSessionInfo.CurrentUser.User_Password
                                                                     , userInfo.User_Id
                                                                     , userInfo.User_Password
                                                                     , userInfo.User_Code
                                                                     , userInfo.User_Name
                                                                     , userInfo.userRoleInfoList);

                if (!_ht["status"].ToString().Equals("true"))
                {
                    strError = _ht["error_code"].ToString();
                    return(false);
                }
                strError = "ok";
                return(true);
            }
            catch (Exception ex) {
                strError = ex.ToString();
                return(false);
            }
        }
コード例 #2
0
ファイル: cUserService.cs プロジェクト: radtek/crm
 public bool SetDexUserCertificate(string customer_code, UserInfo userInfo, out string strError)
 {
     try
     {
         cPos.ExchangeService.DexAuthService dexAuthService = new cPos.ExchangeService.DexAuthService();
         Hashtable _ht = dexAuthService.ApplyUserCertificate(userInfo.User_Id
                                                             , userInfo.User_Password
                                                             , userInfo.User_Id
                                                             , userInfo.User_Code
                                                             , userInfo.customer_id
                                                             , customer_code
                                                             , userInfo.User_Password
                                                             , userInfo.userRoleInfoList);
         if (!_ht["status"].ToString().Equals("True"))
         {
             strError = _ht["error_code"].ToString();
             return(false);
         }
         else
         {
             strError = "插入中间层成功";
             return(true);
         }
     }
     catch (Exception ex)
     {
         throw (ex);
     }
 }