Refactor quick action output handling and extend case note support
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
using C4IT.F4SD.DisplayFormatting;
|
||||
using C4IT.FASD.Base;
|
||||
using C4IT.MultiLanguage;
|
||||
|
||||
namespace FasdDesktopUi.Basics.Models.QuickActionOutput
|
||||
{
|
||||
|
||||
public class cQuickActionMeasureValue
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public cMultiLanguageDictionary Names { get; set; }
|
||||
public object Value { get; set; }
|
||||
public object PostValue { get; set; }
|
||||
|
||||
public object Difference
|
||||
{
|
||||
get
|
||||
{
|
||||
switch (Display)
|
||||
{
|
||||
case RawValueType.INTEGER:
|
||||
case RawValueType.PERCENT:
|
||||
case RawValueType.PERCENT100:
|
||||
case RawValueType.PERCENT1000:
|
||||
case RawValueType.BYTES:
|
||||
var valueDouble = cF4SDHealthCardRawData.GetDouble(Value);
|
||||
var postValueDouble = cF4SDHealthCardRawData.GetDouble(PostValue);
|
||||
|
||||
if (valueDouble != null && postValueDouble != null)
|
||||
return postValueDouble - valueDouble;
|
||||
break;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
public RawValueType Display { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user