NC弹框



/**
* 原因:不需要弹出对话框
* 更改:注释掉下面方法
*/
//
// private HYQueryConditionDLG getSaleDataDialog() {
// TemplateInfo tempinfo = new TemplateInfo();
// tempinfo.setPk_Org(_getCorp().getPrimaryKey());
// tempinfo.setCurrentCorpPk(_getCorp().getPrimaryKey());
// tempinfo.setFunNode("HN307010");
// tempinfo.setNodekey("TN1U");
// tempinfo.setTemplateId("1003AA10000000014UOH");
// tempinfo.setUserid(_getOperator());
// qryConditionDlg = new HYQueryConditionDLG(checkbillui, null, tempinfo) {
// protected void onBtnCancel() {
// dispose();
// closeCancel();
// checkbillui.afterUpdate();
// }
//
// @SuppressWarnings("unchecked")
// protected void onBtnOK() {
// // 获得满足条件的数据
// String conditionSql = this.getWhereSql();
// StringBuilder sql = new StringBuilder();
// if (conditionSql == null || conditionSql.trim().length() == 0){
// sql.append(" 1=1 ");
// }else{
// sql.append(conditionSql);
// }
// try {
// datalist = (ArrayList<Object[]>) checkservice.getCgeneralhid(sql.toString(),pk_channel);
// zykcddatalist = (ArrayList<Object[]>) checkservice.getPk_ownstock(pk_channel);
// UFDouble nsettlementcnttemp = UFDouble.ZERO_DBL;//需结算数量
// UFDouble nprice1temp = UFDouble.ZERO_DBL;//定价
// UFDouble noutnumtemp = UFDouble.ZERO_DBL;//实发数量
// UFDouble icnpurchdiscounttemp = UFDouble.ZERO_DBL;//发货折扣(销售出库单)
// UFDouble nsdpurchdiscounttemp = UFDouble.ZERO_DBL;//省店发货折扣
// UFDouble ncurrentshouldsytemp = UFDouble.ZERO_DBL;//本期实销省店应结实洋
// UFDouble ncurrentshouldsytemp1 = UFDouble.ZERO_DBL;//本期实销省店应结实洋1(自有库存单)
// UFDouble ncurrentshouldsytemp2 = UFDouble.ZERO_DBL;//本期实销省店应结实洋2(基店实际销售对应的省店实际发货实洋)
// UFDouble npresetlmntcnttemp = UFDouble.ZERO_DBL;//需提前结算数(自有库存单中的数据项)
// UFDouble npurchdiscounttemp = UFDouble.ZERO_DBL;//到货折扣(自有库存单)
// UFDouble npricetemp = UFDouble.ZERO_DBL;//定价(自有库存单)
// // UFDouble sdsjfhtemp = UFDouble.ZERO_DBL;//省店实际发货实洋(自有库存单)
// String pk_invbasdoc ;
// if(zykcddatalist!=null && zykcddatalist.size()>0){
// for(Object obj[]:zykcddatalist){
// if(obj[1]!=null){
// npresetlmntcnttemp = new UFDouble(((BigDecimal) obj[1]).intValue());
// }
// if(obj[2]!=null){
// npurchdiscounttemp = new UFDouble(((BigDecimal) obj[2]).intValue());
// }
// if(obj[4]!=null){
// pk_invbasdoc=obj[4].toString();
// InvbasdocVO invbasvo = (InvbasdocVO) getDao().retrieveByPK(InvbasdocVO.class, pk_invbasdoc);
// if(invbasvo!=null ){
// npricetemp = invbasvo.getNprice();
// }
// }
// //该渠道的自有库存单中表头数据项“是否已结算”数据项为“否”的自有库存单,将表体的“需提前结算数量”、“定价”、“到货折扣”相乘
// if(npresetlmntcnttemp!=null && npurchdiscounttemp!=null && npricetemp!=null){
// ncurrentshouldsytemp1=ncurrentshouldsytemp1.add(npresetlmntcnttemp.multiply(npurchdiscounttemp).multiply(npricetemp).div(100));
// }
// }
// }
// UFDouble nrevokenumber = UFDouble.ZERO_DBL;//本期销售实洋
// UFDouble nwaitye = UFDouble.ZERO_DBL;//待结算余额
// UFDouble npurchrealmny = UFDouble.ZERO_DBL;//采购入库单总实洋
// UFDouble ncurrentsettlezmytemp = UFDouble.ZERO_DBL;//
// UFDouble ncurrentsettleyetemp = UFDouble.ZERO_DBL;//
// if(datalist!=null){
// for(Object obj[]:datalist){
// if(obj[1]!=null){
// nsettlementcnttemp = new UFDouble(((BigDecimal) obj[1]).intValue());//需结算数量
// }
// if(obj[2]!=null){
// nprice1temp = new UFDouble(((BigDecimal) obj[2]).intValue());//定价
// }
// if(obj[3]!=null){
// nsdpurchdiscounttemp = new UFDouble(((BigDecimal) obj[3]).intValue());//省店发货折扣
// }
// if(obj[4]!=null){
// noutnumtemp = new UFDouble(((BigDecimal) obj[4]).intValue());//实发数量
// }
// if(obj[5]!=null){
// icnpurchdiscounttemp = new UFDouble(((BigDecimal) obj[5]).intValue());//发货折扣(销售出库单)
// }
// //销售出库单表体数据项“实发数量”、“发货折扣”,两者相乘的结果=本期渠道销售实洋
// if(noutnumtemp!=null && nprice1temp!=null && icnpurchdiscounttemp!=null ){
// nrevokenumber=nrevokenumber.add(noutnumtemp.multiply(nprice1temp).multiply(icnpurchdiscounttemp).div(100));//本期销售实洋
// }
// //基店实际销售对应的省店实际发货实洋=取销售出库单表体数据项“需结算数量”、“省店发货折扣”、“定价”,三者相乘
// if(nsettlementcnttemp!=null && nprice1temp!=null && nsdpurchdiscounttemp!=null ){
// ncurrentshouldsytemp2=ncurrentshouldsytemp2.add(nsettlementcnttemp.multiply(nprice1temp).multiply(nsdpurchdiscounttemp).div(100));
// }
// }
//
// //前期结算余额:查询该货源的所有货源对账单,查询出“待结算余额”不为0的所有对账单,
// //将查询出的对账单的“待结算余额”数据项进行汇总;
// checkvo = checkservice.getCheckbillVO(pk_channel,"TN1U");
// if(checkvo!=null){
// for(Object hvo[]:checkvo){
// if(hvo[1]!=null){
// nwaitye=nwaitye.add(new UFDouble(((BigDecimal) hvo[1]).intValue()));
// }
// if(hvo[2]!=null){
// npurchrealmny =npurchrealmny.add(new UFDouble(((BigDecimal) hvo[2]).intValue()));
// }
// }
// }
//
// ncurrentshouldsytemp = ncurrentshouldsytemp1.add(ncurrentshouldsytemp2);//本期实销省店应结实洋
// //本期结算的总实洋,等于本期销售实洋+前期结算余额
// // ncurrentsettlezmytemp = nrevokenumber.add(nwaitye);
// //本期结算的余额,等于本期结算总实洋减去采购入库单总实洋
// ncurrentsettleyetemp = ncurrentsettlezmytemp.sub(npurchrealmny);
// //本期销售实洋:由销售分摊明细表中的摊销数量汇总写入
// }
//
// checkbillui.getBillCardPanel().getHeadItem("ncurrentsalerealmy").setValue(nrevokenumber);//本期渠道销售实洋
// checkbillui.getBillCardPanel().getHeadItem("ncurrentshouldsy").setValue(ncurrentshouldsytemp);//本期实销省店应结实洋
// checkbillui.getBillCardPanel().getHeadItem("nbefsettleye").setValue(nwaitye);//前期结算余额
// checkbillui.getBillCardPanel().getHeadItem("ncurrentsettlezmy").setValue(ncurrentsettlezmytemp);//本期应结算总实洋
// checkbillui.getBillCardPanel().getHeadItem("ncurrentsettleye").setValue(ncurrentsettleyetemp);//结算余额
// checkbillui.getBillCardPanel().getHeadItem("nwaitsettleye").setValue(ncurrentsettleyetemp);//待结算余额
// dispose();
// closeCancel();
// } catch (BusinessException e) {
// nc.bs.logging.Logger.error(e);
// e.printStackTrace();
// }
//
// }
//
//
// };
//
// Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
// qryConditionDlg.setLocation((screenSize.width - qryConditionDlg.getWidth()) / 2, (screenSize.height -
// qryConditionDlg.getHeight()) / 2);
// qryConditionDlg.getLogicalConditionVOs();
// //供应商:取表头“货源名称”数据项,不可编辑
// try {
// QueryConditionVO[] conditionvos = qryConditionDlg.getQryCondEditor().getTotalVO().getConditionVOs();
// for (QueryConditionVO vo : conditionvos) {
// if (vo.getFieldCode().equals("hn_checkbill.pk_channel") ) {
// vo.setValue(pk_channel);
// }
// }
// } catch (BusinessException e) {
// nc.bs.logging.Logger.error(e);
// e.printStackTrace();
// }
// return qryConditionDlg;
// }
// ================Add by 李林君 @2013年3月6日17:39:37 上面内容被注释掉===END
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值