public ReportArgs Logon(string ip, short port, string version, short departmentID, string accountID, string fundID, string password)
        {
            this.ip           = ip;
            this.port         = port;
            this.version      = version;
            this.departmentID = departmentID;
            this.accountID    = accountID;
            this.fundID       = fundID;
            this.password     = password;
            StringBuilder errInfo = new StringBuilder(256);

            this.clientID = TDXWrapper.Logon(this.ip, this.port, this.version, this.departmentID, this.accountID, this.fundID, this.password, string.Empty, errInfo);
            ReportArgs reportArgs = new ReportArgs();

            if (this.clientID == -1)
            {
                reportArgs.Succeeded = false;
                reportArgs.ErrorInfo = errInfo.ToString();
            }
            else
            {
                reportArgs.Succeeded = true;
            }
            return(reportArgs);
        }
        public ReportArgs ReLogon()
        {
            StringBuilder errInfo = new StringBuilder(256);

            this.clientID = TDXWrapper.Logon(this.ip, this.port, this.version, this.departmentID, this.accountID, this.fundID, this.password, string.Empty, errInfo);
            ReportArgs reportArgs = new ReportArgs();

            if (this.clientID == -1)
            {
                reportArgs.Succeeded = false;
                reportArgs.ErrorInfo = errInfo.ToString();
            }
            else
            {
                reportArgs.Succeeded = true;
            }
            return(reportArgs);
        }