MH: Pusteblume KK QB
This commit is contained in:
@@ -170,9 +170,19 @@ namespace PraxisPusteblume
|
||||
|
||||
decimalValue += einheiten;
|
||||
|
||||
var leistungsform = leistung.Contains("(") && leistung.Contains(")") && !leistung.Contains("eingangsdiagnostik") ? leistung.Substring(leistung.IndexOf("(") + 1, 1).ToUpper() : null;
|
||||
string leistungsform = null;
|
||||
if (leistung.Contains("(") && leistung.Contains(")") && !leistung.Contains("eingangsdiagnostik"))
|
||||
{
|
||||
int indexKlammerAuf = leistung.IndexOf("(");
|
||||
int indexKlammerZu = leistung.IndexOf(")");
|
||||
|
||||
leistungsform = leistung.Substring(indexKlammerAuf + 1, indexKlammerZu - indexKlammerAuf - 1).ToUpper();
|
||||
|
||||
// Wenn die Leistung länger als 1.5h geht, muss ein E angehangen werden (aber nur bei E, R und M)
|
||||
if (sd.Minutes >= 90 && (leistungsform == "E" || leistungsform == "M" || leistungsform == "R"))
|
||||
leistungsform += "E";
|
||||
}
|
||||
|
||||
//text = String.Format("{0:0.#}", decimalValue);
|
||||
if (row != null)
|
||||
row.Cells[column].Text = leistungsform;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user