xj qian
2024-07-01 d013a35ef5bb3b45b46362c67d6f3ca52a54e96d
jrj/project/printview/Template.Print.ViewEx.cpp
@@ -465,7 +465,7 @@
         dataUrl = L"/sale/data/"+sEntityName+ L"/"+ dataUrl;
      if(!m_dataset)
      {
         xml x0 = new xml;
         xml x0 ;
         if (xurl::get(dataUrl,arg.GetString(),x0) != 1)
         {
            alert(L"数据集出错了!");
@@ -591,10 +591,11 @@
      
   int updateHtml()
   {
      return 1;
      IHTMLDocument3* doc = (IHTMLDocument3 * )ole_print.GetHtmlDocument();
      IHTMLElementCollection* rows;
      IHTMLElementCollection* rows = NULL;
      IHTMLElementCollection* rows2 = NULL;
      doc->getElementsByTagName((BSTR)L"tr",&rows);
      IHTMLElementCollection* rows2;
      doc->getElementsByTagName((BSTR)L"td",&rows2);
      long len;
      rows->get_length(&len);
@@ -734,7 +735,7 @@
                           SendCtrlCmd(cell,L"xmFormatShowGrid");
                           showgrid = true;
                        }*/
                        xml x1 = new xml;
                        xml x1 ;
                           
                        xstring content1 = x.xml();
                        content1 = content1.replace(L"[空]",L" ",0);
@@ -932,7 +933,7 @@
      content = content.replace(L"&nbsp",L"[空]",0);
      content = content.replace(L"&",L"",0);
      
      xml x0 = new xml;
      xml x0 ;
      x0.loadXML(L"<Bill/>");
      x0.documentElement().settext(content);
      content = x0.xml();
@@ -952,7 +953,7 @@
      
      x.loadXML(ls_xml); 
      xaserverarg arg;
      arg.setNativePointer(xaserverarg::CreateInstance());
      arg.AddArg(L"content", x.xml());
      
      if(xurl::get(L"/sale/data/DocumentList3/bill/update", arg.GetString(),x)!=1)
@@ -1092,7 +1093,7 @@
         ole_print.ExecWB(27,0);
         return 1;
            alert(L"xxx");
               xml x1 = new xml;
               xml x1 ;
         
         xaserver::ExecXQuery(GetServerUrl(), L"[xsl.getdevobj.xq]",L"<args/>",x1);
      }