Пример #1
0
        /// <summary>
        /// 버전 정보
        /// </summary>
        private static MessageStream MessageRequestVersionInfo(MessageReader reader)
        {
            DataTable dtResult = null;
            RESULT    result   = DbModule.Instance.FAS_CheckDeployInfo(reader.GetParam(0), ref dtResult);

            string        repeatRowLength = dtResult.Rows.Count.ToString(); // row count
            string        repeatColLength = "6";                            // column count
            List <string> repeatList      = new List <string>();

            foreach (System.Data.DataRow dr in dtResult.Rows)
            {
                repeatList.Add(dr["BUILD_VER"].ToString());
                repeatList.Add(dr["FILE_TYPE"].ToString());
                repeatList.Add(dr["FILE_NAME"].ToString());
                repeatList.Add(dr["FILE_SIZE"].ToString());
                repeatList.Add(dr["FILE_SVR_PATH"].ToString());
                repeatList.Add(dr["FILE_LOCAL_PATH"].ToString());
            }

            /// 전문 생성
            MessageStream response = MessageStream.Response(MessagePacketNameEnum.REQVI, reader.Header, repeatRowLength, repeatColLength);

            response.AddRepeater(repeatList.ToArray());

            return(response);
        }