提交 25100853 编写于 作者: ibizdev's avatar ibizdev

xignzi006 发布系统代码

上级 e73df5cd
...@@ -369,6 +369,7 @@ export default { ...@@ -369,6 +369,7 @@ export default {
donotphone: "不允许电话联络", donotphone: "不允许电话联络",
donotfax: "不允许使用传真", donotfax: "不允许使用传真",
donotpostalmail: "不允许使用邮件", donotpostalmail: "不允许使用邮件",
parentaccountid: "上级单位",
accountid: "客户", accountid: "客户",
}, },
uiactions: { uiactions: {
...@@ -525,6 +526,7 @@ export default { ...@@ -525,6 +526,7 @@ export default {
tickersymbol: "股票代号", tickersymbol: "股票代号",
customertypecode: "关系类型", customertypecode: "关系类型",
defaultpricelevelname: "价目表", defaultpricelevelname: "价目表",
parentaccountid: "上级单位",
accountid: "客户", accountid: "客户",
}, },
uiactions: { uiactions: {
...@@ -653,6 +655,7 @@ export default { ...@@ -653,6 +655,7 @@ export default {
srfsourcekey: "", srfsourcekey: "",
primarycontactname: "主要联系人", primarycontactname: "主要联系人",
emailaddress1: "电子邮件", emailaddress1: "电子邮件",
primarycontactid: "主要联系人",
accountid: "客户", accountid: "客户",
}, },
uiactions: { uiactions: {
...@@ -691,6 +694,48 @@ export default { ...@@ -691,6 +694,48 @@ export default {
uiactions: { uiactions: {
}, },
}, },
byparentkeytoolbar_toolbar: {
tbitem1_quickcreate: {
caption: "新建",
tip: "新建",
},
tbitem2: {
caption: "-",
tip: "",
},
tbitem4: {
caption: "Edit",
tip: "Edit {0}",
},
tbitem6: {
caption: "Copy",
tip: "Copy {0}",
},
tbitem7: {
caption: "-",
tip: "",
},
tbitem8: {
caption: "Remove",
tip: "Remove {0}",
},
tbitem9: {
caption: "-",
tip: "",
},
tbitem13: {
caption: "Export",
tip: "Export {0} Data To Excel",
},
tbitem10: {
caption: "-",
tip: "",
},
tbitem19: {
caption: "Filter",
tip: "Filter",
},
},
editviewtoolbar_toolbar: { editviewtoolbar_toolbar: {
tbitem1: { tbitem1: {
caption: "Save And Close", caption: "Save And Close",
...@@ -747,48 +792,6 @@ export default { ...@@ -747,48 +792,6 @@ export default {
tip: "关闭", tip: "关闭",
}, },
}, },
byparentkeytoolbar_toolbar: {
tbitem1_quickcreate: {
caption: "新建",
tip: "新建",
},
tbitem2: {
caption: "-",
tip: "",
},
tbitem4: {
caption: "Edit",
tip: "Edit {0}",
},
tbitem6: {
caption: "Copy",
tip: "Copy {0}",
},
tbitem7: {
caption: "-",
tip: "",
},
tbitem8: {
caption: "Remove",
tip: "Remove {0}",
},
tbitem9: {
caption: "-",
tip: "",
},
tbitem13: {
caption: "Export",
tip: "Export {0} Data To Excel",
},
tbitem10: {
caption: "-",
tip: "",
},
tbitem19: {
caption: "Filter",
tip: "Filter",
},
},
treegridexviewtoolbar_toolbar: { treegridexviewtoolbar_toolbar: {
tbitem1_quickcreate: { tbitem1_quickcreate: {
caption: "新建", caption: "新建",
......
...@@ -368,6 +368,7 @@ export default { ...@@ -368,6 +368,7 @@ export default {
donotphone: "不允许电话联络", donotphone: "不允许电话联络",
donotfax: "不允许使用传真", donotfax: "不允许使用传真",
donotpostalmail: "不允许使用邮件", donotpostalmail: "不允许使用邮件",
parentaccountid: "上级单位",
accountid: "客户", accountid: "客户",
}, },
uiactions: { uiactions: {
...@@ -524,6 +525,7 @@ export default { ...@@ -524,6 +525,7 @@ export default {
tickersymbol: "股票代号", tickersymbol: "股票代号",
customertypecode: "关系类型", customertypecode: "关系类型",
defaultpricelevelname: "价目表", defaultpricelevelname: "价目表",
parentaccountid: "上级单位",
accountid: "客户", accountid: "客户",
}, },
uiactions: { uiactions: {
...@@ -652,6 +654,7 @@ export default { ...@@ -652,6 +654,7 @@ export default {
srfsourcekey: "", srfsourcekey: "",
primarycontactname: "主要联系人", primarycontactname: "主要联系人",
emailaddress1: "电子邮件", emailaddress1: "电子邮件",
primarycontactid: "主要联系人",
accountid: "客户", accountid: "客户",
}, },
uiactions: { uiactions: {
...@@ -690,6 +693,48 @@ export default { ...@@ -690,6 +693,48 @@ export default {
uiactions: { uiactions: {
}, },
}, },
byparentkeytoolbar_toolbar: {
tbitem1_quickcreate: {
caption: "新建",
tip: "新建",
},
tbitem2: {
caption: "-",
tip: "",
},
tbitem4: {
caption: "编辑",
tip: "编辑",
},
tbitem6: {
caption: "拷贝",
tip: "拷贝",
},
tbitem7: {
caption: "-",
tip: "",
},
tbitem8: {
caption: "删除",
tip: "删除",
},
tbitem9: {
caption: "-",
tip: "",
},
tbitem13: {
caption: "导出",
tip: "导出",
},
tbitem10: {
caption: "-",
tip: "",
},
tbitem19: {
caption: "过滤",
tip: "过滤",
},
},
editviewtoolbar_toolbar: { editviewtoolbar_toolbar: {
tbitem1: { tbitem1: {
caption: "保存并关闭", caption: "保存并关闭",
...@@ -746,48 +791,6 @@ export default { ...@@ -746,48 +791,6 @@ export default {
tip: "关闭", tip: "关闭",
}, },
}, },
byparentkeytoolbar_toolbar: {
tbitem1_quickcreate: {
caption: "新建",
tip: "新建",
},
tbitem2: {
caption: "-",
tip: "",
},
tbitem4: {
caption: "编辑",
tip: "编辑",
},
tbitem6: {
caption: "拷贝",
tip: "拷贝",
},
tbitem7: {
caption: "-",
tip: "",
},
tbitem8: {
caption: "删除",
tip: "删除",
},
tbitem9: {
caption: "-",
tip: "",
},
tbitem13: {
caption: "导出",
tip: "导出",
},
tbitem10: {
caption: "-",
tip: "",
},
tbitem19: {
caption: "过滤",
tip: "过滤",
},
},
treegridexviewtoolbar_toolbar: { treegridexviewtoolbar_toolbar: {
tbitem1_quickcreate: { tbitem1_quickcreate: {
caption: "新建", caption: "新建",
......
...@@ -289,56 +289,6 @@ export default { ...@@ -289,56 +289,6 @@ export default {
title: "联系人信息", title: "联系人信息",
}, },
}, },
abstractedit_form: {
details: {
group1: "联系人基本信息",
formpage1: "基本信息",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "联系人",
srfmajortext: "全名",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
fullname: "全名",
jobtitle: "职务",
customername: "客户",
emailaddress1: "电子邮件",
telephone1: "商务电话",
mobilephone: "移动电话",
fax: "传真",
customerid: "客户",
contactid: "联系人",
},
uiactions: {
},
},
quickcreate_form: {
details: {
group1: "联系人基本信息",
formpage1: "基本信息",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "联系人",
srfmajortext: "全名",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
fullname: "全名",
jobtitle: "职务",
customername: "客户",
emailaddress1: "电子邮件",
telephone1: "商务电话",
mobilephone: "移动电话",
fax: "传真",
customerid: "客户",
contactid: "联系人",
},
uiactions: {
},
},
abstractinfo_form: { abstractinfo_form: {
details: { details: {
group1: "联系人基本信息", group1: "联系人基本信息",
...@@ -479,6 +429,56 @@ export default { ...@@ -479,6 +429,56 @@ export default {
contact_edit_datapanel: "编辑头部信息", contact_edit_datapanel: "编辑头部信息",
}, },
}, },
quickcreate_form: {
details: {
group1: "联系人基本信息",
formpage1: "基本信息",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "联系人",
srfmajortext: "全名",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
fullname: "全名",
jobtitle: "职务",
customername: "客户",
emailaddress1: "电子邮件",
telephone1: "商务电话",
mobilephone: "移动电话",
fax: "传真",
customerid: "客户",
contactid: "联系人",
},
uiactions: {
},
},
abstractedit_form: {
details: {
group1: "联系人基本信息",
formpage1: "基本信息",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "联系人",
srfmajortext: "全名",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
fullname: "全名",
jobtitle: "职务",
customername: "客户",
emailaddress1: "电子邮件",
telephone1: "商务电话",
mobilephone: "移动电话",
fax: "传真",
customerid: "客户",
contactid: "联系人",
},
uiactions: {
},
},
marketedit_form: { marketedit_form: {
details: { details: {
group1: "联系人基本信息", group1: "联系人基本信息",
......
...@@ -288,56 +288,6 @@ export default { ...@@ -288,56 +288,6 @@ export default {
title: "联系人信息", title: "联系人信息",
}, },
}, },
abstractedit_form: {
details: {
group1: "联系人基本信息",
formpage1: "基本信息",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "联系人",
srfmajortext: "全名",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
fullname: "全名",
jobtitle: "职务",
customername: "客户",
emailaddress1: "电子邮件",
telephone1: "商务电话",
mobilephone: "移动电话",
fax: "传真",
customerid: "客户",
contactid: "联系人",
},
uiactions: {
},
},
quickcreate_form: {
details: {
group1: "联系人基本信息",
formpage1: "基本信息",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "联系人",
srfmajortext: "全名",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
fullname: "全名",
jobtitle: "职务",
customername: "客户",
emailaddress1: "电子邮件",
telephone1: "商务电话",
mobilephone: "移动电话",
fax: "传真",
customerid: "客户",
contactid: "联系人",
},
uiactions: {
},
},
abstractinfo_form: { abstractinfo_form: {
details: { details: {
group1: "联系人基本信息", group1: "联系人基本信息",
...@@ -478,6 +428,56 @@ export default { ...@@ -478,6 +428,56 @@ export default {
contact_edit_datapanel: "编辑头部信息", contact_edit_datapanel: "编辑头部信息",
}, },
}, },
quickcreate_form: {
details: {
group1: "联系人基本信息",
formpage1: "基本信息",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "联系人",
srfmajortext: "全名",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
fullname: "全名",
jobtitle: "职务",
customername: "客户",
emailaddress1: "电子邮件",
telephone1: "商务电话",
mobilephone: "移动电话",
fax: "传真",
customerid: "客户",
contactid: "联系人",
},
uiactions: {
},
},
abstractedit_form: {
details: {
group1: "联系人基本信息",
formpage1: "基本信息",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "联系人",
srfmajortext: "全名",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
fullname: "全名",
jobtitle: "职务",
customername: "客户",
emailaddress1: "电子邮件",
telephone1: "商务电话",
mobilephone: "移动电话",
fax: "传真",
customerid: "客户",
contactid: "联系人",
},
uiactions: {
},
},
marketedit_form: { marketedit_form: {
details: { details: {
group1: "联系人基本信息", group1: "联系人基本信息",
......
...@@ -303,44 +303,6 @@ export default { ...@@ -303,44 +303,6 @@ export default {
tip: "Filter", tip: "Filter",
}, },
}, },
editviewtoolbar_toolbar: {
tbitem3: {
caption: "Save",
tip: "Save",
},
tbitem4: {
caption: "Save And New",
tip: "Save And New",
},
tbitem5: {
caption: "Save And Close",
tip: "Save And Close Window",
},
tbitem6: {
caption: "-",
tip: "",
},
tbitem7: {
caption: "Remove And Close",
tip: "Remove And Close Window",
},
tbitem8: {
caption: "-",
tip: "",
},
tbitem12: {
caption: "New",
tip: "New",
},
tbitem13: {
caption: "-",
tip: "",
},
tbitem14: {
caption: "Copy",
tip: "Copy {0}",
},
},
byparentkeytoolbar_toolbar: { byparentkeytoolbar_toolbar: {
tbitem1_quickcreate: { tbitem1_quickcreate: {
caption: "新建", caption: "新建",
...@@ -383,4 +345,42 @@ export default { ...@@ -383,4 +345,42 @@ export default {
tip: "Filter", tip: "Filter",
}, },
}, },
editviewtoolbar_toolbar: {
tbitem3: {
caption: "Save",
tip: "Save",
},
tbitem4: {
caption: "Save And New",
tip: "Save And New",
},
tbitem5: {
caption: "Save And Close",
tip: "Save And Close Window",
},
tbitem6: {
caption: "-",
tip: "",
},
tbitem7: {
caption: "Remove And Close",
tip: "Remove And Close Window",
},
tbitem8: {
caption: "-",
tip: "",
},
tbitem12: {
caption: "New",
tip: "New",
},
tbitem13: {
caption: "-",
tip: "",
},
tbitem14: {
caption: "Copy",
tip: "Copy {0}",
},
},
}; };
\ No newline at end of file
...@@ -302,44 +302,6 @@ export default { ...@@ -302,44 +302,6 @@ export default {
tip: "过滤", tip: "过滤",
}, },
}, },
editviewtoolbar_toolbar: {
tbitem3: {
caption: "保存",
tip: "保存",
},
tbitem4: {
caption: "保存并新建",
tip: "保存并新建",
},
tbitem5: {
caption: "保存并关闭",
tip: "保存并关闭",
},
tbitem6: {
caption: "-",
tip: "",
},
tbitem7: {
caption: "删除并关闭",
tip: "删除并关闭",
},
tbitem8: {
caption: "-",
tip: "",
},
tbitem12: {
caption: "新建",
tip: "新建",
},
tbitem13: {
caption: "-",
tip: "",
},
tbitem14: {
caption: "拷贝",
tip: "拷贝",
},
},
byparentkeytoolbar_toolbar: { byparentkeytoolbar_toolbar: {
tbitem1_quickcreate: { tbitem1_quickcreate: {
caption: "新建", caption: "新建",
...@@ -382,4 +344,42 @@ export default { ...@@ -382,4 +344,42 @@ export default {
tip: "过滤", tip: "过滤",
}, },
}, },
editviewtoolbar_toolbar: {
tbitem3: {
caption: "保存",
tip: "保存",
},
tbitem4: {
caption: "保存并新建",
tip: "保存并新建",
},
tbitem5: {
caption: "保存并关闭",
tip: "保存并关闭",
},
tbitem6: {
caption: "-",
tip: "",
},
tbitem7: {
caption: "删除并关闭",
tip: "删除并关闭",
},
tbitem8: {
caption: "-",
tip: "",
},
tbitem12: {
caption: "新建",
tip: "新建",
},
tbitem13: {
caption: "-",
tip: "",
},
tbitem14: {
caption: "拷贝",
tip: "拷贝",
},
},
}; };
\ No newline at end of file
...@@ -222,32 +222,6 @@ export default { ...@@ -222,32 +222,6 @@ export default {
title: "授予资格", title: "授予资格",
}, },
}, },
quickcreate_form: {
details: {
group1: "联系人信息",
formpage1: "基本信息",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "潜在顾客",
srfmajortext: "姓名",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
subject: "主题",
budgetamount: "预算金额",
purchasetimeframe: "购买时间范围",
leadsourcecode: "潜在顾客来源",
fullname: "姓名",
companyname: "公司名称",
jobtitle: "职务",
mobilephone: "移动电话",
emailaddress1: "电子邮件",
leadid: "潜在顾客",
},
uiactions: {
},
},
contactinfo_form: { contactinfo_form: {
details: { details: {
group1: "潜在顾客基本信息", group1: "潜在顾客基本信息",
...@@ -361,6 +335,32 @@ export default { ...@@ -361,6 +335,32 @@ export default {
uiactions: { uiactions: {
}, },
}, },
quickcreate_form: {
details: {
group1: "联系人信息",
formpage1: "基本信息",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "潜在顾客",
srfmajortext: "姓名",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
subject: "主题",
budgetamount: "预算金额",
purchasetimeframe: "购买时间范围",
leadsourcecode: "潜在顾客来源",
fullname: "姓名",
companyname: "公司名称",
jobtitle: "职务",
mobilephone: "移动电话",
emailaddress1: "电子邮件",
leadid: "潜在顾客",
},
uiactions: {
},
},
main_form: { main_form: {
details: { details: {
group1: "lead基本信息", group1: "lead基本信息",
......
...@@ -221,32 +221,6 @@ export default { ...@@ -221,32 +221,6 @@ export default {
title: "授予资格", title: "授予资格",
}, },
}, },
quickcreate_form: {
details: {
group1: "联系人信息",
formpage1: "基本信息",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "潜在顾客",
srfmajortext: "姓名",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
subject: "主题",
budgetamount: "预算金额",
purchasetimeframe: "购买时间范围",
leadsourcecode: "潜在顾客来源",
fullname: "姓名",
companyname: "公司名称",
jobtitle: "职务",
mobilephone: "移动电话",
emailaddress1: "电子邮件",
leadid: "潜在顾客",
},
uiactions: {
},
},
contactinfo_form: { contactinfo_form: {
details: { details: {
group1: "潜在顾客基本信息", group1: "潜在顾客基本信息",
...@@ -360,6 +334,32 @@ export default { ...@@ -360,6 +334,32 @@ export default {
uiactions: { uiactions: {
}, },
}, },
quickcreate_form: {
details: {
group1: "联系人信息",
formpage1: "基本信息",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "潜在顾客",
srfmajortext: "姓名",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
subject: "主题",
budgetamount: "预算金额",
purchasetimeframe: "购买时间范围",
leadsourcecode: "潜在顾客来源",
fullname: "姓名",
companyname: "公司名称",
jobtitle: "职务",
mobilephone: "移动电话",
emailaddress1: "电子邮件",
leadid: "潜在顾客",
},
uiactions: {
},
},
main_form: { main_form: {
details: { details: {
group1: "lead基本信息", group1: "lead基本信息",
......
...@@ -355,6 +355,44 @@ export default { ...@@ -355,6 +355,44 @@ export default {
uiactions: { uiactions: {
}, },
}, },
conoppgridviewtoolbar_toolbar: {
deuiaction1: {
caption: "New",
tip: "New",
},
tbitem2: {
caption: "-",
tip: "",
},
tbitem4: {
caption: "Edit",
tip: "Edit {0}",
},
tbitem7: {
caption: "-",
tip: "",
},
tbitem8: {
caption: "Remove",
tip: "Remove {0}",
},
tbitem9: {
caption: "-",
tip: "",
},
tbitem13: {
caption: "Export",
tip: "Export {0} Data To Excel",
},
tbitem10: {
caption: "-",
tip: "",
},
tbitem19: {
caption: "Filter",
tip: "Filter",
},
},
editviewtoolbar_toolbar: { editviewtoolbar_toolbar: {
tbitem1: { tbitem1: {
caption: "Save And Close", caption: "Save And Close",
...@@ -529,42 +567,4 @@ export default { ...@@ -529,42 +567,4 @@ export default {
tip: "Filter", tip: "Filter",
}, },
}, },
conoppgridviewtoolbar_toolbar: {
deuiaction1: {
caption: "New",
tip: "New",
},
tbitem2: {
caption: "-",
tip: "",
},
tbitem4: {
caption: "Edit",
tip: "Edit {0}",
},
tbitem7: {
caption: "-",
tip: "",
},
tbitem8: {
caption: "Remove",
tip: "Remove {0}",
},
tbitem9: {
caption: "-",
tip: "",
},
tbitem13: {
caption: "Export",
tip: "Export {0} Data To Excel",
},
tbitem10: {
caption: "-",
tip: "",
},
tbitem19: {
caption: "Filter",
tip: "Filter",
},
},
}; };
\ No newline at end of file
...@@ -354,6 +354,44 @@ export default { ...@@ -354,6 +354,44 @@ export default {
uiactions: { uiactions: {
}, },
}, },
conoppgridviewtoolbar_toolbar: {
deuiaction1: {
caption: "新建",
tip: "新建",
},
tbitem2: {
caption: "-",
tip: "",
},
tbitem4: {
caption: "编辑",
tip: "编辑",
},
tbitem7: {
caption: "-",
tip: "",
},
tbitem8: {
caption: "删除",
tip: "删除",
},
tbitem9: {
caption: "-",
tip: "",
},
tbitem13: {
caption: "导出",
tip: "导出",
},
tbitem10: {
caption: "-",
tip: "",
},
tbitem19: {
caption: "过滤",
tip: "过滤",
},
},
editviewtoolbar_toolbar: { editviewtoolbar_toolbar: {
tbitem1: { tbitem1: {
caption: "保存并关闭", caption: "保存并关闭",
...@@ -528,42 +566,4 @@ export default { ...@@ -528,42 +566,4 @@ export default {
tip: "过滤", tip: "过滤",
}, },
}, },
conoppgridviewtoolbar_toolbar: {
deuiaction1: {
caption: "新建",
tip: "新建",
},
tbitem2: {
caption: "-",
tip: "",
},
tbitem4: {
caption: "编辑",
tip: "编辑",
},
tbitem7: {
caption: "-",
tip: "",
},
tbitem8: {
caption: "删除",
tip: "删除",
},
tbitem9: {
caption: "-",
tip: "",
},
tbitem13: {
caption: "导出",
tip: "导出",
},
tbitem10: {
caption: "-",
tip: "",
},
tbitem19: {
caption: "过滤",
tip: "过滤",
},
},
}; };
\ No newline at end of file
...@@ -385,7 +385,7 @@ export default { ...@@ -385,7 +385,7 @@ export default {
tip: "Filter", tip: "Filter",
}, },
}, },
finishgridviewtoolbar_toolbar: { byparentkeytoolbar_toolbar: {
tbitem1_quickcreate: { tbitem1_quickcreate: {
caption: "新建", caption: "新建",
tip: "新建", tip: "新建",
...@@ -427,7 +427,7 @@ export default { ...@@ -427,7 +427,7 @@ export default {
tip: "Filter", tip: "Filter",
}, },
}, },
invoicegridviewtoolbar_toolbar: { finishgridviewtoolbar_toolbar: {
tbitem1_quickcreate: { tbitem1_quickcreate: {
caption: "新建", caption: "新建",
tip: "新建", tip: "新建",
...@@ -469,7 +469,7 @@ export default { ...@@ -469,7 +469,7 @@ export default {
tip: "Filter", tip: "Filter",
}, },
}, },
cancelgridviewtoolbar_toolbar: { invoicegridviewtoolbar_toolbar: {
tbitem1_quickcreate: { tbitem1_quickcreate: {
caption: "新建", caption: "新建",
tip: "新建", tip: "新建",
...@@ -511,7 +511,7 @@ export default { ...@@ -511,7 +511,7 @@ export default {
tip: "Filter", tip: "Filter",
}, },
}, },
byparentkeytoolbar_toolbar: { cancelgridviewtoolbar_toolbar: {
tbitem1_quickcreate: { tbitem1_quickcreate: {
caption: "新建", caption: "新建",
tip: "新建", tip: "新建",
......
...@@ -384,7 +384,7 @@ export default { ...@@ -384,7 +384,7 @@ export default {
tip: "过滤", tip: "过滤",
}, },
}, },
finishgridviewtoolbar_toolbar: { byparentkeytoolbar_toolbar: {
tbitem1_quickcreate: { tbitem1_quickcreate: {
caption: "新建", caption: "新建",
tip: "新建", tip: "新建",
...@@ -426,7 +426,7 @@ export default { ...@@ -426,7 +426,7 @@ export default {
tip: "过滤", tip: "过滤",
}, },
}, },
invoicegridviewtoolbar_toolbar: { finishgridviewtoolbar_toolbar: {
tbitem1_quickcreate: { tbitem1_quickcreate: {
caption: "新建", caption: "新建",
tip: "新建", tip: "新建",
...@@ -468,7 +468,7 @@ export default { ...@@ -468,7 +468,7 @@ export default {
tip: "过滤", tip: "过滤",
}, },
}, },
cancelgridviewtoolbar_toolbar: { invoicegridviewtoolbar_toolbar: {
tbitem1_quickcreate: { tbitem1_quickcreate: {
caption: "新建", caption: "新建",
tip: "新建", tip: "新建",
...@@ -510,7 +510,7 @@ export default { ...@@ -510,7 +510,7 @@ export default {
tip: "过滤", tip: "过滤",
}, },
}, },
byparentkeytoolbar_toolbar: { cancelgridviewtoolbar_toolbar: {
tbitem1_quickcreate: { tbitem1_quickcreate: {
caption: "新建", caption: "新建",
tip: "新建", tip: "新建",
......
import InvoiceService from '@/service/invoice/invoice-service';
import { Verify } from '@/utils/verify/verify'; import { Verify } from '@/utils/verify/verify';
...@@ -58,6 +59,24 @@ export default class CancelLogicBase { ...@@ -58,6 +59,24 @@ export default class CancelLogicBase {
} }
/**
* 计算0节点结果
*
* @param params 传入参数
*/
public compute0Cond(params:any):boolean{
return true;
}
/**
* 计算1节点结果
*
* @param params 传入参数
*/
public compute1Cond(params:any):boolean{
return true;
}
/** /**
* 执行逻辑 * 执行逻辑
* *
...@@ -69,6 +88,26 @@ export default class CancelLogicBase { ...@@ -69,6 +88,26 @@ export default class CancelLogicBase {
} }
/**
* 更新发票状态
*
* @param context 应用上下文
* @param params 传入参数
*/
private async executeDeaction1(context:any,params:any,isloading:boolean){
// 行为处理节点
let result: any;
let actionParam:any = this.paramsMap.get('Default');
const targetService:InvoiceService = new InvoiceService();
if (targetService['Update'] && targetService['Update'] instanceof Function) {
result = await targetService['Update'](actionParam.context,actionParam.data, false);
}
if(result && result.status == 200){
Object.assign(actionParam.data,result.data);
return this.paramsMap.get(this.defaultParamName).data;
}
}
/** /**
* 开始 * 开始
* *
...@@ -76,7 +115,26 @@ export default class CancelLogicBase { ...@@ -76,7 +115,26 @@ export default class CancelLogicBase {
*/ */
private async executeBegin(context:any,params:any,isloading:boolean){ private async executeBegin(context:any,params:any,isloading:boolean){
//开始节点 //开始节点
return this.paramsMap.get(this.defaultParamName).data; if(this.compute0Cond(params)){
return this.executePrepareparam1(context,params,isloading);
}
}
/**
* 准备参数
*
* @param context 应用上下文
* @param params 传入参数
*/
private async executePrepareparam1(context:any,params:any,isloading:boolean){
// 准备参数节点
let tempDstParam0Context:any = this.paramsMap.get('Default').context?this.paramsMap.get('Default').context:{};
let tempDstParam0Data:any = this.paramsMap.get('Default').data?this.paramsMap.get('Default').data:{};
Object.assign(tempDstParam0Data,{statecode:"3"});
this.paramsMap.set('Default',{data:tempDstParam0Data,context:tempDstParam0Context});
if(this.compute1Cond(params)){
return this.executeDeaction1(context,params,isloading);
}
} }
......
...@@ -586,139 +586,9 @@ export default class InvoiceServiceBase extends EntityService { ...@@ -586,139 +586,9 @@ export default class InvoiceServiceBase extends EntityService {
* @memberof InvoiceServiceBase * @memberof InvoiceServiceBase
*/ */
public async Cancel(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async Cancel(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.account && context.contact && context.opportunity && context.quote && context.salesorder && context.invoice){ let appLogic:CancelLogic = new CancelLogic({context:JSON.parse(JSON.stringify(context)),data:JSON.parse(JSON.stringify(data))});
let masterData:any = {}; const result = await appLogic.onExecute(context,data,isloading?true:false);
let invoicedetailsData:any = []; return {status:200,data:result};
if(!Object.is(this.tempStorage.getItem(context.srfsessionkey+'_invoicedetails'),'undefined')){
invoicedetailsData = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_invoicedetails') as any);
if(invoicedetailsData && invoicedetailsData.length && invoicedetailsData.length > 0){
invoicedetailsData.forEach((item:any) => {
if(item.srffrontuf){
if(Object.is(item.srffrontuf,"0")){
item.invoicedetailid = null;
}
delete item.srffrontuf;
}
});
}
}
masterData.invoicedetails = invoicedetailsData;
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/accounts/${context.account}/contacts/${context.contact}/opportunities/${context.opportunity}/quotes/${context.quote}/salesorders/${context.salesorder}/invoices/${context.invoice}/cancel`,data,isloading);
this.tempStorage.setItem(context.srfsessionkey+'_invoicedetails',JSON.stringify(res.data.invoicedetails));
return res;
}
if(context.contact && context.opportunity && context.quote && context.salesorder && context.invoice){
let masterData:any = {};
let invoicedetailsData:any = [];
if(!Object.is(this.tempStorage.getItem(context.srfsessionkey+'_invoicedetails'),'undefined')){
invoicedetailsData = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_invoicedetails') as any);
if(invoicedetailsData && invoicedetailsData.length && invoicedetailsData.length > 0){
invoicedetailsData.forEach((item:any) => {
if(item.srffrontuf){
if(Object.is(item.srffrontuf,"0")){
item.invoicedetailid = null;
}
delete item.srffrontuf;
}
});
}
}
masterData.invoicedetails = invoicedetailsData;
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/contacts/${context.contact}/opportunities/${context.opportunity}/quotes/${context.quote}/salesorders/${context.salesorder}/invoices/${context.invoice}/cancel`,data,isloading);
this.tempStorage.setItem(context.srfsessionkey+'_invoicedetails',JSON.stringify(res.data.invoicedetails));
return res;
}
if(context.account && context.opportunity && context.quote && context.salesorder && context.invoice){
let masterData:any = {};
let invoicedetailsData:any = [];
if(!Object.is(this.tempStorage.getItem(context.srfsessionkey+'_invoicedetails'),'undefined')){
invoicedetailsData = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_invoicedetails') as any);
if(invoicedetailsData && invoicedetailsData.length && invoicedetailsData.length > 0){
invoicedetailsData.forEach((item:any) => {
if(item.srffrontuf){
if(Object.is(item.srffrontuf,"0")){
item.invoicedetailid = null;
}
delete item.srffrontuf;
}
});
}
}
masterData.invoicedetails = invoicedetailsData;
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/accounts/${context.account}/opportunities/${context.opportunity}/quotes/${context.quote}/salesorders/${context.salesorder}/invoices/${context.invoice}/cancel`,data,isloading);
this.tempStorage.setItem(context.srfsessionkey+'_invoicedetails',JSON.stringify(res.data.invoicedetails));
return res;
}
if(context.opportunity && context.quote && context.salesorder && context.invoice){
let masterData:any = {};
let invoicedetailsData:any = [];
if(!Object.is(this.tempStorage.getItem(context.srfsessionkey+'_invoicedetails'),'undefined')){
invoicedetailsData = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_invoicedetails') as any);
if(invoicedetailsData && invoicedetailsData.length && invoicedetailsData.length > 0){
invoicedetailsData.forEach((item:any) => {
if(item.srffrontuf){
if(Object.is(item.srffrontuf,"0")){
item.invoicedetailid = null;
}
delete item.srffrontuf;
}
});
}
}
masterData.invoicedetails = invoicedetailsData;
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/opportunities/${context.opportunity}/quotes/${context.quote}/salesorders/${context.salesorder}/invoices/${context.invoice}/cancel`,data,isloading);
this.tempStorage.setItem(context.srfsessionkey+'_invoicedetails',JSON.stringify(res.data.invoicedetails));
return res;
}
if(context.quote && context.salesorder && context.invoice){
let masterData:any = {};
let invoicedetailsData:any = [];
if(!Object.is(this.tempStorage.getItem(context.srfsessionkey+'_invoicedetails'),'undefined')){
invoicedetailsData = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_invoicedetails') as any);
if(invoicedetailsData && invoicedetailsData.length && invoicedetailsData.length > 0){
invoicedetailsData.forEach((item:any) => {
if(item.srffrontuf){
if(Object.is(item.srffrontuf,"0")){
item.invoicedetailid = null;
}
delete item.srffrontuf;
}
});
}
}
masterData.invoicedetails = invoicedetailsData;
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/quotes/${context.quote}/salesorders/${context.salesorder}/invoices/${context.invoice}/cancel`,data,isloading);
this.tempStorage.setItem(context.srfsessionkey+'_invoicedetails',JSON.stringify(res.data.invoicedetails));
return res;
}
if(context.salesorder && context.invoice){
let masterData:any = {};
let invoicedetailsData:any = [];
if(!Object.is(this.tempStorage.getItem(context.srfsessionkey+'_invoicedetails'),'undefined')){
invoicedetailsData = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_invoicedetails') as any);
if(invoicedetailsData && invoicedetailsData.length && invoicedetailsData.length > 0){
invoicedetailsData.forEach((item:any) => {
if(item.srffrontuf){
if(Object.is(item.srffrontuf,"0")){
item.invoicedetailid = null;
}
delete item.srffrontuf;
}
});
}
}
masterData.invoicedetails = invoicedetailsData;
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/salesorders/${context.salesorder}/invoices/${context.invoice}/cancel`,data,isloading);
this.tempStorage.setItem(context.srfsessionkey+'_invoicedetails',JSON.stringify(res.data.invoicedetails));
return res;
}
return Http.getInstance().post(`/invoices/${context.invoice}/cancel`,data,isloading);
} }
/** /**
...@@ -1021,139 +891,9 @@ export default class InvoiceServiceBase extends EntityService { ...@@ -1021,139 +891,9 @@ export default class InvoiceServiceBase extends EntityService {
* @memberof InvoiceServiceBase * @memberof InvoiceServiceBase
*/ */
public async Paid(context: any = {},data: any = {}, isloading?: boolean): Promise<any> { public async Paid(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
if(context.account && context.contact && context.opportunity && context.quote && context.salesorder && context.invoice){ let appLogic:PaidLogic = new PaidLogic({context:JSON.parse(JSON.stringify(context)),data:JSON.parse(JSON.stringify(data))});
let masterData:any = {}; const result = await appLogic.onExecute(context,data,isloading?true:false);
let invoicedetailsData:any = []; return {status:200,data:result};
if(!Object.is(this.tempStorage.getItem(context.srfsessionkey+'_invoicedetails'),'undefined')){
invoicedetailsData = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_invoicedetails') as any);
if(invoicedetailsData && invoicedetailsData.length && invoicedetailsData.length > 0){
invoicedetailsData.forEach((item:any) => {
if(item.srffrontuf){
if(Object.is(item.srffrontuf,"0")){
item.invoicedetailid = null;
}
delete item.srffrontuf;
}
});
}
}
masterData.invoicedetails = invoicedetailsData;
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/accounts/${context.account}/contacts/${context.contact}/opportunities/${context.opportunity}/quotes/${context.quote}/salesorders/${context.salesorder}/invoices/${context.invoice}/paid`,data,isloading);
this.tempStorage.setItem(context.srfsessionkey+'_invoicedetails',JSON.stringify(res.data.invoicedetails));
return res;
}
if(context.contact && context.opportunity && context.quote && context.salesorder && context.invoice){
let masterData:any = {};
let invoicedetailsData:any = [];
if(!Object.is(this.tempStorage.getItem(context.srfsessionkey+'_invoicedetails'),'undefined')){
invoicedetailsData = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_invoicedetails') as any);
if(invoicedetailsData && invoicedetailsData.length && invoicedetailsData.length > 0){
invoicedetailsData.forEach((item:any) => {
if(item.srffrontuf){
if(Object.is(item.srffrontuf,"0")){
item.invoicedetailid = null;
}
delete item.srffrontuf;
}
});
}
}
masterData.invoicedetails = invoicedetailsData;
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/contacts/${context.contact}/opportunities/${context.opportunity}/quotes/${context.quote}/salesorders/${context.salesorder}/invoices/${context.invoice}/paid`,data,isloading);
this.tempStorage.setItem(context.srfsessionkey+'_invoicedetails',JSON.stringify(res.data.invoicedetails));
return res;
}
if(context.account && context.opportunity && context.quote && context.salesorder && context.invoice){
let masterData:any = {};
let invoicedetailsData:any = [];
if(!Object.is(this.tempStorage.getItem(context.srfsessionkey+'_invoicedetails'),'undefined')){
invoicedetailsData = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_invoicedetails') as any);
if(invoicedetailsData && invoicedetailsData.length && invoicedetailsData.length > 0){
invoicedetailsData.forEach((item:any) => {
if(item.srffrontuf){
if(Object.is(item.srffrontuf,"0")){
item.invoicedetailid = null;
}
delete item.srffrontuf;
}
});
}
}
masterData.invoicedetails = invoicedetailsData;
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/accounts/${context.account}/opportunities/${context.opportunity}/quotes/${context.quote}/salesorders/${context.salesorder}/invoices/${context.invoice}/paid`,data,isloading);
this.tempStorage.setItem(context.srfsessionkey+'_invoicedetails',JSON.stringify(res.data.invoicedetails));
return res;
}
if(context.opportunity && context.quote && context.salesorder && context.invoice){
let masterData:any = {};
let invoicedetailsData:any = [];
if(!Object.is(this.tempStorage.getItem(context.srfsessionkey+'_invoicedetails'),'undefined')){
invoicedetailsData = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_invoicedetails') as any);
if(invoicedetailsData && invoicedetailsData.length && invoicedetailsData.length > 0){
invoicedetailsData.forEach((item:any) => {
if(item.srffrontuf){
if(Object.is(item.srffrontuf,"0")){
item.invoicedetailid = null;
}
delete item.srffrontuf;
}
});
}
}
masterData.invoicedetails = invoicedetailsData;
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/opportunities/${context.opportunity}/quotes/${context.quote}/salesorders/${context.salesorder}/invoices/${context.invoice}/paid`,data,isloading);
this.tempStorage.setItem(context.srfsessionkey+'_invoicedetails',JSON.stringify(res.data.invoicedetails));
return res;
}
if(context.quote && context.salesorder && context.invoice){
let masterData:any = {};
let invoicedetailsData:any = [];
if(!Object.is(this.tempStorage.getItem(context.srfsessionkey+'_invoicedetails'),'undefined')){
invoicedetailsData = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_invoicedetails') as any);
if(invoicedetailsData && invoicedetailsData.length && invoicedetailsData.length > 0){
invoicedetailsData.forEach((item:any) => {
if(item.srffrontuf){
if(Object.is(item.srffrontuf,"0")){
item.invoicedetailid = null;
}
delete item.srffrontuf;
}
});
}
}
masterData.invoicedetails = invoicedetailsData;
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/quotes/${context.quote}/salesorders/${context.salesorder}/invoices/${context.invoice}/paid`,data,isloading);
this.tempStorage.setItem(context.srfsessionkey+'_invoicedetails',JSON.stringify(res.data.invoicedetails));
return res;
}
if(context.salesorder && context.invoice){
let masterData:any = {};
let invoicedetailsData:any = [];
if(!Object.is(this.tempStorage.getItem(context.srfsessionkey+'_invoicedetails'),'undefined')){
invoicedetailsData = JSON.parse(this.tempStorage.getItem(context.srfsessionkey+'_invoicedetails') as any);
if(invoicedetailsData && invoicedetailsData.length && invoicedetailsData.length > 0){
invoicedetailsData.forEach((item:any) => {
if(item.srffrontuf){
if(Object.is(item.srffrontuf,"0")){
item.invoicedetailid = null;
}
delete item.srffrontuf;
}
});
}
}
masterData.invoicedetails = invoicedetailsData;
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/salesorders/${context.salesorder}/invoices/${context.invoice}/paid`,data,isloading);
this.tempStorage.setItem(context.srfsessionkey+'_invoicedetails',JSON.stringify(res.data.invoicedetails));
return res;
}
return Http.getInstance().post(`/invoices/${context.invoice}/paid`,data,isloading);
} }
/** /**
......
...@@ -607,6 +607,7 @@ export const viewstate: any = { ...@@ -607,6 +607,7 @@ export const viewstate: any = {
viewdatachange: false, viewdatachange: false,
refviews: [ refviews: [
'9224b0b14d2d99014e051f8035ba5cbf', '9224b0b14d2d99014e051f8035ba5cbf',
'2e9c7792c3a728896ca8902634f71983',
'e404dc93e70d6284d4e1a083017625ed', 'e404dc93e70d6284d4e1a083017625ed',
'e4335da0a7c14a65376eecaabb771fd7', 'e4335da0a7c14a65376eecaabb771fd7',
'688201ee5642d41628dbf4deba002d17', '688201ee5642d41628dbf4deba002d17',
......
...@@ -190,6 +190,7 @@ export class Info_AllEditFormBase extends EditFormControlBase { ...@@ -190,6 +190,7 @@ export class Info_AllEditFormBase extends EditFormControlBase {
donotphone: null, donotphone: null,
donotfax: null, donotfax: null,
donotpostalmail: null, donotpostalmail: null,
parentaccountid: null,
accountid: null, accountid: null,
account:null, account:null,
}; };
...@@ -315,6 +316,8 @@ export class Info_AllEditFormBase extends EditFormControlBase { ...@@ -315,6 +316,8 @@ export class Info_AllEditFormBase extends EditFormControlBase {
donotpostalmail: new FormItemModel({ caption: '不允许使用邮件', detailType: 'FORMITEM', name: 'donotpostalmail', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }), donotpostalmail: new FormItemModel({ caption: '不允许使用邮件', detailType: 'FORMITEM', name: 'donotpostalmail', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
parentaccountid: new FormItemModel({ caption: '上级单位', detailType: 'FORMITEM', name: 'parentaccountid', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
accountid: new FormItemModel({ caption: '客户', detailType: 'FORMITEM', name: 'accountid', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }), accountid: new FormItemModel({ caption: '客户', detailType: 'FORMITEM', name: 'accountid', visible: true, isShowCaption: true, form: this, showMoreMode: 0, disabled: false, enableCond: 3 }),
}; };
......
...@@ -210,6 +210,11 @@ export default class Info_AllModel { ...@@ -210,6 +210,11 @@ export default class Info_AllModel {
prop: 'donotpostalmail', prop: 'donotpostalmail',
dataType: 'YESNO', dataType: 'YESNO',
}, },
{
name: 'parentaccountid',
prop: 'parentaccountid',
dataType: 'PICKUP',
},
{ {
name: 'accountid', name: 'accountid',
prop: 'accountid', prop: 'accountid',
......
...@@ -2,6 +2,7 @@ import { Http,Util,Errorlog } from '@/utils'; ...@@ -2,6 +2,7 @@ import { Http,Util,Errorlog } from '@/utils';
import ControlService from '@/widgets/control-service'; import ControlService from '@/widgets/control-service';
import AccountService from '@/service/account/account-service'; import AccountService from '@/service/account/account-service';
import Info_AllModel from './info-all-form-model'; import Info_AllModel from './info-all-form-model';
import ContactService from '@/service/contact/contact-service';
/** /**
...@@ -41,6 +42,14 @@ export default class Info_AllService extends ControlService { ...@@ -41,6 +42,14 @@ export default class Info_AllService extends ControlService {
this.model = new Info_AllModel(); this.model = new Info_AllModel();
} }
/**
* 联系人服务对象
*
* @type {ContactService}
* @memberof Info_AllService
*/
public contactService: ContactService = new ContactService();
/** /**
* 处理数据 * 处理数据
* *
...@@ -80,6 +89,12 @@ export default class Info_AllService extends ControlService { ...@@ -80,6 +89,12 @@ export default class Info_AllService extends ControlService {
*/ */
@Errorlog @Errorlog
public getItems(serviceName: string, interfaceName: string, context: any = {}, data: any, isloading?: boolean): Promise<any[]> { public getItems(serviceName: string, interfaceName: string, context: any = {}, data: any, isloading?: boolean): Promise<any[]> {
if (Object.is(serviceName, 'AccountService') && Object.is(interfaceName, 'FetchDefault')) {
return this.doItems(this.appEntityService.FetchDefault(JSON.parse(JSON.stringify(context)), data, isloading), 'accountid', 'account');
}
if (Object.is(serviceName, 'ContactService') && Object.is(interfaceName, 'FetchDefault')) {
return this.doItems(this.contactService.FetchDefault(JSON.parse(JSON.stringify(context)),data, isloading), 'contactid', 'contact');
}
return Promise.reject([]) return Promise.reject([])
} }
......
...@@ -57,7 +57,24 @@ ...@@ -57,7 +57,24 @@
<i-col v-show="detailsModel.parentaccountname.visible" :style="{}" :md="{ span: 12, offset: 0 }" :lg="{ span: 8, offset: 0 }" :xl="{ span: 6, offset: 0 }"> <i-col v-show="detailsModel.parentaccountname.visible" :style="{}" :md="{ span: 12, offset: 0 }" :lg="{ span: 8, offset: 0 }" :xl="{ span: 6, offset: 0 }">
<app-form-item name='parentaccountname' :itemRules="this.rules.parentaccountname" class='' :caption="$t('entities.account.info_all_form.details.parentaccountname')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.parentaccountname.error" :isEmptyCaption="false" labelPos="LEFT"> <app-form-item name='parentaccountname' :itemRules="this.rules.parentaccountname" class='' :caption="$t('entities.account.info_all_form.details.parentaccountname')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.parentaccountname.error" :isEmptyCaption="false" labelPos="LEFT">
<app-span name='parentaccountname' :value="data.parentaccountname" :data="data" :context="context" :viewparams="viewparams" :localContext ='{ }' :localParam ='{ }' style=""></app-span> <app-picker
:formState="formState"
:data="data"
:context="context"
:viewparams="viewparams"
:localContext ='{ }'
:localParam ='{ }'
:disabled="detailsModel.parentaccountname.disabled"
name='parentaccountname'
deMajorField='accountname'
deKeyField='account'
valueitem='parentaccountid'
:value="data.parentaccountname"
editortype="linkonly"
:linkview="{ viewname: 'AccountInfo', title: $t('entities.account.views.info.title'), deResParameters: [], parameters: [{ pathName: 'accounts', parameterName: 'account' }, { pathName: 'info', parameterName: 'info' } ], width: 0, height: 0, placement: '', isRedirectView: false }"
style=""
@formitemvaluechange="onFormItemValueChange">
</app-picker>
</app-form-item> </app-form-item>
</i-col> </i-col>
...@@ -185,7 +202,24 @@ ...@@ -185,7 +202,24 @@
<i-col v-show="detailsModel.primarycontactname.visible" :style="{}" :lg="{ span: 24, offset: 0 }"> <i-col v-show="detailsModel.primarycontactname.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='primarycontactname' :itemRules="this.rules.primarycontactname" class='' :caption="$t('entities.account.info_all_form.details.primarycontactname')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.primarycontactname.error" :isEmptyCaption="false" labelPos="LEFT"> <app-form-item name='primarycontactname' :itemRules="this.rules.primarycontactname" class='' :caption="$t('entities.account.info_all_form.details.primarycontactname')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.primarycontactname.error" :isEmptyCaption="false" labelPos="LEFT">
<app-span name='primarycontactname' :value="data.primarycontactname" :data="data" :context="context" :viewparams="viewparams" :localContext ='{ }' :localParam ='{ }' style=""></app-span> <app-picker
:formState="formState"
:data="data"
:context="context"
:viewparams="viewparams"
:localContext ='{ }'
:localParam ='{ }'
:disabled="detailsModel.primarycontactname.disabled"
name='primarycontactname'
deMajorField='fullname'
deKeyField='contact'
valueitem='primarycontactid'
:value="data.primarycontactname"
editortype="linkonly"
:linkview="{ viewname: 'ContactInfo', title: $t('entities.contact.views.info.title'), deResParameters: [{ pathName: 'accounts', parameterName: 'account' }, ], parameters: [{ pathName: 'contacts', parameterName: 'contact' }, { pathName: 'info', parameterName: 'info' } ], width: 0, height: 0, placement: '', isRedirectView: false }"
style=""
@formitemvaluechange="onFormItemValueChange">
</app-picker>
</app-form-item> </app-form-item>
</i-col> </i-col>
......
...@@ -31,7 +31,14 @@ ...@@ -31,7 +31,14 @@
</span> </span>
</template> </template>
<template v-slot="{row,column,$index}"> <template v-slot="{row,column,$index}">
<span>{{row.accountname}}</span> <app-column-link deKeyField='account' :context="JSON.parse(JSON.stringify(context))" :viewparams="JSON.parse(JSON.stringify(viewparams))" :data="row" :linkview="{viewname: 'account-info', height: 0,width: 0,title: $t('entities.account.views.info.title'),placement: '', isRedirectView: false,deResParameters: [
]
,parameters: [
{ pathName: 'accounts', parameterName: 'account' },
{ pathName: 'info', parameterName: 'info' }
]}" valueitem="srfkey">
<span>{{row.accountname}}</span>
</app-column-link >
</template> </template>
</el-table-column> </el-table-column>
</template> </template>
......
...@@ -31,7 +31,14 @@ ...@@ -31,7 +31,14 @@
</span> </span>
</template> </template>
<template v-slot="{row,column,$index}"> <template v-slot="{row,column,$index}">
<span>{{row.accountname}}</span> <app-column-link deKeyField='account' :context="JSON.parse(JSON.stringify(context))" :viewparams="JSON.parse(JSON.stringify(viewparams))" :data="row" :linkview="{viewname: 'account-info', height: 0,width: 0,title: $t('entities.account.views.info.title'),placement: '', isRedirectView: false,deResParameters: [
]
,parameters: [
{ pathName: 'accounts', parameterName: 'account' },
{ pathName: 'info', parameterName: 'info' }
]}" valueitem="srfkey">
<span>{{row.accountname}}</span>
</app-column-link >
</template> </template>
</el-table-column> </el-table-column>
</template> </template>
...@@ -67,7 +74,15 @@ ...@@ -67,7 +74,15 @@
</span> </span>
</template> </template>
<template v-slot="{row,column,$index}"> <template v-slot="{row,column,$index}">
<span>{{row.primarycontactname}}</span> <app-column-link deKeyField='contact' :context="JSON.parse(JSON.stringify(context))" :viewparams="JSON.parse(JSON.stringify(viewparams))" :data="row" :linkview="{viewname: 'contact-info', height: 0,width: 0,title: $t('entities.contact.views.info.title'),placement: '', isRedirectView: false,deResParameters: [
{ pathName: 'accounts', parameterName: 'account' },
]
,parameters: [
{ pathName: 'contacts', parameterName: 'contact' },
{ pathName: 'info', parameterName: 'info' }
]}" valueitem="primarycontactid">
<span>{{row.primarycontactname}}</span>
</app-column-link >
</template> </template>
</el-table-column> </el-table-column>
</template> </template>
...@@ -103,7 +118,14 @@ ...@@ -103,7 +118,14 @@
</span> </span>
</template> </template>
<template v-slot="{row,column,$index}"> <template v-slot="{row,column,$index}">
<span>{{row.parentaccountname}}</span> <app-column-link deKeyField='account' :context="JSON.parse(JSON.stringify(context))" :viewparams="JSON.parse(JSON.stringify(viewparams))" :data="row" :linkview="{viewname: 'account-info', height: 0,width: 0,title: $t('entities.account.views.info.title'),placement: '', isRedirectView: false,deResParameters: [
]
,parameters: [
{ pathName: 'accounts', parameterName: 'account' },
{ pathName: 'info', parameterName: 'info' }
]}" valueitem="parentaccountid">
<span>{{row.parentaccountname}}</span>
</app-column-link >
</template> </template>
</el-table-column> </el-table-column>
</template> </template>
......
...@@ -31,7 +31,15 @@ ...@@ -31,7 +31,15 @@
</span> </span>
</template> </template>
<template v-slot="{row,column,$index}"> <template v-slot="{row,column,$index}">
<span>{{row.fullname}}</span> <app-column-link deKeyField='contact' :context="JSON.parse(JSON.stringify(context))" :viewparams="JSON.parse(JSON.stringify(viewparams))" :data="row" :linkview="{viewname: 'contact-info', height: 0,width: 0,title: $t('entities.contact.views.info.title'),placement: '', isRedirectView: false,deResParameters: [
{ pathName: 'accounts', parameterName: 'account' },
]
,parameters: [
{ pathName: 'contacts', parameterName: 'contact' },
{ pathName: 'info', parameterName: 'info' }
]}" valueitem="srfkey">
<span>{{row.fullname}}</span>
</app-column-link >
</template> </template>
</el-table-column> </el-table-column>
</template> </template>
......
...@@ -31,7 +31,15 @@ ...@@ -31,7 +31,15 @@
</span> </span>
</template> </template>
<template v-slot="{row,column,$index}"> <template v-slot="{row,column,$index}">
<span>{{row.fullname}}</span> <app-column-link deKeyField='contact' :context="JSON.parse(JSON.stringify(context))" :viewparams="JSON.parse(JSON.stringify(viewparams))" :data="row" :linkview="{viewname: 'contact-info', height: 0,width: 0,title: $t('entities.contact.views.info.title'),placement: '', isRedirectView: false,deResParameters: [
{ pathName: 'accounts', parameterName: 'account' },
]
,parameters: [
{ pathName: 'contacts', parameterName: 'contact' },
{ pathName: 'info', parameterName: 'info' }
]}" valueitem="srfkey">
<span>{{row.fullname}}</span>
</app-column-link >
</template> </template>
</el-table-column> </el-table-column>
</template> </template>
......
...@@ -31,7 +31,15 @@ ...@@ -31,7 +31,15 @@
</span> </span>
</template> </template>
<template v-slot="{row,column,$index}"> <template v-slot="{row,column,$index}">
<span>{{row.entityname}}</span> <app-column-link deKeyField='lead' :context="JSON.parse(JSON.stringify(context))" :viewparams="JSON.parse(JSON.stringify(viewparams))" :data="row" :linkview="{viewname: 'lead-info', height: 0,width: 0,title: $t('entities.lead.views.info.title'),placement: '', isRedirectView: false,deResParameters: [
{ pathName: 'accounts', parameterName: 'account' },
]
,parameters: [
{ pathName: 'leads', parameterName: 'lead' },
{ pathName: 'info', parameterName: 'info' }
]}" valueitem="entityid">
<span>{{row.entityname}}</span>
</app-column-link >
</template> </template>
</el-table-column> </el-table-column>
</template> </template>
......
...@@ -31,7 +31,15 @@ ...@@ -31,7 +31,15 @@
</span> </span>
</template> </template>
<template v-slot="{row,column,$index}"> <template v-slot="{row,column,$index}">
<span>{{row.fullname}}</span> <app-column-link deKeyField='lead' :context="JSON.parse(JSON.stringify(context))" :viewparams="JSON.parse(JSON.stringify(viewparams))" :data="row" :linkview="{viewname: 'lead-info', height: 0,width: 0,title: $t('entities.lead.views.info.title'),placement: '', isRedirectView: false,deResParameters: [
{ pathName: 'accounts', parameterName: 'account' },
]
,parameters: [
{ pathName: 'leads', parameterName: 'lead' },
{ pathName: 'info', parameterName: 'info' }
]}" valueitem="srfkey">
<span>{{row.fullname}}</span>
</app-column-link >
</template> </template>
</el-table-column> </el-table-column>
</template> </template>
......
...@@ -31,7 +31,14 @@ ...@@ -31,7 +31,14 @@
</span> </span>
</template> </template>
<template v-slot="{row,column,$index}"> <template v-slot="{row,column,$index}">
<span>{{row.entity2name}}</span> <app-column-link deKeyField='account' :context="JSON.parse(JSON.stringify(context))" :viewparams="JSON.parse(JSON.stringify(viewparams))" :data="row" :linkview="{viewname: 'account-info', height: 0,width: 0,title: $t('entities.account.views.info.title'),placement: '', isRedirectView: false,deResParameters: [
]
,parameters: [
{ pathName: 'accounts', parameterName: 'account' },
{ pathName: 'info', parameterName: 'info' }
]}" valueitem="entity2id">
<span>{{row.entity2name}}</span>
</app-column-link >
</template> </template>
</el-table-column> </el-table-column>
</template> </template>
......
...@@ -31,7 +31,15 @@ ...@@ -31,7 +31,15 @@
</span> </span>
</template> </template>
<template v-slot="{row,column,$index}"> <template v-slot="{row,column,$index}">
<span>{{row.entity2name}}</span> <app-column-link deKeyField='contact' :context="JSON.parse(JSON.stringify(context))" :viewparams="JSON.parse(JSON.stringify(viewparams))" :data="row" :linkview="{viewname: 'contact-info', height: 0,width: 0,title: $t('entities.contact.views.info.title'),placement: '', isRedirectView: false,deResParameters: [
{ pathName: 'accounts', parameterName: 'account' },
]
,parameters: [
{ pathName: 'contacts', parameterName: 'contact' },
{ pathName: 'info', parameterName: 'info' }
]}" valueitem="entity2id">
<span>{{row.entity2name}}</span>
</app-column-link >
</template> </template>
</el-table-column> </el-table-column>
</template> </template>
......
...@@ -31,7 +31,15 @@ ...@@ -31,7 +31,15 @@
</span> </span>
</template> </template>
<template v-slot="{row,column,$index}"> <template v-slot="{row,column,$index}">
<span>{{row.entity2name}}</span> <app-column-link deKeyField='contact' :context="JSON.parse(JSON.stringify(context))" :viewparams="JSON.parse(JSON.stringify(viewparams))" :data="row" :linkview="{viewname: 'contact-info', height: 0,width: 0,title: $t('entities.contact.views.info.title'),placement: '', isRedirectView: false,deResParameters: [
{ pathName: 'accounts', parameterName: 'account' },
]
,parameters: [
{ pathName: 'contacts', parameterName: 'contact' },
{ pathName: 'info', parameterName: 'info' }
]}" valueitem="entity2id">
<span>{{row.entity2name}}</span>
</app-column-link >
</template> </template>
</el-table-column> </el-table-column>
</template> </template>
......
...@@ -31,7 +31,15 @@ ...@@ -31,7 +31,15 @@
</span> </span>
</template> </template>
<template v-slot="{row,column,$index}"> <template v-slot="{row,column,$index}">
<span>{{row.entity2name}}</span> <app-column-link deKeyField='lead' :context="JSON.parse(JSON.stringify(context))" :viewparams="JSON.parse(JSON.stringify(viewparams))" :data="row" :linkview="{viewname: 'lead-info', height: 0,width: 0,title: $t('entities.lead.views.info.title'),placement: '', isRedirectView: false,deResParameters: [
{ pathName: 'accounts', parameterName: 'account' },
]
,parameters: [
{ pathName: 'leads', parameterName: 'lead' },
{ pathName: 'info', parameterName: 'info' }
]}" valueitem="entity2id">
<span>{{row.entity2name}}</span>
</app-column-link >
</template> </template>
</el-table-column> </el-table-column>
</template> </template>
......
...@@ -43,7 +43,14 @@ ...@@ -43,7 +43,14 @@
</span> </span>
</template> </template>
<template v-slot="{row,column,$index}"> <template v-slot="{row,column,$index}">
<span>{{row.parentaccountname}}</span> <app-column-link deKeyField='account' :context="JSON.parse(JSON.stringify(context))" :viewparams="JSON.parse(JSON.stringify(viewparams))" :data="row" :linkview="{viewname: 'account-info', height: 0,width: 0,title: $t('entities.account.views.info.title'),placement: '', isRedirectView: false,deResParameters: [
]
,parameters: [
{ pathName: 'accounts', parameterName: 'account' },
{ pathName: 'info', parameterName: 'info' }
]}" valueitem="parentaccountid">
<span>{{row.parentaccountname}}</span>
</app-column-link >
</template> </template>
</el-table-column> </el-table-column>
</template> </template>
...@@ -55,7 +62,15 @@ ...@@ -55,7 +62,15 @@
</span> </span>
</template> </template>
<template v-slot="{row,column,$index}"> <template v-slot="{row,column,$index}">
<span>{{row.parentcontactname}}</span> <app-column-link deKeyField='contact' :context="JSON.parse(JSON.stringify(context))" :viewparams="JSON.parse(JSON.stringify(viewparams))" :data="row" :linkview="{viewname: 'contact-info', height: 0,width: 0,title: $t('entities.contact.views.info.title'),placement: '', isRedirectView: false,deResParameters: [
{ pathName: 'accounts', parameterName: 'account' },
]
,parameters: [
{ pathName: 'contacts', parameterName: 'contact' },
{ pathName: 'info', parameterName: 'info' }
]}" valueitem="parentcontactid">
<span>{{row.parentcontactname}}</span>
</app-column-link >
</template> </template>
</el-table-column> </el-table-column>
</template> </template>
......
...@@ -21,16 +21,6 @@ public class InvoiceExService extends InvoiceServiceImpl { ...@@ -21,16 +21,6 @@ public class InvoiceExService extends InvoiceServiceImpl {
return com.baomidou.mybatisplus.core.toolkit.ReflectionKit.getSuperClassGenericType(this.getClass().getSuperclass(), 1); return com.baomidou.mybatisplus.core.toolkit.ReflectionKit.getSuperClassGenericType(this.getClass().getSuperclass(), 1);
} }
/**
* 自定义行为[Cancel]用户扩展
* @param et
* @return
*/
@Override
@Transactional
public Invoice cancel(Invoice et) {
return super.cancel(et);
}
/** /**
* 自定义行为[Finish]用户扩展 * 自定义行为[Finish]用户扩展
* @param et * @param et
...@@ -41,15 +31,5 @@ public class InvoiceExService extends InvoiceServiceImpl { ...@@ -41,15 +31,5 @@ public class InvoiceExService extends InvoiceServiceImpl {
public Invoice finish(Invoice et) { public Invoice finish(Invoice et) {
return super.finish(et); return super.finish(et);
} }
/**
* 自定义行为[Paid]用户扩展
* @param et
* @return
*/
@Override
@Transactional
public Invoice paid(Invoice et) {
return super.paid(et);
}
} }
...@@ -63,6 +63,14 @@ public class InvoiceServiceImpl extends ServiceImpl<InvoiceMapper, Invoice> impl ...@@ -63,6 +63,14 @@ public class InvoiceServiceImpl extends ServiceImpl<InvoiceMapper, Invoice> impl
@Lazy @Lazy
protected cn.ibizlab.businesscentral.core.base.service.ITransactionCurrencyService transactioncurrencyService; protected cn.ibizlab.businesscentral.core.base.service.ITransactionCurrencyService transactioncurrencyService;
@Autowired
@Lazy
protected cn.ibizlab.businesscentral.core.finance.service.logic.IInvoiceCancelLogic cancelLogic;
@Autowired
@Lazy
protected cn.ibizlab.businesscentral.core.finance.service.logic.IInvoicePaidLogic paidLogic;
protected int batchSize = 500; protected int batchSize = 500;
@Override @Override
...@@ -131,8 +139,8 @@ public class InvoiceServiceImpl extends ServiceImpl<InvoiceMapper, Invoice> impl ...@@ -131,8 +139,8 @@ public class InvoiceServiceImpl extends ServiceImpl<InvoiceMapper, Invoice> impl
@Override @Override
@Transactional @Transactional
public Invoice cancel(Invoice et) { public Invoice cancel(Invoice et) {
//自定义代码 cancelLogic.execute(et);
return et; return et ;
} }
@Override @Override
...@@ -149,8 +157,8 @@ public class InvoiceServiceImpl extends ServiceImpl<InvoiceMapper, Invoice> impl ...@@ -149,8 +157,8 @@ public class InvoiceServiceImpl extends ServiceImpl<InvoiceMapper, Invoice> impl
@Override @Override
@Transactional @Transactional
public Invoice paid(Invoice et) { public Invoice paid(Invoice et) {
//自定义代码 paidLogic.execute(et);
return et; return et ;
} }
@Override @Override
......
...@@ -26,6 +26,13 @@ public class InvoiceCancelLogicImpl implements IInvoiceCancelLogic{ ...@@ -26,6 +26,13 @@ public class InvoiceCancelLogicImpl implements IInvoiceCancelLogic{
@Autowired @Autowired
private KieContainer kieContainer; private KieContainer kieContainer;
@Autowired
private cn.ibizlab.businesscentral.core.finance.service.IInvoiceService invoiceservice;
public cn.ibizlab.businesscentral.core.finance.service.IInvoiceService getInvoiceService() {
return this.invoiceservice;
}
@Autowired @Autowired
private cn.ibizlab.businesscentral.core.finance.service.IInvoiceService iBzSysDefaultService; private cn.ibizlab.businesscentral.core.finance.service.IInvoiceService iBzSysDefaultService;
...@@ -41,6 +48,7 @@ public class InvoiceCancelLogicImpl implements IInvoiceCancelLogic{ ...@@ -41,6 +48,7 @@ public class InvoiceCancelLogicImpl implements IInvoiceCancelLogic{
kieSession=kieContainer.newKieSession(); kieSession=kieContainer.newKieSession();
kieSession.insert(et); kieSession.insert(et);
kieSession.setGlobal("invoicecanceldefault",et); kieSession.setGlobal("invoicecanceldefault",et);
kieSession.setGlobal("invoiceservice",invoiceservice);
kieSession.setGlobal("iBzSysInvoiceDefaultService",iBzSysDefaultService); kieSession.setGlobal("iBzSysInvoiceDefaultService",iBzSysDefaultService);
kieSession.setGlobal("curuser", cn.ibizlab.businesscentral.util.security.AuthenticationUser.getAuthenticationUser()); kieSession.setGlobal("curuser", cn.ibizlab.businesscentral.util.security.AuthenticationUser.getAuthenticationUser());
kieSession.startProcess("cn.ibizlab.businesscentral.core.finance.service.logic.invoicecancel"); kieSession.startProcess("cn.ibizlab.businesscentral.core.finance.service.logic.invoicecancel");
......
...@@ -120,7 +120,7 @@ ...@@ -120,7 +120,7 @@
"delogicname":"发票", "delogicname":"发票",
"sysmoudle":{"id":"FINANCE","name":"Finance"}, "sysmoudle":{"id":"FINANCE","name":"Finance"},
"dedataset":[{"id":"ByParentKey" , "name":"ByParentKey"},{"id":"Cancel" , "name":"已取消"},{"id":"Default" , "name":"DEFAULT"},{"id":"Paid" , "name":"已支付"}], "dedataset":[{"id":"ByParentKey" , "name":"ByParentKey"},{"id":"Cancel" , "name":"已取消"},{"id":"Default" , "name":"DEFAULT"},{"id":"Paid" , "name":"已支付"}],
"deaction":[{"id":"Create" , "name":"Create" , "type":"BUILTIN" },{"id":"Update" , "name":"Update" , "type":"BUILTIN" },{"id":"Remove" , "name":"Remove" , "type":"BUILTIN" },{"id":"Get" , "name":"Get" , "type":"BUILTIN" },{"id":"GetDraft" , "name":"GetDraft" , "type":"BUILTIN" },{"id":"Cancel" , "name":"取消发票" , "type":"USERCUSTOM" },{"id":"CheckKey" , "name":"CheckKey" , "type":"BUILTIN" },{"id":"Finish" , "name":"确认发票" , "type":"USERCUSTOM" },{"id":"Paid" , "name":"发票已支付" , "type":"USERCUSTOM" },{"id":"Save" , "name":"Save" , "type":"BUILTIN" }], "deaction":[{"id":"Create" , "name":"Create" , "type":"BUILTIN" },{"id":"Update" , "name":"Update" , "type":"BUILTIN" },{"id":"Remove" , "name":"Remove" , "type":"BUILTIN" },{"id":"Get" , "name":"Get" , "type":"BUILTIN" },{"id":"GetDraft" , "name":"GetDraft" , "type":"BUILTIN" },{"id":"Cancel" , "name":"取消发票" , "type":"DELOGIC" },{"id":"CheckKey" , "name":"CheckKey" , "type":"BUILTIN" },{"id":"Finish" , "name":"确认发票" , "type":"USERCUSTOM" },{"id":"Paid" , "name":"发票已支付" , "type":"DELOGIC" },{"id":"Save" , "name":"Save" , "type":"BUILTIN" }],
"datascope":[{"id":"all","name":"全部数据"}, {"id":"createman","name":"创建人"}] "datascope":[{"id":"all","name":"全部数据"}, {"id":"createman","name":"创建人"}]
} }
, { , {
......
...@@ -4,11 +4,21 @@ import java.util.Map; ...@@ -4,11 +4,21 @@ import java.util.Map;
import java.util.HashMap; import java.util.HashMap;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
global cn.ibizlab.businesscentral.core.finance.domain.Invoice invoicecanceldefault; global cn.ibizlab.businesscentral.core.finance.domain.Invoice invoicecanceldefault;
global cn.ibizlab.businesscentral.core.finance.service.IInvoiceService invoiceservice;
global cn.ibizlab.businesscentral.core.finance.service.IInvoiceService iBzSysInvoiceDefaultService; global cn.ibizlab.businesscentral.core.finance.service.IInvoiceService iBzSysInvoiceDefaultService;
global cn.ibizlab.businesscentral.util.security.AuthenticationUser curuser; global cn.ibizlab.businesscentral.util.security.AuthenticationUser curuser;
no-loop no-loop
//逻辑处理节点[更新发票状态]
rule "deaction1"
ruleflow-group "invoicecanceldeaction1"
when
then
invoiceservice.update(invoicecanceldefault);
update(invoicecanceldefault);//更新fact中变量值
end
//逻辑处理节点[开始] //逻辑处理节点[开始]
rule "begin" rule "begin"
ruleflow-group "invoicecancelbegin" ruleflow-group "invoicecancelbegin"
...@@ -16,3 +26,12 @@ ruleflow-group "invoicecancelbegin" ...@@ -16,3 +26,12 @@ ruleflow-group "invoicecancelbegin"
then then
end end
//逻辑处理节点[准备参数]
rule "prepareparam1"
ruleflow-group "invoicecancelprepareparam1"
when
then
invoicecanceldefault.set("statecode","3");
update(invoicecanceldefault);//更新fact中变量值
end
...@@ -7,9 +7,15 @@ ...@@ -7,9 +7,15 @@
<tns:import name="cn.ibizlab.businesscentral.util.helper.RuleUtils"/> <tns:import name="cn.ibizlab.businesscentral.util.helper.RuleUtils"/>
<tns:global identifier="invoicecanceldefault" type="cn.ibizlab.businesscentral.core.finance.domain.Invoice" /> <tns:global identifier="invoicecanceldefault" type="cn.ibizlab.businesscentral.core.finance.domain.Invoice" />
</extensionElements> </extensionElements>
<businessRuleTask activiti:exclusive="true" g:ruleFlowGroup="invoicecanceldeaction1" id="91A57E37-3A94-415C-88B2-78E546913016" implementation="http://www.jboss.org/drools/rule" name="更新发票状态"/>
<endEvent id="91A57E37-3A94-415C-88B2-78E546913016_End" name="End"/>
<sequenceFlow id="91A57E37-3A94-415C-88B2-78E546913016_End_Line" sourceRef="91A57E37-3A94-415C-88B2-78E546913016" targetRef="91A57E37-3A94-415C-88B2-78E546913016_End"/>
<startEvent id="9A2B78B2-DC42-4EE1-96D4-507FAB73DE1D" isInterrupting="true"/> <startEvent id="9A2B78B2-DC42-4EE1-96D4-507FAB73DE1D" isInterrupting="true"/>
<endEvent id="9A2B78B2-DC42-4EE1-96D4-507FAB73DE1D_End" name="End"/> <businessRuleTask activiti:exclusive="true" g:ruleFlowGroup="invoicecancelprepareparam1" id="A2B8CECC-0BD2-4C05-B057-F275A2799B63" implementation="http://www.jboss.org/drools/rule" name="准备参数"/>
<sequenceFlow id="9A2B78B2-DC42-4EE1-96D4-507FAB73DE1D_End_Line" sourceRef="9A2B78B2-DC42-4EE1-96D4-507FAB73DE1D" targetRef="9A2B78B2-DC42-4EE1-96D4-507FAB73DE1D_End"/> <sequenceFlow id="43A26025-AAF1-4335-B6CC-5B741ED948BC" sourceRef="9A2B78B2-DC42-4EE1-96D4-507FAB73DE1D" targetRef="A2B8CECC-0BD2-4C05-B057-F275A2799B63">
</sequenceFlow>
<sequenceFlow id="098C3875-0F81-4FBA-B62A-A69A5584846D" sourceRef="A2B8CECC-0BD2-4C05-B057-F275A2799B63" targetRef="91A57E37-3A94-415C-88B2-78E546913016">
</sequenceFlow>
</process> </process>
</definitions> </definitions>
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册