diff options
| author | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2021-02-26 00:51:15 +0200 |
|---|---|---|
| committer | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2021-02-26 00:51:15 +0200 |
| commit | 8f8ac059563291683cb3a36d88db09bc9bdbe399 (patch) | |
| tree | 797cb3122719f0995d201487575e51fab228e1f4 /Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs | |
| parent | df5246ff51b578aa702d0f7b5dd65e7054d2288f (diff) | |
| download | Tango-8f8ac059563291683cb3a36d88db09bc9bdbe399.tar.gz Tango-8f8ac059563291683cb3a36d88db09bc9bdbe399.zip | |
Fixed issue with spool tension display on PPC job view.
Diffstat (limited to 'Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs')
| -rw-r--r-- | Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs/ViewModels/JobViewVM.cs | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs/ViewModels/JobViewVM.cs b/Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs/ViewModels/JobViewVM.cs index bab4d73ab..d7d8ca75b 100644 --- a/Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs/ViewModels/JobViewVM.cs +++ b/Software/Visual_Studio/PPC/Modules/Tango.PPC.Jobs/ViewModels/JobViewVM.cs @@ -470,6 +470,7 @@ namespace Tango.PPC.Jobs.ViewModels Job.ValidateOnPropertyChanged = true; GetLubricationLevel(); + SetSpoolTension(Job.Rml); LogManager.Log("Loading RMLS..."); Rmls = (await new RmlsCollectionBuilder(_db).SetAll().WithActiveParametersGroup().WithCAT(Job.MachineGuid).WithCCT().WithLiquidFactors().WithSpools().ForHeadType(MachineProvider.Machine.MachineHeadType).ForSite(MachineProvider.Machine.SiteGuid).BuildAsync()).ToList(); @@ -680,7 +681,7 @@ namespace Tango.PPC.Jobs.ViewModels #region RML Changed - protected async virtual void OnRmlChanged(object sender, Rml rml) + protected virtual void OnRmlChanged(object sender, Rml rml) { foreach (var segment in Job.Segments) { @@ -688,11 +689,7 @@ namespace Tango.PPC.Jobs.ViewModels } GetLubricationLevel(); - - if (rml != null && _db != null) - { - BtsrSpoolTension = await rml.GetRequiredBtsrSpoolTension(_db, Job.SpoolType); - } + SetSpoolTension(rml); ResetFineTuning(); } @@ -1427,6 +1424,18 @@ namespace Tango.PPC.Jobs.ViewModels #endregion + #region Spool Tension + + private async void SetSpoolTension(Rml rml) + { + if (rml != null && _db != null) + { + BtsrSpoolTension = await rml.GetRequiredBtsrSpoolTension(_db, Job.SpoolType); + } + } + + #endregion + #region Export Embroidery private async void ExportEmbroidery() |
