EchoTex_Payroll/HRM.BO/Assets/AssetSerial.cs

134 lines
4.3 KiB
C#
Raw Normal View History

2024-10-14 10:01:49 +06:00
using Ease.Core.DataAccess;
using System;
using System.Collections.Generic;
using System.Data;
namespace HRM.BO
{
#region AssetSerial
#region Asset Serial Classes
public class AssetSerial : BasicBaseObject
{
#region Constructor
public AssetSerial()
{
SerialNo = string.Empty;
Remarks = string.Empty;
StartIndex = 0;
this.FaultybyEmpID = null;
}
#endregion Constructor
#region Properties
public int AssetId { get; set; }
public string SerialNo { get; set; }
public DateTime ReceivedDate { get; set; }
public string ReceivedDateString { get; set; }
public int? VendorId { get; set; }
public int? StoreId { get; set; }
public string Specification { get; set; }
public string UniqueIndentifier { get; set; }
public double? Price { get; set; }
public int? ExpiryDays { get; set; }
public string BatchNo { get; set; }
public string Remarks { get; set; }
public EnumAssetStatus AssetStatus { get; set; }
public string AssetStatusString { get; set; }
public EnumAssetReceiverType AssetReceiverType { get; set; }
public int? AssetReceiverId { get; set; }
public DateTime AssignDate { get; set; }
public bool isNewAssetTran { get; set; }
public int StartIndex { get; set; }
public DateTime? RepairedDate { get; set; }
public string VendorName { get; set; }
public double Amount { get; set; }
public bool? IsTemporaryItem { get; set; }
public DateTime? TillDate { get; set; }
public DateTime? TranDate { get; set; }
public string EmployeeNo { get; set; }
public string TempStatus { get; set; }
public string AssignDateString { get; set; }
public string Vendor { get; set; }
public string Store { get; set; }
public int EmployeeId { get; set; }
public int? FaultybyEmpID { get; set; }
public string EmployeeName { get; set; }
public string Designation { get; set; }
public string AssetName { get; set; }
}
#endregion Properties
public class UploadAssetSerial : BasicBaseObject
{
#region Constructor
public UploadAssetSerial()
{
}
#endregion Constructor
#region Properties
public string RowNo { get; set; }
public string ItemCategory { get; set; }
public string SubCategory { get; set; }
public string AssetCode { get; set; }
public string AssetName { get; set; }
public string Specification { get; set; }
public string UniqueId { get; set; }
public string EmpId { get; set; }
public string DeptCode { get; set; }
public string SerialNo { get; set; }
public string Store { get; set; }
public string Vendor { get; set; }
public string LocationCode { get; set; }
public string AssignDate { get; set; }
public int AssetId { get; set; }
public double? Price { get; set; }
#endregion Properties
}
#endregion Asset Serial Classes
#region IAssetSerialService
public interface IAssetSerialService
{
AssetSerial Get(int id);
List<AssetSerial> Get();
int Save(AssetSerial item);
void Delete(int id);
List<AssetSerial> SaveAssetSerialList(List<AssetSerial> Items);
List<AssetSerial> GetAssetSerials(DateTime? fromDate, DateTime? toDate, int assetid, int vendorid, int storid, EnumAssetStatus? status, EnumAssetReceiverType? receiverType, string receiverIds);
List<AssetSerial> GetAssetSerialPicker(int assetid, int categoryid, EnumAssetStatus? status);
AssetSerial GetLastAssetSerial(int assetId);
List<AssetSerial> GetReceivedAssetSerials(DateTime? receiveDate, EnumAssetReceiverType? receiverType, int receiverId);
List<AssetSerial> GetRepairedAssetSerials();
List<AssetSerial> GetAssignSerialsByEmployeeId(EnumAssetReceiverType? receiverType, int receiverId);
DataSet GetFormData(int serialId);
List<AssetSerial> SaveAssetSerialList(TransactionContext tc, List<AssetSerial> Items);
}
#endregion IAssetSerialService
#endregion AssetSerial
}