//private void BindUserCollect(string _strPid) //{ // try // { // string strSql = "select a.CollectId,a.AlbumId, b.Title as floder,a.Note,a.NoteDate from TLC_Collects a, TLC_Albums b where a.Pid={0} and a.AlbumId=b.AlbumId and a.UserId={1} and a.NoteDate<>'' and a.[Type]='CN'"; // //string strPid = Request.QueryString["PID"].Trim(); //8779247 // GridView1.DataSource = DBA.SqlDbAccess.GetDataTable(CommandType.Text, string.Format(strSql, _strPid, Convert.ToInt32(Session["UserID"]))); // GridView1.DataBind(); // } // catch (Exception ex) // { // } //} /// <summary> /// TAb切换 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void btnActiveTab_Click(object sender, EventArgs e) { SearchInterface.ClsSearch search = new SearchInterface.ClsSearch(); switch (hidActiveTabTi.Value) { // <li><a href="#tabMianXml">著录项目信息</a></li> //<li><a href="#TabDegImgs">外观图形</a></li> //<li><a href="#DivtabPdf">全文PDF</a></li> //<li><a href="#divTabDes">说明书</a></li> //<li><a href="#divTabClams">权利要求</a></li> //<li><a href="#divTabLegal">法律状态</a></li> case "外观图形": if (LiteralPictureList.Text == "Loading......") { if (Request.QueryString["Id"] != null && Request.QueryString["Id"] != "") { LiteralPictureList.Text = string.Format("<iframe id='irmWgIms' src='frmDesignImgs.aspx?Id={0}' frameborder='0' width='100%' height='660'></iframe>", Request.QueryString["Id"]); } } LinkButtonDownload.Visible = false; break; case "全文PDF": if (LiteralPdf.Text == "Loading......") { if (Request.QueryString["Id"] != null && Request.QueryString["Id"] != "") { #region closed..... //string strPdfUrls = search.getInfoByPatentID(Request.QueryString["Id"], "CN", "2"); //string[] strArryPdfUrls = strPdfUrls.Split('|'); //StringBuilder strBud = new StringBuilder(); //for (int i = 0; i < strArryPdfUrls.Length; i++) //{ // if (strArryPdfUrls[i].Contains("0ACN")) // { // string pdfInfo = "公开文本"; // //strBud.Append(string.Format("<a id='hrf{2}' href='{1}' target='_blank' onclick='return LoadPdf(this)'>公开文本[{0}]</a> ", // // bnsFiles[i].Substring(bnsFiles[i].LastIndexOf('/') + 1, 34), bnsFiles[i], i + 1)); // strBud.Append(string.Format("<a id='hrf{0}' href='{1}' target='_blank' onclick='return LoadPdf(this)'>" + pdfInfo + "</a> ", i + 1, strArryPdfUrls[i])); // } // else // { // string pdfInfo = "公告文本"; // //strBud.Append(string.Format("<a id='hrf{2}' href='{1}' target='_blank' onclick='return LoadPdf(this)'>公告文本[{0}]</a> ", // // bnsFiles[i].Substring(bnsFiles[i].LastIndexOf('/') + 1, 34), bnsFiles[i], i + 1)); // strBud.Append(string.Format("<a id='hrf{0}' href='{1}' target='_blank' onclick='return LoadPdf(this)'>" + pdfInfo + "</a> ", i + 1, strArryPdfUrls[i])); // } //} //LiteralPdf.Text = string.Format("", ""); //LiteralPdf.Text = "<object classid=\"clsid:CA8A9780-280D-11CF-A24D-444553540000\" width=\"900\" height=\"600\" border=\"0\"><param name=\"_Version\" value=\"65539\"><param name=\"_ExtentX\" value=\"20108\"><param name=\"_ExtentY\" value=\"10866\"><param name=\"_StockProps\" value=\"0\"><param name=\"SRC\" value=\"" + search.getInfoByPatentID(Request.QueryString["Id"], "CN", "2") + "\"><object align=\"center\" data=\"" + search.getInfoByPatentID(Request.QueryString["Id"], "CN", "2") + "\" type=\"application/pdf\" width=\"900\" height=\"600\"></object></object>"; //<form name="form1" method="post" action="GetBns.aspx?PNo=APP6CCA6DDA9HBA9GFF9EFB9GEB9ICB9EDB9GHH9IGG3BAA5CBA&type=CN" id="form1"> //string strCprsPdfUrls = "<form id='frmPdf_1' method='post' action='http://202.106.92.181/cprs2010/docdb/GetBns.aspx?PNo=APP{0}&type=CN'></form><script type='text/javascript'>alter(document.getElementById('frmPdf_1'))</script>"; //LiteralPdf.Text = string.Format(strCprsPdfUrls, Request.QueryString["Id"].Trim()); //LiteralPdf.Text = "<div><form id='aspnetForm' name='aspnetForm' method='post' action='http://202.106.92.181/cprs2010/docdb/GetBns.aspx?PNo=APP&type=CN'></form></div>"; //LiteralPdf.Mode = LiteralMode.Encode; #endregion LiteralPdf.Text = "<div id='divPfpage'>Loading......</div>"; string strCprsPdfUrlPage = string.Format("http://211.160.117.105/bns/comm/GetBns.aspx?PNo=APP{0}&type=CN", Request.QueryString["Id"].Trim()); //string strCprsPdfUrlPage = string.Format("http://202.106.92.181/cprs2010/docdb/GetBns.aspx?PNo=APP{0}&type=CN", Request.QueryString["Id"].Trim()); //System.Net.WebClient MyWebClient = new System.Net.WebClient(); //MyWebClient.Encoding = System.Text.Encoding.UTF8; //string strRs = MyWebClient.DownloadString(strCprsPdfUrlPage); ////LiteralPdf.Text = strRs; //ScriptManager.RegisterStartupScript(this, this.GetType(), "LiteralPdf", "LoadPdfFile('divPfpage','" + strCprsPdfUrlPage + "')", true); //HiddenField1Pdf.Value = strRs; //strCprsPdfUrlPage = "http://pdfobject.com/examples/simplest-styled.html"; LiteralPdf.Text = string.Format("<iframe id='irmPdf' src='{0}' style='z-index:0;' frameborder='0' width='100%' height='600'></iframe>", strCprsPdfUrlPage); } } LinkButtonDownload.Visible = false; break; case "权利要求": if (LiteralRights.Text == "Loading......") { if (Request.QueryString["Id"] != null && Request.QueryString["Id"] != "") { //LiteralRights.Text = search.getInfoByPatentID(Request.QueryString["Id"], "CN", "0"); string xmltext = search.getInfoByPatentID(Request.QueryString["Id"], "CN", "0"); if (xmltext.StartsWith("ERROR:")) { LiteralRights.Text = xmltext; } else { MSXML2.DOMDocument30Class xml = new MSXML2.DOMDocument30Class(); MSXML2.DOMDocument30Class xslt = new MSXML2.DOMDocument30Class(); //xmltext=xmltext.Replace("<![CDATA[<math>", "<math>").Replace("</math>]]>", "</math>"); xml.loadXML(xmltext); XmlDocument doc = new XmlDocument(); doc.Load(Server.MapPath("~") + "\\newcss\\claims.xsl"); string xsltext = doc.InnerXml; xslt.loadXML(xsltext); LiteralRights.Text = xml.transformNode(xslt).Replace("charset=UTF-16", "charset=GB2312"); } } } LinkButtonDownload.Visible = UserRight.getVisibleRight(Session["UserID"].ToString(), "QWXZ"); break; case "说明书": if (LiteralBook.Text == "Loading......") { if (Request.QueryString["Id"] != null && Request.QueryString["Id"] != "") { LiteralBook.Text = search.getInfoByPatentID(Request.QueryString["Id"], "CN", "1"); } } LinkButtonDownload.Visible = UserRight.getVisibleRight(Session["UserID"].ToString(), "QWXZ"); break; case "法律状态": if (LiteralLeagl.Text == "Loading......") { SearchInterface.WSFLZT.CnLegalStatus[] currentDataSet = search.getFalvZhuangTai(Request.QueryString["Id"]); if (currentDataSet != null) { GridViewLegal.DataSource = currentDataSet; GridViewLegal.DataBind(); } } LiteralLeagl.Text = ""; GridViewLegal.Visible = true; LinkButtonDownload.Visible = UserRight.getVisibleRight(Session["UserID"].ToString(), "FLZTXZ"); break; case "引文信息": if (LiteralQuote.Text == "Loading......") { if (LiteralAnnNo.Text != null && LiteralAnnNo.Text != "") { string yzInf = search.getYZInf(LiteralAnnNo.Text); if (!yzInf.Equals("")) { if (yzInf.IndexOf("@@@") > 0) { LiteralQuote.Text = yzInf.Replace("@@@", "<br />"); } else { LiteralQuote.Text = yzInf; } } else { LiteralQuote.Text = "暂无数据"; } //LiteralQuote.Text = yzInf == "" ? "暂无数据" : yzInf; } else { LiteralQuote.Text = "暂无数据"; } } LinkButtonDownload.Visible = true; break; } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { if (Request.QueryString["Id"] != null && Request.QueryString["Id"] != "") { String strId = Request.QueryString["Id"].Trim(); String type = Request.QueryString["type"]; if (type == null || type.Equals("")) { type = "CN"; } else { type = type.Trim(); } String select = Request.QueryString["select"]; if (select == null || select.Equals("")) { select = "0"; } else { select = select.Trim(); } String patType = Request.QueryString["patType"]; if (patType == null || patType.Equals("")) { patType = "0"; } else { patType = patType.Trim(); } SearchInterface.ClsSearch search = new SearchInterface.ClsSearch(); xmlDataInfo currentXmlDataInfo = new xmlDataInfo(); if (type == "CN") { //if (System.Text.RegularExpressions.Regex.IsMatch(currentXmlDataInfo.StrApNo, @"(^.{2}3.{5}.*$)|(^.{2}3.{5}\..$)|(^.{4}3.{7}.*$)|(^.{4}3.{7}\..$)")) if (patType == "1") { DropDownListPatentPart.Items.Add(new ListItem("著录项目", "divMain")); DropDownListPatentPart.Items.Add(new ListItem("摘要信息", "divAbs")); DropDownListPatentPart.Items.Add(new ListItem("摘要附图", "divBrief")); DropDownListPatentPart.Items.Add(new ListItem("法律状态", "divLegal")); } else { DropDownListPatentPart.Items.Add(new ListItem("著录项目", "divMain")); DropDownListPatentPart.Items.Add(new ListItem("权利要求", "divClaim")); DropDownListPatentPart.Items.Add(new ListItem("说明书", "divDes")); DropDownListPatentPart.Items.Add(new ListItem("摘要信息", "divAbs")); DropDownListPatentPart.Items.Add(new ListItem("摘要附图", "divBrief")); DropDownListPatentPart.Items.Add(new ListItem("法律状态", "divLegal")); DropDownListPatentPart.Items.Add(new ListItem("引文信息", "divQuote")); } currentXmlDataInfo = search.GetCnxmlDataInfo(strId); gonggao.Visible = true; } else { DropDownListPatentPart.Items.Add(new ListItem("著录项目", "divMain")); DropDownListPatentPart.Items.Add(new ListItem("摘要信息", "divAbs")); DropDownListPatentPart.Items.Add(new ListItem("摘要附图", "divBrief")); DropDownListPatentPart.Items.Add(new ListItem("法律状态", "divLegal")); DropDownListPatentPart.Items.Add(new ListItem("引文信息", "divQuote")); currentXmlDataInfo = search.GetEnxmlDataInfo(strId); gonggao.Visible = false; } //if (int.Parse(select) > DropDownListPatentPart.Items.Count) //{ // select = DropDownListPatentPart.Items.Count.ToString(); //} //DropDownListPatentPart.SelectedIndex = int.Parse (select); if (select == "0") { DropDownListPatentPart.SelectedIndex = 0; } else if (type == "CN" && patType == "1") { DropDownListPatentPart.SelectedIndex = 1; } else if (type == "EN") { DropDownListPatentPart.SelectedIndex = 1; } else { DropDownListPatentPart.SelectedIndex = int.Parse(select); } LiteralTitleA.Text = "<a href='frmPatDetails.aspx?Id=" + currentXmlDataInfo.StrANX + "' target='_blank' >" + currentXmlDataInfo.StrTitle + "</a>"; LiteralApDateA.Text = currentXmlDataInfo.StrApDate; LiteralApNoA.Text = currentXmlDataInfo.StrApNo; LiteralInventorA.Text = currentXmlDataInfo.StrInventor; LiteralApplyA.Text = currentXmlDataInfo.StrApply; LiteralCountryCodeA.Text = currentXmlDataInfo.StrCountryCode; LiteralPubNoA.Text = currentXmlDataInfo.StrPubNo; LiteralPubDateA.Text = currentXmlDataInfo.StrPubDate; LiteralAnnNoA.Text = currentXmlDataInfo.StrAnnNo; LiteralAnnDateA.Text = currentXmlDataInfo.StrAnnDate; LiteralAddsA.Text = currentXmlDataInfo.StrShenQingRenDiZhi; litYSQ_A.Text = currentXmlDataInfo.StrPri; LiteralAbs.Text = currentXmlDataInfo.StrAbstr; //LiteralBrief.ImageUrl = currentXmlDataInfo.StrFtUrl; LiteralImageFt.Text = string.Format("<img id='ImageFt' src='../Images/loding_imgFt.gif' onload=\"resizeFt(this,'{0}')\" alt='摘要附图'/>", currentXmlDataInfo.StrFtUrl); if (!gonggao.Visible) { litFlzt_A.Text = string.Format("<iframe id='irmLagel' src='{0}comm/epo_legal.aspx?pubno={1}' style='z-index:0;' frameborder='0' width='100%' height='300'></iframe>", SearchInterface.XmPatentComm.strUrlDome, currentXmlDataInfo.StrANX); string strLiteralQuote_1 = search.GetEnCitedWithSrepPhase(Request.QueryString["Id"].Trim(), "APP", "is").Replace(";", "<br />"); string strLiteralQuote_2 = search.GetEnCitedWithSrepPhase(Request.QueryString["Id"].Trim (), "APP", "not").Replace(";", "<br />"); LiteralQuote.Text = "<p><strong>申请人引用:</strong></p>" + strLiteralQuote_1 + "<hr align=\"center\" width=\"100%\" size=\"1\" style=\"margin: 10px 0;\" /><p><strong>非申请人引用:</strong></p>" + strLiteralQuote_2; } else { litFlzt_A.Text = string.Format("<iframe id='irmLagel' src='/my/frmLawInfo.aspx?Idx={0}' style='z-index:0;' frameborder='0' width='100%' height='300'></iframe>", currentXmlDataInfo.StrANX); if (LiteralQuote.Text == "Loading......") { if (LiteralAnnNoA.Text != null && LiteralAnnNoA.Text != "") { string yzInf = search.getYZInf(LiteralAnnNoA.Text); if (!yzInf.Equals("")) { if (yzInf.IndexOf("@@@") > 0) { LiteralQuote.Text = yzInf.Replace("@@@", "<br />"); } else { LiteralQuote.Text = yzInf; } } else { LiteralQuote.Text = "暂无数据"; } } else { LiteralQuote.Text = "暂无数据"; } } } } } }