zoukankan      html  css  js  c++  java
  • 获取文本框中的行

    lines = UploadText.text();

        line = strLine(lines, 0);

        while (strlen(line) > 0)

        {

            cnt++;

            sStrings += (line+",");

            if((cnt mod 20) ==0)

            {

                qbsProdTable.addRange(fieldnum(ProdTable,ProdId)).value(sStrings);

                if(cbxRAF.value() == 0)   

                    qbsProdTable.addRange(fieldnum(ProdTable,ProdStatus)).value("<5");

                queryRun=new QueryRun(query);

                while(queryRun.next())

                {

                    prodTable=queryRun.getNo(1);

                    if(EmplId.valueStr())

                        this.findEmplMaterial(prodTable.ProdId);¡¡¡¡

                    else

                        this.findWrkCtrMaterial(prodTable.ProdId);

                    this.nj_findTransMaterial(prodTable);

                }

                sStrings = "";

            }

                lines = strDel(lines, 1, strLen(line)+1 );

                line = strLine(lines, 0);

        }

        if(sStrings != "")

        {

            qbsProdTable.clearRanges();

            qbsProdTable.addRange(fieldnum(ProdTable,ProdId)).value(sStrings);

            queryRun=new QueryRun(query);

            while(queryRun.next())

            {

                prodTable=queryRun.getNo(1);

                if(EmplId.valueStr())

                    this.findEmplMaterial(prodTable.ProdId);¡¡¡¡

                else

                    this.findWrkCtrMaterial(prodTable.ProdId);

                this.nj_findTransMaterial(prodTable);

            }

        }

        WIPMaterial_ds.executeQuery();

        TransMaterial_ds.executeQuery();

        TabWIP.activatePage();

  • 相关阅读:
    StrBlobPtr类——weak_ptr访问vector元素
    StrBlob类——智能指针作为成员
    关于智能指针类型shared_ptr的计数问题
    桌面计算器——可调用对象练习
    union
    虚析构函数
    条款04 确定对象被使用前已先被初始化
    条款03 尽可能使用const
    Bugku-CTF之web8(txt????)
    Bugku-CTF之各种绕过
  • 原文地址:https://www.cnblogs.com/perock/p/2133269.html
Copyright © 2011-2022 走看看