|
@@ -208,6 +208,22 @@ public class SubAndAudFormPlugin extends AbstractListPlugin implements Plugin {
|
|
this.getView().setVisible(false,nckd_a_pay);
|
|
this.getView().setVisible(false,nckd_a_pay);
|
|
this.getView().setVisible(false,nckd_a_payretird);
|
|
this.getView().setVisible(false,nckd_a_payretird);
|
|
allDataEntry(dynamicObject,entrylist,propername,dep,allentrtlist,"nckd_ase_department",nckd_a_staffentry);
|
|
allDataEntry(dynamicObject,entrylist,propername,dep,allentrtlist,"nckd_ase_department",nckd_a_staffentry);
|
|
|
|
+
|
|
|
|
+ DynamicObjectCollection nckd_ase=dynamicObject.getDynamicObjectCollection("nckd_a_staffentry");
|
|
|
|
+ //循环汇总分录
|
|
|
|
+ for (int i=0;i<nckd_ase.size();i++){
|
|
|
|
+ //部门
|
|
|
|
+ DynamicObject depament=nckd_ase.get(i).getDynamicObject("nckd_ase_department");
|
|
|
|
+ DynamicObjectCollection nckd_staffentry=dynamicObject.getDynamicObjectCollection("nckd_staffentry");
|
|
|
|
+ for (DynamicObject it:nckd_staffentry) {
|
|
|
|
+ //所在单位相等则获取发薪机构
|
|
|
|
+ if (depament.equals(it.getDynamicObject("nckd_se_department"))) {
|
|
|
|
+ this.getModel().setValue("nckd_ase_institution",it.getDynamicObject("nckd_se_institution"),i);
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|
|
//分录类型为通用薪酬内退
|
|
//分录类型为通用薪酬内退
|
|
if ("B".equals(nckd_entrytype)) {
|
|
if ("B".equals(nckd_entrytype)) {
|
|
@@ -227,6 +243,22 @@ public class SubAndAudFormPlugin extends AbstractListPlugin implements Plugin {
|
|
this.getView().setVisible(false,nckd_a_retired);
|
|
this.getView().setVisible(false,nckd_a_retired);
|
|
this.getView().setVisible(false,nckd_a_pay);
|
|
this.getView().setVisible(false,nckd_a_pay);
|
|
this.getView().setVisible(false,nckd_a_payretird);
|
|
this.getView().setVisible(false,nckd_a_payretird);
|
|
|
|
+
|
|
|
|
+ //发薪机构赋值
|
|
|
|
+ DynamicObjectCollection nckd_ase=dynamicObject.getDynamicObjectCollection("nckd_a_earlyretiredentry");
|
|
|
|
+ //循环汇总分录
|
|
|
|
+ for (int i=0;i<nckd_ase.size();i++){
|
|
|
|
+ //部门
|
|
|
|
+ DynamicObject depament=nckd_ase.get(i).getDynamicObject("nckd_aee_department");
|
|
|
|
+ DynamicObjectCollection nckd_staffentry=dynamicObject.getDynamicObjectCollection("nckd_earlyretiredentry");
|
|
|
|
+ for (DynamicObject it:nckd_staffentry) {
|
|
|
|
+ //所在单位相等则获取发薪机构
|
|
|
|
+ if (depament.equals(it.getDynamicObject("nckd_ee_department"))) {
|
|
|
|
+ this.getModel().setValue("nckd_aee_institution",it.getDynamicObject("nckd_ee_institution"),i);
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
//分录类型为通用薪酬退休
|
|
//分录类型为通用薪酬退休
|
|
if ("C".equals(nckd_entrytype)) {
|
|
if ("C".equals(nckd_entrytype)) {
|
|
@@ -246,6 +278,21 @@ public class SubAndAudFormPlugin extends AbstractListPlugin implements Plugin {
|
|
this.getView().setVisible(true,nckd_a_retired);
|
|
this.getView().setVisible(true,nckd_a_retired);
|
|
this.getView().setVisible(false,nckd_a_pay);
|
|
this.getView().setVisible(false,nckd_a_pay);
|
|
this.getView().setVisible(false,nckd_a_payretird);
|
|
this.getView().setVisible(false,nckd_a_payretird);
|
|
|
|
+ //发薪机构赋值
|
|
|
|
+ DynamicObjectCollection nckd_ase=dynamicObject.getDynamicObjectCollection("nckd_a_retireentry");
|
|
|
|
+ //循环汇总分录
|
|
|
|
+ for (int i=0;i<nckd_ase.size();i++){
|
|
|
|
+ //部门
|
|
|
|
+ DynamicObject depament=nckd_ase.get(i).getDynamicObject("nckd_are_department");
|
|
|
|
+ DynamicObjectCollection nckd_staffentry=dynamicObject.getDynamicObjectCollection("nckd_retireentry");
|
|
|
|
+ for (DynamicObject it:nckd_staffentry) {
|
|
|
|
+ //所在单位相等则获取发薪机构
|
|
|
|
+ if (depament.equals(it.getDynamicObject("nckd_re_department"))) {
|
|
|
|
+ this.getModel().setValue("nckd_are_institution",it.getDynamicObject("nckd_re_institution"),i);
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
//分录类型为人力薪酬(一般员工)
|
|
//分录类型为人力薪酬(一般员工)
|
|
if ("D".equals(nckd_entrytype)) {
|
|
if ("D".equals(nckd_entrytype)) {
|
|
@@ -265,6 +312,21 @@ public class SubAndAudFormPlugin extends AbstractListPlugin implements Plugin {
|
|
this.getView().setVisible(false,nckd_a_retired);
|
|
this.getView().setVisible(false,nckd_a_retired);
|
|
this.getView().setVisible(true,nckd_a_pay);
|
|
this.getView().setVisible(true,nckd_a_pay);
|
|
this.getView().setVisible(false,nckd_a_payretird);
|
|
this.getView().setVisible(false,nckd_a_payretird);
|
|
|
|
+ //发薪机构赋值
|
|
|
|
+ DynamicObjectCollection nckd_ase=dynamicObject.getDynamicObjectCollection("nckd_a_salaryentry");
|
|
|
|
+ //循环汇总分录
|
|
|
|
+ for (int i=0;i<nckd_ase.size();i++){
|
|
|
|
+ //部门
|
|
|
|
+ DynamicObject depament=nckd_ase.get(i).getDynamicObject("nckd_are_department");
|
|
|
|
+ DynamicObjectCollection nckd_staffentry=dynamicObject.getDynamicObjectCollection("nckd_salaryentry");
|
|
|
|
+ for (DynamicObject it:nckd_staffentry) {
|
|
|
|
+ //所在单位相等则获取发薪机构
|
|
|
|
+ if (depament.equals(it.getDynamicObject("nckd_asae_department"))) {
|
|
|
|
+ this.getModel().setValue("nckd_asae_institution",it.getDynamicObject("nckd_sae_institution"),i);
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
//分录类型为人力薪酬(内退)
|
|
//分录类型为人力薪酬(内退)
|
|
if ("E".equals(nckd_entrytype)) {
|
|
if ("E".equals(nckd_entrytype)) {
|
|
@@ -284,6 +346,21 @@ public class SubAndAudFormPlugin extends AbstractListPlugin implements Plugin {
|
|
this.getView().setVisible(false,nckd_a_retired);
|
|
this.getView().setVisible(false,nckd_a_retired);
|
|
this.getView().setVisible(false,nckd_a_pay);
|
|
this.getView().setVisible(false,nckd_a_pay);
|
|
this.getView().setVisible(true,nckd_a_payretird);
|
|
this.getView().setVisible(true,nckd_a_payretird);
|
|
|
|
+ //发薪机构赋值
|
|
|
|
+ DynamicObjectCollection nckd_ase=dynamicObject.getDynamicObjectCollection("nckd_a_salaryentryre");
|
|
|
|
+ //循环汇总分录
|
|
|
|
+ for (int i=0;i<nckd_ase.size();i++){
|
|
|
|
+ //部门
|
|
|
|
+ DynamicObject depament=nckd_ase.get(i).getDynamicObject("nckd_asee_department");
|
|
|
|
+ DynamicObjectCollection nckd_staffentry=dynamicObject.getDynamicObjectCollection("nckd_salaryentryre");
|
|
|
|
+ for (DynamicObject it:nckd_staffentry) {
|
|
|
|
+ //所在单位相等则获取发薪机构
|
|
|
|
+ if (depament.equals(it.getDynamicObject("nckd_asee_department"))) {
|
|
|
|
+ this.getModel().setValue("nckd_asee_institution",it.getDynamicObject("nckd_see_institution"),i);
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|