using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace FMDAL.DTO.ScanZone { // Confirmed against DB/Migrations/20260719_RAM_Phase2_Schema_SqlServer.sql (this session's own // MSCANZONE design, same migration as MASSETLEDGER/MASSETACTIVITY siblings). Supports true // updates (STATUS/VERSION present) — unlike MASSETACTIVITY. PARTYBRANCHLOCATIONID is nullable // for external zones (vendor/partner premises) — TXPOWERDBM/RSSIMINIMUM are optional RFID // reader tuning columns. public class ScanZoneDTO { #region PrivateMembers #region ScanZone private int scanzoneid; //Id private string zonecode; //Code private string zonename; //Name #region PartyBranchLocation private int? partybranchlocationid; //Id — null for external zones private string partybranchlocationcode; //Code private string partybranchlocationname; //Name #endregion private byte defaultscanintent = 2; //(0.IDENTIFY,1.VERIFY,2.TRANSACT,3.AUDIT) private Int16? txpowerdbm; //RFID reader TX power; lower = shorter range private Int16? rssiminimum; //ignore reads below this signal strength private byte requireconfirm = 1; //(0.YES,1.NO) — forces operator review of bulk scan #endregion #region Standard private Int16 sortorder = 9999; //SortOrder private byte status = 1; //Status private Int16 version; //Version #endregion #region Base private int createdbyid; //CreatedById private DateTime createdon; //CreatedOn private int modifiedbyid; //ModifiedById private DateTime modifiedon; //ModifiedOn #endregion private byte sourcetype = 5; //SourceType private int ouid; //OUId private int tenantid = -1; //TenantId #endregion #region PublicMembers #region ScanZone public int ScanZoneId { get { return scanzoneid; } //Id set { scanzoneid = value; } //Id } public string ZoneCode { get { return zonecode; } //Code set { zonecode = value; } //Code } public string ZoneName { get { return zonename; } //Name set { zonename = value; } //Name } #region PartyBranchLocation public int? PartyBranchLocationId { get { return partybranchlocationid; } //Id set { partybranchlocationid = value; } //Id } public string PartyBranchLocationCode { get { return partybranchlocationcode; } //Code set { partybranchlocationcode = value; } //Code } public string PartyBranchLocationName { get { return partybranchlocationname; } //Name set { partybranchlocationname = value; } //Name } #endregion public byte DefaultScanIntent { get { return defaultscanintent; } set { defaultscanintent = value; } } public Int16? TxPowerDbm { get { return txpowerdbm; } set { txpowerdbm = value; } } public Int16? RssiMinimum { get { return rssiminimum; } set { rssiminimum = value; } } public byte RequireConfirm { get { return requireconfirm; } set { requireconfirm = value; } } #endregion #region Standard public Int16 SortOrder { get { return sortorder; } //SortOrder set { sortorder = value; } //SortOrder } public byte Status { get { return status; } //Status set { status = value; } //Status } public Int16 Version { get { return version; } //Version set { version = value; } //Version } #endregion #region Base public int CreatedById { get { return createdbyid; } //CreatedById set { createdbyid = value; } //CreatedById } public DateTime CreatedOn { get { return createdon; } //CreatedOn set { createdon = value; } //CreatedOn } public int ModifiedById { get { return modifiedbyid; } //ModifiedById set { modifiedbyid = value; } //ModifiedById } public DateTime ModifiedOn { get { return modifiedon; } //ModifiedOn set { modifiedon = value; } //ModifiedOn } #endregion public byte SourceType { get { return sourcetype; } set { sourcetype = value; } } public int OUId { get { return ouid; } set { ouid = value; } } public int TenantId { get { return tenantid; } set { tenantid = value; } } #endregion } }