调用Form时去掉原Form过滤条件

job:

static void Job117(Args _args)
{
  Args localArgs;
  PurchReqId reqId = "XXXX";
  FormRun formRun;
  PurchReqTable purchReqTable;
  ;
  localArgs = new Args(formStr(purchReqTable));
  localArgs.parmEnum(NoYes::Yes);
  localArgs.parm("RemoveFilter");
  purchReqTable = purchReqTable::find(reqId);
  localArgs.record(purchReqTable);
  formRun = classFactory.formRunClass(localArgs);
  formRun.init();
  formRun.run();
  formRun.detach();

}

调用Form purchReqTable的init方法中增加:

if (element.args().parm() == "RemoveFilter")
  purchReqTable_ds.query().dataSourceName("PurchReqTable").clearRanges();

 

posted @ 2019-07-04 12:13  学习是进步的阶梯  阅读(232)  评论(0编辑  收藏  举报