class workflow_actionlog : public win__ { //ÃüÁî·¢²¼º¯Êý int OnCmdDispatch(string comdid) { CloseWindow(); return 0; } //ÃüÁî´¦Àíʼþ int OnXCommand(ref TXCommandEvent evt,int param) { return OnCmdDispatch(evt.pStrID); } int OnAttachEvent() { //°ó¶¨¹¤¾ßÌõµã»÷ʼþ AttachEvent("WM_XCOMMAND",OnXCommand); } int onload() { OnAttachEvent(); xdwgrid__ dw_loglist = new xdwgrid__; dw_loglist.setNativePointer(GetControl("dw_loglist")); dw_loglist.openUrl("/sale/view/workflow.view/template/chkdlg/loglist"); if(this.GetParam()) { xaserverarg__ argx = new xaserverarg__; argx.setNativePointer(argx.CreateInstance()); xaserverarg__ arg = this.GetParam(); argx.AddArg("EntityID",arg.GetArgString("EntityID")); xml__ x = new xml__; x.setNativePointer(xml__ ::CreateInstance()); url::get("/sale/data/workflow.core/workflow/chk/loglist", argx.GetString(), x); dw_loglist.Retrieve(x); dw_loglist.SetReadOnly(true); xflowchart__ dw_chart = new xflowchart__; dw_chart.setNativePointer(GetControl("dw_logchart")); xml__ xc = new xml__; xc.setNativePointer(xml__ ::CreateInstance()); url::get("/sale/data/workflow.core/workflow/chk/logchart", argx.GetString(), xc); msxml::IXMLDOMElement e = xc.GetXmlDoc().documentElement; dw_chart.LoadEx(e); /* string xbox = ""; xnode__ anode = new xnode__; anode.setNativePointer(GetAgentNode("flowimage")); SetAgentNodeContent (anode,xbox);*/ imageview__ im = new imageview__; im.setNativePointer(GetControl("image")); //alert(arg.GetArgString("EntityName")); im.AddImages("/business/flow/"+arg.GetArgString("EntityName")+".jpg"); } return 1; } }