示例#1
0
        public static QJVRMS.Business.ImageStorage ParseImageStorage(DataRow rdr)
        {
            QJVRMS.Business.ImageStorage oIImageStorage = new QJVRMS.Business.ImageStorage();


            oIImageStorage.ItemId = new Guid(Convert.ToString(rdr["ItemId"]));
            if (!Convert.IsDBNull(rdr["userId"]))
            {
                oIImageStorage.userId = new Guid(Convert.ToString(rdr["userId"]));
            }

            if (!Convert.IsDBNull(rdr["ItemSerialNum"]))
            {
                oIImageStorage.ItemSerialNum = Convert.ToString(rdr["ItemSerialNum"]);
            }

            if (!Convert.IsDBNull(rdr["FileName"]))
            {
                oIImageStorage.FileName = Convert.ToString(rdr["FileName"]);
            }

            if (!Convert.IsDBNull(rdr["FolderName"]))
            {
                oIImageStorage.FolderName = Convert.ToString(rdr["FolderName"]);
            }
            if (!Convert.IsDBNull(rdr["uploadDate"]))
            {
                oIImageStorage.uploadDate = Convert.ToDateTime(rdr["uploadDate"]);
            }
            if (!Convert.IsDBNull(rdr["shotDate"]))
            {
                oIImageStorage.shotDate = Convert.ToDateTime(rdr["shotDate"]);
            }

            if (!Convert.IsDBNull(rdr["Keyword"]))
            {
                oIImageStorage.Keyword = Convert.ToString(rdr["Keyword"]);
            }

            if (!Convert.IsDBNull(rdr["Description"]))
            {
                oIImageStorage.Description = Convert.ToString(rdr["Description"]);
            }
            if (!Convert.IsDBNull(rdr["ImageType"]))
            {
                oIImageStorage.ImageType = Convert.ToString(rdr["ImageType"]);
            }
            if (!Convert.IsDBNull(rdr["Hvsp"]))
            {
                oIImageStorage.Hvsp = Convert.ToString(rdr["Hvsp"]);
            }
            if (!Convert.IsDBNull(rdr["Caption"]))
            {
                oIImageStorage.Caption = Convert.ToString(rdr["Caption"]);
            }
            if (!Convert.IsDBNull(rdr["Address"]))
            {
                oIImageStorage.Address = Convert.ToString(rdr["Address"]);
            }
            if (!Convert.IsDBNull(rdr["Character"]))
            {
                oIImageStorage.Character = Convert.ToString(rdr["Character"]);
            }
            if (!Convert.IsDBNull(rdr["StartDate"]))
            {
                oIImageStorage.StartDate = Convert.ToDateTime(rdr["StartDate"]);
            }
            if (!Convert.IsDBNull(rdr["EndDate"]))
            {
                oIImageStorage.EndDate = Convert.ToDateTime(rdr["EndDate"]);
            }

            if (!Convert.IsDBNull(rdr["FileLength"]))
            {
                oIImageStorage.FileSize = Convert.ToInt64(rdr["FileLength"]);
            }
            return(oIImageStorage);
        }
示例#2
0
        public static QJVRMS.Business.ImageStorage ParseImageStorage(DataRow rdr)
        {
            QJVRMS.Business.ImageStorage oIImageStorage = new QJVRMS.Business.ImageStorage();


            oIImageStorage.ItemId = new Guid(Convert.ToString(rdr["ItemId"]));
            if (!Convert.IsDBNull(rdr["userId"]))
            {
                oIImageStorage.userId = new Guid(Convert.ToString(rdr["userId"]));
            }

            if (!Convert.IsDBNull(rdr["ItemSerialNum"]))
            {
                oIImageStorage.ItemSerialNum = Convert.ToString(rdr["ItemSerialNum"]);
            }

            if (!Convert.IsDBNull(rdr["FileName"]))
            {
                oIImageStorage.FileName = Convert.ToString(rdr["FileName"]);
            }

            if (!Convert.IsDBNull(rdr["FolderName"]))
            {
                oIImageStorage.FolderName = Convert.ToString(rdr["FolderName"]);
            }
            if (!Convert.IsDBNull(rdr["uploadDate"]))
            {
                oIImageStorage.uploadDate = Convert.ToDateTime(rdr["uploadDate"]);
            }
            if (!Convert.IsDBNull(rdr["shotDate"]))
            {
                oIImageStorage.shotDate = Convert.ToDateTime(rdr["shotDate"]);
            }

            if (!Convert.IsDBNull(rdr["Keyword"]))
            {
                oIImageStorage.Keyword = Convert.ToString(rdr["Keyword"]);
            }

            if (!Convert.IsDBNull(rdr["Description"]))
            {
                oIImageStorage.Description = Convert.ToString(rdr["Description"]);
            }
            if (!Convert.IsDBNull(rdr["ImageType"]))
            {
                oIImageStorage.ImageType = Convert.ToString(rdr["ImageType"]);
            }
            if (!Convert.IsDBNull(rdr["Hvsp"]))
            {
                oIImageStorage.Hvsp = Convert.ToString(rdr["Hvsp"]);
            }
            if (!Convert.IsDBNull(rdr["Caption"]))
            {
                oIImageStorage.Caption = Convert.ToString(rdr["Caption"]);
            }
            if (!Convert.IsDBNull(rdr["Address"]))
            {
                oIImageStorage.Address = Convert.ToString(rdr["Address"]);
            }
            if (!Convert.IsDBNull(rdr["Character"]))
            {
                oIImageStorage.Character = Convert.ToString(rdr["Character"]);
            }
            if (!Convert.IsDBNull(rdr["StartDate"]))
            {
                oIImageStorage.StartDate = Convert.ToDateTime(rdr["StartDate"]);
            }
            if (!Convert.IsDBNull(rdr["EndDate"]))
            {
                oIImageStorage.EndDate = Convert.ToDateTime(rdr["EndDate"]);
            }

            if (!Convert.IsDBNull(rdr["FileLength"]))
            {
                oIImageStorage.FileSize = Convert.ToInt64(rdr["FileLength"]);
            }
            return oIImageStorage;
        }