Exemplo n.º 1
0
        /// <summary>
        /// Execute convert ouput.
        /// </summary>
        /// <param name="resultObject">DataModel</param>
        /// <returns>ResponseModel</returns>
        private InitResponseModel Convert(InitDataModel resultObject)
        {
            // Local variable declaration
            InitResponseModel responseModel = null;
            IList<OutputImageModel> listFiles = null;
            OutputImageModel file = null;

            // Variable initialize
            responseModel = new InitResponseModel();
            listFiles = new List<OutputImageModel>();

            // Get value
            foreach (var obj in resultObject.ListFiles)
            {
                file = new OutputImageModel();

                file.FileId = DataHelper.ToString(obj.FileId);
                file.FileName = DataHelper.ToString(obj.FileName);
                file.FileGroup = DataHelper.ToString(obj.FileGroup);
                file.FileNo = DataHelper.ToString(Formats.NUMBER, obj.FileNo);
                file.SortKey = DataHelper.ToString(Formats.NUMBER, obj.SortKey);
                listFiles.Add(file);
            }

            // Set value
            responseModel.FileId = DataHelper.ToString(resultObject.FileId);
            responseModel.FileGroup = DataHelper.ToString(resultObject.FileGroup);
            responseModel.ListFiles = listFiles;

            // Return value
            return responseModel;
        }
Exemplo n.º 2
0
        /// <summary>
        /// Execute convert input.
        /// </summary>
        /// <param name="request">RequestModel</param>
        /// <returns>DataModel</returns>
        private InitDataModel Convert(InitRequestModel request)
        {
            // Local variable declaration
            InitDataModel inputObject = null;

            // Variable initialize
            inputObject = new InitDataModel();

            // Convert data input
            DataHelper.ConvertInput(request, inputObject);

            // Return value
            return inputObject;
        }
Exemplo n.º 3
0
 /// <summary>
 /// Check processing.
 /// </summary>
 /// <param name="inputObject">DataModel</param>
 private void Check(InitDataModel inputObject)
 {
 }
Exemplo n.º 4
0
        /// <summary>
        /// Get infomation
        /// </summary>
        /// <param name="inputObject">DataModel</param>
        /// <returns>DataModel</returns>
        private InitDataModel GetInfo(InitDataModel inputObject)
        {
            // Local variable declaration
            InitDataModel getResult = null;
            StorageFileCom storageFileCom = null;

            // Variable initialize
            getResult = new InitDataModel();
            storageFileCom = new StorageFileCom();

            // Get data
            var listFiles = storageFileCom.GetList(inputObject.FileId, false);

            // Set value
            getResult.FileId = inputObject.FileId;
            getResult.FileGroup = inputObject.FileGroup;
            getResult.ListFiles = listFiles;

            // Return value
            return getResult;
        }