erste Testversion 7.3
This commit is contained in:
parent
ba8456b920
commit
d0324d8568
@ -62,15 +62,17 @@ namespace ENI2.DetailViewControls
|
|||||||
|
|
||||||
public override void Initialize()
|
public override void Initialize()
|
||||||
{
|
{
|
||||||
|
bool iAmAdmin = DBManager.Instance.GetReportingPartyDict()[App.UserId.Value].IsAdmin;
|
||||||
|
|
||||||
base.Initialize();
|
base.Initialize();
|
||||||
Message.NotificationClass notificationClass = this.Core.IsTransit ? Message.NotificationClass.TRANSIT : Message.NotificationClass.VISIT;
|
Message.NotificationClass notificationClass = this.Core.IsTransit ? Message.NotificationClass.TRANSIT : Message.NotificationClass.VISIT;
|
||||||
if (this.Messages == null) return;
|
if (this.Messages == null) return;
|
||||||
if (this.Core == null) return;
|
if (this.Core == null) return;
|
||||||
|
|
||||||
this.textBoxENI.IsReadOnly = false;
|
this.textBoxENI.IsReadOnly = !iAmAdmin;
|
||||||
this.textBoxIMO.IsReadOnly = false;
|
this.textBoxIMO.IsReadOnly = !iAmAdmin;
|
||||||
this.locodePoC.IsEnabled = true;
|
this.locodePoC.IsEnabled = iAmAdmin;
|
||||||
this.textBoxDisplayId.IsReadOnly = false;
|
this.textBoxDisplayId.IsReadOnly = !iAmAdmin;
|
||||||
|
|
||||||
this.textBoxENI.DataContext = this.Core;
|
this.textBoxENI.DataContext = this.Core;
|
||||||
this.textBoxIMO.DataContext = this.Core;
|
this.textBoxIMO.DataContext = this.Core;
|
||||||
|
|||||||
@ -711,8 +711,10 @@ namespace bsmd.hisnord
|
|||||||
lu.CargoNumberOfItems = ladg.CargoNumberOfItems.Value.ToString();
|
lu.CargoNumberOfItems = ladg.CargoNumberOfItems.Value.ToString();
|
||||||
if (ladg.CargoGrossQuantity_TNE.HasValue)
|
if (ladg.CargoGrossQuantity_TNE.HasValue)
|
||||||
lu.CargoGrossQuantity_TNE = Math.Round((decimal)ladg.CargoGrossQuantity_TNE.Value, 3);
|
lu.CargoGrossQuantity_TNE = Math.Round((decimal)ladg.CargoGrossQuantity_TNE.Value, 3);
|
||||||
lu.CargoPortOfLoading = ladg.PortOfLoading;
|
if(!ladg.PortOfLoading.IsNullOrEmpty())
|
||||||
lu.CargoPortOfDischarge = ladg.PortOfDischarge;
|
lu.CargoPortOfLoading = ladg.PortOfLoading;
|
||||||
|
if(!ladg.PortOfDischarge.IsNullOrEmpty())
|
||||||
|
lu.CargoPortOfDischarge = ladg.PortOfDischarge;
|
||||||
|
|
||||||
hn_generalcargo.Cargo[i] = lu;
|
hn_generalcargo.Cargo[i] = lu;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user