#
#		ITSV GmbH
#		CCDB - Command and Control Database
#
#	FILE:			dquerymfile_findMVBRFAUSWuserlsw
#	DESCRIPTION:	CCDB query definition for query findMVBRFAUSWuserlsw
#					find any HERSTELLER or SOID or LSWID containing the search string <srch>
#
@querytitle			Suche nach Meldender Organisation oder Lohnsoftware-Kennung
@querydescription	sucht in CCMVBRFAUSW HERSTELLER oder SOID oder LSWID, die den Suchbegriff beinhalten
@group				SVCLCFSTATMVBRFAUSW
@attributenames		srch:string:{{srchoptions}}
@srchoptions		{"labeltext":"Suchbegriff","typedesc":"Begriff (regular expression), der entweder in HERSTELLER oder SOID oder LSWID enthalten sein muss"}
@querytype			dbselect
@sql				select distinct HERSTELLER,SOID,SOID as SOIDLINK,LSWID
					  from CCMVBRFAUSW
					 where regexp_like(HERSTELLER,::srch::) or regexp_like(SOID,::srch::) or regexp_like(LSWID,::srch::)
@title				Meldungen aus STP-MVB mit "{{srch}}" in HERSTELLER oder Lohnsoftware
@post_query
	that.result.toptext = "<ul><li>"+that.result.getRowCount()+" Datensätze gefunden.</li></ul>";
	let slcn = that.result.findColumn("SOIDLINK");
	for (let ri=0; ri<that.result.getRowCount(); ri++) {
		that.result.setCellValue(ri,slcn,aux.fixedEncodeURIComponent(that.result.getCellValue(ri,slcn)));
	}
#
@decoration.decorate_colcell.SOIDLINK.hyperlink.href		/dquery?dataname=SOIDinfo&SOID=@@row.SOIDLINK@@
@decoration.decorate_colcell.SOIDLINK.hyperlink.title		Zeige Informationen zu Lohnsoftware-SOID @@row.SOIDLINK@@ an
#
@decoration.decorate_colcell.LSWID.hyperlink.href	/dquery?dataname=LSWinfo&LSWID=@@row.LSWID@@
@decoration.decorate_colcell.LSWID.hyperlink.title	Zeige Informationen zu Lohnsoftware @@row.LSWID@@ an