金蝶EAS - BOS工作笔记 下载本文

内容发布更新时间 : 2024/5/1 4:53:39星期一 下面是文章的全部内容请认真阅读。

ContractStateEnum.getEnum(cmInfo.getContactState().getValue())); }

148.日期区间条件查询

Date date = (Date)this.date.getValue(); //执行开始日期 Date toDate = (Date)this.toDate.getValue(); //执行结束日期 if (date != null) {

calendar = Calendar.getInstance(); calendar.setTime(date);

calendar.add(Calendar.DATE, 1);

calendar.set(calendar.get(Calendar.YEAR), calendar

.get(Calendar.MONTH),

}

if(cmInfo.getCheck()!=null){ //check } }

}

e.printStackTrace(); e.printStackTrace(); e.printStackTrace(); } catch (SQLException e) { } catch (EASBizException e) { } catch (BOSException e) {

rowSet.updateObject(\,

PerformStateEnum.getEnum(cmInfo.getCheck().getValue()));

calendar.get(Calendar.DATE),23, 59, 59);

filterInfo.getFilterItems().add(

new

FilterItemInfo(\,calendar.getTime(),CompareType.GREATER_EQUALS));

}

if (toDate != null) {

calendar = Calendar.getInstance(); calendar.setTime(toDate); calendar.add(Calendar.DATE, 1);

calendar.set(calendar.get(Calendar.YEAR), calendar

.get(Calendar.MONTH), calendar.get(Calendar.DATE),23,

59, 59);

filterInfo.getFilterItems().add(

new

FilterItemInfo(\,calendar.getTime(),CompareType.LESS_EQUALS));

}

149:编码规则:业务集成 ”新增显示且不允许断号” 需要设置实体扩展属性CRAddNoBreak

为true

ICodingRuleManager iCodingRuleManager = CodingRuleManagerFactory.getRemoteInstance();

if (iCodingRuleManager.isExist(projectInfo, companyID)) {

if(iCodingRuleManager.isUseIntermitNumber(projectInfo, companyID)){//不允许断号

autoNumber = iCodingRuleManager.readNumber(projectInfo,companyID);// 系统编码 }else{

RuleStatus rs = iCodingRuleManager.getRuleStatus(projectInfo, companyID);

autoNumber = iCodingRuleManager.getNumber(projectInfo,companyID);// 系统编码

150:分录表格编辑结束事件

protected void kdtEntrys_editStopped(KDTEditEvent e) throws Exception { super.kdtEntrys_editStopped(e);

String cloumnName = kdtEntrys.getColumn(e.getColIndex()).getKey(); if(\.equals(cloumnName)){//编辑的列名 int rowIndex = e.getRowIndex();//编辑的行号 if(e.getValue() == null) return; } }

151:多个filter联合过滤

filter.mergeFilter(encryptFilter, \