示例#1
0
        /// <summary>
        /// 根据RecordID读取上传上传文件
        /// </summary>
        /// <param name="tableID">表ID</param>
        /// <param name="strRecordID">strRecordID</param>
        /// <returns>上传上传数据</returns>
        public static List <string> ReadUploadByRecordID(int tableID, string strRecordID)
        {
            List <string>     fileNameList = new List <string>();
            List <UploadInfo> uploadList   = dal.ReadUploadByRecordID(tableID, strRecordID);

            foreach (UploadInfo upload in uploadList)
            {
                fileNameList.Add(upload.UploadName);
                if (upload.OtherFile != string.Empty)
                {
                    foreach (string temp in upload.OtherFile.Split('|'))
                    {
                        fileNameList.Add(temp);
                    }
                }
            }
            return(fileNameList);
        }
示例#2
0
        public static List <string> ReadUploadByRecordID(int tableID, string strRecordID)
        {
            List <string>     list  = new List <string>();
            List <UploadInfo> list2 = dal.ReadUploadByRecordID(tableID, strRecordID);

            foreach (UploadInfo info in list2)
            {
                list.Add(info.UploadName);
                if (info.OtherFile != string.Empty)
                {
                    foreach (string str in info.OtherFile.Split(new char[] { '|' }))
                    {
                        list.Add(str);
                    }
                }
            }
            return(list);
        }