| | |
| | | e.appendChild(Item); |
| | | } |
| | | |
| | | xml x2= new xml; |
| | | xml x2; |
| | | |
| | | dw_Meetings.DwUpdateAllTo(x2); |
| | | KXMLDOMElement e2=x2.documentElement(); |
| | |
| | | e.appendChild(Item2); |
| | | } |
| | | |
| | | xml x3= new xml; |
| | | xml x3; |
| | | |
| | | dw_MeetingsEx.DwUpdateAllTo(x3); |
| | | KXMLDOMElement e3=x3.documentElement(); |
| | |
| | | adid = ele.selectSingleNode(L"adid").text();*/ |
| | | adid = dw_list.GetItemString(row, L"adid"); |
| | | |
| | | xml x = new xml; |
| | | xml x ; |
| | | |
| | | xaserverarg arg; |
| | | |
| | |
| | | //加载主体数据 |
| | | int OnRetrieve() |
| | | { |
| | | xml x = new xml; |
| | | xml x ; |
| | | |
| | | xaserverarg arg; |
| | | |
| | |
| | | |
| | | int OnSave() |
| | | { |
| | | xml x = new xml; |
| | | xml x ; |
| | | |
| | | dw_base.AcceptText(); |
| | | dw_base.DwUpdateAllTo(x); |
| | | xaserverarg arg; |
| | | arg.setNativePointer(xaserverarg::CreateInstance()); |
| | | |
| | | arg.AddArg(L"content", x.xml()); |
| | | //trace(x.xml()); |
| | | if (getUrl(L"/sale/data/AdministrativeDepartment/ad_update", arg.GetString(), x) != 1) |
| | |
| | | |
| | | int OnParentRetrieve() |
| | | { |
| | | xml x = new xml; |
| | | xml x ; |
| | | |
| | | xaserverarg arg; |
| | | |
| | |
| | | |
| | | int OnRetrieve() |
| | | { |
| | | xml x = new xml; |
| | | xml x ; |
| | | |
| | | xaserverarg arg; |
| | | |
| | |
| | | |
| | | int OnSave() |
| | | { |
| | | xml x = new xml; |
| | | xml x ; |
| | | |
| | | dw_list.AcceptText(); |
| | | dw_list.DwUpdateAllToEx(x); |
| | | xaserverarg arg; |
| | | arg.setNativePointer(xaserverarg::CreateInstance()); |
| | | |
| | | arg.AddArg(L"content", x.xml().replace(L" 00:00:00", L"").replace(L"0000-00-00", L"")); |
| | | //trace(x.xml().replace(L" 00:00:00", L"").replace(L"0000-00-00", L""));//运行界面打印 |
| | | if (getUrl(L"/sale/data/ManpowerFile/multiUpdate", arg.GetString(), x) != 1) { |
| | |
| | | /*//加载数据 |
| | | int OnRetrieve() |
| | | { |
| | | xml x = new xml; |
| | | xml x ; |
| | | |
| | | xaserverarg arg; |
| | | |
| | |
| | | return 1; |
| | | KXMLDOMElement ele = dw_list.GetRowElement(row); |
| | | xstring mfid = ele.selectSingleNode(L"mfid").text();//查看 |
| | | xml x = new xml; |
| | | xml x ; |
| | | |
| | | xaserverarg arg;//放置参数 |
| | | |
| | |
| | | xstring GetQueryArg() |
| | | { |
| | | dw_arg.AcceptText(); |
| | | xml x = new xml; |
| | | xml x ; |
| | | |
| | | dw_arg.DwUpdateAllTo(x); |
| | | |
| | |
| | | KXMLDOMElement& e1 = *(KXMLDOMElement*)tv_folder.GetItemData(hItem); |
| | | xstring no = e1.getAttribute(L"no"); |
| | | |
| | | xml x = new xml; |
| | | xml x ; |
| | | |
| | | xaserverarg arg; |
| | | |
| | |
| | | int OnRetrieve() |
| | | { |
| | | //int hCursor = xutil::SetCursorWait();//鼠标位置 |
| | | xml x = new xml; |
| | | xml x ; |
| | | |
| | | xaserverarg arg;//放置参数 |
| | | |
| | |
| | | //保存数据 |
| | | int OnSave() |
| | | { |
| | | xml x = new xml; |
| | | xml x ; |
| | | |
| | | dw_base.AcceptText(); |
| | | dw_base.DwUpdateAllTo(x); |
| | | xaserverarg arg; |
| | | arg.setNativePointer(xaserverarg::CreateInstance()); |
| | | |
| | | arg.AddArg(L"content", x.xml()); |
| | | //trace(x.xml()); |
| | | if (xurl::get(L"/sale/data/ManpowerFile/update", arg.GetString(), x) != 1) |
| | |
| | | |
| | | int OnRetrieve() |
| | | { |
| | | xml x = new xml; |
| | | xml x ; |
| | | |
| | | xaserverarg arg; |
| | | |
| | |
| | | { |
| | | xaserverarg arg = new xaserverarg; |
| | | arg.setNativePointer(arg.CreateInstance()); |
| | | xml x = new xml; |
| | | xml x ; |
| | | x.setNativePointer(x.CreateInstance()); |
| | | |
| | | arg.AddArg(L"FlowID",L"1A83D53D-DD12-4FDB-A274-FA8D5982AB53"); |
| | |
| | | bind.bind(dw_1, vc); |
| | | |
| | | xml x; |
| | | x = new xml; |
| | | x ; |
| | | x.setNativePointer(xml::CreateInstance()); |
| | | x.LoadXml(vc.GetContent()); |
| | | |
| | |
| | | /* |
| | | int OnRetrieve() |
| | | { |
| | | xml x = new xml; |
| | | xml x ; |
| | | x.setNativePointer(xml::CreateInstance()); |
| | | xaserverarg arg = new xaserverarg; |
| | | arg.setNativePointer(arg.CreateInstance()); |
| | |
| | | dw_1.openUrl(L"/sale/view/SaleOrder/template/payment"); //base.maint.so.tpl/payment |
| | | |
| | | /* |
| | | xml x = new xml; |
| | | xml x ; |
| | | x.setNativePointer(xml::CreateInstance()); |
| | | if(url::get(L"/sale/view/SaleOrder/template/SaleOrder/payment1",L"",x)!=1) //SO.updata.oldserver.pr.xq |
| | | { |
| | |
| | | int ProcessSendMessage(xstring myurl, xstring param, xstring content, xstring datacontent, bool balert = false) |
| | | { |
| | | xaserverarg arg ; |
| | | arg.setNativePointer(xaserverarg::CreateInstance()); |
| | | |
| | | arg.AddArg(L"myurl", myurl); |
| | | arg.AddArg(L"param", param); |
| | | arg.AddArg(L"content", content); |
| | |
| | | xml x ; |
| | | |
| | | xaserverarg arg ; |
| | | arg.setNativePointer(xaserverarg::CreateInstance()); |
| | | |
| | | |
| | | xstring empno; |
| | | KXMLDOMNode n = purcher.selectSingleNode(L"//HrEmployee[Name='"+purchor+L"']/UserNo"); |
| | |
| | | if (action != L"purch") return 1; |
| | | xstring content = GetMySupplier(); |
| | | xaserverarg arg ; |
| | | arg.setNativePointer(xaserverarg::CreateInstance()); |
| | | |
| | | arg.AddArg(L"value", content); |
| | | OpenWindow(L"dev:xpage[QuoteSupplierItem.vx]", arg); |
| | | |
| | |
| | | { |
| | | xml x ; |
| | | xaserverarg arg ; |
| | | arg.setNativePointer(xaserverarg::CreateInstance()); |
| | | |
| | | arg.AddArg(L"Name", name); |
| | | if (getUrl(L"/sale/data/SupplierV3/HasParty", arg.GetString(), x) != 1) |
| | | { |
| | |
| | | { |
| | | xml purcher ; |
| | | xaserverarg arg ; |
| | | arg.setNativePointer(xaserverarg::CreateInstance()); |
| | | |
| | | arg.AddArg(L"id", L"采购员"); |
| | | if (getUrl(L"/sale/data/Quote/Purcher", arg.GetString(), purcher) != 1) |
| | | { |
| | |
| | | dw_list.DwUpdateAllToEx(x); |
| | | |
| | | xaserverarg arg; |
| | | arg.setNativePointer(xaserverarg::CreateInstance()); |
| | | |
| | | arg.AddArg(L"content", x.xml()); |
| | | |
| | | if (xurl::get(L"/sale/data/SysPrintTemplate/updateinfo", arg.GetString(), x) != 1) |
| | |
| | | m_EntityNo = arg_param.GetArgString(L"EntityNo"); |
| | | |
| | | xaserverarg arg; |
| | | arg.setNativePointer(xaserverarg::CreateInstance()); |
| | | arg.AddArg(L"EntityName", m_EntityName); |
| | | arg.AddArg(L"EntityID", m_EntityID); |
| | | arg.AddArg(L"EntityNo", m_EntityNo); |
| | | xml x = new xml; |
| | | xml x ; |
| | | |
| | | if (xurl::get(L"/sale/data/DocumentList3/bill/doclist", arg.GetString(), x) != 1) |
| | | { |
| | |
| | | { |
| | | SetArg(); |
| | | responsewin::onload(); |
| | | |
| | | /*if (GetParam()) |
| | | { |
| | | xstring action = arg_param.GetArgString(L"action"); |
| | |
| | | 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"数据集出错了!"); |
| | |
| | | |
| | | 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); |
| | |
| | | SendCtrlCmd(cell,L"xmFormatShowGrid"); |
| | | showgrid = true; |
| | | }*/ |
| | | xml x1 = new xml; |
| | | xml x1 ; |
| | | |
| | | xstring content1 = x.xml(); |
| | | content1 = content1.replace(L"[空]",L" ",0); |
| | |
| | | content = content.replace(L" ",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(); |
| | |
| | | |
| | | 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) |
| | |
| | | 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); |
| | | } |
| | |
| | | void* getImpl(); |
| | | }; |
| | | |
| | | |
| | | class KXMLDOMElement : public KXMLDOMNode |
| | | { |
| | | public: |
| | | KXMLDOMElement(KXMLDOMNode v); |
| | | KXMLDOMElement(void* impl) :KXMLDOMNode(impl) {} |
| | | KXMLDOMElement() :KXMLDOMNode() {} |
| | | public: |
| | | KXMLDOMElement(LPARAM p) :KXMLDOMNode((void*)p) {} |
| | | }; |
| | | |
| | | class KXMLDOMDocument : public KXMLDOMNode |
| | | { |
| | | public: |
| | | bool operator !() |
| | | { |
| | | return !impl || !documentElement(); |
| | | } |
| | | public: |
| | | const wchar_t* text(); |
| | | const wchar_t* url(); |
| | |
| | | KXMLDOMDocument(const KXMLDOMDocument& rhs); |
| | | }; |
| | | |
| | | class KXMLDOMElement : public KXMLDOMNode |
| | | { |
| | | public: |
| | | KXMLDOMElement( KXMLDOMNode v); |
| | | KXMLDOMElement(void* impl) :KXMLDOMNode(impl) {} |
| | | KXMLDOMElement() :KXMLDOMNode() {} |
| | | public: |
| | | KXMLDOMElement(LPARAM p) :KXMLDOMNode((void*)p) {} |
| | | }; |
| | | class KXMLDOMAttribute : public KXMLDOMNode |
| | | { |
| | | public: |
| | |
| | | #include <wobject/xwin.hpp> |
| | | #include <wobject/xurl.hpp> |
| | | #include <wobject/xapp.hpp> |
| | | class responsewin : public xwin |
| | | class responsewin : public xframe |
| | | { |
| | | public: |
| | | responsewin(void* impl, HWND hWnd) :xwin(impl, hWnd) {} |
| | | responsewin(void* impl, HWND hWnd) :xframe(impl, hWnd) {} |
| | | virtual int SetAgent() |
| | | { |
| | | return 1; |
| | | } |
| | | |
| | | virtual int PreOnSetFocus() |
| | | { |
| | | //返回0——不在执行以下代码;返回其他——执行以下代码。 |
| | | return 1; |
| | | } |
| | | |
| | | //焦点激活处理函数 |
| | | int OnSetFocus(TEvent* evt, int p) |
| | | { |
| | | //重置工具条 |
| | | SetAgent(); |
| | | return 1; |
| | | } |
| | | |
| | | virtual int PreOnCmdDispatch(xstring comdid) |
| | | { |
| | | //返回0——不在执行以下代码;返回其他——执行以下代码。 |
| | | return 1; |
| | | } |
| | | |
| | | virtual int PostOnCmdDispatch(xstring comdid, int rtn) |
| | | { |
| | | return 1; |
| | | } |
| | | |
| | | int OnCmdDispatch(xstring comdid) |
| | | { |
| | | int rtn = 0; |
| | | if (PreOnCmdDispatch(comdid) == 0) |
| | | return 1; |
| | | |
| | | if (comdid.find(L"action:", 0) >= 0) |
| | | rtn = ProcessFlowAction(comdid, 1); |
| | | |
| | | if (PostOnCmdDispatch(comdid, rtn) != 1) |
| | | { |
| | | alert(L"error"); |
| | | return 1; |
| | | } |
| | | |
| | | return rtn; |
| | | } |
| | | |
| | | //命令处理事件 |
| | | int OnXCommand(TEvent* evt, int p) |
| | | { |
| | | /*xwin::SendMessage(sPHWND.toInt(),0x401,sAssortmentHwnd,0); |
| | | struct TEvent |
| | | { |
| | | int hWnd; //this.GetHWND().toString() |
| | | int message;//WM_XCOMMAND 0x401, evt.message.toString()是十进制1045 |
| | | int wParam; |
| | | int lParam;未使用 |
| | | int time; |
| | | xpoint pt; |
| | | }; |
| | | struct TXCommandEvent : public TEvent |
| | | { |
| | | native string pStrID; |
| | | };*/ |
| | | //string str = "ccc"+evt.wParam.toString(); |
| | | //alert(str); |
| | | return OnCmdDispatch(evt->xcommand.pStrID); |
| | | } |
| | | |
| | | int OnClose(TEvent* evt, int p) |
| | | { |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | virtual int PostOnAttachEvent() |
| | | { |
| | | return 1; |
| | | } |
| | | |
| | | int OnAttachEvent() |
| | | { |
| | | //绑定工具条点击事件 |
| | | AttachEvent(L"WM_XCOMMAND", (FEvent)&responsewin::OnXCommand); |
| | | //获取焦点事件,用于重置工具条 |
| | | AttachEvent(L"WM_SETFOCUS", (FEvent)&responsewin::OnSetFocus); |
| | | //AttachEvent("WM_CLOSE",OnClose); |
| | | |
| | | PostOnAttachEvent(); |
| | | return 0; |
| | | } |
| | | |
| | | virtual int OnInit() |
| | | { |
| | | return 1; |
| | | } |
| | | |
| | | int onload() |
| | | { |
| | | SetAgent(); |
| | | OnAttachEvent(); |
| | | |
| | | OnInit(); |
| | | return 1; |
| | | } |
| | | }; |