企业成本核算表单插件优化
This commit is contained in:
parent
b80d62379f
commit
79de93c208
|
@ -59,21 +59,29 @@ public class EntCostSplitBillPlugin extends AbstractBillPlugIn {
|
||||||
if (bd_accountview == null) {
|
if (bd_accountview == null) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
QFilter filter1 = new QFilter("zcgj_entryentity.zcgj_accountname", QCP.equals, bd_accountview.getString("name"));//科目名称
|
QFilter filter1 = new QFilter("zcgj_acccostentry.zcgj_accountname", QCP.equals, bd_accountview.getString("name"));//科目名称
|
||||||
filter1.and(new QFilter("zcgj_entryentity.zcgj_accountnumber", QCP.equals, bd_accountview.getString("number")));//科目变化
|
filter1.and(new QFilter("zcgj_acccostentry.zcgj_accountnumber", QCP.equals, bd_accountview.getString("number")));//科目编码
|
||||||
filter1.and(new QFilter("zcgj_org", QCP.equals, org1.getPkValue()));//组织
|
// filter1.and(new QFilter("zcgj_org", QCP.equals, org1.getPkValue()));//组织
|
||||||
DynamicObject zcgj_accountcost = QueryServiceHelper.queryOne("zcgj_accountcost",
|
DynamicObject zcgj_accountcost = QueryServiceHelper.queryOne("zcgj_accountcost",
|
||||||
"id,zcgj_entryentity.zcgj_costtype,zcgj_entryentity.zcgj_sectype",
|
"id,zcgj_acccostentry.zcgj_costtype,zcgj_acccostentry.zcgj_sectype",
|
||||||
new QFilter[]{filter1});//会计科目与成本项目
|
new QFilter[]{filter1});//会计科目与成本项目
|
||||||
|
QFilter[] qFilters = new QFilter[]{new QFilter("name", QCP.equals, rptAssistBalanceGx.get("zcgj_processname"))};//工序名称
|
||||||
DynamicObject newEntry = new DynamicObject(entryType);
|
|
||||||
QFilter[] qFilters = new QFilter[]{new QFilter("name", QCP.equals, rptAssistBalanceGx.get("zcgj_processname"))};
|
|
||||||
DynamicObject ec_ecbd_pro_cbs = BusinessDataServiceHelper.loadSingle("ec_ecbd_pro_cbs", "id", qFilters);//项目工序
|
DynamicObject ec_ecbd_pro_cbs = BusinessDataServiceHelper.loadSingle("ec_ecbd_pro_cbs", "id", qFilters);//项目工序
|
||||||
if (ec_ecbd_pro_cbs != null) {
|
|
||||||
newEntry.set("cbs", ec_ecbd_pro_cbs.getPkValue());
|
if (ec_ecbd_pro_cbs == null && zcgj_accountcost == null) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
DynamicObject newEntry = new DynamicObject(entryType);
|
||||||
|
// QFilter[] qFilters1 = new QFilter[]{new QFilter("number", QCP.equals, "10000000-XM014")};
|
||||||
|
// DynamicObject ec_project_f7 = BusinessDataServiceHelper.loadSingle("ec_project_f7", "id", qFilters1);
|
||||||
|
// newEntry.set("project", ec_project_f7);
|
||||||
|
if (ec_ecbd_pro_cbs != null) {
|
||||||
|
newEntry.set("cbs", ec_ecbd_pro_cbs.getPkValue());//成本分解结构
|
||||||
|
}
|
||||||
|
if (zcgj_accountcost != null) {
|
||||||
|
newEntry.set("costtype", zcgj_accountcost.get("zcgj_acccostentry.zcgj_costtype"));//成本项
|
||||||
|
newEntry.set("zcgj_sectype", zcgj_accountcost.get("zcgj_acccostentry.zcgj_sectype"));//二级分类
|
||||||
}
|
}
|
||||||
newEntry.set("costtype", zcgj_accountcost.get("zcgj_entryentity.zcgj_costtype"));
|
|
||||||
newEntry.set("zcgj_sectype", zcgj_accountcost.get("zcgj_entryentity.zcgj_sectype"));
|
|
||||||
entryCollection.add(newEntry);
|
entryCollection.add(newEntry);
|
||||||
}
|
}
|
||||||
this.getView().updateView("entryentity");//刷新分录
|
this.getView().updateView("entryentity");//刷新分录
|
||||||
|
|
Loading…
Reference in New Issue