zoukankan      html  css  js  c++  java
  • How to control the current datasource record's field can edit?

    // VAR Changed on 19 Mar 2012 at 13:02:40 by JXie7519
    void THK_allowEditFieldList(FormDataSource   _tableDS,
                                boolean          _allowEdit = false)
    {
        int             field;
        DictTable       dictTable;
        DictField       dictField;
        tableId         tableId = _tableDS.table();
        fieldId         fieldId,costCenter = fieldId2Ext(fieldnum(CustInvoiceTable, Dimension),2);
    ;

        dictTable = new DictTable(tableId);
        for (field = 1; field <= dictTable.fieldCnt(); field++)
        {
            fieldId = dictTable.fieldCnt2Id(field);
            dictField = new DictField(tableId, fieldId);
            if(!dictField.isSystem())
            {
                if(dictField.id() != costCenter)
                    _tableDS.object(DictField.id()).allowEdit(_allowEdit);
            }
        }
    }
  • 相关阅读:
    (图论)树的直径
    HDU 4607
    类属性的增删改查
    python内置常用模块
    字典的使用
    元组的使用
    列表的基本函数
    字符串练习题
    python3.7字符串基本函数
    python简单的while语句和if语句的练习
  • 原文地址:https://www.cnblogs.com/Fandyx/p/2406034.html
Copyright © 2011-2022 走看看