|
@@ -110,15 +110,19 @@ namespace comal.timesheets
|
|
|
requisition = new Client<Requisition>().Query(
|
|
|
new Filter<Requisition>(x => x.ID).IsEqualTo(requisition.ID)
|
|
|
).Rows.FirstOrDefault().ToObject<Requisition>();
|
|
|
- if (!string.IsNullOrWhiteSpace(requisition.Request))
|
|
|
+
|
|
|
+ string notes = CheckNotes(requisition.Notes);
|
|
|
+
|
|
|
+ if (!string.IsNullOrWhiteSpace(requisition.Request) || !string.IsNullOrWhiteSpace(notes))
|
|
|
{
|
|
|
StoreRequiItemShell shell1 = new StoreRequiItemShell()
|
|
|
{
|
|
|
IsNotes = true,
|
|
|
IsNotNotes = false,
|
|
|
- Summary = requisition.Request,
|
|
|
BorderColor = Color.FromHex("#9f4576")
|
|
|
};
|
|
|
+ shell1.Summary = !string.IsNullOrWhiteSpace(requisition.Request) ? "REQUEST: " + requisition.Request + System.Environment.NewLine : "";
|
|
|
+ shell1.Summary = shell1.Summary + notes;
|
|
|
shells.Insert(0, shell1);
|
|
|
containsNotes = true;
|
|
|
}
|
|
@@ -175,6 +179,19 @@ namespace comal.timesheets
|
|
|
});
|
|
|
}
|
|
|
|
|
|
+ private string CheckNotes(string[] notes)
|
|
|
+ {
|
|
|
+ string combinednotes = "----------" + System.Environment.NewLine + "NOTES: " + System.Environment.NewLine;
|
|
|
+ if (notes.Count() > 0)
|
|
|
+ {
|
|
|
+ foreach (var note in notes)
|
|
|
+ {
|
|
|
+ combinednotes = combinednotes + note + System.Environment.NewLine;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return combinednotes;
|
|
|
+ }
|
|
|
+
|
|
|
void ConfigDisplay()
|
|
|
{
|
|
|
loadingLbl.IsVisible = false;
|
|
@@ -296,10 +313,10 @@ namespace comal.timesheets
|
|
|
|
|
|
else if (list.Count > 1) //more than one stockholding - user choose shelf
|
|
|
UserSelectFromList(list, product, rawResult, processedResultQtyTuple);
|
|
|
-
|
|
|
- else if (list.Count == 0)
|
|
|
+
|
|
|
+ else if (list.Count == 0)
|
|
|
DisplayAlert("No Holdings Found for Product", "", "OK");
|
|
|
-
|
|
|
+
|
|
|
loading = false;
|
|
|
}
|
|
|
catch (Exception e)
|
|
@@ -338,14 +355,14 @@ namespace comal.timesheets
|
|
|
{
|
|
|
if (row.Get<StockHolding, double>(x => x.Units) == 0.0)
|
|
|
continue;
|
|
|
-
|
|
|
+
|
|
|
list.Add(CreateHoldingShell(row));
|
|
|
}
|
|
|
return list;
|
|
|
}
|
|
|
|
|
|
private CoreTable DoHoldingsQuery(Guid productID)
|
|
|
- {
|
|
|
+ {
|
|
|
return new Client<StockHolding>().Query(
|
|
|
new Filter<StockHolding>(x => x.Product.ID).IsEqualTo(productID),
|
|
|
new Columns<StockHolding>(
|