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