0.1 #4
@@ -522,6 +522,10 @@ public class orderController : ApiController
|
||||
text = ar.actItem.subject,
|
||||
val = ar.actItem_num,
|
||||
},
|
||||
has_yang_limit = ar.has_yang_limit ?? false,
|
||||
has_chao_limit = ar.has_chao_limit ?? false,
|
||||
yang_limit_count = ar.yang_limit_count ?? 0,
|
||||
chao_limit_count = ar.chao_limit_count ?? 0,
|
||||
parent_num = q.num,
|
||||
f_num_selected = new
|
||||
{
|
||||
@@ -602,6 +606,10 @@ public class orderController : ApiController
|
||||
text = x.actItem.subject,
|
||||
val = x.actItem.num,
|
||||
},
|
||||
has_yang_limit = x.has_yang_limit,
|
||||
has_chao_limit = x.has_chao_limit,
|
||||
yang_limit_count = x.yang_limit_count,
|
||||
chao_limit_count = x.chao_limit_count,
|
||||
f_num_selected = new
|
||||
{
|
||||
text = "",
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -842,6 +842,7 @@
|
||||
this.tablet_edit.show = true;
|
||||
// 立即恢復數據
|
||||
this.editedItem = $.extend(true, {}, currentData);
|
||||
console.log(this.editItem);
|
||||
} catch (error) {
|
||||
console.error('Error in editTablet:', error);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user