Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/swift/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Axapta 正是我需要的。出于某种原因,我一直在想,那时候还需要翻译成字符串 SysDictEnum dictEnum = new SysDictEnum(enumNum(SDILF_ScrapReasons)); reason = dialog.a_Axapta_X++_Dynamics Ax 2012_Dynamics Ax 2012 R3 - Fatal编程技术网

Axapta 正是我需要的。出于某种原因,我一直在想,那时候还需要翻译成字符串 SysDictEnum dictEnum = new SysDictEnum(enumNum(SDILF_ScrapReasons)); reason = dialog.a

Axapta 正是我需要的。出于某种原因,我一直在想,那时候还需要翻译成字符串 SysDictEnum dictEnum = new SysDictEnum(enumNum(SDILF_ScrapReasons)); reason = dialog.a,axapta,x++,dynamics-ax-2012,dynamics-ax-2012-r3,Axapta,X++,Dynamics Ax 2012,Dynamics Ax 2012 R3,正是我需要的。出于某种原因,我一直在想,那时候还需要翻译成字符串 SysDictEnum dictEnum = new SysDictEnum(enumNum(SDILF_ScrapReasons)); reason = dialog.addField(enumStr(SDILF_ScrapReasons),"Scrap Reason"); dialog.run(); if (!dialog.closedOk()) {

正是我需要的。出于某种原因,我一直在想,那时候还需要翻译成字符串
    SysDictEnum dictEnum = new SysDictEnum(enumNum(SDILF_ScrapReasons));

    reason = dialog.addField(enumStr(SDILF_ScrapReasons),"Scrap Reason");
    dialog.run();
    if (!dialog.closedOk())
    {
        info(reason.value());
        return;
    }

    ttsBegin;
    // For now, this will strip off the order ID from the summary fields.
    // No longer removing the Order ID
    batchAttr = PdsBatchAttributes::find(itemId, invDim.inventBatchId, "OrderId");
    orders = SDILF_BreakdownOrders::find(batchAttr.PdsBatchAttribValue, true);
    if (orders)
    {
        orders.BoxProduced -= 1;
        orders.update();
    }
    // Adding a batch attribute that will include the reason for scrapping
    select forUpdate batchAttr;    
    batchAttr.PdsBatchAttribId = "ScrapReason";
    //batchAttr.PdsBatchAttribValue = any2str(dictEnum.index2Value(reason.value()));
    batchAttr.PdsBatchAttribValue = enum2str(reason.value());
    batchAttr.InventBatchId = invDim.inventBatchId;
    batchAttr.ItemId = itemId;
    batchAttr.insert();