zoukankan      html  css  js  c++  java
  • 表modifiedField方法使用例子

    public void modifiedField(fieldId _fieldId)
    {
        super(_fieldId);

        switch (fieldExt2Id(_fieldId))
        {
            case fieldnum(InventTable, ItemId):
                this.ItemName   = this.ItemName ? this.ItemName : this.ItemId;
                this.setNameAlias();
                break;

            case fieldnum(InventTable, ItemName):
                this.NameAlias  = '';
                this.setNameAlias();
                break;

            case fieldnum(InventTable, AltItemId):
                this.AltConfigId         = '';
                this.AltInventColorId    = '';
                this.AltInventSizeId     = '';
                break;

            case fieldnum(InventTable, Phantom):
                if (this.Phantom)
                    this.AutoReportFinished = NoYes::No;
                break;

            case fieldnum(InventTable, OrigCountryRegionId):
                this.OrigStateId = '';
                break;

            case fieldnum(InventTable, PBAAutoStart):
                if (this.PBAAutoStart)
                    this.PBAMandatoryConfig = NoYes::No;
                break;

            case fieldnum(InventTable, PBAMandatoryConfig):
                if (this.PBAMandatoryConfig)
                    this.PBAAutoStart = NoYes::No;
                break;

            case fieldnum(InventTable, ItemType):
                if (this.ItemType == ItemType::Service)
                {
                    this.FiscalLIFOAvoidCalc = NoYes::Yes;
                    this.PalletTagging       = NoYes::No;
                    this.ItemTaggingLevel    = RFIDItemTaggingLevel::None;
                }
                break;

            case fieldnum(InventTable, MinAverageSettle):
                if (this.MinAverageSettle < 0.1 && !this.MinAverageSettle == 0)
                    warning("@SYS96741");
                if (this.MinAverageSettle < 0 && !this.MinAverageSettle == 0)
                    this.MinAverageSettle = 0.1;
                break;
        }
    }

  • 相关阅读:
    Asp.net 程序连接orcle如果在安装 32 位 Oracle 客户端组件的情况下以 64 位模式运行,
    Navicat 远程连接 Oracle11g 数据库报错 No listener 的问题
    springMVC中@DateTimeFormat 失效的处理
    单例设计模式中懒汉式线程安全的处理
    ajax同步请求
    vue.js在标签属性中拼接字符串
    vue.js进行遍历
    html页面之间的传值
    URL编码和解码的一个小问题(JS方法和JAVA方法)
    SolrJ的配置及使用
  • 原文地址:https://www.cnblogs.com/perock/p/2294732.html
Copyright © 2011-2022 走看看