parent
30d011c74f
commit
3eb89a9433
|
@ -56,58 +56,58 @@
|
||||||
<!-- IF(profitCenter02Cmp, ProfitCenter02SoutCmp, sout);-->
|
<!-- IF(profitCenter02Cmp, ProfitCenter02SoutCmp, sout);-->
|
||||||
<!-- </chain>-->
|
<!-- </chain>-->
|
||||||
|
|
||||||
<nodes>
|
<!-- <nodes>-->
|
||||||
<node id="s3" name="sectionClassification" type="script">
|
<!-- <node id="s3" name="sectionClassification" type="script">-->
|
||||||
<![CDATA[
|
<!-- <![CDATA[-->
|
||||||
def globalSectionClassificationList = ["汇差","手续费","成本科目"]
|
<!-- def globalSectionClassificationList = ["汇差","手续费","成本科目"]-->
|
||||||
globalSectionClassification.setGlobalSectionClassificationList(globalSectionClassificationList)
|
<!-- globalSectionClassification.setGlobalSectionClassificationList(globalSectionClassificationList)-->
|
||||||
]]>
|
<!-- ]]>-->
|
||||||
</node>
|
<!-- </node>-->
|
||||||
<node id="s4" name="globalBusinessType" type="script">
|
<!-- <node id="s4" name="globalBusinessType" type="script">-->
|
||||||
<![CDATA[
|
<!-- <![CDATA[-->
|
||||||
def globalBusinessTypeList = ["货代","报关","船代","散杂货"]
|
<!-- def globalBusinessTypeList = ["货代","报关","船代","散杂货"]-->
|
||||||
globalBusinessType.setGlobalBusinessTypeList(globalBusinessTypeList)
|
<!-- globalBusinessType.setGlobalBusinessTypeList(globalBusinessTypeList)-->
|
||||||
]]>
|
<!-- ]]>-->
|
||||||
</node>
|
<!-- </node>-->
|
||||||
<node id="s5" name="salesman" type="script">
|
<!-- <node id="s5" name="salesman" type="script">-->
|
||||||
<![CDATA[
|
<!-- <![CDATA[-->
|
||||||
def globalSalesmanList = ["仓干配物流部(物流)"]
|
<!-- def globalSalesmanList = ["仓干配物流部(物流)"]-->
|
||||||
salesman.setGlobalSalesmanList(globalSalesmanList)
|
<!-- salesman.setGlobalSalesmanList(globalSalesmanList)-->
|
||||||
]]>
|
<!-- ]]>-->
|
||||||
</node>
|
<!-- </node>-->
|
||||||
<node id="s6" name="businessCategory" type="script">
|
<!-- <node id="s6" name="businessCategory" type="script">-->
|
||||||
<![CDATA[
|
<!-- <![CDATA[-->
|
||||||
def globalBusinessCategoryList = ["全货船业务","进出岛仓干配"]
|
<!-- def globalBusinessCategoryList = ["全货船业务","进出岛仓干配"]-->
|
||||||
businessCategory.setGlobalBusinessCategoryList(globalBusinessCategoryList)
|
<!-- businessCategory.setGlobalBusinessCategoryList(globalBusinessCategoryList)-->
|
||||||
]]>
|
<!-- ]]>-->
|
||||||
</node>
|
<!-- </node>-->
|
||||||
<node id="s7" name="costCenter01" type="script">
|
<!-- <node id="s7" name="costCenter01" type="script">-->
|
||||||
<![CDATA[
|
<!-- <![CDATA[-->
|
||||||
def costCenter01Code = "P350401028"
|
<!-- def costCenter01Code = "P350401028"-->
|
||||||
costCenterContext.setCode(costCenter01Code)
|
<!-- costCenterContext.setCode(costCenter01Code)-->
|
||||||
|
|
||||||
def costCenter01Name = "仓干配物流部利润中心"
|
<!-- def costCenter01Name = "仓干配物流部利润中心"-->
|
||||||
costCenterContext.setName(costCenter01Name)
|
<!-- costCenterContext.setName(costCenter01Name)-->
|
||||||
|
|
||||||
costCenterContext.setGenerateCode(costCenter01Code + costCenter01Name)
|
<!-- costCenterContext.setGenerateCode(costCenter01Code + costCenter01Name)-->
|
||||||
]]>
|
<!-- ]]>-->
|
||||||
</node>
|
<!-- </node>-->
|
||||||
<node id="s8" name="costCenter02" type="script">
|
<!-- <node id="s8" name="costCenter02" type="script">-->
|
||||||
<![CDATA[
|
<!-- <![CDATA[-->
|
||||||
def costCenter02Code = "P350401026"
|
<!-- def costCenter02Code = "P350401026"-->
|
||||||
costCenterContext.setCode(costCenter02Code)
|
<!-- costCenterContext.setCode(costCenter02Code)-->
|
||||||
|
|
||||||
def costCenter02Name = "商品车物流部利润中心"
|
<!-- def costCenter02Name = "商品车物流部利润中心"-->
|
||||||
costCenterContext.setName(costCenter02Name)
|
<!-- costCenterContext.setName(costCenter02Name)-->
|
||||||
|
|
||||||
costCenterContext.setGenerateCode(costCenter02Code + costCenter02Name)
|
<!-- costCenterContext.setGenerateCode(costCenter02Code + costCenter02Name)-->
|
||||||
]]>
|
<!-- ]]>-->
|
||||||
</node>
|
<!-- </node>-->
|
||||||
<node id="s9" name="sout" type="script">
|
<!-- <node id="s9" name="sout" type="script">-->
|
||||||
<![CDATA[
|
<!-- <![CDATA[-->
|
||||||
def defaultName = "无匹配项"
|
<!-- def defaultName = "无匹配项"-->
|
||||||
costCenterContext.setGenerateCode(defaultName)
|
<!-- costCenterContext.setGenerateCode(defaultName)-->
|
||||||
]]>
|
<!-- ]]>-->
|
||||||
</node>
|
<!-- </node>-->
|
||||||
</nodes>
|
<!-- </nodes>-->
|
||||||
</flow>
|
</flow>
|
||||||
|
|
|
@ -0,0 +1,181 @@
|
||||||
|
/dynamicScript/createCostCenterIfNode
|
||||||
|
{
|
||||||
|
"scriptId": "a3",
|
||||||
|
"scriptName": "costCenter01Cmp",
|
||||||
|
"roles": [
|
||||||
|
{
|
||||||
|
"logicOperators": "$or",
|
||||||
|
"children": [
|
||||||
|
{
|
||||||
|
"logicOperators": "$and",
|
||||||
|
"matches": [
|
||||||
|
{
|
||||||
|
"conditionalOperators": "$contains",
|
||||||
|
"matchingValue": "sectionClassification",
|
||||||
|
"matchingContent": "sectionClassificationList"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"conditionalOperators": "$contains",
|
||||||
|
"matchingValue": "businessType",
|
||||||
|
"matchingContent": "businessTypeList"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"conditionalOperators": "$contains",
|
||||||
|
"matchingValue": "salesman",
|
||||||
|
"matchingContent": "salesmanList"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"conditionalOperators": "$contains",
|
||||||
|
"matchingValue": "businessCategory",
|
||||||
|
"matchingContent": "businessCategoryList"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
|
/dynamicScript/createCostCenterNode
|
||||||
|
{
|
||||||
|
"scriptId": "a4",
|
||||||
|
"scriptName": "costCenter02Cmp",
|
||||||
|
"roles": [
|
||||||
|
{
|
||||||
|
"logicOperators": "$or",
|
||||||
|
"children": [
|
||||||
|
{
|
||||||
|
"logicOperators": "$or",
|
||||||
|
"children": [
|
||||||
|
{
|
||||||
|
"logicOperators": "$and",
|
||||||
|
"matches": [
|
||||||
|
{
|
||||||
|
"conditionalOperators": "$contains",
|
||||||
|
"matchingValue": "sectionClassification",
|
||||||
|
"matchingContent": "sectionClassificationList"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"conditionalOperators": "$contains",
|
||||||
|
"matchingValue": "salesman",
|
||||||
|
"matchingContent": "salesmanList"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"logicOperators": "$or",
|
||||||
|
"matches": [
|
||||||
|
{
|
||||||
|
"conditionalOperators": "$contains",
|
||||||
|
"matchingValue": "businessType",
|
||||||
|
"matchingContent": "businessTypeList"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
|
/dynamicScript/createProfitCenterIfNode
|
||||||
|
{
|
||||||
|
"scriptId": "a1",
|
||||||
|
"scriptName": "profitCenter01Cmp",
|
||||||
|
"roles": [
|
||||||
|
{
|
||||||
|
"logicOperators": "$or",
|
||||||
|
"children": [
|
||||||
|
{
|
||||||
|
"logicOperators": "$and",
|
||||||
|
"matches": [
|
||||||
|
{
|
||||||
|
"conditionalOperators": "$contains",
|
||||||
|
"matchingValue": "businessType",
|
||||||
|
"matchingContent": "businessTypeList"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"conditionalOperators": "$contains",
|
||||||
|
"matchingValue": "salesman",
|
||||||
|
"matchingContent": "salesmanList"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"conditionalOperators": "$contains",
|
||||||
|
"matchingValue": "businessCategory",
|
||||||
|
"matchingContent": "businessCategoryList"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"logicOperators": "$or",
|
||||||
|
"children": [
|
||||||
|
{
|
||||||
|
"logicOperators": "$and",
|
||||||
|
"matches": [
|
||||||
|
{
|
||||||
|
"conditionalOperators": "$contains",
|
||||||
|
"matchingValue": "sectionClassification",
|
||||||
|
"matchingContent": "sectionClassificationList"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"conditionalOperators": "$contains",
|
||||||
|
"matchingValue": "businessType",
|
||||||
|
"matchingContent": "businessTypeList"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
|
/dynamicScript/createProfitCenterIfNode
|
||||||
|
{
|
||||||
|
"scriptId": "a2",
|
||||||
|
"scriptName": "profitCenter02Cmp",
|
||||||
|
"roles": [
|
||||||
|
{
|
||||||
|
"logicOperators": "$or",
|
||||||
|
"children": [
|
||||||
|
{
|
||||||
|
"logicOperators": "$and",
|
||||||
|
"matches": [
|
||||||
|
{
|
||||||
|
"conditionalOperators": "$contains",
|
||||||
|
"matchingValue": "businessType",
|
||||||
|
"matchingContent": "businessTypeList"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"conditionalOperators": "$contains",
|
||||||
|
"matchingValue": "salesman",
|
||||||
|
"matchingContent": "salesmanList"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"logicOperators": "$or",
|
||||||
|
"children": [
|
||||||
|
{
|
||||||
|
"logicOperators": "$and",
|
||||||
|
"matches": [
|
||||||
|
{
|
||||||
|
"conditionalOperators": "$contains",
|
||||||
|
"matchingValue": "sectionClassification",
|
||||||
|
"matchingContent": "sectionClassificationList"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"conditionalOperators": "$contains",
|
||||||
|
"matchingValue": "businessType",
|
||||||
|
"matchingContent": "businessTypeList"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
Loading…
Reference in New Issue