This commit is contained in:
xuhaihui 2025-09-29 09:18:28 +08:00
parent 085bc6f70b
commit 93ce7a6da4
1 changed files with 8 additions and 8 deletions

View File

@ -49,7 +49,7 @@ public class EntCostSplitBillPlugin extends AbstractBillPlugIn {
} }
QFilter filter = new QFilter("zcgj_org", QCP.equals, org1.getPkValue());//核算组织 QFilter filter = new QFilter("zcgj_org", QCP.equals, org1.getPkValue());//核算组织
filter.and(new QFilter("zcgj_period", QCP.equals, period1.getPkValue()));//期间 filter.and(new QFilter("zcgj_period", QCP.equals, period1.getPkValue()));//期间
// filter.and(new QFilter("zcgj_isnew", QCP.equals, true));//是否最新 filter.and(new QFilter("zcgj_isnew", QCP.equals, true));//是否最新
DynamicObjectCollection rptAssistBalanceGxCollection = QueryServiceHelper.query("zcgj_rpt_assistbalancegx", DynamicObjectCollection rptAssistBalanceGxCollection = QueryServiceHelper.query("zcgj_rpt_assistbalancegx",
"id,zcgj_account,zcgj_processname", "id,zcgj_account,zcgj_processname",
new QFilter[]{filter});//"核算维度余额取数表(矿山工序维度)" new QFilter[]{filter});//"核算维度余额取数表(矿山工序维度)"
@ -85,7 +85,7 @@ public class EntCostSplitBillPlugin extends AbstractBillPlugIn {
DynamicObject ec_project_f7 = BusinessDataServiceHelper.loadSingle("ec_project_f7", "id", DynamicObject ec_project_f7 = BusinessDataServiceHelper.loadSingle("ec_project_f7", "id",
new QFilter[]{new QFilter("id", QCP.equals, ec_project.getPkValue())});//项目 new QFilter[]{new QFilter("id", QCP.equals, ec_project.getPkValue())});//项目
newEntry.set("project", ec_project_f7);//"项目" newEntry.set("project", ec_project_f7);//"项目"
newEntrySubEntryEntity.set("zcgj_project", ec_project_f7); newEntrySubEntryEntity.set("zcgj_project", ec_project_f7);//项目
break; break;
} }
} }
@ -94,18 +94,18 @@ public class EntCostSplitBillPlugin extends AbstractBillPlugIn {
DynamicObject ec_project_f7 = BusinessDataServiceHelper.loadSingle("ec_project_f7", "id", DynamicObject ec_project_f7 = BusinessDataServiceHelper.loadSingle("ec_project_f7", "id",
new QFilter[]{new QFilter("id", QCP.equals, ec_projects[0].getPkValue())});//项目 new QFilter[]{new QFilter("id", QCP.equals, ec_projects[0].getPkValue())});//项目
newEntry.set("project", ec_project_f7);//项目 newEntry.set("project", ec_project_f7);//项目
newEntrySubEntryEntity.set("zcgj_project", ec_project_f7); newEntrySubEntryEntity.set("zcgj_project", ec_project_f7);//项目
} }
} }
if (ec_ecbd_pro_cbs != null) { if (ec_ecbd_pro_cbs != null) {
newEntry.set("cbs", ec_ecbd_pro_cbs);//成本分解结构 newEntry.set("cbs", ec_ecbd_pro_cbs);//成本分解结构
newEntrySubEntryEntity.set("zcgj_cbs", ec_ecbd_pro_cbs); newEntrySubEntryEntity.set("zcgj_cbs", ec_ecbd_pro_cbs);//成本分解结构
} }
if (zcgj_accountcost != null) { if (zcgj_accountcost != null) {
newEntry.set("costtype", zcgj_accountcost.get("zcgj_acccostentry.zcgj_costtype"));//成本项 newEntry.set("costtype", zcgj_accountcost.get("zcgj_acccostentry.zcgj_costtype"));//成本项
newEntry.set("zcgj_sectype", zcgj_accountcost.get("zcgj_acccostentry.zcgj_sectype"));//二级分类 newEntry.set("zcgj_sectype", zcgj_accountcost.get("zcgj_acccostentry.zcgj_sectype"));//二级分类
newEntrySubEntryEntity.set("zcgj_costtype", zcgj_accountcost.get("zcgj_acccostentry.zcgj_costtype")); newEntrySubEntryEntity.set("zcgj_costtype", zcgj_accountcost.get("zcgj_acccostentry.zcgj_costtype"));//成本项
newEntrySubEntryEntity.set("zcgj_sectype1", zcgj_accountcost.get("zcgj_acccostentry.zcgj_sectype")); newEntrySubEntryEntity.set("zcgj_sectype1", zcgj_accountcost.get("zcgj_acccostentry.zcgj_sectype"));//二级分类
} }
entryCollection.add(newEntry); entryCollection.add(newEntry);
subEntryEntityCollection.add(newEntrySubEntryEntity); subEntryEntityCollection.add(newEntrySubEntryEntity);
@ -113,8 +113,8 @@ public class EntCostSplitBillPlugin extends AbstractBillPlugIn {
this.getView().updateView("entryentity");//刷新分录 this.getView().updateView("entryentity");//刷新分录
this.getView().updateView("zcgj_subentryentity");//刷新分录 this.getView().updateView("zcgj_subentryentity");//刷新分录
this.getModel().endInit(); this.getModel().endInit();
this.getView().invokeOperation("save"); this.getView().invokeOperation("save");//保存用于刷新
this.getView().invokeOperation("refresh"); this.getView().invokeOperation("refresh");//刷新全局页面
} else if ("newentry1".equals(formOperate.getOperateKey())) { } else if ("newentry1".equals(formOperate.getOperateKey())) {
//成本核算维度明细子分录增行按钮 //成本核算维度明细子分录增行按钮
int rowIndex = this.getModel().getEntryCurrentRowIndex("entryentity");//企业费用成本分摊明细分录行索引 int rowIndex = this.getModel().getEntryCurrentRowIndex("entryentity");//企业费用成本分摊明细分录行索引