fixed Report error, fixed WAS_RCPT delete
This commit is contained in:
parent
9b73417963
commit
811d8c1eb4
@ -212,6 +212,7 @@ namespace ENI2.DetailViewControls
|
|||||||
{
|
{
|
||||||
// are you sure dialog is in base class
|
// are you sure dialog is in base class
|
||||||
_wasRcptMessage.Elements.Remove(wasRCPT);
|
_wasRcptMessage.Elements.Remove(wasRCPT);
|
||||||
|
wasRCPT.DeleteElements();
|
||||||
DBManager.GetSingleCon(Properties.Settings.Default.ConnectionString).Delete(wasRCPT);
|
DBManager.GetSingleCon(Properties.Settings.Default.ConnectionString).Delete(wasRCPT);
|
||||||
DatabaseEntity.ResetIdentifiers(new List<DatabaseEntity>(_wasRcptMessage.Elements));
|
DatabaseEntity.ResetIdentifiers(new List<DatabaseEntity>(_wasRcptMessage.Elements));
|
||||||
this.SublistElementChanged(Message.NotificationClass.WAS_RCPT);
|
this.SublistElementChanged(Message.NotificationClass.WAS_RCPT);
|
||||||
@ -241,10 +242,10 @@ namespace ENI2.DetailViewControls
|
|||||||
if (epd.ShowDialog() ?? false)
|
if (epd.ShowDialog() ?? false)
|
||||||
{
|
{
|
||||||
if (!_wasRcptMessage.Elements.Contains(epd.WAS_RCPT))
|
if (!_wasRcptMessage.Elements.Contains(epd.WAS_RCPT))
|
||||||
_wasRcptMessage.Elements.Add(epd.WAS_RCPT);
|
_wasRcptMessage.Elements.Add(epd.WAS_RCPT);
|
||||||
this.dataGridWasteReceipt.Items.Refresh();
|
|
||||||
this.SublistElementChanged(Message.NotificationClass.WAS_RCPT);
|
|
||||||
}
|
}
|
||||||
|
this.dataGridWasteReceipt.Items.Refresh();
|
||||||
|
this.SublistElementChanged(Message.NotificationClass.WAS_RCPT);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void DataGridWasteReceipt_AddingNewItem(object sender, AddingNewItemEventArgs e)
|
private void DataGridWasteReceipt_AddingNewItem(object sender, AddingNewItemEventArgs e)
|
||||||
@ -335,10 +336,10 @@ namespace ENI2.DetailViewControls
|
|||||||
{
|
{
|
||||||
if (!_selectedWAS_RCPT.WasteReceived.Any(wr => wr.WasteCode == ewrd.WasteReceived.WasteCode))
|
if (!_selectedWAS_RCPT.WasteReceived.Any(wr => wr.WasteCode == ewrd.WasteReceived.WasteCode))
|
||||||
{
|
{
|
||||||
_selectedWAS_RCPT.WasteReceived.Add(ewrd.WasteReceived);
|
_selectedWAS_RCPT.WasteReceived.Add(ewrd.WasteReceived);
|
||||||
this.dataGridWasteReceived.Items.Refresh();
|
|
||||||
this.SublistElementChanged(Message.NotificationClass.WAS_RCPT);
|
|
||||||
}
|
}
|
||||||
|
this.dataGridWasteReceived.Items.Refresh();
|
||||||
|
this.SublistElementChanged(Message.NotificationClass.WAS_RCPT);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -380,7 +380,8 @@ namespace ENI2.Report
|
|||||||
case Message.NotificationClass.TOWA:
|
case Message.NotificationClass.TOWA:
|
||||||
case Message.NotificationClass.TOWD:
|
case Message.NotificationClass.TOWD:
|
||||||
case Message.NotificationClass.HAZA when (message.Elements[0] is HAZ haz) && ((haz.IMDGPositions.Count > 0) || (haz.IBCPositions.Count > 0) || (haz.IGCPositions.Count > 0) || (haz.IMSBCPositions.Count > 0) || (haz.MARPOLPositions.Count > 0)):
|
case Message.NotificationClass.HAZA when (message.Elements[0] is HAZ haz) && ((haz.IMDGPositions.Count > 0) || (haz.IBCPositions.Count > 0) || (haz.IGCPositions.Count > 0) || (haz.IMSBCPositions.Count > 0) || (haz.MARPOLPositions.Count > 0)):
|
||||||
{
|
case Message.NotificationClass.HAZD when (message.Elements[0] is HAZ hazd) && ((hazd.IMDGPositions.Count > 0) || (hazd.IBCPositions.Count > 0) || (hazd.IGCPositions.Count > 0) || (hazd.IMSBCPositions.Count > 0) || (hazd.MARPOLPositions.Count > 0)):
|
||||||
|
{
|
||||||
// Landscape if not set
|
// Landscape if not set
|
||||||
if (_lastOrientation == Orientation.Portrait)
|
if (_lastOrientation == Orientation.Portrait)
|
||||||
{
|
{
|
||||||
@ -434,6 +435,9 @@ namespace ENI2.Report
|
|||||||
case Message.NotificationClass.HAZA when (message.Elements[0] is HAZ haz) && ((haz.IMDGPositions.Count > 0) || (haz.IBCPositions.Count > 0) || (haz.IGCPositions.Count > 0) || (haz.IMSBCPositions.Count > 0) || (haz.MARPOLPositions.Count > 0)):
|
case Message.NotificationClass.HAZA when (message.Elements[0] is HAZ haz) && ((haz.IMDGPositions.Count > 0) || (haz.IBCPositions.Count > 0) || (haz.IGCPositions.Count > 0) || (haz.IMSBCPositions.Count > 0) || (haz.MARPOLPositions.Count > 0)):
|
||||||
CreateHAZPage(document, haz);
|
CreateHAZPage(document, haz);
|
||||||
return;
|
return;
|
||||||
|
case Message.NotificationClass.HAZD when (message.Elements[0] is HAZ haz) && ((haz.IMDGPositions.Count > 0) || (haz.IBCPositions.Count > 0) || (haz.IGCPositions.Count > 0) || (haz.IMSBCPositions.Count > 0) || (haz.MARPOLPositions.Count > 0)):
|
||||||
|
CreateHAZPage(document, haz);
|
||||||
|
return;
|
||||||
case Message.NotificationClass.WAS:
|
case Message.NotificationClass.WAS:
|
||||||
CreateWASTable(document, message);
|
CreateWASTable(document, message);
|
||||||
return;
|
return;
|
||||||
|
|||||||
@ -2,6 +2,6 @@
|
|||||||
|
|
||||||
[assembly: AssemblyCompany("schick Informatik")]
|
[assembly: AssemblyCompany("schick Informatik")]
|
||||||
[assembly: AssemblyProduct("BSMD NSW interface")]
|
[assembly: AssemblyProduct("BSMD NSW interface")]
|
||||||
[assembly: AssemblyInformationalVersion("7.0.1")]
|
[assembly: AssemblyInformationalVersion("7.0.2")]
|
||||||
[assembly: AssemblyCopyright("Copyright © 2014-2022 schick Informatik")]
|
[assembly: AssemblyCopyright("Copyright © 2014-2022 schick Informatik")]
|
||||||
[assembly: AssemblyTrademark("")]
|
[assembly: AssemblyTrademark("")]
|
||||||
@ -1,4 +1,4 @@
|
|||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
|
|
||||||
[assembly: AssemblyVersion("7.0.1.*")]
|
[assembly: AssemblyVersion("7.0.2.*")]
|
||||||
|
|
||||||
|
|||||||
@ -1309,7 +1309,7 @@ namespace bsmd.hisnord
|
|||||||
for (int j = 0; j < was_rcpt.WasteReceived.Count; j++)
|
for (int j = 0; j < was_rcpt.WasteReceived.Count; j++)
|
||||||
{
|
{
|
||||||
hn_was_rcpt.Items[i].WasteReceived[j] = new was_rcptWasteDeliveryReceiptWasteReceived();
|
hn_was_rcpt.Items[i].WasteReceived[j] = new was_rcptWasteDeliveryReceiptWasteReceived();
|
||||||
hn_was_rcpt.Items[i].WasteReceived[j].AmountWasteReceived_MTQ = (decimal) (was_rcpt.WasteReceived[j].AmountWasteReceived_MTQ ?? 0);
|
hn_was_rcpt.Items[i].WasteReceived[j].AmountWasteReceived_MTQ = decimal.Round((decimal) (was_rcpt.WasteReceived[j].AmountWasteReceived_MTQ ?? 0), 3);
|
||||||
hn_was_rcpt.Items[i].WasteReceived[j].WasteType = new was_rcptWasteDeliveryReceiptWasteReceivedWasteType();
|
hn_was_rcpt.Items[i].WasteReceived[j].WasteType = new was_rcptWasteDeliveryReceiptWasteReceivedWasteType();
|
||||||
hn_was_rcpt.Items[i].WasteReceived[j].WasteType.WasteCode = was_rcpt.WasteReceived[j].WasteCode;
|
hn_was_rcpt.Items[i].WasteReceived[j].WasteType.WasteCode = was_rcpt.WasteReceived[j].WasteCode;
|
||||||
if(!was_rcpt.WasteReceived[j].WasteDescription.IsNullOrEmpty())
|
if(!was_rcpt.WasteReceived[j].WasteDescription.IsNullOrEmpty())
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user