| | |
| | | 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) |
| | | { |