- 浏览: 45488 次
- 性别:
- 来自: 长沙
最新评论
类名:CustomerConfirmList
修改的方法:
1、afterTableFillData
2、actionConfirmOwner_actionPerformed
修改的方法:
1、afterTableFillData
protected void afterTableFillData(KDTDataRequestEvent e) { logger.info("afterTableFillData ::"); super.afterTableFillData(e); long startMili = System.currentTimeMillis(); String customerId = ""; int k = 0; int j = 0; Map map = new HashMap(); logger.info("afterTableFillData start row:" + e.getFirstRow() + " ; end row:" + e.getLastRow()); for (int i = e.getFirstRow(); i < e.getLastRow() + 1; ++i) { this.tblMain.getRow(i).getCell("selected").setValue(Boolean.valueOf(false)); String id = this.tblMain.getRow(i).getCell("id").getValue().toString(); map.put(id, Integer.valueOf(i)); if (customerId.equals("")) { customerId = id; k = i; } j = i; if (!customerId.equals(id)) { KDTMergeManager mm = this.tblMain.getMergeManager(); mm.mergeBlock(k, 1, j - 1, 1, 4); mm.mergeBlock(k, 2, j - 1, 2, 4); mm.mergeBlock(k, 4, j - 1, 4, 4); mm.mergeBlock(k, 5, j - 1, 5, 4); mm.mergeBlock(k, 6, j - 1, 6, 4); mm.mergeBlock(k, 7, j - 1, 7, 4); mm.mergeBlock(k, 8, j - 1, 8, 4); mm.mergeBlock(k, 9, j - 1, 9, 4); mm.mergeBlock(k, 10, j - 1, 10, 4); mm.mergeBlock(k, 11, j - 1, 11, 4); mm.mergeBlock(k, 12, j - 1, 12, 4); mm.mergeBlock(k, 13, j - 1, 13, 4); mm.mergeBlock(k, 14, j - 1, 14, 4); mm.mergeBlock(k, 15, j - 1, 15, 4); mm.mergeBlock(k, 16, j - 1, 16, 4); k = i; customerId = id; } else if ((i == e.getLastRow()) && (customerId.equals(id))) { j = i + 1; KDTMergeManager mm = this.tblMain.getMergeManager(); mm.mergeBlock(k, 1, j - 1, 1, 4); mm.mergeBlock(k, 2, j - 1, 2, 4); mm.mergeBlock(k, 4, j - 1, 4, 4); mm.mergeBlock(k, 5, j - 1, 5, 4); mm.mergeBlock(k, 6, j - 1, 6, 4); mm.mergeBlock(k, 7, j - 1, 7, 4); mm.mergeBlock(k, 8, j - 1, 8, 4); mm.mergeBlock(k, 9, j - 1, 9, 4); mm.mergeBlock(k, 10, j - 1, 10, 4); mm.mergeBlock(k, 11, j - 1, 11, 4); mm.mergeBlock(k, 12, j - 1, 12, 4); mm.mergeBlock(k, 13, j - 1, 13, 4); mm.mergeBlock(k, 14, j - 1, 14, 4); mm.mergeBlock(k, 15, j - 1, 15, 4); mm.mergeBlock(k, 16, j - 1, 16, 4); } CustomerInfo info = new CustomerInfo(); info.setId(BOSUuid.read(this.tblMain.getCell(i, "id").getValue().toString())); info.setNumber(this.tblMain.getCell(i, "customerNumber").getValue().toString()); if (UIRuleUtil.isNotNull(this.tblMain.getCell(i, "customerType").getValue())) { BizEnumValueDTO cusType = (BizEnumValueDTO)this.tblMain.getCell(i, "customerType").getValue(); info.setCustType(CustomerTypeEnum.getEnum(cusType.getString())); } if (UIRuleUtil.isNotNull(this.tblMain.getCell(i, "custClass").getValue())) { BizEnumValueDTO custClass = (BizEnumValueDTO)this.tblMain.getCell(i, "custClass").getValue(); info.setCustClass(CustomerClassifyEnum.getEnum(custClass.getString())); } if (UIRuleUtil.isNotNull(this.tblMain.getCell(i, "phone").getValue())) { info.setPhone(this.tblMain.getCell(i, "phone").getValue().toString()); } if (UIRuleUtil.isNotNull(this.tblMain.getCell(i, "phone2").getValue())) { info.setPhone2(this.tblMain.getCell(i, "phone2").getValue().toString()); } if (UIRuleUtil.isNotNull(this.tblMain.getCell(i, "phone3").getValue())) { info.setPhone3(this.tblMain.getCell(i, "phone3").getValue().toString()); } if (UIRuleUtil.isNotNull(this.tblMain.getCell(i, "papersType").getValue())) { BizEnumValueDTO papersType = (BizEnumValueDTO)this.tblMain.getCell(i, "papersType").getValue(); info.setPapersType(CertificateTypeEnum.getEnum(papersType.getString())); } if (UIRuleUtil.isNotNull(this.tblMain.getCell(i, "papersNum").getValue())) { info.setPapersNum(this.tblMain.getCell(i, "papersNum").getValue().toString()); } if (UIRuleUtil.isNotNull(this.tblMain.getCell(i, "customerName").getValue())) { info.setName(this.tblMain.getCell(i, "customerName").getValue().toString()); } if (UIRuleUtil.isNotNull(this.tblMain.getCell(i, "orgNum").getValue())) { info.setOrgNum(this.tblMain.getCell(i, "orgNum").getValue().toString()); } if (UIRuleUtil.isNotNull(this.tblMain.getCell(i, "taxNum").getValue())) { info.setTaxNum(this.tblMain.getCell(i, "taxNum").getValue().toString()); } //注释掉之前的自动检索代码 //update cjw 2013-12-16 //begin /* String idString = info.getId().toString(); Map customermap = null; try { if (checkRepeat(info)) this.tblMain.getRow(i).getCell("merged").setValue("是"); } catch (BOSException e1) { e1.printStackTrace(); }*/ //end } }
2、actionConfirmOwner_actionPerformed
/** * 点击批量确认客户信息 * update cjw 2013-12-16 */ public void actionConfirmOwner_actionPerformed(ActionEvent e) throws Exception { //修改日期 2013-12-16 super.actionConfirmOwner_actionPerformed(e); SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); if (confirmAudit()) { EntityViewInfo evi = new EntityViewInfo(); FilterInfo filter = new FilterInfo(); filter.getFilterItems().add(new FilterItemInfo("id", this.idSet, CompareType.INCLUDE)); evi.setFilter(filter); int k = 0; try { CustomerCollection customerColl = CustomerFactory.getRemoteInstance().getCustomerCollection(evi); for (int i = 0; i < customerColl.size(); ++i) { ++k; CustomerInfo customerInfo = customerColl.get(i); String idString = customerInfo.getId().toString(); String numberString = customerInfo.getNumber(); Map map = CustomerFacadeFactory.getRemoteInstance().checkRepeat(customerInfo); if(map == null){ customerInfo.setServiceVerify(true); customerInfo.setIsLock(true); Date now = new Date(); customerInfo.put("serviceVerifyTime", sdf.format(now)); customerInfo.put("verifyPerson", SysContext.getSysContext().getCurrentUserInfo().getName()); customerInfo.put("saleOrgUnit", SysContext.getSysContext().getCurrentSaleUnit()); CustomerFactory.getRemoteInstance().update(new ObjectUuidPK(customerInfo.getId()), customerInfo); this.idSet.remove(customerInfo.getId().toString()); }else{ CustomerCollection coll = (CustomerCollection) map.get("CustomerCollection"); CustomerInfo info = null; for(int j = 0 ; j< coll.size() ; j++){ CustomerInfo info1 = coll.get(j); if(UIRuleUtil.isNotNull(info1.get("serviceVerify"))){ boolean serviceVerify = Boolean.valueOf(info1.get("serviceVerify").toString()); if(serviceVerify){ info = info1; } } } if(info != null){ UIContext uiContext = new UIContext(this); uiContext.put("unConfirmCustomerNumber", numberString); uiContext.put("confirmCustomerNumber", info.getNumber()); IUIWindow uiWindow = UIFactory.createUIFactory(UIFactoryName.NEWTAB).create(MergeCustomerEditUI.class.getName(), uiContext, null, OprtState.ADDNEW); uiWindow.show(); }else{ customerInfo.setServiceVerify(true); customerInfo.setIsLock(true); Date now = new Date(); customerInfo.put("serviceVerifyTime", sdf.format(now)); customerInfo.put("verifyPerson", SysContext.getSysContext().getCurrentUserInfo().getName()); customerInfo.put("saleOrgUnit", SysContext.getSysContext().getCurrentSaleUnit()); CustomerFactory.getRemoteInstance().update(new ObjectUuidPK(customerInfo.getId()), customerInfo); this.idSet.remove(customerInfo.getId().toString()); } } /* if (UIRuleUtil.isNotNull(this.idMap.get(idString))) { String confirmCustomerNumber = this.idMap.get(idString).toString(); UIContext uiContext = new UIContext(this); uiContext.put("unConfirmCustomerNumber", numberString); uiContext.put("confirmCustomerNumber", confirmCustomerNumber); IUIWindow uiWindow = UIFactory.createUIFactory(UIFactoryName.NEWTAB).create(MergeCustomerEditUI.class.getName(), uiContext, null, OprtState.ADDNEW); uiWindow.show(); }*/ /* if (UIRuleUtil.isNotNull(this.idMap.get(idString))) { String confirmCustomerNumber = this.idMap.get(idString).toString(); UIContext uiContext = new UIContext(this); uiContext.put("unConfirmCustomerNumber", numberString); uiContext.put("confirmCustomerNumber", confirmCustomerNumber); IUIWindow uiWindow = UIFactory.createUIFactory(UIFactoryName.NEWTAB).create(MergeCustomerEditUI.class.getName(), uiContext, null, OprtState.ADDNEW); uiWindow.show(); } else { customerInfo.setServiceVerify(true); customerInfo.setIsLock(true); Date now = new Date(); customerInfo.put("serviceVerifyTime", sdf.format(now)); customerInfo.put("verifyPerson", SysContext.getSysContext().getCurrentUserInfo().getName()); customerInfo.put("saleOrgUnit", SysContext.getSysContext().getCurrentSaleUnit()); CustomerFactory.getRemoteInstance().update(new ObjectUuidPK(customerInfo.getId()), customerInfo); this.idSet.remove(customerInfo.getId().toString()); if ((customerInfo.getCustClass() != null) && (customerInfo.getCustClass().getValue().equals("4"))) { if ((customerInfo.getCustType() != null) && (customerInfo.getCustType().getValue().equals("1"))) { if (UIRuleUtil.isNotNull(customerInfo.getPhone())) { ((Map)this.map.get("grby")).put(customerInfo.getName() + ";" + customerInfo.getPhone() + ";1;", customerInfo.getNumber()); } if (UIRuleUtil.isNotNull(customerInfo.getPhone2())) { ((Map)this.map.get("grby")).put(customerInfo.getName() + ";" + customerInfo.getPhone2() + ";2;", customerInfo.getNumber()); } if (UIRuleUtil.isNotNull(customerInfo.getPhone3())) { ((Map)this.map.get("grby")).put(customerInfo.getName() + ";" + customerInfo.getPhone3() + ";3;", customerInfo.getNumber()); } if ((UIRuleUtil.isNotNull(customerInfo.getPapersType())) || (UIRuleUtil.isNotNull(customerInfo.getPapersNum()))) { ((Map)this.map.get("grby")).put(customerInfo.getPapersType().getValue() + ";" + customerInfo.getPapersNum(), customerInfo.getNumber()); } } else if (customerInfo.getCustType() != null) { ((Map)this.map.get("qyby")).put(customerInfo.getName() + ";" + customerInfo.getPhone() + ";1;", customerInfo.getNumber()); ((Map)this.map.get("qyby")).put(customerInfo.getName() + ";" + customerInfo.getPhone2() + ";2;", customerInfo.getNumber()); ((Map)this.map.get("qyby")).put(customerInfo.getName() + ";" + customerInfo.getPhone3() + ";3;", customerInfo.getNumber()); ((Map)this.map.get("qyby")).put(customerInfo.getOrgNum() + ";" + customerInfo.getTaxNum(), customerInfo.getNumber()); } } else if (customerInfo.getCustClass() != null) { if ((customerInfo.getCustType() != null) && (customerInfo.getCustType().getValue().equals("1"))) { ((Map)this.map.get("grfby")).put(customerInfo.getPhone() + ";1;", customerInfo.getNumber()); ((Map)this.map.get("grfby")).put(customerInfo.getPhone2() + ";2;", customerInfo.getNumber()); ((Map)this.map.get("grfby")).put(customerInfo.getPhone3() + ";3;", customerInfo.getNumber()); ((Map)this.map.get("grfby")).put(customerInfo.getPapersType().getValue() + ";" + customerInfo.getPapersNum(), customerInfo.getNumber()); } else if (customerInfo.getCustType() != null) { ((Map)this.map.get("qyfby")).put(customerInfo.getPhone() + ";1;", customerInfo.getNumber()); ((Map)this.map.get("qyfby")).put(customerInfo.getPhone2() + ";2;", customerInfo.getNumber()); ((Map)this.map.get("qyfby")).put(customerInfo.getPhone3() + ";3;", customerInfo.getNumber()); ((Map)this.map.get("qyfby")).put(customerInfo.getOrgNum() + ";" + customerInfo.getTaxNum(), customerInfo.getNumber()); } } ++k; init(); }*/ } setMessageText("已确认成功" + k + " 条!"); } catch (BOSException e1) { e1.printStackTrace(); } } refreshList(); //end }
发表评论
-
4ssss
2014-10-21 11:25 785package com.kingdee.eas.auto4s. ... -
oower
2014-10-21 11:14 752package com.kingdee.eas.auto4s. ... -
永达新需求
2014-06-09 10:31 496永达新需求 -
永达客户管理问题
2014-05-04 14:58 546车主信息确认列表 党哲哲 2014 ... -
永达问题
2014-05-04 09:17 530上次做的几张报表的数据有点问题,具体如下: 1. ... -
客户合并修改需求 @熊哥
2013-12-17 09:55 5921、(客户信息确认列表) 如果是【车主信息确认列表】和【车主 ... -
创建临时表进行性能优化
2013-11-22 11:10 1112public void updatePurAndSaleOr ... -
eas创建临时表
2013-11-22 11:07 988执行报表服务端基类executeCreateAsSelectI ... -
爱默生请假原因
2013-05-10 13:53 609标准产假: Maternity Leave 难产假: Ca ... -
EAS工作笔记
2013-04-06 20:54 3737.replace("[", " ... -
EAS
2012-12-14 14:38 899问题描述 处理状态 开发负责 ...
相关推荐
针对汽车4S 店客户消费模式不同于其他行业,而传统RFM 模型难以适用于汽车4S 店客户细分的问题,课题组对传统RFM 模型的数据分析指标进行优化改进,形成可适用于汽车4S 店的TFM 客户细分模型. 该模型可依据客户的行为...
基于web的汽车4S店管理系统源码基于web的汽车4S店管理系统源码基于web的汽车4S店管理系统源码基于web的汽车4S店管理系统源码基于web的汽车4S店管理系统源码。基于web的汽车4S店管理系统源码基于web的汽车4S店管理...
21、汽车4S店客户关系部培训课件.ppt 22、汽车4S店客户忠诚度管理培训.ppt 23、汽车4S店礼仪培训.ppt 24、汽车4S店培训课件.ppt 25、汽车4S店培训体系.ppt 26、汽车4S店培训体系.pptx 27、汽车4S店市场部经理培训....
汽车4S店客户投诉处理技巧,汽车4S店客户投诉处理技巧课件,汽车4S店客户投诉处理技巧PPT
汽车4s店管理系统 简单的进销存 汽修汽配及汽车销售功能,数据库为SQL数据库
大型汽车4s店维修管理系统使用C#开发,包括数据库,截图,数据字典说明
汽车4S店网站源代码,汽车4S店的建站首选。
汽车4s店全套危险源辨识与风险评价表.xls
基于SSH的汽车4S店汽车管理系统源码.zip
优凯汽车DMS系统根据汽车专营店“整车销售、售后服务、备件供应、信息反馈”的4S经营模式而设计,业务贯穿专营店整车销售、售后服务、备件管理、财务管理和客户关系管理、会员管理、提醒短信的全过程,使各个方面的...
汽车4S店流失客户调查分析及招揽方法.pdf
汽车4S店售后服务客户满意度调查方法.pdf
优凯汽车DMS系统根据汽车专营店“整车销售、售后服务、备件供应、信息反馈”的4S经营模式而设计,业务贯穿专营店整车销售、售后服务、备件管理、财务管理和客户关系管理、会员管理、提醒短信的全过程,使各个方面的...
汽车4S店市场部年度工作计划,汽车4S店市场部营销计划.pdf
免费汽车4S店会员管理系统,勿必全部阅读文档,内有安装包下载地址和注册码下载地址,真实可用永久免费。
我国汽车4S行业发展背景 4S行业信息化需求特点 汽车4S行业管理信息化解决方案
源码-大型汽车4s店维修管理系统.7z
简单的汽车4S店系统,包括简单的进销存 基础数据 1 供应商 1 单号 1 配件 1 整车 1 员工职务月薪 1 会员等级设定 2 员工录入 2 客户管理 3 客户资料管理 3 会员管理 3 会员管理 3 会员回访 4 试车管理 4 试车管理 4 ...
汽车4S管理系统需求分析 大家下了学习一下啊