Add APISocietyToolBox source files
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Globalization;
|
||||
|
||||
|
||||
namespace APISocietyToolBox.Models
|
||||
{
|
||||
public class MemberBillsListModel
|
||||
{
|
||||
[Key]
|
||||
public string? BillID { get; set; }
|
||||
public string? BillNo { get; set; }
|
||||
public DateTime BillDate { get; set; }
|
||||
public DateTime BillMonth { get; set; }
|
||||
public string? MemberName { get; set; }
|
||||
public string? UnitNo { get; set; }
|
||||
public decimal BillAmount { get; set; }
|
||||
}
|
||||
|
||||
public class BillsDetailsModel
|
||||
{
|
||||
[Key]
|
||||
public string? BillID { get; set; }
|
||||
public Int32 LedgerID { get; set; }
|
||||
public string? LedgerName { get; set; }
|
||||
public string? Remarks { get; set;}
|
||||
public decimal LedgerAmount { get; set;}
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Globalization;
|
||||
|
||||
|
||||
namespace APISocietyToolBox.Models
|
||||
{
|
||||
public class DashBoardOutandingSummaryModel
|
||||
{
|
||||
[Key]
|
||||
public Int64 PropertyUnitID { get; set; }
|
||||
public string? BuildingNo { get; set; }
|
||||
public string? UnitNo { get; set; }
|
||||
public string? MemberName { get; set; }
|
||||
public decimal ClosingBal { get; set; }
|
||||
public decimal LastReceiptAmt { get; set; }
|
||||
public DateTime? LastReceiptDate { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class DashBoardTransactionsModel
|
||||
{
|
||||
[Key]
|
||||
public string DocID { get; set; }
|
||||
public string? DocNo { get; set; }
|
||||
public DateTime DocDate { get; set; }
|
||||
public string? MemberName { get; set; }
|
||||
public string? UnitNo { get; set; }
|
||||
public decimal DocAmount { get; set; }
|
||||
public string? TRType { get; set; }
|
||||
public Int32 NewTRStatus { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Globalization;
|
||||
|
||||
namespace APISocietyToolBox.Models
|
||||
{
|
||||
public class ResponseNoticeBoardModel
|
||||
{
|
||||
public Int32 Status { get; set; }
|
||||
public string? StatusMessage { get; set; }
|
||||
[Key]
|
||||
public Int32 NoticeID { get; set; }
|
||||
|
||||
}
|
||||
public class NoticeBoardMessageModel
|
||||
{
|
||||
[Key]
|
||||
public Int64 NoticeID { get; set; }
|
||||
public string? NoticeMessage { get; set; }
|
||||
public DateTime NoticeDate { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Globalization;
|
||||
|
||||
namespace APISocietyToolBox.Models
|
||||
{
|
||||
public class PropertyUnitUserModel
|
||||
{
|
||||
[Key]
|
||||
public Int64 PropertyUnitID { get; set; }
|
||||
|
||||
public string? UnitNo { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Globalization;
|
||||
|
||||
namespace APISocietyToolBox.Models
|
||||
{
|
||||
public class PropertyUnitLedgerReportsModel
|
||||
{
|
||||
[Key]
|
||||
public Int64? LEDROWID { get; set; }
|
||||
public string? DocName { get; set; }
|
||||
public DateTime? DocDate { get; set; }
|
||||
public string? Remarks { get; set; }
|
||||
public Decimal? DebitAmount { get; set; }
|
||||
public Decimal? CreditAmount { get; set; }
|
||||
public Decimal? BalanceAmount { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Globalization;
|
||||
|
||||
|
||||
namespace APISocietyToolBox.Models
|
||||
{
|
||||
public class MemberTransactionsListModel
|
||||
{
|
||||
[Key]
|
||||
public string? TransactionID { get; set; }
|
||||
public string? TransactionNo { get; set; }
|
||||
public DateTime TransactionDate { get; set; }
|
||||
public Int32 TransactionTypeID { get; set; }
|
||||
public string? MemberName { get; set; }
|
||||
public string? CashBankLedger { get; set; }
|
||||
public string? Remarks { get; set; }
|
||||
public string? UnitNo { get; set; }
|
||||
public decimal TransactionAmount { get; set; }
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
namespace APISocietyToolBox.Models
|
||||
{
|
||||
public class UserDto
|
||||
{
|
||||
public string Username { get; set; } = string.Empty;
|
||||
public string Password { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,120 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
|
||||
namespace APISocietyToolBox.Models
|
||||
{
|
||||
public class UserModel
|
||||
{
|
||||
[Key]
|
||||
public long? UserID { get; set; } = null;
|
||||
public string UserName { get; set; } = string.Empty;
|
||||
public string LoginName { get; set; } = string.Empty;
|
||||
public string LoginPassword { get; set; } = string.Empty;
|
||||
public string PasswordSalt { get; set; } = string.Empty;
|
||||
public string UserRole { get; set; } = string.Empty;
|
||||
public long? UserRoleID { get; set; }
|
||||
public long? PropertyID { get; set; }
|
||||
public long MemberID { get; set; }
|
||||
public string? RefreshToken { get; set; } = string.Empty;
|
||||
public DateTime? TokenCreated { get; set; }
|
||||
public DateTime? TokenExpires { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class UserTokenRefreshModel
|
||||
{
|
||||
public Int64 UserID { get; set; }
|
||||
public int UserRoleID { get; set; }
|
||||
public string? UserName { get; set; } = string.Empty;
|
||||
public string? UserRole { get; set; } = string.Empty;
|
||||
public string? RefreshToken { get; set; } = string.Empty;
|
||||
|
||||
}
|
||||
public class UserTokenModel
|
||||
{
|
||||
public int? Status { get; set; }
|
||||
public string StatusMessage { get; set; } = string.Empty;
|
||||
public string? UserName { get; set; } = string.Empty;
|
||||
public string? UserRole { get; set; } = string.Empty;
|
||||
public long? UserRoleID { get; set; } = null;
|
||||
public long? UserID { get; set; } = null;
|
||||
public Int32? PropertyID { get; set; }
|
||||
//public Int32 MemberID { get; set; }
|
||||
public string? RefreshToken { get; set; } = string.Empty;
|
||||
public DateTime? TokenCreated { get; set; }
|
||||
public DateTime? TokenExpires { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class LoginResponseModel
|
||||
{
|
||||
[Key]
|
||||
public int? Status { get; set; }
|
||||
public string StatusMessage { get; set; } = string.Empty;
|
||||
|
||||
public long UserID { get; set; }
|
||||
public long UserRoleID { get; set; }
|
||||
public string UserRole { get; set; } = string.Empty;
|
||||
public string UserName { get; set; } = string.Empty;
|
||||
public string LoginPassword { get; set; } = string.Empty;
|
||||
public string PasswordSalt { get; set; } = string.Empty;
|
||||
public long PropertyID { get; set; }
|
||||
public long MemberID { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class UserResponseModel
|
||||
{
|
||||
[Key]
|
||||
public Int64 UserID { get; set; }
|
||||
public string UserName { get; set; } = string.Empty;
|
||||
public int Status { get; set; }
|
||||
public string StatusMessage { get; set; } = string.Empty;
|
||||
}
|
||||
|
||||
|
||||
public class UserRequestModel
|
||||
{
|
||||
public Int32? UserID { get; set; }
|
||||
public string UserName { get; set; } = string.Empty;
|
||||
public string LoginName { get; set; } = string.Empty;
|
||||
public string LoginPassword { get; set; } = string.Empty;
|
||||
public string UserRole { get; set; } = string.Empty;
|
||||
public int UserRoleID { get; set; }
|
||||
public int PropertyID { get; set; }
|
||||
public Int32 MemberID { get; set; }
|
||||
|
||||
}
|
||||
public class UserMemberMappingModel
|
||||
{
|
||||
public Int32? UserID { get; set; }
|
||||
public Int32 MemberID { get; set; }
|
||||
}
|
||||
public class UserTokensHistory
|
||||
{
|
||||
[Key]
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public Int32 UserTokenID { get; set; }
|
||||
public long? UserID { get; set; }
|
||||
public long? UserRoleID { get; set; }
|
||||
public long? PropertyID { get; set; }
|
||||
public string? RefreshToken { get; set; }
|
||||
public DateTime? TokenExpires { get; set; }
|
||||
public DateTime? TokenCreated { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class RefreshToken
|
||||
{
|
||||
public string Token { get; set; } = string.Empty;
|
||||
public DateTime Created { get; set; } = DateTime.Now;
|
||||
public DateTime Expires { get; set; }
|
||||
public int UserID { get; set; }
|
||||
public string UserName { get; set; } = string.Empty;
|
||||
public int PropertyID { get; set; }
|
||||
public int MemberID { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user