I have just purchased the template. When I open it in VS2017 I get the following messages:
Severity Code Description Project File Line Suppression State Error Package Abp.RedisCache 1.5.1 is not compatible with net461 (.NETFramework,Version=v4.6.1). Package Abp.RedisCache 1.5.1 supports: net452 (.NETFramework,Version=v4.5.2) Error Package NuGet.ProjectModel 4.0.0-rtm-2283 is not compatible with netcoreapp1.0 (.NETCoreApp,Version=v1.0). Package NuGet.ProjectModel 4.0.0-rtm-2283 supports:
Hi,
Anyone setup internal mailing features that you would be willing to share? :) Thx
Had to reload my machine and then load VS 2017 - finally worked - very strange :shock: .
I am creating my first Create/Edit Modal
I keep on getting ar error on the following line: var project = input.MapTo<Project>();
I have confirmed there is definitely data that is populated in input
public class CreateOrUpdateProjectDto
{
public ProjectEditDto Project { get; set; }
}
[AutoMapFrom(typeof(Project))]
public class ProjectEditDto
{
public int? Id { get; set; }
public string Name { get; set; }
public string Summary { get; set; }
public string ProjectNumber { get; set; }
public string FinanceReference { get; set; }
public DateTime? RegistrationDateTime { get; set; }
public DateTime? StartonSiteDateTime { get; set; }
public DateTime? ActualCompletionDateTime { get; set; }
public DateTime? EstimatedCompletionDateTime { get; set; }
public string ProjectGuid { get; set; }
public int? ProjectTypeId { get; set; }
public string ProjectTypeType { get; set; }
public string ProjectTypeText { get; set; }
}
[AbpAuthorize(AppPermissions.Pages_Tenant_Projects_Create)]
public async Task CreateOrUpdateProject(CreateOrUpdateProjectDto input)
{
if (!input.Project.Id.HasValue)
{
await CreateProjectAsync(input);
}
else
{
await EditProjectAsync(input);
}
}
protected virtual async Task CreateProjectAsync(CreateOrUpdateProjectDto input)
{
var project = input.MapTo<Project>();
await _projectRepository.InsertAsync(project);
}
I have since changed the following line, but still not working
var project = input.Project.MapTo<Project>();
Brilliant - that worked Thanks!
Hi Any idea of when the subscribe for SaaS services (editions) and pay it with payPal will be released?
I have created document upload functionality.
I can create the record correctly, but wanted to add dropzone.js as the means by which I upload the document see image: [https://goo.gl/photos/ZSVgZCJrHDTBFnBC6])
The ideas is that you populate the Name and Category fields, then drag and drop a file. The file gets submited automatically and gets replaced with a DocumentId (once saved in the database), and then the user clicks save.
My Issue: my _createOrEditModal.js has the following code:
$(".dropzone").dropzone({
url: "/App/Documents/UploadDocument/",
uploadMultiple: false,
paramName: "file",
parallelUploads: 1,
maxFiles: 1
});
I keep on getting a code 400 error when it tries to upload the file (it does not even go into the controller). I have spent a number of hours on this and cannot figure out whats going on.
Here is my controller code:
public ActionResult UploadDocument()
{
try
{
var documentFile = Request.Form.Files.First();
//Check input
if (documentFile == null)
throw new UserFriendlyException(L("File_Empty_Error"));
byte[] fileBytes;
using (var stream = documentFile.OpenReadStream())
{
fileBytes = stream.GetAllBytes();
}
var documentFileObject = new BinaryObject(AbpSession.GetTenantId(), fileBytes);
_binaryObjectManager.SaveAsync(documentFileObject);
return Json(new AjaxResponse(new {id = documentFileObject.Id}));
}
catch (UserFriendlyException ex)
{
return Json(new AjaxResponse(new ErrorInfo(ex.Message)));
}
}
Awesome - Thanks - that was the trick :D
Hi,
I have the following foreign key in my model:
public virtual PlanStatus Status { get; set; }
public int? StatusId { get; set; }
in jTable I can display the StatusId
statusId: {
title: app.localize("Status"),
width: "30px",
display: function (data) {
if (data.record.statusId) {
console.log(data.record);
return data.record.statusId;
}
}
},
in the PlanStatus model I have a field Status that I want displayed in the jTable.
How do I display it?