第一范文网 - 专业文章范例文档资料分享平台

NC-总结

来源:用户分享 时间:2025/5/15 15:41:57 本文由loading 分享 下载这篇文档手机版
说明:文章内容仅供预览,部分内容可能不全,需要完整文档或者需要复制内容,请下载word后使用。下载word有问题请添加微信号:xxxxxxx或QQ:xxxxxx 处理(尽可能给您提供完整文档),感谢您的支持与谅解。

方法说明:

错误描述 保存时报单据类型错误 错误原因 没有单据类型 错误解决 将CostCardUICtrl中的isExistBillStatus方法的返回值该为false

4. 获得页面值的一些操作

4.1 在UI里获取值

其他地方可以通过:

protected CostCardUI getUI() {

}

return (CostCardUI) getBillUI();

方法来获得该UI;

值 获得页面的参照 UIRefPane pane = (UIRefPane) getBillCardPanel().getHeadItem(HpCostcardVO.PK_INVMANDOC).getComponent(); AbstractRefGridTreeModel model = (AbstractRefGridTreeModel) pane.getRefModel(); 列表下获取值 getUI().getBillListPanel().getHeadBillModel().getValueAt(getUI().getBufferData().getCurrentRow(),\取得项目名称\ 卡片下获取值 将页面上的按钮设置为可用状态 当前时间 当前日期 当前操作员 _getServerTime() _getDate() _getOperator() getUI().getBillCardPanel().getHeadItem(\取得项目名称\ getButtonManager().getButton(IHPCostButton.QueryInputbaseButton).setEnabled(true); 方法 5. 联查单据

5.1联查费用

// 联查直接费用确认单,自定义按钮的实现方法

protected void onQueryLmoneyButton() throws BusinessException {

// 获得主键

String StrpkCostcard = getUI().getBillCardPanel().getHeadItem(

HpCostcardVO.PK_COSTCARD).getValueObject().toString();

String[] spkcostbesure = nc.ui.hp.pub.ServiceFactory.getIHPPubService()

.queryCostbesurePk(StrpkCostcard);

// IHPCostBillType.COSTDISTRBUTE_BILL_TYPE 为单据类型,比如TP10 BilltypeVO billTypeVO = PfUIDataCache

.getBillType(IHPCostBillType.COSTDISTRBUTE_BILL_TYPE);

SFQryLinkData linkQueryData = new SFQryLinkData(spkcostbesure); SFClientUtil.openLinkedQueryDialog(billTypeVO.getNodecode(), getUI(),

linkQueryData);

}

5.2联查存货:

protected void onQuerycunhuoButton() throws BusinessException {

if (Toolkit.isEmpty(getUI().getBillCardPanel().getHeadItem(

\).getValueObject())) {

MessageDialog.showErrorDlg(getUI(), \错误\, \该成本卡没有存货,不能进行联查!存货

档案\);

}

SFQryLinkData data = new SFQryLinkData(new String[] { getUI()

.getBillCardPanel().getHeadItem(\).getValueObject().toString() }); return;

}

HPClientUtil.linkQueryInvManDoc(getUI().getParent(), data);

6. 一些按钮

6.1 文档管理按钮

protected void onQueryWordButton() throws Exception { \); }

一些平台提供的方法:nc.ui.am.common.command.support.*

return; String str_corp = \;

str_corp = getUI()._getCorp().getPk_corp(); String strpk_costcard = \;

if (getUI().getBillCardPanel().getHeadItem(\).getValueObject() != null) { }

if (strpk_costcard.equals(\)) {

MessageDialog.showWarningDlg(getUI(), \提示\, \请选择一张成本卡后再使用文档管理! strpk_costcard = getUI().getBillCardPanel().getHeadItem(

\).getValueObject().toString();

} else { }

FileManageUI.showInDlg(getUI(), \成本卡文档管理\/** @res* \文档管理\ */

, \成本卡管理_\ + str_corp + \ + strpk_costcard);

7. 加锁问题

7.1主表字段加锁

在动作脚本中添加 方法的调用

public Object runComClass(PfParameterVO vo) throws BusinessException {

try {

super.m_tmpVo = vo;

// ####本脚本必须含有返回值,返回DLG和PNL的组件不允许有返回值#### Object retObj = null;

// ####重要说明:生成的业务组件方法尽量不要进行修改#### // 方法说明:公共保存方法 // 生成单据号

nc.bs.pub.billcodemanage.BillcodeGenerater gene = new

nc.bs.pub.billcodemanage.BillcodeGenerater();

if (nc.vo.jcom.lang.StringUtil.isEmpty(((String) vo.m_preValueVo }

//保存前先进行加锁判断

runClass(\

\

.getParentVO().getAttributeValue(\)))) {

String billno = gene.getBillCode(vo.m_billType, vo.m_coId,

null, null);

vo.m_preValueVo.getParentVO().setAttributeValue(\,

billno);

搜索更多关于: NC-总结 的文档
NC-总结.doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印
本文链接:https://www.diyifanwen.net/c4kasu83p4w72h8v7smyt_2.html(转载请注明文章来源)
热门推荐
Copyright © 2012-2023 第一范文网 版权所有 免责声明 | 联系我们
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ:xxxxxx 邮箱:xxxxxx@qq.com
渝ICP备2023013149号
Top