Spaces:
Sleeping
Sleeping
File size: 1,006 Bytes
c2908d2 a19fd25 c2908d2 a19fd25 c2908d2 a19fd25 c2908d2 a19fd25 c2908d2 a19fd25 c2908d2 8ded86b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | using Microsoft.AspNetCore.Mvc.Rendering;
using OilShopManagement.Models;
using System.ComponentModel.DataAnnotations;
namespace OilShopManagement.ViewModels;
public class StockAdjustViewModel
{
[Required]
public int ProductId { get; set; }
[Required]
[Display(Name = "ظ†ظˆط¹ ط§ظ„طط±ظƒط©")]
public TransactionType Type { get; set; }
[Required]
[Display(Name = "ط§ظ„ظƒظ…ظٹط©")]
[Range(1, 9999, ErrorMessage = "ط§ظ„ظƒظ…ظٹط© ظٹط¬ط¨ ط£ظ† طھظƒظˆظ† ط¨ظٹظ† 1 ظˆ 9999")]
public int Quantity { get; set; }
[Display(Name = "ط³ط¹ط± ط§ظ„ظˆطط¯ط©")]
[Range(0, 999999)]
public decimal UnitPrice { get; set; }
[StringLength(500)]
[Display(Name = "ظ…ظ„ط§طط¸ط§طھ")]
public string? Notes { get; set; }
public SelectList? Products { get; set; }
public string? ProductName { get; set; }
public int? CurrentStock { get; set; }
}
|