zoaoo

博客园 首页 新随笔 联系 订阅 管理
Args            args; 
FormRun         formRun; 
; 
args = new Args(); 
args.name(formstr(FormName)); 
args.caller(); 
args.record(); 
formRun = classfactory.formRunClass(args); 
formRun.init(); 
formRun.run(); 
formRun.dataSource(1).findRecord(common); 
formRun.wait(); 
 
localSalesLine = element.args().record(); 
localSalesLine.ItemId = ctrlItemId.valueStr(); 
localSalesLine.dataSource().object(fieldNum(SalesLine, ItemId)).modified(); 
 
if (_args && _args.dataset() == bomCosTGroup.TableId) 
{ 
    if (_args.record().isFormDataSource()) 
    { 
        formDataSource = _args.record().dataSource(); 
        for(caller  = formDataSource.getFirst(true) ? formDataSource.getFirst(true): _args.record(); 
            caller; 
            caller = formDataSource.getNext()) 
        { 
            info(caller.CostGroupId); 
            info("test"); 
        } 
    } 
}t. 
 
Args            args = new Args(); 
; 
args.record(wmsShipment); 
args.caller(element); 
args.parmObject(wmsShipmentOption); 
new MenuFunction(menuitemactionstr(SalesFormLetter_PackingSlip), MenuItemType::Action).run(args);

 

posted on 2017-04-24 16:00  zoaoo  阅读(392)  评论(0编辑  收藏  举报