Exemple #1
0
        public ServerDetails(
            string sName,
            string sRemoteFolder,
            string sUserName,
            string sPassword,
            string strFileDirection,
            string sLocalFolder,
            string sFiles,
            string sFileNamingConvention,
            string msgCounter,
            IAPL.Transport.Util.ConstantVariables.FileAction fileAction,
            string transmissionType,
            string mesgCode,
            string sTempExtension)
        {
            this.ServerAddress  = sName;
            this.ServerFolder   = sRemoteFolder;
            this.ServerUserName = sUserName;
            this.ServerPassword = sPassword;
            strFileDirection    = strFileDirection.ToUpper().Trim();

            if (strFileDirection.Equals("RECEIVE"))
            {
                this.FileDirection = IAPL.Transport.Util.ConstantVariables.FileDirection.RECEIVE;
            }
            else if (strFileDirection.Equals("SEND"))
            {
                this.fileDirection = IAPL.Transport.Util.ConstantVariables.FileDirection.SEND;
            }
            else
            {
                this.fileDirection = IAPL.Transport.Util.ConstantVariables.FileDirection.NONE;
            }

            //this.LocalFolder = sLocalFolder;
            //this.SourceFileMask = sFiles;
            this.FileNamingConvention = sFileNamingConvention;
            setCounterValue(msgCounter);
            this.DateValue = DateTime.Now;

            this.TransmissionType  = GetTransmissionType(transmissionType);
            this.MessageCode       = mesgCode;
            this.FileTempExtension = sTempExtension;
        }
Exemple #2
0
        public ServerDetails(
            string sName,
            string sRemoteFolder,
            string sUserName,
            string sPassword,
            IAPL.Transport.Util.ConstantVariables.FileDirection sFileDirection,
            string sLocalFolder,
            string sFiles,
            string sFileNamingConvention,
            string msgCounter,
            IAPL.Transport.Util.ConstantVariables.FileAction fileAction,
            string transmissionType,
            string mesgCode,
            int sPort,
            string sTempExtension
            )
        {
            this.ServerAddress  = sName;
            this.ServerFolder   = sRemoteFolder;
            this.ServerUserName = sUserName;
            this.ServerPassword = sPassword;
            this.FileDirection  = sFileDirection;

            this.MessageAction = fileAction;

            //this.LocalFolder = sLocalFolder;
            //this.SourceFileMask = sFiles;
            this.FileNamingConvention = sFileNamingConvention;

            setCounterValue(msgCounter);
            this.DateValue = DateTime.Now;

            this.TransmissionType = GetTransmissionType(transmissionType);

            //setCounterValue("0");
            //this.DateValue = DateTime.Now.ToString("MMddyyyy");

            this.MessageCode       = mesgCode;
            this.ServerPort        = sPort;
            this.FileTempExtension = sTempExtension;
        }
Exemple #3
0
        public ServerDetails(
            IAPL.Transport.Util.ConstantVariables.FileDirection sFileDirection,
            string sLocalFolder,
            string sFiles,
            string sFileNamingConvention,
            string msgCounter,
            IAPL.Transport.Util.ConstantVariables.FileAction fileAction,
            string transmissionType,
            string mesgCode,
            string portNum,
            string sTempExtension
            )
        {
            //this.ServerAddress = sName;
            //this.ServerFolder = sRemoteFolder;
            //this.ServerUserName = sUserName;
            //this.ServerPassword = sPassword;
            this.FileDirection = sFileDirection;

            this.MessageAction = fileAction;

            //this.LocalFolder = sLocalFolder;
            //this.SourceFileMask = sFiles;
            this.FileNamingConvention = sFileNamingConvention;

            setCounterValue(msgCounter);
            this.DateValue = DateTime.Now;

            this.TransmissionType = GetTransmissionType(transmissionType);
            this.MessageCode      = mesgCode;
            int thisPortNum = 0;

            int.TryParse(portNum, out thisPortNum);
            this.ServerPort        = thisPortNum;
            this.FileTempExtension = sTempExtension;
        }