• AxShowField插件安装方法 SysSetupFormRun中Task方法


    public int task(int _p1)
    {
        #task

        FormDataSource formDataSource;
        //zcb insert begin
        //Use origin class
        object         object;
        //zcb insert end

        //AXAPTA-LINKS
        FormControl             formControl;
        FormBuildStringControl  fbsc;
        AL_FieldInfo            fieldInfo;
        str                     fieldName;
        //end AXAPTA-LINKS

        int ret;

        if (_p1 == #taskFilter)
        {
            formDataSource = this.objectSet();
            if (formDataSource &&
                formDataSource.queryRun() &&
                formDataSource.queryRun().args() &&
                !formDataSource.queryRun().args().caller())
            {
                formDataSource.queryRun().args().caller(this);
            }
        }

         //AXAPTA-LINKS
        if (_p1 == #taskShiftEnter) //F10 or ALT
        {
            formDataSource = this.objectSet();
            formControl = this.selectedControl();
            if (formDataSource)
            {
                fbsc = formDataSource.formRun().form().design().control(formControl.id());
                fieldName = fieldId2Name(formDataSource.table(), fieldExt2Id((fbsc.dataField())));
                fieldInfo = new AL_FieldInfo(formDataSource.formRun().name(), formControl.name(), formDataSource.name(), tableId2Name(formDataSource.table()), fieldName, fbsc.dataMethod());
                fieldInfo.run();
                return true;
            }
            else
                info("Form has no datasource");
        }
        //end AXAPTA-LINKS

        ret = super(_p1);

        //Modified by zhangchaobin on 20080628 Begin
    //Refresh data source after deletting one record or more
    //You should add a method named 'excuteQuery' on the method node of running form
    //The deletting taskId is 2832
        object = this;
        if(_p1 == 2832 && formHasMethod(this,"excuteQuery"))
        {

           object.excuteQuery();
        }

    //Zhangchaobin modify End

        return ret;
    }

  • 相关阅读:
    完美解决Windows用户下lumerical(FDTD)的python库lumopt安装方法
    python 接收不固定行数的矩阵输入
    MATLAB绘图设置
    支持圆角的TextView
    As 项目中远程依赖 缓存
    最新的selenium操作记录
    python Flask日志
    在pycharm和pyinstaller的路径问题
    python爬虫时遇到proxyError (SSLError/_ssl.c:1076)的解决方法
    SecureCRT上传文件到服务器 CentOS举例
  • 原文地址:https://www.cnblogs.com/perock/p/2373607.html
Copyright © 2020-2023  润新知