1. 更新法會活動品項中的牌位陽上與超度人數限制功能

This commit is contained in:
2026-05-04 13:44:16 +08:00
parent 11a8c3e932
commit 29f2902119
3 changed files with 10 additions and 9 deletions
-8
View File
@@ -502,15 +502,12 @@ public partial class admin_follower_reg : MyWeb.config
{
if (!isStrNull(pro_order.order_no))
{
Debug.WriteLine(pro_order.order_no);
_db.pro_order.Add(pro_order);
_db.SaveChanges();
// 報名品項(最近一次訂單內容)
if (latestOrder != null)
{
Debug.WriteLine("上次的單號 ", latestOrder.order_no);
var last_order_details = _db.pro_order_detail.Where(o => o.order_no == latestOrder.order_no).ToList();
foreach (var last_order_detail in last_order_details)
{
@@ -564,7 +561,6 @@ public partial class admin_follower_reg : MyWeb.config
if (!string.IsNullOrEmpty(hid_delete_order_list.Value))
{
var ids = hid_delete_order_list.Value.TrimEnd(',').Split(',');
Debug.WriteLine(ids);
var prod = _db.pro_order.Where(q => ids.Contains(q.order_no)).ToList();
if (prod.Count() > 0)
{
@@ -616,7 +612,6 @@ public partial class admin_follower_reg : MyWeb.config
if (!string.IsNullOrEmpty(hid_delete_order_list.Value))
{
var ids = hid_delete_order_list.Value.TrimEnd(',').Split(',');
Debug.WriteLine(ids);
var prod = _db.pro_order.Where(q => ids.Contains(q.order_no)).ToList();
if (prod.Count() > 0)
{
@@ -693,15 +688,12 @@ public partial class admin_follower_reg : MyWeb.config
{
if (!isStrNull(pro_order.order_no))
{
Debug.WriteLine(pro_order.order_no);
_db.pro_order.Add(pro_order);
_db.SaveChanges();
// 報名品項(最近一次訂單內容)
if (latestOrder != null)
{
Debug.WriteLine("上次的單號 ", latestOrder.order_no);
var last_order_details = _db.pro_order_detail.Where(o => o.order_no == latestOrder.order_no).ToList();
foreach (var last_order_detail in last_order_details)
{