您的位置:首页 > 编程语言

eas bos 客户端常用代码

2012-04-13 18:00 441 查看
public void onLoad() throws Exception {
		super.onLoad();
		contname.setEnabled(false);
		contname.setVisible(true);
		KDTDefaultCellEditor workArea_editor = (KDTDefaultCellEditor) kdtEntrys
				.getColumn("workArea").getEditor();
		KDBizPromptBox workArea_prompt = (KDBizPromptBox) workArea_editor
				.getComponent();
		workArea_prompt
				.setQueryInfo("com.kingdee.eas.custom.quality.basedata.app.F7GongquCategoryQuery");
		KDTDefaultCellEditor professional_editor = (KDTDefaultCellEditor) kdtEntrys
				.getColumn("professional").getEditor();
		KDBizPromptBox professional_prompt = (KDBizPromptBox) professional_editor
				.getComponent();
		professional_prompt
				.setQueryInfo("com.kingdee.eas.custom.quality.basedata.app.F7SubjectTypeQuery");

		KDTDefaultCellEditor outPerson_editor = (KDTDefaultCellEditor) kdtEntrys
				.getColumn("outPerson").getEditor();
		KDBizPromptBox outPerson_prompt = (KDBizPromptBox) outPerson_editor
				.getComponent();
		outPerson_prompt.setDisplayFormat("$cardId$");
		outPerson_prompt.setEditFormat("$cardId$");
		outPerson_prompt.setCommitFormat("$cardId$");
		
		kdtEntrys_detailPanel.setTitle("外包人员信息");
		CompUtil.setTitlePanelLength(kdtEntrys_detailPanel, 120);
		
	}


protected void verifyInput(ActionEvent e) throws Exception {
		KDLabelContainer[] container = new KDLabelContainer[] { contcontractNum,
				contsubUnit,contprojectItem};
		STException exc = STRequiredUtils.checkRequiredItem(container);
		if (STUtils.isNotNull(exc)) {
			super.handUIExceptionAndAbort(exc);
		}
		String[] columnNames = new String[] { "outPerson","team","workArea","professional","startDate"};
		STException exc2 = STRequiredUtils.checkEntryRequiredItem(kdtEntrys,
				columnNames);
		if (STUtils.isNotNull(exc2)) {
			super.handUIExceptionAndAbort(exc2);
		}
		super.verifyInput(e);
	}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: