public Result(PARSER parser, int index, int length, string input, VALUE value) // {{value == 'XmlNode'}} public Result(PARSER parser, int index, int length, string input, ref VALUE value) // {{value != 'void' and value != 'XmlNode'}} { m_parser = parser; m_index = index; m_length = length; m_input = input; Value = value; // {{value != 'void'}} }
public Result(PARSER parser, int index, int length, string input) { m_parser = parser; m_index = index; m_length = length; m_input = input; Value = default(VALUE); // {{value != 'void'}} }
protected override void returnData(DataRow pRow) { reset(); if (pRow != null) { string barcode = pRow[TableDUMMY.VALUE].ToString().Trim(); if (barcode != string.Empty) { var p = new PARSER(barcode, CurrentVersion.ENV.getEnvString("WEIGHTBARCODE", "")); barcode = p.CODE1; IPagedSource ps = reference.getPagedSource(); ps.getBuilder().reset(); ps.getBuilder().beginWhereGroup(); ps.getBuilder().addParameterValue(TableITEMS.BARCODE1, barcode, SqlTypeRelations.equal, SqlTypeRelations.boolOr); if (CurrentVersion.ENV.getEnvBool("BARCODEMULTI", false)) { ps.getBuilder().addParameterValue(TableITEMS.BARCODE2, barcode, SqlTypeRelations.equal, SqlTypeRelations.boolOr); ps.getBuilder().addParameterValue(TableITEMS.BARCODE3, barcode, SqlTypeRelations.equal, SqlTypeRelations.boolOr); } ps.getBuilder().endWhereGroup(); DataTable matTab = ps.getAll(); if (matTab != null && matTab.Rows.Count > 0) { DataRow matRow = matTab.Rows[0]; DataRow matRowExt = selectUnit(matRow, barcode, p.WEIGHT); base.returnData(matRowExt); } else { ToolMobile.playAlarmAndVibrate(); ToolMsg.show(this, MessageCollection.T_MSG_INVALID_BARCODE, null); } } } }
public Result(PARSER parser, int index, int length, string input, VALUE value) // {{value == 'XmlNode'}}