kingdee笔记(待整理)(2)

2019-08-03 12:19

}

}

}

} else if (\.equals(str)) { }

handUIException(e);

iqec = QueryExecutorFactory.getRemoteInstance(new filter.getFilterItems().add(new FilterItemInfo(\, viewInfo.setFilter(filter); iqec.setObjectView(viewInfo);

iqec.option().isAutoTranslateBoolean = true; iqec.option().isAutoTranslateEnum = true; rowSet = iqec.executeQuery();

MetaDataPK(path,\)); billId));

} catch (Exception e) {

return rowSet;

关闭前的(LIST EDTIT)action: public void storeFields() {

}

super.storeFields();

/**

* output actionExitCurrent_actionPerformed */

public void actionExitCurrent_actionPerformed(ActionEvent e) throws Exception {

super.actionExitCurrent_actionPerformed(e);

}

在CoreUI里而super.actionExitCurrent却是调用了getUIWindow().close(); public void actionExitCurrent_actionPerformed(ActionEvent e) throws Exception {

getUIWindow().close(); }

/**数字微调器默认显示当前年*/ public void showYear(){

Calendar calendar = GregorianCalendar.getInstance(); calendar.setTimeInMillis(System.currentTimeMillis()); int year = calendar.get(Calendar.YEAR); int month = calendar.get(Calendar.MONTH)+1;

SpinnerNumberModel yearLevelModel = new SpinnerNumberModel(1, 1,2100,

1);

SpinnerNumberModel yearLevelModel2 = new SpinnerNumberModel(1, 1,2100, 1);

kspStartYear.setModel(yearLevelModel); kspEndYear.setModel(yearLevelModel2); kspStartYear.setValue(new Integer(year)); kspEndYear.setValue(new Integer(year));

SpinnerNumberModel monthLevelModel = new SpinnerNumberModel(1, 1,12, 1);

SpinnerNumberModel monthLevelModel2 = new SpinnerNumberModel(1, 1,12, 1);

kspStartMonth.setModel(monthLevelModel); kspEndMonth.setModel(monthLevelModel2); kspStartMonth.setValue(new Integer(month)); kspEndMonth.setValue(new Integer(month));

}

public RptParams getCustomCondition() {

RptParams pp = new RptParams();

if(this.prmtAssetName.getValue()!=null)

pp.setString(\,

((FaCardInfo)this.prmtAssetName.getValue()).getId().toString());

else

pp.setString(\, null); // 查询起始时间*

if (kspStartYear.getValue() != null &&

&& kspEndYear.getValue() != null &&

kspStartMonth.getValue() != null kspEndMonth.getValue() != null) {

Calendar calendar1 = Calendar.getInstance(); int syear = int smonth = int eyear = int emonth = if(syear>eyear){

MsgBox.showInfo(\起始年比结束年还大,年份查询 不对!\); SysUtil.abort();

}else if(syear==eyear){

if(smonth>emonth){

MsgBox.showInfo(\起始月份比结束月份还大,月份查询 不对!\); SysUtil.abort();

Integer.parseInt(kspStartYear.getValue().toString()); Integer.parseInt(kspStartMonth.getValue().toString()); Integer.parseInt(kspEndYear.getValue().toString()); Integer.parseInt(kspEndMonth.getValue().toString());

}

}

}

}

calendar1.set(Calendar.YEAR, eyear); calendar1.set(Calendar.MONTH, emonth-1); calendar1.set(Calendar.DAY_OF_MONTH,

int day = calendar1.getActualMaximum(Calendar.DAY_OF_MONTH); pp.setString(\, syear+\+smonth+\); pp.setString(\, eyear+\+emonth+\+day);

calendar1.getActualMaximum(Calendar.DAY_OF_MONTH));

return pp;

protected Map getSelectedIdNumber() {

Map idMap = new HashMap();

KDTSelectBlock selectBlock = null;

int size = tblMain.getSelectManager().size();

if(size == 0 || tblMain.getSelectManager().getActiveRowIndex() < 0)

return idMap;

if(size == 1 && tblMain.getSelectManager().get().getTop() == tblMain.getSelectManager().get().getBottom()) {

int rowNum = tblMain.getSelectManager().get().getTop(); ICell cellId =

tblMain.getRow(rowNum).getCell(getKeyFieldName()); if(cellId == null) {

MsgBox.showError(EASResource.getString(\meWorkResource.Error_KeyField_Fail\)); SysUtil.abort(); }

ICell cellNumber =

tblMain.getRow(rowNum).getCell(getNumberColumn()); if(cellNumber != null)

idMap.put(cellId.getValue().toString(), cellNumber.getValue().toString()); else

idMap.put(cellId.getValue().toString(), \ + (rowNum + 1));

} else {

for(int i = 0; i < size; i++) {

selectBlock = tblMain.getSelectManager().get(i); for(int j = selectBlock.getTop(); j <= selectBlock.getBottom(); j++) {

ICell cellId =

tblMain.getRow(j).getCell(getKeyFieldName()); if(cellId == null) {

MsgBox.showError(EASResource.getString(\meWorkResource.Error_KeyField_Fail\)); SysUtil.abort(); }

String id = cellId.getValue().toString(); if(idMap.containsKey(id)) continue; ICell cellNumber =

tblMain.getRow(j).getCell(getNumberColumn()); if(cellNumber != null)

idMap.put(id, cellNumber.getValue().toString()); else

idMap.put(id, \ + (j + 1)); }

}

}

return idMap;

}

/**LIST A 源单据数据被 公式结果C代替 **/

protected void getRowSetBeforeFillTable(IRowSet rowSet) {

// TODO Auto-generated method stub super.getRowSetBeforeFillTable(rowSet);

Calendar calendarDate = Calendar.getInstance(); calendarDate.clear();

BigDecimal amount = new BigDecimal(String.valueOf(0.00)); int i=0; try {

rowSet.beforeFirst(); while(rowSet.next()){

String contractId = rowSet.getString(\); DispatchTaskInfo expSureBillInfo =

DispatchTaskFactory.getRemoteInstance()

}

/*

* 动态获得对象*/ public static Object getObjectDYNAMIC(BOSUuid objectPK) throws Exception{

Object billInfo = null;

.getDispatchTaskInfo(new

ObjectUuidPK(contractId));

if(expSureBillInfo.getStartDate()!=null&&expSureBillInfo.getWorkD

calendarDate.setTime(expSureBillInfo.getStartDate()); BigDecimal day = new

ay()!=null){

BigDecimal(calendarDate.getActualMaximum(Calendar.DAY_OF_MONTH));

BigDecimal sellApplyAmount =

sellApplyAmount=day.subtract(sellApplyAmount); sellApplyAmount=sellApplyAmount.divide(day,2,2); sellApplyAmount=sellApplyAmount.multiply(new rowSet.updateObject(\, sellApplyAmount); amount=amount.add(sellApplyAmount); i++;

rowSet.updateObject(\

expSureBillInfo.getWorkDay();

BigDecimal(100));

}else{ } }

}

rowSet.beforeFirst(); while(rowSet.next()){ }

e.printStackTrace(); e.printStackTrace(); e.printStackTrace();

if(i<1){ }

amount=amount.divide(new BigDecimal(i),2,2);

i=1;

//

rowSet.updateObject(\,amount); } catch (SQLException e) { } catch (EASBizException e) { } catch (BOSException e) {

if(objectPK!=null){

billInfo = (Object)

DynamicObjectFactory.getRemoteInstance().getValue(new ObjectUuidPK(objectPK).getObjectType(),new ObjectUuidPK(objectPK));

}

return billInfo;

}

row.getCell(\).setValue(((PersonInfo)(getObjectDYNAMIC(info.getVisitor().getId()))));

public void actionSubmit_actionPerformed(ActionEvent e) throws Exception {

doBeforeSave(e);

IObjectPK pk = runSave(); doAfterSave(pk); }

protected void doAfterSave(IObjectPK pk) throws Exception {

if(pk == null) return;

if(OprtState.ADDNEW.equals(getOprtState())) {

int size = idList.size();

idList.add(size, pk.toString()); }

setOprtState(OprtState.EDIT); setDataObject(getValue(pk)); showMessageForStatus(); // showSaveSuccess();

if(wfContext.isBindWorkFlow())

wfContext.addToDataMap(pk.toString(), editData); setSave(true); setSaved(true);

actionCopy.setEnabled(true); loadFields();

initOldData(editData); }


kingdee笔记(待整理)(2).doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:煤矿顶板离层观测制度 - 图文

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: