Пример #1
0
        public DataTable ShowFeatureImages(string featureId, int type, int pageSize, int pageIndex, ref int totalRecord)
        {
            QJVRMS.Business.FeatureWS.FeatureService feature = new QJVRMS.Business.FeatureWS.FeatureService();
            DataTable dt = feature.GetFeatureImages(new Guid(featureId), type, pageSize, pageIndex, ref totalRecord);

            return(dt);
        }
Пример #2
0
        //专题管理的详细信息
        public string GetFeatureImagesContent(string featureId, int type, int pageSize, int pageIndex)
        {
            StringBuilder sb = new StringBuilder();

            sb.Append("<div style=\"padding:3px 0px 3px 0px;border-bottom:#d4d0c8 solid 1px;\"><input type=\"button\" class=\"btn\" style=\"font-size:12px;\" onclick=\"AddImage('" + featureId + "')\" value=\"添加图片\" /></div>");
            QJVRMS.Business.FeatureWS.FeatureService feature = new QJVRMS.Business.FeatureWS.FeatureService();
            int       totalRecord = 0;
            DataTable dt          = feature.GetFeatureImages(new Guid(featureId), type, pageSize, pageIndex, ref totalRecord);

            if (dt == null || dt.Rows.Count == 0)
            {
                return(sb.ToString());
            }
            HttpContext.Current.Session["DataResource"] = dt;
            ResourceType.ImageType imageType = new QJVRMS.Business.ResourceType.ImageType();
            sb.Append("<div>");
            sb.Append("<ul class=\"detailClass\">");
            for (int i = 0; i < dt.Rows.Count; i++)
            {
                sb.Append("<li>");
                sb.Append("<table id=\"" + dt.Rows[i]["FDId"].ToString() + "\" ><tr><td valign=\"bottom\" style=\"height:185px;\">");
                sb.Append("<div>");
                sb.Append("<a href=\"../../PicDetail.aspx?ItemID=" + dt.Rows[i]["ID"].ToString() + "\" target=\"_blank\">");
                //yangguang
                //sb.Append("<img src=\"" + imageType.PreviewPath_170_Read + dt.Rows[i]["ServerFolderName"].ToString()+"/" + dt.Rows[i]["ServerFileName"].ToString() + "\" alt=\"\"  border=\"0\" /><br />");
                sb.Append("<img src=\"" + imageType.GetPreviewPathRead(dt.Rows[i]["ServerFolderName"].ToString(), dt.Rows[i]["ServerFileName"].ToString(), "170") + "\" alt=\"\"  border=\"0\" /><br />");
                sb.Append("</a>");
                sb.Append("</div>");
                sb.Append("</td></tr>");
                sb.Append("<tr><td valign=\"middle\">");
                sb.Append(dt.Rows[i]["Caption"].ToString() + "<a href=\"javascript:Delete('" + dt.Rows[i]["FDId"].ToString() + "')\" ><img src=\"../../image/common/delete.GIF\" alt=\"删除图片\" /></a>");
                //yangguang
                //sb.Append("&nbsp;<a href=\"javascript:ShowConver('" + imageType.PreviewPath_170_Read + dt.Rows[i]["ServerFolderName"].ToString() + "/" + dt.Rows[i]["ServerFileName"].ToString() + "', '" + featureId + "', '" + dt.Rows[i]["ServerFileName"].ToString() + "', '" + dt.Rows[i]["ServerFolderName"].ToString() + "')\" ><img src=\"../../image/common/action_print.gif\" alt=\"设为封面\" /></a>");
                sb.Append("&nbsp;<a href=\"javascript:ShowConver('" + imageType.GetPreviewPathRead(dt.Rows[i]["ServerFolderName"].ToString(), dt.Rows[i]["ServerFileName"].ToString(), "170") + "', '" + featureId + "', '" + dt.Rows[i]["ServerFileName"].ToString() + "', '" + dt.Rows[i]["ServerFolderName"].ToString() + "')\" ><img src=\"../../image/common/action_print.gif\" alt=\"设为封面\" /></a>");
                sb.Append("</td></tr></table>");
                sb.Append("</li>");
            }
            sb.Append("</ul></div>");
            if (totalRecord > pageSize)
            {
                sb.Append(GetImagePage(pageSize, pageIndex, totalRecord, featureId));
            }
            return(sb.ToString());
        }
Пример #3
0
        public string ShowFeatureImagesContent(string featureId, int type, int pageSize, int pageIndex)
        {
            QJVRMS.Business.FeatureWS.FeatureService feature = new QJVRMS.Business.FeatureWS.FeatureService();
            int       totalRecord = 0;
            DataTable dt          = feature.GetFeatureImages(new Guid(featureId), type, pageSize, pageIndex, ref totalRecord);

            if (dt == null || dt.Rows.Count == 0)
            {
                return(string.Empty);
            }
            ResourceType.ImageType imageType = new QJVRMS.Business.ResourceType.ImageType();
            StringBuilder          sb        = new StringBuilder();

            for (int i = 0; i < dt.Rows.Count; i++)
            {
                sb.Append("<div class=\"single_cover\">");
                sb.Append("<div class=\"cover_img\">");
                sb.Append("<a href=\"../../PicDetail.aspx?ItemID=" + dt.Rows[i]["ID"].ToString() + "\" target=\"_blank\">");
                //yangguang
                //sb.Append("<img src=\"" + imageType.PreviewPath_170_Read + dt.Rows[i]["ServerFolderName"].ToString() + "/" + dt.Rows[i]["ServerFileName"].ToString() + "\" alt=\"\" border=\"0\" />");
                sb.Append("<img src=\"" + imageType.GetPreviewPathRead(dt.Rows[i]["ServerFolderName"].ToString(), dt.Rows[i]["ServerFileName"].ToString(), "170") + "\" alt=\"\" border=\"0\" />");
                sb.Append("</a>");
                sb.Append("</div>");
                sb.Append("<div class=\"cover_txt\">");
                sb.Append("<h5>" + dt.Rows[i]["Caption"].ToString() + "</h5>");
                sb.Append("<p class=\"cover_intro\">" + dt.Rows[i]["Description"].ToString() + "</p>");
                sb.Append("<p class=\"more\"><a href=\"../../PicDetail.aspx?ItemID=" + dt.Rows[i]["ID"].ToString() + "\" target=\"_blank\">预览>></a></p>");
                sb.Append("</div>");
                sb.Append("</div>");
            }
            if (totalRecord > pageSize)
            {
                sb.Append(ShowFeatureImagePage(pageSize, pageIndex, totalRecord, featureId));
            }
            return(sb.ToString());
        }
Пример #4
0
 public string ShowFeatureImagesContent(string featureId, int type, int pageSize, int pageIndex)
 {
     QJVRMS.Business.FeatureWS.FeatureService feature = new QJVRMS.Business.FeatureWS.FeatureService();
     int totalRecord = 0;
     DataTable dt = feature.GetFeatureImages(new Guid(featureId), type, pageSize, pageIndex, ref totalRecord);
     if (dt == null || dt.Rows.Count == 0)
         return string.Empty;
     ResourceType.ImageType imageType = new QJVRMS.Business.ResourceType.ImageType();
     StringBuilder sb = new StringBuilder();
     for (int i = 0; i < dt.Rows.Count; i++)
     {
         sb.Append("<div class=\"single_cover\">");
         sb.Append("<div class=\"cover_img\">");
         sb.Append("<a href=\"../../PicDetail.aspx?ItemID=" + dt.Rows[i]["ID"].ToString() + "\" target=\"_blank\">");
         //yangguang
         //sb.Append("<img src=\"" + imageType.PreviewPath_170_Read + dt.Rows[i]["ServerFolderName"].ToString() + "/" + dt.Rows[i]["ServerFileName"].ToString() + "\" alt=\"\" border=\"0\" />");
         sb.Append("<img src=\"" + imageType.GetPreviewPathRead(dt.Rows[i]["ServerFolderName"].ToString(), dt.Rows[i]["ServerFileName"].ToString(), "170") + "\" alt=\"\" border=\"0\" />");
         sb.Append("</a>");
         sb.Append("</div>");
         sb.Append("<div class=\"cover_txt\">");
         sb.Append("<h5>" + dt.Rows[i]["Caption"].ToString() + "</h5>");
         sb.Append("<p class=\"cover_intro\">" + dt.Rows[i]["Description"].ToString() + "</p>");
         sb.Append("<p class=\"more\"><a href=\"../../PicDetail.aspx?ItemID=" + dt.Rows[i]["ID"].ToString() + "\" target=\"_blank\">预览>></a></p>");
         sb.Append("</div>");
         sb.Append("</div>");
     }
     if (totalRecord > pageSize)
         sb.Append(ShowFeatureImagePage(pageSize, pageIndex, totalRecord, featureId));
     return sb.ToString();
 }
Пример #5
0
        public DataTable ShowFeatureImages(string featureId, int type, int pageSize, int pageIndex, ref int totalRecord)
        {
            QJVRMS.Business.FeatureWS.FeatureService feature = new QJVRMS.Business.FeatureWS.FeatureService();
            DataTable dt = feature.GetFeatureImages(new Guid(featureId), type, pageSize, pageIndex, ref totalRecord);

            return dt;
        }
Пример #6
0
 //专题管理的详细信息
 public string GetFeatureImagesContent(string featureId, int type, int pageSize, int pageIndex)
 {
     StringBuilder sb = new StringBuilder();
     sb.Append("<div style=\"padding:3px 0px 3px 0px;border-bottom:#d4d0c8 solid 1px;\"><input type=\"button\" class=\"btn\" style=\"font-size:12px;\" onclick=\"AddImage('" + featureId + "')\" value=\"添加图片\" /></div>");
     QJVRMS.Business.FeatureWS.FeatureService feature = new QJVRMS.Business.FeatureWS.FeatureService();
     int totalRecord = 0;
     DataTable dt = feature.GetFeatureImages(new Guid(featureId), type, pageSize, pageIndex, ref totalRecord);
     if (dt == null || dt.Rows.Count == 0)
         return sb.ToString();
     HttpContext.Current.Session["DataResource"] = dt;
     ResourceType.ImageType imageType = new QJVRMS.Business.ResourceType.ImageType();
     sb.Append("<div>");
     sb.Append("<ul class=\"detailClass\">");
     for (int i = 0; i < dt.Rows.Count; i++)
     {
         sb.Append("<li>");
         sb.Append("<table id=\"" + dt.Rows[i]["FDId"].ToString() + "\" ><tr><td valign=\"bottom\" style=\"height:185px;\">");
         sb.Append("<div>");
         sb.Append("<a href=\"../../PicDetail.aspx?ItemID=" + dt.Rows[i]["ID"].ToString() + "\" target=\"_blank\">");
         //yangguang
         //sb.Append("<img src=\"" + imageType.PreviewPath_170_Read + dt.Rows[i]["ServerFolderName"].ToString()+"/" + dt.Rows[i]["ServerFileName"].ToString() + "\" alt=\"\"  border=\"0\" /><br />");
         sb.Append("<img src=\"" + imageType.GetPreviewPathRead(dt.Rows[i]["ServerFolderName"].ToString(), dt.Rows[i]["ServerFileName"].ToString(), "170") + "\" alt=\"\"  border=\"0\" /><br />");
         sb.Append("</a>");
         sb.Append("</div>");
         sb.Append("</td></tr>");
         sb.Append("<tr><td valign=\"middle\">");
         sb.Append(dt.Rows[i]["Caption"].ToString() + "<a href=\"javascript:Delete('" + dt.Rows[i]["FDId"].ToString() + "')\" ><img src=\"../../image/common/delete.GIF\" alt=\"删除图片\" /></a>");
         //yangguang
         //sb.Append("&nbsp;<a href=\"javascript:ShowConver('" + imageType.PreviewPath_170_Read + dt.Rows[i]["ServerFolderName"].ToString() + "/" + dt.Rows[i]["ServerFileName"].ToString() + "', '" + featureId + "', '" + dt.Rows[i]["ServerFileName"].ToString() + "', '" + dt.Rows[i]["ServerFolderName"].ToString() + "')\" ><img src=\"../../image/common/action_print.gif\" alt=\"设为封面\" /></a>");
         sb.Append("&nbsp;<a href=\"javascript:ShowConver('" + imageType.GetPreviewPathRead(dt.Rows[i]["ServerFolderName"].ToString(), dt.Rows[i]["ServerFileName"].ToString(), "170") + "', '" + featureId + "', '" + dt.Rows[i]["ServerFileName"].ToString() + "', '" + dt.Rows[i]["ServerFolderName"].ToString() + "')\" ><img src=\"../../image/common/action_print.gif\" alt=\"设为封面\" /></a>");
         sb.Append("</td></tr></table>");
         sb.Append("</li>");
     }
     sb.Append("</ul></div>");
     if (totalRecord > pageSize)
         sb.Append(GetImagePage(pageSize, pageIndex, totalRecord, featureId));
     return sb.ToString();
 }