This commit is contained in:
mmrbnjd
2024-05-16 23:40:32 +03:30
parent 354316abba
commit 3ca7f9deb0
25 changed files with 7727 additions and 101 deletions

View File

@@ -22,23 +22,23 @@ namespace Shared.DTOs
[Display(Name = "شناسه")]
public int ID { get; set; }
[Display(Name = "عنوان")]
public string Title { get; set; }
public InvoiceType? invoiceType { get; set; }
public int? PatternID { get; set; }
public string? PatternTitle { get; set; }
public string Title { get; set; }//
public InvoiceType? invoiceType { get; set; }//
public int? PatternID { get; set; }//
public string? PatternTitle { get; set; }//
[Display(Name = "نوع صورتحساب")]
public string? invoiceTypeTitle { get; set; }
public int CustomerID { get; set; }
public string? invoiceTypeTitle { get; set; }//
public int CustomerID { get; set; }//
[Display(Name = "مشتری")]
public string CustomerName { get; set; }
public string CustomerName { get; set; }//
public string? Udate { get; set; }
[Display(Name = "تاریخ صدور")]
public string InvoicIssueDate { get; set; }
public string InvoiceDate { get; set; }
public string InvoicIssueDate { get; set; }//
public string InvoiceDate { get; set; }//
public bool PreparedtoSendtoTax { get; set; }
public string? Des { get; set; }
//مجموع تخفیفات
[Display(Name = "مجموع تخفیفات")]
[Display(Name = "مجموع تخفیف")]
public decimal? tdis { get; set; }
//مجموع مالیات بر ارزش افزوده
[MaxLength(18)]

View File

@@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Globalization;
using System.Linq;
using System.Reflection;
using System.Text;
@@ -10,6 +11,19 @@ namespace Shared
{
public static class ExMethod
{
public static string ShamciToFormatShamciinFront(this string str)
{
if (string.IsNullOrEmpty(str)) return "";
return str.Substring(0, 4) + "/" + str.Substring(4, 2) + "/" + str.Substring(6, 2);
}
public static string ConvertMiladiToShamsiinFront(this DateTime date)
{
PersianCalendar PersianCal = new PersianCalendar();
return PersianCal.GetYear(date).ToString("0000") +
PersianCal.GetMonth(date).ToString("00") +
PersianCal.GetDayOfMonth(date).ToString("00")
;
}
public static string GetEnumDisplayName(this Enum enumType)
{
return enumType.GetType().GetMember(enumType.ToString())