lifan
7 天以前 8bdc5247732b1985bed6ee483f6be07567312f4a
jrj/project/workflow/workflow.chkdlg_vd.cpp
@@ -14,19 +14,26 @@
      return pWin;
   }
public:
   xstring Name ;
   //命令发布函数
   int OnCmdDispatch(xstring comdid)
   {
      if (GetWinParam())
      {
         xaserverarg arg = GetArg();
         if (comdid == L"xmOK")
         {
            xcontrol xc = GetControl(L"content");
            arg.AddArg(L"content", xc.GetText());
            xstring str = xc.GetText();
            if (str == L"")alert("审批意见为空!");
            arg.AddArg(L"content", str);
         }
         arg.AddArg(L"comdid", comdid);
      }
      CloseWindow();
      return 0;
@@ -56,8 +63,9 @@
         arg = GetArg();
         xcontrol xc = GetControl(L"content");
         xc.SetText(arg.GetArgString(L"content"));
      }
      xdwgrid dw_loglist = GetControl(L"dw_loglist");
      dw_loglist.openUrl(L"/sale/view/workflow.view/template/chkdlg/loglist");
@@ -66,12 +74,14 @@
         xaserverarg argx;
         arg = GetArg();
         argx.AddArg(L"EntityID", arg.GetArgString(L"EntityID"));
         Name = arg.GetArgString(L"EntityName");
         xml x;
         xurl::get(L"/sale/data/workflow.core/workflow/chk/loglist", argx.GetString(), x);
         dw_loglist.Retrieve(x);
         dw_loglist.SetReadOnly(true);
      }
      alert(Name);
      return 1;
   }
};