lifan
3 天以前 3f84c5ed59fbdd5f2c2b94420c0ab01b24aa5478
jrj/project/business/GDN/maint.Document.GDN.v3.cpp
@@ -188,16 +188,16 @@
            args.AddArg(L"entityid", entityid);
            
            /*xml x1 = ViewObject::RetrieveData(L"/sale/data/TDocument3/attachment/GetFileFormat",L"Name",ret);
            KXMLDOMNodeList items = x1.GetXmlDoc().selectNodes(L"data/Item");
            xml x1 = ViewObject::RetrieveData(L"/sale/data/TDocument3/attachment/GetFileFormat",L"Name",ret);
            KXMLDOMNodeList items = x1.selectNodes(L"data/Item");
            KXMLDOMNode t = items.item(0);
            xstring FileFormat=L"";
            if(t.selectSingleNode(L"FileFormat"))FileFormat=t.selectSingleNode(L"FileFormat").text;
            if(FileFormat !=L"pdf" && FileFormat !=L"PDF")
            if(t.selectSingleNode(L"FileFormat"))FileFormat=t.selectSingleNode(L"FileFormat").text();
            if(FileFormat !=L"pdf" && FileFormat !=L"PDF" && FileFormat != L"xlsx" && FileFormat != L"xls" && FileFormat != L"docx" && FileFormat != L"doc" )
            {
               alert(L"请上传PDF格式的文件");
               alert(L"请上传正确格式的文件");
               return 0;
            }*/
            }
            //alert(L"myurl:"+myurl+L"--name:"+ret+L"--filepath:"+sname+L"--filesource:"+ret+L"--entityid:"+entityid);
            if (xurl::get(L"/sale/data/TDocument3/attachment/addex", args.GetString(), x) != 1)
            {