Надеюсь итог
This commit is contained in:
parent
8bded9e4bd
commit
7e744cb8d9
@ -19,7 +19,7 @@ public class Invoice
|
|||||||
|
|
||||||
public int SellingPrice { get; set; }
|
public int SellingPrice { get; set; }
|
||||||
|
|
||||||
DateTime Data { get; set; }
|
public DateTime Date { get; set; }
|
||||||
|
|
||||||
public IEnumerable<InvoiceProduct> Products
|
public IEnumerable<InvoiceProduct> Products
|
||||||
{
|
{
|
||||||
@ -37,7 +37,7 @@ public class Invoice
|
|||||||
AvailabilityOfPromotionalCode = availabilityOfPromotionalCode,
|
AvailabilityOfPromotionalCode = availabilityOfPromotionalCode,
|
||||||
DiscountPercentage = discountPercentage,
|
DiscountPercentage = discountPercentage,
|
||||||
SellingPrice = sellingPrice,
|
SellingPrice = sellingPrice,
|
||||||
Data = DateTime.Now,
|
Date = DateTime.Now,
|
||||||
Products = products
|
Products = products
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -13,17 +13,17 @@ public class ProductMovement
|
|||||||
|
|
||||||
public int ProductID { get; private set; }
|
public int ProductID { get; private set; }
|
||||||
|
|
||||||
public Movement MovementProduct { get; private set; }
|
public Movement MovementType { get; private set; }
|
||||||
|
|
||||||
public DateTime Date { get; private set; }
|
public DateTime Date { get; private set; }
|
||||||
|
|
||||||
public static ProductMovement CreateOperation (int it, int productId, Movement movement)
|
public static ProductMovement CreateOperation (int it, int productId, Movement movementType)
|
||||||
{
|
{
|
||||||
return new ProductMovement
|
return new ProductMovement
|
||||||
{
|
{
|
||||||
ID = it,
|
ID = it,
|
||||||
ProductID = productId,
|
ProductID = productId,
|
||||||
MovementProduct = movement,
|
MovementType = movementType,
|
||||||
Date = DateTime.Now
|
Date = DateTime.Now
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -24,12 +24,12 @@ namespace ProjectCompanyFurniture.Forms
|
|||||||
throw new ArgumentNullException(nameof(invoiceRepository));
|
throw new ArgumentNullException(nameof(invoiceRepository));
|
||||||
|
|
||||||
comboBoxClient.DataSource = clientRepository.ReadClients();
|
comboBoxClient.DataSource = clientRepository.ReadClients();
|
||||||
comboBoxClient.DisplayMember = "FirstName";
|
comboBoxClient.DisplayMember = "Name";
|
||||||
comboBoxClient.ValueMember = "Id";
|
comboBoxClient.ValueMember = "ID";
|
||||||
|
|
||||||
ColumnProduct.DataSource = productRepository.ReadProducts();
|
ColumnProduct.DataSource = productRepository.ReadProducts();
|
||||||
ColumnProduct.DisplayMember = "Name";
|
ColumnProduct.DisplayMember = "Name";
|
||||||
ColumnProduct.ValueMember = "Id";
|
ColumnProduct.ValueMember = "ID";
|
||||||
}
|
}
|
||||||
|
|
||||||
private void ButtonSave_Click(object sender, EventArgs e)
|
private void ButtonSave_Click(object sender, EventArgs e)
|
||||||
|
@ -59,7 +59,7 @@ namespace ProjectCompanyFurniture.Forms
|
|||||||
}
|
}
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
var form = _container.Resolve<FormClient>();
|
var form = _container.Resolve<FormProduct>();
|
||||||
form.Id = findId;
|
form.Id = findId;
|
||||||
form.ShowDialog();
|
form.ShowDialog();
|
||||||
LoadList();
|
LoadList();
|
||||||
|
Loading…
Reference in New Issue
Block a user