Bài viết liên quan

Tạo Class BOMStructureExplodingContract


01/10/2020- duocnt    745 Views    

NỘI DUNG

    -    Liên kết BOMStructureExplodingContract với UIBuilder.

    [SysOperationContractProcessing(classStr(BOMStructureExplodingUIBuilder))]


    -    Class BOMStructureExplodingContract với các phương thức:

        1 - public NoYes parmByBOMId(NoYes _ByBOMId = ByBOMId).
        2 - public BOMId parmBOMId(BOMId _BOMId = BOMId).
        3 - public List parmListItemId(List _ListItemid = listItemid).
        4 - public NoYes parmCollapse(NoYes _Collapse=Collapse).


CODE X++

 - Code x++ chi tiết.

[SysOperationContractProcessing(classStr(BOMStructureExplodingUIBuilder))]
class BOMStructureExplodingContract
{
    List      listItemid;
    NoYes     Collapse;
    NoYes   ByBOMId;
    BOMId   BomId;
 
 
    [               
        DataMember("ByBOMId"),       
        SysOperationLabel(literalStr("By BOMId")),
        SysOperationDisplayOrder("1")
    ]
    public NoYes parmByBOMId(NoYes _ByBOMId = ByBOMId)
    {
        ByBOMId     =      _ByBOMId;
        return ByBOMId;
    }
 
    [
        SysOperationDisplayOrder('2'),
        DataMember("BomId"),
        SysOperationLabel(literalStr("BOMId"))
    ]
    public BOMId parmBOMId(BOMId _BOMId = BOMId)
    {
        BOMId =      _BOMId;
        return BOMId;
    }
 
    [
        SysOperationDisplayOrder('3'),
        DataMember("ListItemid"),
        AifCollectionType("ListItemid",Types::String),
        SysOperationLabel(literalStr("Multiple ItemId"))
    ]
    public List parmListItemId(List _ListItemid = listItemid)
    {
        listItemid  =      _ListItemid;
        return listItemid;
    }
 
    [
       SysOperationDisplayOrder('4'),
       DataMember("Collapse"),
       SysOperationLabel(literalStr("Collapse Lines"))
    ]
    public NoYes parmCollapse(NoYes _Collapse=Collapse)
    {
        Collapse    =      _Collapse;
        return Collapse;
    }
 
}

Góp ý kiến

;
;