Cấu trúc cơ bản của Report DataContract


18/09/2020- duocnt    767 Views    

Ý NGHĨA.

    -    Cấu trúc cơ bản khi tạo 1 Report DataContract.

Code x++.

[DataContract]
public class RsVnItemPriceCalculationDetailContract
{
    ItemId     ItemId;
    str        ConfigId;
    List       listItemid;
    NoYes      Collapse;
    NoYes      SpecifiedConfig;
 
    [
        SysOperationDisplayOrder('1'),
        DataMember("SpecifiedConfig"),
        SysOperationLabel(literalStr("Include Config"))
    ]
        public NoYes parmSpecifiedConfig(NoYes _SpecifiedConfig = SpecifiedConfig)
    {
        SpecifiedConfig    =      _SpecifiedConfig;
        return SpecifiedConfig;
    }
 
    [
        SysOperationDisplayOrder("2"),
        DataMember("ListItemid"),
        AifCollectionType("ListItemid",Types::String),
        SysOperationLabel(literalStr("Multiple ItemId"))
    ]
    public List parmListItemId(List _ListItemid = listItemid)
    {
        listItemid  =      _ListItemid;
        return listItemid;
    }
 
    [
        SysOperationDisplayOrder('3'),
        DataMember("ItemId"),
        SysOperationLabel(literalStr("Single ItemId"))
    ]
    public ItemId   parmItemId(ItemId _ItemId=ItemId)
    {
        ItemId      =      _ItemId;
        return ItemId;
    }
 
    [
       SysOperationDisplayOrder('4'),
       DataMember("ConfigId"),
       SysOperationLabel(literalStr("Configuration"))
    ]
    public str parmConfigId(str _ConfigId=ConfigId)
    {
        ConfigId    =      _ConfigId;
        return ConfigId;
    }
 
    [
       SysOperationDisplayOrder('5'),
       DataMember("Collapse"),
       SysOperationLabel(literalStr("Collapse"))
    ]
    public NoYes parmCollapse(NoYes _Collapse=Collapse)
    {
        Collapse    =      _Collapse;
        return Collapse;
    }
 
}

Góp ý kiến

;
;