Ejemplo n.º 1
0
 /// <summary>
 /// This method maps the incoming data to the data object.
 /// </summary>
 /// <param name="functionCode">function code</param>
 protected override void MapIncomingData(string functionCode)
 {
     dto = (ACRMDTO)(Msg.GetMessageDTO(SessionParameters.TRANS, typeof(ACRMDTO)));
 }
Ejemplo n.º 2
0
        /// <summary>
        /// This method creates and returns a data object with the data from the screen.
        /// </summary>
        /// <returns>data object</returns>
        private ACRMDTO GetDTO()
        {
            ACRMDTO dto = new ACRMDTO();
            //dto.Branch = this.ControlsCollection[TB_BRANCH].Text;

            if (string.IsNullOrEmpty(this.ControlsCollection[TB_EXTRACTDATE].Text))
                dto.ExtractDate = DateTime.Today;
            else
                dto.ExtractDate = DateTime.Parse(this.ControlsCollection[TB_EXTRACTDATE].Text);

            dto.IsFullload = Convert.ToBoolean(this.ControlsCollection[TB_FULLLOAD].GetValue());
            return dto;
        }
Ejemplo n.º 3
0
        /// <summary>
        /// This method retrieves the input parameters for this batch run.
        /// </summary>
        /// <param name="functionCode">function code</param>
        /// <param name="programCommand">command parameters</param>
        protected override void MapBBFTParameters(string functionCode, string[] programCommand)
        {
            // Note: The batch parameters can be set up on the BBFT screen.
            dto = new ACRMDTO();
            if (functionCode == BatchFunctionCode)
            {
                runStatus = "BSYS";

                for (int t = 0; t < programCommand.Length; t++)
                {
                    if (programCommand[t] == null)
                    {
                        programCommand[t] = String.Empty;
                    }
                }

                //dto.Branch = programCommand[0].Trim();
                if (string.IsNullOrEmpty(programCommand[1]))
                    dto.ExtractDate = DateTime.Today;
                else
                    dto.ExtractDate = DateTime.Parse(programCommand[1]);

                if (string.IsNullOrEmpty(programCommand[2]))
                    dto.IsFullload = false;
                else
                    dto.IsFullload = Convert.ToBoolean(programCommand[2]);

            }
            else if (functionCode == OSYSFunctionCode)
            {
                runStatus = "OSYS";

                for (int t = 0; t < programCommand.Length; t++)
                {
                    if (programCommand[t] == null)
                    {
                        programCommand[t] = string.Empty;
                    }
                }

                //dto.Branch = programCommand[1].Trim();
            }
        }