• NC 6.X笔记(编辑中)


    1、参照多选
    写在编辑前事件中
    ((UIRefPane) editor.getBillCardPanel().getBodyItem("pk_wa_item").getComponent()).setMultiSelectedEnabled(true);
    这个是表体


     执行公式:

     public String getNameByID(String tablename, String name, String colNm,
                String id) {
            nc.ui.pub.formulaparse.FormulaParse parse = new nc.ui.pub.formulaparse.FormulaParse();
            String express = "name->getColValue("" + tablename + "", "" + name
                    + "", "" + colNm + "", value)";
            // 设置公式
            parse.setExpress(express);
            // 添加参数
            List<String> list = new ArrayList<String>();
            list.add(id);
            parse.addVariable("value", list);
            // 结果
            String[] values = parse.getValueS();
            return values == null ? null : values[0];
        }
    

      


    <!-- 显示合计行 -->
    <property name="showTotalLineTabcodes">
    	<list>
    		<value>pk_payinfo_b</value>
    		<value>pk_inputtaxinfo_b</value>
    	</list>
    </property>
    ----在billFormEditor参数下加
    

      


    <-- 去掉表体必须增行的保存校验 -->
    在/**
     * 标准单据新增BP
     */
    public class InsertBP {
    中注释掉
    rule = new nc.bs.pubapp.pub.rule.CheckNotNullRule();
    

      



     没有定义查询根据pk查找的接口或者接口定义不规范,请检查
    1、 检查接口方法;
    2、 检查元数据;
    3、 检查表与元数据字段是否一样;
    4、 检查配置XML;
    5、 后期添加了字段,获取到的数据值与VO及模板上的数据类型不一致;
    6、 组装sql后查询格式有误; 
     

    在自由报表查询模板中加编辑后监听

    报表不指定查询Action,会用平台默认的nc.ui.iufo.freereport.extend.DefaultQueryAction,扩展入口点见自由报表格式设计器->数据->功能注册。代码可参见供应链的现存量报表。


    作者:冬瓜茶饮料
    出处:http://www.cnblogs.com/dongguacha/
    本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。

  • 相关阅读:
    [quote] Rough Notes on Linux Networking Stack
    All my miscellaneous assembly
    chrome浏览器屏幕网页内嵌的flash广告?
    [quote] How to determine what target is given in Makefile from the make command-line?
    [quote] colour your linux command line
    python 3 函数
    python 2 控制流
    薛定谔的猫 转载
    using distance to keep track of the min in a stack
    Java String
  • 原文地址:https://www.cnblogs.com/dongguacha/p/6626925.html
Copyright © 2020-2023  润新知