diff --git a/web/admin/follower/print.aspx.cs b/web/admin/follower/print.aspx.cs
index 939d7ba..c4e7728 100644
--- a/web/admin/follower/print.aspx.cs
+++ b/web/admin/follower/print.aspx.cs
@@ -3,6 +3,7 @@ using DocumentFormat.OpenXml.Vml.Office;
using OfficeOpenXml.FormulaParsing.Excel.Functions.Information;
using System;
using System.Collections.Generic;
+using System.Diagnostics;
using System.Linq;
using System.Web;
using System.Web.UI;
@@ -26,7 +27,7 @@ public partial class admin_follower_print_ : System.Web.UI.Page
//紀錄匯出條件
string _query = "";
var qry = _db.followers.AsQueryable();
-
+
// ❌ 錯誤寫法: qry = qry.Where(o => o.f_number.Contains(Request["f_number"].Trim()));
// LINQ to Entities 無法轉換 Request[] 方法,必須先轉換為變數再使用
string fNumberParam = Request["f_number"]?.Trim();
@@ -85,7 +86,7 @@ public partial class admin_follower_print_ : System.Web.UI.Page
}
_query += "國家:" + (_db.countries.Where(x => x.ID == country2Id).Select(x => x.name_zh).FirstOrDefault() ?? "") + "\n";
}
-
+
//管理報表
if (!string.IsNullOrEmpty(Request["year"]))
{
diff --git a/web/admin/follower/reg.aspx b/web/admin/follower/reg.aspx
index c1128ed..93d8e6e 100644
--- a/web/admin/follower/reg.aspx
+++ b/web/admin/follower/reg.aspx
@@ -190,7 +190,7 @@
text_prop: 'name_zh',
value_prop: 'id',
keys: [
- { id: 'keyword', title: '關鍵字' },
+ { id: 'keyword', title: '關鍵字' },
],
api_url: HTTP_HOST + 'api/country/GetList',
columns: [
@@ -208,11 +208,11 @@
title: '稱謂',
text_prop: 'title',
value_prop: 'num',
- keys: [
+ keys: [
],
api_url: HTTP_HOST + 'api/appellation/GetList',
columns: [
- { id: 'title', title: '稱謂' },
+ { id: 'title', title: '稱謂' },
],
selected: {},
select(item, index, t) {
@@ -230,7 +230,7 @@
{ id: 'f_number', title: '編號' },
{ id: 'u_name', title: '姓名' },
{ id: 'address', title: '地址' },
- { id: 'onlyfamily', title: '只查親屬'},
+ { id: 'onlyfamily', title: '只查親屬' },
],
api_url: HTTP_HOST + 'api/follower/GetList',
columns: [
@@ -241,7 +241,7 @@
selected: {},
select(item, index, t) {
console.log("select search5", t);
-
+
}
},
},
@@ -314,10 +314,10 @@
birthday: '',
phoneDes: '',
demo: '',
- appellation_id_selected :
+ appellation_id_selected:
{
- text : '',
- val : 0,
+ text: '',
+ val: 0,
},
},
@@ -372,33 +372,33 @@
],
tabletsDetail: { multiSort: false },
tabletTable: {
- Loading:true,
+ Loading: true,
disableButton: true,
searchDetail: '',
headersDetail: [
- { text: '超渡/陽上', value: 'type', sortable: false, width: "100px" },
- { text: '* 牌位標題', value: 'title', sortable: true },
+ { text: '超渡/陽上', value: 'type', sortable: false, width: "100px" },
+ { text: '* 牌位標題', value: 'title', sortable: true },
{ text: '', value: 'actions', sortable: false, width: "100px" },
- ],
+ ],
desserts: [],
desserts_count: 0,
editedIndex: -1,
editedItem: {
id: 0,
- num: 0,
- f_num: 0,
- title: '',
+ num: 0,
+ f_num: 0,
+ title: '',
},
defaultItem: {
id: 0,
- num: 0,
- f_num: 0,
+ num: 0,
+ f_num: 0,
type: this.selectedTabletType,
- title:'',
+ title: '',
},
},
//新:家人
- family:{
+ family: {
dialog: false,
isEditing: false,
is_tw: true,
@@ -420,8 +420,8 @@
chinese_year: "",
zodiac: "",
birth_time: "",
- city:"",
- area:"",
+ city: "",
+ area: "",
address: "",
phone: "",
mobile: "",
@@ -440,8 +440,8 @@
chinese_year: "",
zodiac: "",
birth_time: "",
- city:"",
- area:"",
+ city: "",
+ area: "",
address: "",
phone: "",
mobile: "",
@@ -458,11 +458,11 @@
areaOptions: {}, // 區域選項
//天干地支:甲子, 乙丑...
chineseYears: [
- '甲子', '乙丑', '丙寅', '丁卯', '戊辰', '己巳', '庚午', '辛未', '壬申', '癸酉',
- '甲戌', '乙亥', '丙子', '丁丑', '戊寅', '己卯', '庚辰', '辛巳', '壬午', '癸未',
- '甲申', '乙酉', '丙戌', '丁亥', '戊子', '己丑', '庚寅', '辛卯', '壬辰', '癸巳',
- '甲午', '乙未', '丙申', '丁酉', '戊戌', '己亥', '庚子', '辛丑', '壬寅', '癸卯',
- '甲辰', '乙巳', '丙午', '丁未', '戊申', '己酉', '庚戌', '辛亥', '壬子', '癸丑',
+ '甲子', '乙丑', '丙寅', '丁卯', '戊辰', '己巳', '庚午', '辛未', '壬申', '癸酉',
+ '甲戌', '乙亥', '丙子', '丁丑', '戊寅', '己卯', '庚辰', '辛巳', '壬午', '癸未',
+ '甲申', '乙酉', '丙戌', '丁亥', '戊子', '己丑', '庚寅', '辛卯', '壬辰', '癸巳',
+ '甲午', '乙未', '丙申', '丁酉', '戊戌', '己亥', '庚子', '辛丑', '壬寅', '癸卯',
+ '甲辰', '乙巳', '丙午', '丁未', '戊申', '己酉', '庚戌', '辛亥', '壬子', '癸丑',
'甲寅', '乙卯', '丙辰', '丁巳', '戊午', '己未', '庚申', '辛酉', '壬戌', '癸亥'
],
//生肖
@@ -585,7 +585,7 @@
this.search_dialog.list = response.data.list
this.search_dialog.count = response.data.count
this.search_dialog.loading = false
-
+ console.log(this.search_dialog.list)
})
.catch(error => {
console.log(error)
@@ -1332,7 +1332,7 @@
-
+
diff --git a/web/admin/follower/reg.aspx.cs b/web/admin/follower/reg.aspx.cs
index a3be434..d0e2c4d 100644
--- a/web/admin/follower/reg.aspx.cs
+++ b/web/admin/follower/reg.aspx.cs
@@ -1,34 +1,44 @@
-using System;
+using Model;
+using Newtonsoft.Json;
+using System;
using System.Collections;
using System.Collections.Generic;
+using System.Configuration;
using System.Data;
+using System.Data.Entity;
using System.Data.OleDb;
+using System.Diagnostics;
+using System.Globalization;
+using System.IO;
+using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
-using System.Configuration;
-using System.IO;
-using System.Linq;
-using System.Globalization;
-using Model;
public partial class admin_follower_reg : MyWeb.config
{
private Model.ezEntities _db = new Model.ezEntities();
public ArrayList _tmp = new ArrayList();
+ public bool isDataChanged = false;
+ public bool isAutoNumbering = ConfigurationManager.AppSettings["IsAutoNumbering"].ToString() == "true" ? true : false;
protected void Page_Load(object sender, EventArgs e)
{
CallAjax();
if (!IsPostBack)
- {
+ {
InitEnumsOptions