Коммит
This commit is contained in:
parent
7f84e760cf
commit
1cd8aab404
1
.gitignore
vendored
1
.gitignore
vendored
@ -13,6 +13,7 @@
|
||||
|
||||
# User-specific files (MonoDevelop/Xamarin Studio)
|
||||
*.userprefs
|
||||
*.dll
|
||||
|
||||
# Mono auto generated files
|
||||
mono_crash.*
|
||||
|
@ -24,6 +24,7 @@ logic)
|
||||
InitializeComponent();
|
||||
_logger = logger;
|
||||
_logic = logic;
|
||||
LoadData();
|
||||
|
||||
}
|
||||
private void LoadData()
|
||||
|
@ -25,6 +25,7 @@ logic)
|
||||
InitializeComponent();
|
||||
_logger = logger;
|
||||
_logic = logic;
|
||||
LoadData();
|
||||
|
||||
}
|
||||
private void FormComponents_Load(object sender, EventArgs e)
|
||||
|
@ -65,6 +65,10 @@ namespace BlacksmithWorkshopBusinessLogic.BusinessLogics
|
||||
if (type.IsInterface && type.GetInterface(typeIId.Name) !=
|
||||
null)
|
||||
{
|
||||
if(!type.IsInterface)
|
||||
{
|
||||
throw new Exception("fgdfd");
|
||||
}
|
||||
var modelType =
|
||||
_backUpInfo.GetTypeByModelInterface(type.Name);
|
||||
if (modelType == null)
|
||||
|
@ -15,7 +15,7 @@ namespace BlacksmithWorkshopContracts.ViewModels
|
||||
public int Id { get; set; }
|
||||
[Column(title: "Название компонента", width: 150)]
|
||||
public string ComponentName { get; set; } = string.Empty;
|
||||
[Column(title: "цена")]
|
||||
[Column(title: "цена", width: 150)]
|
||||
public double Cost { get; set; }
|
||||
}
|
||||
}
|
||||
|
@ -11,6 +11,7 @@ using System.Threading.Tasks;
|
||||
|
||||
namespace BlacksmithWorkshopDatabaseImplement.Models
|
||||
{
|
||||
[DataContract]
|
||||
public class MessageInfo : IMessageInfoModel
|
||||
{
|
||||
[Key]
|
||||
|
@ -13,6 +13,7 @@ using System.Xml.Linq;
|
||||
|
||||
namespace BlacksmithWorkshopDatabaseImplement.Models
|
||||
{
|
||||
[DataContract]
|
||||
public class Order : IOrderModel
|
||||
{
|
||||
[DataMember]
|
||||
@ -23,8 +24,8 @@ namespace BlacksmithWorkshopDatabaseImplement.Models
|
||||
[DataMember]
|
||||
[Required]
|
||||
public int Count { get; private set; }
|
||||
[Required]
|
||||
[DataMember]
|
||||
[Required]
|
||||
public double Sum { get; private set; }
|
||||
[DataMember]
|
||||
public string ManufactureName { get; private set; } = string.Empty;
|
||||
@ -96,7 +97,7 @@ namespace BlacksmithWorkshopDatabaseImplement.Models
|
||||
Status = model.Status;
|
||||
|
||||
DateImplement = model.DateImplement;
|
||||
ImplementerId = model.ImplementerId; ;
|
||||
ImplementerId = model.ImplementerId;
|
||||
|
||||
|
||||
|
||||
|
@ -72,7 +72,7 @@ namespace BlacksmithWorkshopFileImplement.Models
|
||||
Status = (OrderStatus)Enum.Parse(typeof(OrderStatus), element.Element("Status")!.Value),
|
||||
DateCreate = Convert.ToDateTime(element.Element("DateCreate")!.Value),
|
||||
DateImplement = string.IsNullOrEmpty(element.Element("DateImplement")!.Value) ? null : Convert.ToDateTime(element.Element("DateImplement")!.Value),
|
||||
ClientId = Convert.ToInt32(element.Element("ClientId")!.Value)
|
||||
//ClientId = Convert.ToInt32(element.Element("ClientId")!.Value)
|
||||
};
|
||||
}
|
||||
public void Update(OrderBindingModel model)
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user