Remove CRM bits
This commit is contained in:
@@ -1,30 +0,0 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Heroic.AutoMapper;
|
||||
using InventoryTraker.Web.Core;
|
||||
|
||||
namespace InventoryTraker.Web.Models
|
||||
{
|
||||
public class AddCustomerForm : IMapTo<Customer>
|
||||
{
|
||||
[Required, Display(Name = "Full Name", Prompt = "Full Name (ex: John Doe)...")]
|
||||
public string Name { get; set; }
|
||||
|
||||
[Required, DataType(DataType.EmailAddress)]
|
||||
public string WorkEmail { get; set; }
|
||||
|
||||
[DataType(DataType.EmailAddress)]
|
||||
public string HomeEmail { get; set; }
|
||||
|
||||
[Required, DataType(DataType.PhoneNumber)]
|
||||
public string WorkPhone { get; set; }
|
||||
|
||||
[DataType(DataType.PhoneNumber)]
|
||||
public string HomePhone { get; set; }
|
||||
|
||||
[Required, DataType(DataType.MultilineText)]
|
||||
public string WorkAddress { get; set; }
|
||||
|
||||
[DataType(DataType.MultilineText)]
|
||||
public string HomeAddress { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Web.Mvc;
|
||||
using Heroic.AutoMapper;
|
||||
using InventoryTraker.Web.Core;
|
||||
|
||||
namespace InventoryTraker.Web.Models
|
||||
{
|
||||
public class AddOpportunityForm : IMapTo<Opportunity>
|
||||
{
|
||||
[HiddenInput]
|
||||
public int CustomerId { get; set; }
|
||||
|
||||
[Required]
|
||||
public string Title { get; set; }
|
||||
|
||||
[DataType(DataType.MultilineText)]
|
||||
public string Description { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Web.Mvc;
|
||||
using Heroic.AutoMapper;
|
||||
using InventoryTraker.Web.Core;
|
||||
|
||||
namespace InventoryTraker.Web.Models
|
||||
{
|
||||
public class AddRiskForm : IMapTo<Risk>
|
||||
{
|
||||
[HiddenInput]
|
||||
public int CustomerId { get; set; }
|
||||
|
||||
[Required]
|
||||
public string Title { get; set; }
|
||||
|
||||
[DataType(DataType.MultilineText)]
|
||||
public string Description { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,12 +0,0 @@
|
||||
using Heroic.AutoMapper;
|
||||
using InventoryTraker.Web.Core;
|
||||
|
||||
namespace InventoryTraker.Web.Models
|
||||
{
|
||||
public class CustomerOpportunityViewModel : IMapFrom<Opportunity>
|
||||
{
|
||||
public string Title { get; set; }
|
||||
|
||||
public string Description { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,12 +0,0 @@
|
||||
using Heroic.AutoMapper;
|
||||
using InventoryTraker.Web.Core;
|
||||
|
||||
namespace InventoryTraker.Web.Models
|
||||
{
|
||||
public class CustomerRiskViewModel : IMapFrom<Risk>
|
||||
{
|
||||
public string Title { get; set; }
|
||||
|
||||
public string Description { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,32 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Heroic.AutoMapper;
|
||||
using InventoryTraker.Web.Core;
|
||||
|
||||
namespace InventoryTraker.Web.Models
|
||||
{
|
||||
public class CustomerViewModel : IMapFrom<Customer>
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
public string Name { get; set; }
|
||||
|
||||
public string WorkEmail { get; set; }
|
||||
|
||||
public string HomeEmail { get; set; }
|
||||
|
||||
public string WorkPhone { get; set; }
|
||||
|
||||
public string HomePhone { get; set; }
|
||||
|
||||
public string HomeAddress { get; set; }
|
||||
|
||||
public string WorkAddress { get; set; }
|
||||
|
||||
public DateTime? TerminationDate { get; set; }
|
||||
|
||||
public IList<CustomerOpportunityViewModel> Opportunities { get; set; }
|
||||
|
||||
public IList<CustomerRiskViewModel> Risks { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,34 +0,0 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Web.Mvc;
|
||||
using Heroic.AutoMapper;
|
||||
using InventoryTraker.Web.Core;
|
||||
|
||||
namespace InventoryTraker.Web.Models
|
||||
{
|
||||
public class EditCustomerForm : IMapTo<Customer>
|
||||
{
|
||||
[HiddenInput]
|
||||
public int Id { get; set; }
|
||||
|
||||
[Required, Display(Name = "Full Name", Prompt = "Full Name (ex: John Doe)...")]
|
||||
public string Name { get; set; }
|
||||
|
||||
[Required, DataType(DataType.EmailAddress)]
|
||||
public string WorkEmail { get; set; }
|
||||
|
||||
[DataType(DataType.EmailAddress)]
|
||||
public string HomeEmail { get; set; }
|
||||
|
||||
[Required, DataType(DataType.PhoneNumber)]
|
||||
public string WorkPhone { get; set; }
|
||||
|
||||
[DataType(DataType.PhoneNumber)]
|
||||
public string HomePhone { get; set; }
|
||||
|
||||
[Required, DataType(DataType.MultilineText)]
|
||||
public string WorkAddress { get; set; }
|
||||
|
||||
[DataType(DataType.MultilineText)]
|
||||
public string HomeAddress { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
using System;
|
||||
using Heroic.AutoMapper;
|
||||
using InventoryTraker.Web.Core;
|
||||
|
||||
namespace InventoryTraker.Web.Models
|
||||
{
|
||||
public class LostCustomerReportViewModel : IMapFrom<Customer>
|
||||
{
|
||||
public string Name { get; set; }
|
||||
|
||||
public string WorkEmail { get; set; }
|
||||
|
||||
public DateTime? TerminationDate { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,14 +0,0 @@
|
||||
using System;
|
||||
using Heroic.AutoMapper;
|
||||
|
||||
namespace InventoryTraker.Web.Models
|
||||
{
|
||||
public class NewCustomerReportViewModel : IMapFrom<Core.Customer>
|
||||
{
|
||||
public string Name { get; set; }
|
||||
|
||||
public string WorkEmail { get; set; }
|
||||
|
||||
public DateTime CreateDate { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
using System;
|
||||
using Heroic.AutoMapper;
|
||||
using InventoryTraker.Web.Core;
|
||||
|
||||
namespace InventoryTraker.Web.Models
|
||||
{
|
||||
public class OpportunityViewModel : IMapFrom<Opportunity>
|
||||
{
|
||||
public string Title { get; set; }
|
||||
|
||||
public string Description { get; set; }
|
||||
|
||||
public DateTime CreateDate { get; set; }
|
||||
|
||||
public int CustomerId { get; set; }
|
||||
|
||||
public string CustomerName { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
using System;
|
||||
using Heroic.AutoMapper;
|
||||
using InventoryTraker.Web.Core;
|
||||
|
||||
namespace InventoryTraker.Web.Models
|
||||
{
|
||||
public class RiskViewModel : IMapFrom<Risk>
|
||||
{
|
||||
public int CustomerId { get; set; }
|
||||
|
||||
public string Title { get; set; }
|
||||
|
||||
public string Description { get; set; }
|
||||
|
||||
public DateTime CreateDate { get; set; }
|
||||
|
||||
public string CustomerName { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user