How to running Job from a Form

For Example we wanna run a Job with name  "FAN_TableList_CSV".

So you must create a button and oferride method Clicked in this button by this code:

void clicked()
{
    TreeNode tr;
    XInfo xInfo = new xInfo();
    ;
    tr = xInfo.rootNode();
    tr = treeNode::findNode("jobs").AOTfindChild("FAN_TableList_CSV");
    tr.AOTrun();
}

 

posted @ 2013-07-19 22:55  Fandy Xie  Views(258)  Comments(0Edit  收藏  举报