|  |  | 
 |  |  |  | 
 |  |  |       dw_list.Retrieve(doc); | 
 |  |  |       dw_list.CreateTree((LPCWSTR)L"node()", 1, 15, 16); | 
 |  |  |  | 
 |  |  |       dw_list.Redraw(); | 
 |  |  |       /* | 
 |  |  |       dw_list.Redraw(); | 
 |  |  |       dw_list.SetReadOnly(true); | 
 |  |  | 
 |  |  |          { | 
 |  |  |             xq = xq.replace(L"dev:xpage[", L""); | 
 |  |  |             xq = xq.replace(L"]", L""); | 
 |  |  |             xaserverarg args; | 
 |  |  |             xaserverarg& args = *(xaserverarg*)para; | 
 |  |  |             args.AddArg(L"_ModuelPage", xq); | 
 |  |  |             //alert(args.GetString()); | 
 |  |  |             OpenWindow(L"dev:xpage[vindexforold.vx]", args); | 
 |  |  | 
 |  |  |       } | 
 |  |  |       else | 
 |  |  |       { | 
 |  |  |          xaserverarg arg; | 
 |  |  |          xaserverarg& arg = *(xaserverarg*)para; | 
 |  |  |          n = doc.selectSingleNode(L"//resource[@vface!='' and @view!='']"); | 
 |  |  |          if (n) | 
 |  |  |          { | 
 |  |  | 
 |  |  |       trace((xstring)L"\r\n====113======L" + ele.xml()); | 
 |  |  |       dw_list.SetRow(row); | 
 |  |  |       if (GetEntityID(1) == L"") return -1; | 
 |  |  |       xframe::SetAgent((xstring)L"letter", GetEntityID(1)); | 
 |  |  |  | 
 |  |  |       //trace(ele.xml); | 
 |  |  |       xaserverarg arg; | 
 |  |  | 
 |  |  |          return 0; | 
 |  |  |       } | 
 |  |  |       //trace(L"----1111----"); | 
 |  |  |       if (doc.xml() == L"") | 
 |  |  |       if ((xstring)doc.xml() == L"") | 
 |  |  |          return -1; | 
 |  |  |  | 
 |  |  |       //trace(doc.xml()); | 
 |  |  | 
 |  |  |       xshtml ht = GetControl(L"taskinfo"); | 
 |  |  |       ht.SetContent(doc.xml()); | 
 |  |  |       ht.Redraw(); | 
 |  |  |  | 
 |  |  |       //xframe::SetAgent((xstring)L"letter", GetEntityID(1)); | 
 |  |  |  | 
 |  |  |       return 1; | 
 |  |  |    } | 
 |  |  |  | 
 |  |  | 
 |  |  |  | 
 |  |  |       trace(L"\r\n-------" + (xstring)row); | 
 |  |  |  | 
 |  |  |       ShowDetail(row); | 
 |  |  |       SetAgent(); | 
 |  |  |       if (ShowDetail(row) != 1) | 
 |  |  |       { | 
 |  |  |          xstring xfNodeAgentArea = L"agentarea"; | 
 |  |  |          xnode anode = GetAgentNode(xfNodeAgentArea); | 
 |  |  |          this->SetAgentNode(anode, L"<vbox/>"); | 
 |  |  |       } | 
 |  |  |       else | 
 |  |  |          SetAgent(); | 
 |  |  |  | 
 |  |  |       return 1; | 
 |  |  |    } | 
 |  |  | 
 |  |  |       int row = hdr.row; | 
 |  |  |       if (row<0 || row>dw_list.GetRowCount()) return 0; | 
 |  |  |       trace(L"\r\n-----222------"); | 
 |  |  |       ShowDetail(row); | 
 |  |  |       SetAgent(); | 
 |  |  |       if (ShowDetail(row) != 1) | 
 |  |  |       { | 
 |  |  |          xstring xfNodeAgentArea = L"agentarea"; | 
 |  |  |          xnode anode = GetAgentNode(xfNodeAgentArea); | 
 |  |  |          this->SetAgentNode(anode, L"<vbox/>"); | 
 |  |  |       } | 
 |  |  |       else | 
 |  |  |          SetAgent(); | 
 |  |  |  | 
 |  |  |       return 1; | 
 |  |  |    } |