diff --git a/Yavsc/Controllers/EstimateController.cs b/Yavsc/Controllers/EstimateController.cs
index f57d3216..594508bf 100644
--- a/Yavsc/Controllers/EstimateController.cs
+++ b/Yavsc/Controllers/EstimateController.cs
@@ -101,11 +101,13 @@ namespace Yavsc.Controllers
_context.Estimates
.Add(estimate);
_context.SaveChanges();
-
+ var query = _context.BookQueries.FirstOrDefault(
+ q=>q.Id == estimate.CommandId
+ );
var perfomerProfile = _context.Performers
.Include(
perpr => perpr.Performer).FirstOrDefault(
- x=>x.PerformerId == estimate.Query.PerformerId
+ x=>x.PerformerId == query.PerformerId
);
var command = _context.BookQueries.FirstOrDefault(
cmd => cmd.Id == estimate.CommandId
diff --git a/Yavsc/Controllers/FrontOfficeController.cs b/Yavsc/Controllers/FrontOfficeController.cs
index fc28846f..70f18539 100644
--- a/Yavsc/Controllers/FrontOfficeController.cs
+++ b/Yavsc/Controllers/FrontOfficeController.cs
@@ -120,5 +120,30 @@ namespace Yavsc.Controllers
throw new Exception("No data");
return View("Estimate.pdf",estimate);
}
+
+ [Authorize]
+ public IActionResult EstimateProValidation()
+ {
+ throw new NotImplementedException();
+
+ }
+
+ [Authorize]
+ public IActionResult EstimateClientValidation()
+ {
+ throw new NotImplementedException();
+
+ }
+ [Authorize]
+ public IActionResult BillValidation()
+ {
+ throw new NotImplementedException();
+
+ }
+ [Authorize]
+ public IActionResult BillAcquitment()
+ {
+ throw new NotImplementedException();
+ }
}
}
diff --git a/Yavsc/Filters/LanguageActionFilter.cs b/Yavsc/Filters/LanguageActionFilter.cs
index 61c60b31..8bb4852d 100644
--- a/Yavsc/Filters/LanguageActionFilter.cs
+++ b/Yavsc/Filters/LanguageActionFilter.cs
@@ -46,10 +46,10 @@ namespace Yavsc
}
if (culture != null) {
#if DNX451
- System.Threading.Thread.CurrentThread.CurrentCulture = new CultureInfo(culture);
+ // System.Threading.Thread.CurrentThread.CurrentCulture = new CultureInfo(culture);
System.Threading.Thread.CurrentThread.CurrentUICulture = new CultureInfo(culture);
#else
- CultureInfo.CurrentCulture = new CultureInfo(culture);
+ // CultureInfo.CurrentCulture = new CultureInfo(culture);
CultureInfo.CurrentUICulture = new CultureInfo(culture);
#endif
}
diff --git a/Yavsc/Helpers/EventHelpers.cs b/Yavsc/Helpers/EventHelpers.cs
index f65d352b..d50970e6 100644
--- a/Yavsc/Helpers/EventHelpers.cs
+++ b/Yavsc/Helpers/EventHelpers.cs
@@ -19,7 +19,8 @@ namespace Yavsc.Helpers
EventDate = query.EventDate,
Location = query.Location,
Id = query.Id,
- Reason = query.Reason
+ Reason = query.Reason,
+ ActivityCode = query.ActivityCode
};
return yaev;
}
diff --git a/Yavsc/Migrations/20170116002541_bookQueryActivityCode.Designer.cs b/Yavsc/Migrations/20170116002541_bookQueryActivityCode.Designer.cs
index a865e0ce..ce9c7fdf 100644
--- a/Yavsc/Migrations/20170116002541_bookQueryActivityCode.Designer.cs
+++ b/Yavsc/Migrations/20170116002541_bookQueryActivityCode.Designer.cs
@@ -1,7 +1,6 @@
using System;
using Microsoft.Data.Entity;
using Microsoft.Data.Entity.Infrastructure;
-using Microsoft.Data.Entity.Metadata;
using Microsoft.Data.Entity.Migrations;
using Yavsc.Models;
diff --git a/Yavsc/Migrations/20170116002541_bookQueryActivityCode.cs b/Yavsc/Migrations/20170116002541_bookQueryActivityCode.cs
index 988c74c8..08db76d4 100644
--- a/Yavsc/Migrations/20170116002541_bookQueryActivityCode.cs
+++ b/Yavsc/Migrations/20170116002541_bookQueryActivityCode.cs
@@ -1,5 +1,3 @@
-using System;
-using System.Collections.Generic;
using Microsoft.Data.Entity.Migrations;
namespace Yavsc.Migrations
diff --git a/Yavsc/Migrations/ApplicationDbContextModelSnapshot.cs b/Yavsc/Migrations/ApplicationDbContextModelSnapshot.cs
index 50ba8019..958d7744 100644
--- a/Yavsc/Migrations/ApplicationDbContextModelSnapshot.cs
+++ b/Yavsc/Migrations/ApplicationDbContextModelSnapshot.cs
@@ -1,8 +1,6 @@
using System;
using Microsoft.Data.Entity;
using Microsoft.Data.Entity.Infrastructure;
-using Microsoft.Data.Entity.Metadata;
-using Microsoft.Data.Entity.Migrations;
using Yavsc.Models;
namespace Yavsc.Migrations
diff --git a/Yavsc/Models/Messaging/BookQueryProviderInfo.cs b/Yavsc/Models/Messaging/BookQueryProviderInfo.cs
index b34cf5f6..9290c894 100644
--- a/Yavsc/Models/Messaging/BookQueryProviderInfo.cs
+++ b/Yavsc/Models/Messaging/BookQueryProviderInfo.cs
@@ -15,6 +15,8 @@ namespace Yavsc.Model
public decimal? Previsional { get; set; }
public string Reason { get; set; }
+
+ public string ActivityCode { get; set; }
}
}
diff --git a/Yavsc/Resources/Yavsc.Resources.YavscLocalisation.en.resx b/Yavsc/Resources/Yavsc.Resources.YavscLocalisation.en.resx
index a41d6026..3f9767bd 100644
--- a/Yavsc/Resources/Yavsc.Resources.YavscLocalisation.en.resx
+++ b/Yavsc/Resources/Yavsc.Resources.YavscLocalisation.en.resx
@@ -323,6 +323,10 @@