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();