class workflow_chkdlg : public win__ { //ÃüÁî·¢²¼º¯Êý int OnCmdDispatch(string comdid) { if(this.GetParam()) { if(comdid=="xmOK") { control__ xc = new control__; xc.setNativePointer(GetControl("content")); string str = ""+xc.GetText(); //trace(str); xaserverarg__ arg = this.GetParam(); arg.AddArg("content",str); } arg.AddArg("comdid",comdid); } CloseWindow(); return 0; } //ÃüÁî´¦Àíʼþ int OnXCommand(ref TXCommandEvent evt,int param) { return OnCmdDispatch(evt.pStrID); } int OnAttachEvent() { //°ó¶¨¹¤¾ßÌõµã»÷ʼþ AttachEvent("WM_XCOMMAND",OnXCommand); } int onload() { OnAttachEvent(); xaserverarg__ arg; if(this.GetParam()) { arg = this.GetParam(); control__ xc = new control__; xc.setNativePointer(GetControl("content")); xc.SetText(""+arg.GetArgString("content")); } 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()); 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); } return 1; } }