From 1a1c8e71fcd14858f595029f089b2d4a00202b32 Mon Sep 17 00:00:00 2001
From: ogi <Administrator@S-OGI-PC>
Date: Fri, 05 Dec 2025 09:24:16 +0900
Subject: [PATCH] プロジェクトファイルを追加。

---
 HotelPms.Client.Blazor/Models/EditRow.cs |   89 ++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 89 insertions(+), 0 deletions(-)

diff --git a/HotelPms.Client.Blazor/Models/EditRow.cs b/HotelPms.Client.Blazor/Models/EditRow.cs
new file mode 100644
index 0000000..ae78996
--- /dev/null
+++ b/HotelPms.Client.Blazor/Models/EditRow.cs
@@ -0,0 +1,89 @@
+using HotelPms.Client.Blazor.ViewModel;
+using HotelPms.Share.Util;
+using System.Text.Json.Serialization;
+using static HotelPms.Client.Blazor.Models.RoomTypeInputRow;
+
+namespace HotelPms.Client.Blazor.Models
+{
+    public abstract class EditRow : IDisposable
+    {
+        #region  ★★★★★ Property ★★★★★
+
+        /// <summary>
+        /// Guid
+        /// </summary>
+        public string ID { get; set; } = string.Empty;
+
+        /// <summary>
+        /// 行の対象項目情報
+        /// </summary>
+        [JsonIgnore(Condition = JsonIgnoreCondition.Always)]
+        public List<ValidField> Cells { get; set; } = new List<ValidField>();
+
+        /// <summary>
+        /// 現在使っている列
+        /// </summary>
+        public int ActiveCol { get; set; } = 0;
+
+        /// <summary>
+        /// 列の明細を展開かどうか
+        /// </summary>
+        public bool ShowDetails { get; set; } = false;
+
+        #endregion
+
+        #region  ★★★★★ Class Event ★★★★★
+
+        public EditRow()
+        {
+            ID = Guid.NewGuid().ToString();
+        }
+
+        // Disposable types implement a finalizer.
+        ~EditRow()
+        {
+            Dispose(false);
+        }
+
+        protected virtual void Dispose(bool disposing)
+        {
+            if (disposing)
+            {
+                // Dispose managed resources
+            }
+
+            // Free native resources
+        }
+
+        public void Dispose()
+        {
+            Dispose(true);
+            GC.SuppressFinalize(this);
+        }
+
+        #endregion
+
+
+        /// <summary>
+        /// データ返す
+        /// </summary>
+        /// <param name="index"></param>
+        /// <returns></returns>
+        public string GetCellText(int index)
+        {
+            return Cells[index].Text;
+        }
+
+        public void SetCellText(int index, string text)
+        {
+            Cells[index].Text = text;
+        }
+
+        /// <summary>
+        /// 値変更あり
+        /// </summary>
+        /// <param name="inputText"></param>
+        /// <returns></returns>
+        public abstract bool IsValueChanged(int index, string inputText);
+    }
+}

--
Gitblit v1.10.0