Пример #1
0
 public SinoUser LoginSys(string SystemID, string UserName, string Password, string CheckType)
 {
     try
     {
         OraAuthorizeFactroy _of = new OraAuthorizeFactroy();
         _su = _of.LoginSys(SystemID, UserName, Password, CheckType);
         //LogWriter(decimal.Parse(_su.UserID), "系统登录(执法办案平台CS客户端)", string.Format("用户{0}登录执法办案平台CS客户端成功!", UserName),
         //    1, _su.IPAddress, _su.HostName, SystemID);
         LogWriter.WriteSystemLog("登录成功!", "Info");
         return(_su);
     }
     catch (Exception ex)
     {
         string _ipaddr   = WCFClientInfo.IPAddr;
         string _hostName = "";
         try
         {
             _hostName = Dns.GetHostEntry(_ipaddr).HostName;
         }
         catch
         {
             _hostName = _ipaddr;
         }
         //SystemLogWriter.WriteUserLog(-1, "系统登录(执法办案平台CS客户端)", string.Format("用户{0}登录执法办案平台CS客户端失败!", UserName),
         //    2, _ipaddr, _hostName, SystemID);
         return(null);
     }
 }
Пример #2
0
 public void WriteExportLog(int ExportRowCount, string ExportDataMsg)
 {
     try
     {
         OraAuthorizeFactroy _of = new OraAuthorizeFactroy();
         _of.WriteExportLog(ExportRowCount, ExportDataMsg);
     }
     catch (Exception ex)
     {
         string _error = string.Format("写入导出日志时[ExportRowCount={1} ExportDataMsg={2}]时发生错误!{0}", ex.Message, ExportRowCount, ExportDataMsg);
         //SystemLogWriter.WriteLog(_error, System.Diagnostics.EventLogEntryType.Error);
         throw new FaultException(_error, new FaultCode("服务"));
     }
 }
Пример #3
0
 public decimal GetDWIDByDWDM(string _dwdm)
 {
     try
     {
         OraAuthorizeFactroy _of = new OraAuthorizeFactroy();
         return(_of.GetDWIDByDWDM(_dwdm));
     }
     catch (Exception ex)
     {
         string _error = string.Format("取GetDWIDByDWDM[{1}]时发生错误!{0}", ex.Message, _dwdm);
         //SystemLogWriter.WriteLog(_error, System.Diagnostics.EventLogEntryType.Error);
         throw new FaultException(_error, new FaultCode("服务"));
     }
 }
Пример #4
0
 public List <Base.Authorize.SinoOrganize> GetRootDwListEx(string RootDWID, decimal LevelNum, string OrgType)
 {
     try
     {
         OraAuthorizeFactroy _of = new OraAuthorizeFactroy();
         return(_of.GetRootDwListEx(RootDWID, LevelNum, OrgType));
     }
     catch (Exception ex)
     {
         string _error = string.Format("取GetRootDwListEx[RootDWID={1} LevelNum={2} OrgType={3}]时发生错误!{0}", ex.Message, RootDWID, LevelNum, OrgType);
         //SystemLogWriter.WriteLog(_error, System.Diagnostics.EventLogEntryType.Error);
         return(new List <Base.Authorize.SinoOrganize>());
     }
 }
Пример #5
0
 public void WriteClientUserLog(string Message, string LogType)
 {
     try
     {
         OraAuthorizeFactroy _of = new OraAuthorizeFactroy();
         _of.WriteClientUserLog(Message, LogType);
     }
     catch (Exception ex)
     {
         string _error = string.Format("写入客户端用户日志时[Message={1} LogType={2}]时发生错误!{0}", ex.Message, Message, LogType);
         //SystemLogWriter.WriteLog(_error, System.Diagnostics.EventLogEntryType.Error);
         throw new FaultException(_error, new FaultCode("服务"));
     }
 }
Пример #6
0
        public bool ChangePassWord(string UserName, string OldPass, string NewPass)
        {
            OraAuthorizeFactroy _of = new OraAuthorizeFactroy();

            return(_of.ChangePassWord(UserName, OldPass, NewPass));
        }
Пример #7
0
        public bool CheckPassword(string UserName, string OldPass, string CheckType)
        {
            OraAuthorizeFactroy _of = new OraAuthorizeFactroy();

            return(_of.CheckPassword(UserName, OldPass, CheckType));
        }