Exemplo n.º 1
0
        protected string GetImgUrl(string ItemSerialNum, string ImageType, string folder, string resourceType)
        {
            //return UIBiz.CommonInfo.GetImageUrl(170, folder, ItemSerialNum, ImageType);



            IResourceType obj = ResourceTypeFactory.getResourceTypeByString(resourceType);

            if (resourceType.ToLower().Equals("image"))
            {
                // return UIBiz.CommonInfo.GetImageUrl(170, folder, ItemSerialNum, ImageType);

                // QJVRMS.Business.ResourceType.ImageType obj = new QJVRMS.Business.ResourceType.ImageType();
                //yangguang
                //string imagePath = obj.PreviewPath_170_Read + "/" + folder + "/" + ItemSerialNum +  ImageType;
                if (ImageType.ToLower() == ".cr2" || ImageType.ToLower() == ".nef" || ImageType.ToLower() == ".psd")
                {
                    ImageType = ".jpg";
                }
                string imagePath = obj.GetPreviewPathRead(folder, ItemSerialNum + ImageType, "170");

                return(imagePath);
            }
            else if (resourceType.ToLower().Equals("video"))
            {
                return(obj.GetPreviewPathRead(folder, ItemSerialNum + ".jpg", "image"));
            }


            return("");
        }
Exemplo n.º 2
0
        protected string GetImgUrl(string ItemSerialNum, string ImageType, string folder, string resourceType)
        {
            IResourceType obj = ResourceTypeFactory.getResourceTypeByString(resourceType);

            if (resourceType.ToLower().Equals("image"))
            {
                return(UIBiz.CommonInfo.GetImageUrl(170, folder, ItemSerialNum, ImageType));
            }
            else
            {
                return(obj.GetPreviewPathRead(folder, ItemSerialNum + ".jpg", "image"));
            }

            return(obj.GetPreviewPathRead(folder, ItemSerialNum, ImageType));
        }
Exemplo n.º 3
0
        //protected string GetImgUrl(string ItemSerialNum, string ImageType, string folder)
        //{
        //    return UIBiz.CommonInfo.GetImageUrl(170, folder, ItemSerialNum, ImageType);

        //}


        protected string GetImgUrl(string ItemSerialNum, string serverFileName, string folder, string resourceType)
        {
            IResourceType obj = ResourceTypeFactory.getResourceTypeByString(resourceType);

            if (resourceType.ToLower().Equals("image"))
            {
                return(obj.GetPreviewPathRead(folder, serverFileName, "170"));
            }
            else if (resourceType.ToLower().Equals("video"))
            {
                return(obj.GetPreviewPathRead(folder, ItemSerialNum + ".jpg", "image"));
            }

            return("");
            //return obj.GetPreviewPathRead(folder, ItemSerialNum, ImageType);
        }