private string CreateRequestData(RequestCommand command, string outcode) { string str2; this.mSendCount = 0; string str = this.JobCode(); IData data = new NaccsData { Header = { Control = DataControl.GetControl(), JobCode = str, UserId = this.mUser, Password = this.mPass, Path = this.mTermLogicalName, DataInfo = string.Format("{0}{1}{2:D6}", str, this.DateTimeString(), this.mSendCount) } }; if (command == RequestCommand.GET) { str2 = outcode; } else { str2 = command.ToString(); } string str3 = string.Format("{0}{1}", str2.PadRight(7, ' '), "\r\n"); data.JobData = str3; this.mFirstRequest = data; return data.GetDataString(); }
private string CreateRequestData() { string mTermLogicalName; string mTermAccessKey; this.mSendCount = 0; string str = this.JobCode(); if (this.mIsTTM) { mTermLogicalName = this.txTerminal.Text.Trim(); mTermAccessKey = this.txAccessKey.Text.Trim(); } else { mTermLogicalName = this.mTermLogicalName; mTermAccessKey = this.mTermAccessKey; } mTermLogicalName = mTermLogicalName.PadRight(6, ' '); mTermAccessKey = mTermAccessKey.PadRight(0x10, ' '); IData data = new NaccsData { Header = { Control = DataControl.GetControl(), JobCode = str, UserId = this.mUser, Password = this.mPass, Path = this.mTermLogicalName, DataInfo = string.Format("{0}{1}{2:D6}", str.PadRight(5, ' '), this.DateTimeString(), this.mSendCount) } }; if (this.mLogon) { data.Header.SendGuard = "*"; } string str4 = "0"; if (this.mIsExcuteMode != 0) { str4 = "1"; } string str5 = string.Format("{0}{3}{1}{3}{2}{3}", new object[] { mTermLogicalName, mTermAccessKey, str4, "\r\n" }); data.JobData = str5; this.mFirstRequest = data; return data.GetDataString(); }
private string CreateA2Data() { this.mSendCount++; IData data = new NaccsData(); if (this.mRecvOK) { data.Header.JobCode = "?A2"; } else { data.Header.JobCode = "?A3"; } data.Header.Control = this.mFirstRequest.Header.Control; data.Header.UserId = this.mFirstRequest.Header.UserId; data.Header.Password = this.mFirstRequest.Header.Password; data.Header.Path = this.mFirstRequest.Header.Path; data.Header.DataInfo = string.Format("{0}{1}{2:D6}", data.Header.Path, this.DateTimeString(), this.mSendCount); data.Header.RtpInfo = this.mTurnRtpinfo; if (this.mNextStop) { data.Header.SendGuard = "*"; } else { data.Header.SendGuard = " "; } return data.GetDataString(); }
private string CreateRequestData(RequestCommand command, string body) { IData data = new NaccsData { Header = { JobCode = "?" + command.ToString(), UserId = this.mUser, Password = this.mPass }, JobData = body }; return data.GetDataString(); }