值改变事件去掉刷新页面代码
This commit is contained in:
parent
eeb2939003
commit
305dbedc8a
|
|
@ -42,7 +42,6 @@ public class BaseDataPlugin extends AbstractFormPlugin implements Plugin {
|
|||
}
|
||||
}
|
||||
model.setValue("tqq9_dept", dept);
|
||||
this.getView().updateView();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
@ -67,7 +66,7 @@ public class BaseDataPlugin extends AbstractFormPlugin implements Plugin {
|
|||
this.getModel().setValue("tqq9_licenseno", substring, rowIndex);
|
||||
}
|
||||
}
|
||||
this.getView().updateView();
|
||||
// this.getView().updateView();
|
||||
|
||||
}
|
||||
if (StringUtils.equals("tqq9_zczh", key)) {
|
||||
|
|
@ -88,7 +87,7 @@ public class BaseDataPlugin extends AbstractFormPlugin implements Plugin {
|
|||
this.getModel().setValue("tqq9_licenseno", substring, rowIndex);
|
||||
}
|
||||
}
|
||||
this.getView().updateView();
|
||||
// this.getView().updateView();
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -111,50 +111,50 @@ public class PurApplyBillPlugin extends AbstractBillPlugIn implements Plugin {
|
|||
} catch (IOException ex) {
|
||||
throw new RuntimeException(ex);
|
||||
}
|
||||
view.updateView();
|
||||
// view.updateView();
|
||||
}
|
||||
}
|
||||
//收货仓库
|
||||
if (StringUtils.equals("tqq9_rewares_sh", name)) {
|
||||
DynamicObject tqq9_rewares_sh = (DynamicObject) model.getValue("tqq9_rewares_sh");
|
||||
EntryFieldRefresher entryFieldRefresher = new EntryFieldRefresher();
|
||||
entryFieldRefresher.updateDynamicObjectByOrg(SH_ORGNUMBER, "warehouse", tqq9_rewares_sh, model);
|
||||
view.updateView();
|
||||
}
|
||||
//采购数量
|
||||
// if (StringUtils.equals("tqq9_rewares_sh", name)) {
|
||||
// DynamicObject tqq9_rewares_sh = (DynamicObject) model.getValue("tqq9_rewares_sh");
|
||||
// EntryFieldRefresher entryFieldRefresher = new EntryFieldRefresher();
|
||||
// entryFieldRefresher.updateDynamicObjectByOrg(SH_ORGNUMBER, "warehouse", tqq9_rewares_sh, model);
|
||||
// view.updateView();
|
||||
// }
|
||||
// //采购数量
|
||||
if (StringUtils.equals("applyqty", name)) {
|
||||
BigDecimal applyqty = (BigDecimal) model.getValue("applyqty");
|
||||
EntryFieldRefresher entryFieldRefresher = new EntryFieldRefresher();
|
||||
entryFieldRefresher.sumEntrByOrg(SH_ORGNUMBER, "applyqty", "tqq9_purqty_sh", model);
|
||||
view.updateView();
|
||||
// view.updateView();
|
||||
}
|
||||
//应付金额
|
||||
if (StringUtils.equals("tqq9_yfje", name)) {
|
||||
BigDecimal tqq9_yfje = (BigDecimal) model.getValue("tqq9_yfje");
|
||||
EntryFieldRefresher entryFieldRefresher = new EntryFieldRefresher();
|
||||
entryFieldRefresher.sumEntrByOrg(SH_ORGNUMBER, "tqq9_yfje", "tqq9_payamount_sh", model);
|
||||
view.updateView();
|
||||
// view.updateView();
|
||||
}
|
||||
//优惠金额_单头
|
||||
if (StringUtils.equals("tqq9_discountamt_sh", name)) {
|
||||
BigDecimal tqq9_discountamt_sh = (BigDecimal) model.getValue("tqq9_discountamt_sh");
|
||||
EntryFieldRefresher entryFieldRefresher = new EntryFieldRefresher();
|
||||
entryFieldRefresher.updateAmountByOrg(SH_ORGNUMBER, "tqq9_disamount", tqq9_discountamt_sh, model);
|
||||
view.updateView();
|
||||
// view.updateView();
|
||||
}
|
||||
//货返_单头
|
||||
if (StringUtils.equals("tqq9_hshfsyje_sh", name)) {
|
||||
BigDecimal tqq9_hshfsyje_sh = (BigDecimal) model.getValue("tqq9_hshfsyje_sh");
|
||||
EntryFieldRefresher entryFieldRefresher = new EntryFieldRefresher();
|
||||
entryFieldRefresher.updateAmountByOrg(SH_ORGNUMBER, "tqq9_hfamount", tqq9_hshfsyje_sh, model);
|
||||
view.updateView();
|
||||
// view.updateView();
|
||||
}
|
||||
//现返_单头
|
||||
if (StringUtils.equals("tqq9_hsxfsyje_sh", name)) {
|
||||
BigDecimal tqq9_hsxfsyje_sh = (BigDecimal) model.getValue("tqq9_hsxfsyje_sh");
|
||||
EntryFieldRefresher entryFieldRefresher = new EntryFieldRefresher();
|
||||
entryFieldRefresher.updateAmountByOrg(SH_ORGNUMBER, "tqq9_xfamount", tqq9_hsxfsyje_sh, model);
|
||||
view.updateView();
|
||||
// view.updateView();
|
||||
}
|
||||
//--------------北京------------------
|
||||
//集采供应商
|
||||
|
|
@ -198,9 +198,7 @@ public class PurApplyBillPlugin extends AbstractBillPlugIn implements Plugin {
|
|||
} catch (IOException ex) {
|
||||
throw new RuntimeException(ex);
|
||||
}
|
||||
|
||||
|
||||
view.updateView();
|
||||
// view.updateView();
|
||||
}
|
||||
}
|
||||
//收货仓库
|
||||
|
|
@ -208,42 +206,42 @@ public class PurApplyBillPlugin extends AbstractBillPlugIn implements Plugin {
|
|||
DynamicObject tqq9_rewares_bj = (DynamicObject) model.getValue("tqq9_rewares_bj");
|
||||
EntryFieldRefresher entryFieldRefresher = new EntryFieldRefresher();
|
||||
entryFieldRefresher.updateDynamicObjectByOrg(BJ_ORGNUMBER, "warehouse", tqq9_rewares_bj, model);
|
||||
view.updateView();
|
||||
// view.updateView();
|
||||
}
|
||||
//采购数量
|
||||
if (StringUtils.equals("applyqty", name)) {
|
||||
BigDecimal applyqty = (BigDecimal) model.getValue("applyqty");
|
||||
EntryFieldRefresher entryFieldRefresher = new EntryFieldRefresher();
|
||||
entryFieldRefresher.sumEntrByOrg(BJ_ORGNUMBER, "applyqty", "tqq9_purqty_bj", model);
|
||||
view.updateView();
|
||||
// view.updateView();
|
||||
}
|
||||
//应付金额
|
||||
if (StringUtils.equals("tqq9_yfje", name)) {
|
||||
BigDecimal tqq9_yfje = (BigDecimal) model.getValue("tqq9_yfje");
|
||||
EntryFieldRefresher entryFieldRefresher = new EntryFieldRefresher();
|
||||
entryFieldRefresher.sumEntrByOrg(BJ_ORGNUMBER, "tqq9_yfje", "tqq9_payamount_bj", model);
|
||||
view.updateView();
|
||||
// view.updateView();
|
||||
}
|
||||
//优惠金额_单头
|
||||
if (StringUtils.equals("tqq9_discountamt_bj", name)) {
|
||||
BigDecimal tqq9_discountamt_bj = (BigDecimal) model.getValue("tqq9_discountamt_bj");
|
||||
EntryFieldRefresher entryFieldRefresher = new EntryFieldRefresher();
|
||||
entryFieldRefresher.updateAmountByOrg(BJ_ORGNUMBER, "tqq9_disamount", tqq9_discountamt_bj, model);
|
||||
view.updateView();
|
||||
// view.updateView();
|
||||
}
|
||||
//货返_单头
|
||||
if (StringUtils.equals("tqq9_hshfsyje_bj", name)) {
|
||||
BigDecimal tqq9_hshfsyje_bj = (BigDecimal) model.getValue("tqq9_hshfsyje_bj");
|
||||
EntryFieldRefresher entryFieldRefresher = new EntryFieldRefresher();
|
||||
entryFieldRefresher.updateAmountByOrg(BJ_ORGNUMBER, "tqq9_hfamount", tqq9_hshfsyje_bj, model);
|
||||
view.updateView();
|
||||
// view.updateView();
|
||||
}
|
||||
//现返_单头
|
||||
if (StringUtils.equals("tqq9_hsxfsyje_bj", name)) {
|
||||
BigDecimal tqq9_hsxfsyje_bj = (BigDecimal) model.getValue("tqq9_hsxfsyje_bj");
|
||||
EntryFieldRefresher entryFieldRefresher = new EntryFieldRefresher();
|
||||
entryFieldRefresher.updateAmountByOrg(BJ_ORGNUMBER, "tqq9_xfamount", tqq9_hsxfsyje_bj, model);
|
||||
view.updateView();
|
||||
// view.updateView();
|
||||
}
|
||||
//--------------广州------------------
|
||||
//集采供应商
|
||||
|
|
@ -288,7 +286,7 @@ public class PurApplyBillPlugin extends AbstractBillPlugIn implements Plugin {
|
|||
} catch (IOException ex) {
|
||||
throw new RuntimeException(ex);
|
||||
}
|
||||
view.updateView();
|
||||
// view.updateView();
|
||||
}
|
||||
}
|
||||
//收货仓库
|
||||
|
|
@ -296,42 +294,42 @@ public class PurApplyBillPlugin extends AbstractBillPlugIn implements Plugin {
|
|||
DynamicObject tqq9_rewares_gz = (DynamicObject) model.getValue("tqq9_rewares_gz");
|
||||
EntryFieldRefresher entryFieldRefresher = new EntryFieldRefresher();
|
||||
entryFieldRefresher.updateDynamicObjectByOrg(GZ_ORGNUMBER, "warehouse", tqq9_rewares_gz, model);
|
||||
view.updateView();
|
||||
// view.updateView();
|
||||
}
|
||||
//采购数量
|
||||
if (StringUtils.equals("applyqty", name)) {
|
||||
BigDecimal applyqty = (BigDecimal) model.getValue("applyqty");
|
||||
EntryFieldRefresher entryFieldRefresher = new EntryFieldRefresher();
|
||||
entryFieldRefresher.sumEntrByOrg(GZ_ORGNUMBER, "applyqty", "tqq9_purqty_gz", model);
|
||||
view.updateView();
|
||||
// view.updateView();
|
||||
}
|
||||
//应付金额
|
||||
if (StringUtils.equals("tqq9_yfje", name)) {
|
||||
BigDecimal tqq9_yfje = (BigDecimal) model.getValue("tqq9_yfje");
|
||||
EntryFieldRefresher entryFieldRefresher = new EntryFieldRefresher();
|
||||
entryFieldRefresher.sumEntrByOrg(GZ_ORGNUMBER, "tqq9_yfje", "tqq9_payamount_gz", model);
|
||||
view.updateView();
|
||||
// view.updateView();
|
||||
}
|
||||
//优惠金额_单头
|
||||
if (StringUtils.equals("tqq9_discountamt_gz", name)) {
|
||||
BigDecimal tqq9_discountamt_gz = (BigDecimal) model.getValue("tqq9_discountamt_gz");
|
||||
EntryFieldRefresher entryFieldRefresher = new EntryFieldRefresher();
|
||||
entryFieldRefresher.updateAmountByOrg(GZ_ORGNUMBER, "tqq9_disamount", tqq9_discountamt_gz, model);
|
||||
view.updateView();
|
||||
// view.updateView();
|
||||
}
|
||||
//货返_单头
|
||||
if (StringUtils.equals("tqq9_hshfsyje_gz", name)) {
|
||||
BigDecimal tqq9_hshfsyje_gz = (BigDecimal) model.getValue("tqq9_hshfsyje_gz");
|
||||
EntryFieldRefresher entryFieldRefresher = new EntryFieldRefresher();
|
||||
entryFieldRefresher.updateAmountByOrg(GZ_ORGNUMBER, "tqq9_hfamount", tqq9_hshfsyje_gz, model);
|
||||
view.updateView();
|
||||
// view.updateView();
|
||||
}
|
||||
//现返_单头
|
||||
if (StringUtils.equals("tqq9_hsxfsyje_gz", name)) {
|
||||
BigDecimal tqq9_hsxfsyje_gz = (BigDecimal) model.getValue("tqq9_hsxfsyje_gz");
|
||||
EntryFieldRefresher entryFieldRefresher = new EntryFieldRefresher();
|
||||
entryFieldRefresher.updateAmountByOrg(GZ_ORGNUMBER, "tqq9_xfamount", tqq9_hsxfsyje_gz, model);
|
||||
view.updateView();
|
||||
// view.updateView();
|
||||
}
|
||||
//分录优惠金额,现返,货返金额分摊
|
||||
if (StringUtils.equals("tqq9_amount", name)) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue