diff --git a/BackEnd/api/userList.ashx.cs b/BackEnd/api/userList.ashx.cs index 30c9f1b..191896f 100644 --- a/BackEnd/api/userList.ashx.cs +++ b/BackEnd/api/userList.ashx.cs @@ -92,12 +92,13 @@ namespace abbott_2024_event.BackEnd.api filiterString += " and babyRec_months >= " + (int.Parse(min_age) * 12).ToString() + " and babyRec_months <= " + (int.Parse(max_age) * 12).ToString(); - List babyDataRecViews = conn.Query("select distinct line_uid, line_displayname from babyDataRecView " + filiterString + " ").ToList(); + List babyDataRecViews = conn.Query("select distinct line_uid, line_displayname, line_phone from babyDataRecView " + filiterString + " ").ToList(); foreach (babyDataRecView view in babyDataRecViews) { userData userData = new userData(); userData.line_uid = view.line_uid; userData.line_displayName = view.line_displayName; + userData.line_phone = view.line_phone; List subViews = conn.Query("select * from babyDataRecView " + filiterString + " and line_uid = @line_uid ", new { line_uid = view.line_uid }).ToList(); diff --git a/bin/abbott_2024_event.dll b/bin/abbott_2024_event.dll index 7657fe3..80cb1d7 100644 Binary files a/bin/abbott_2024_event.dll and b/bin/abbott_2024_event.dll differ diff --git a/bin/app.publish/BackEnd/assets/javascript/custom/userList.js b/bin/app.publish/BackEnd/assets/javascript/custom/userList.js index 2f0f660..f3a27bb 100644 --- a/bin/app.publish/BackEnd/assets/javascript/custom/userList.js +++ b/bin/app.publish/BackEnd/assets/javascript/custom/userList.js @@ -120,7 +120,7 @@ function buttonClick(obj) { data: formData, success: function (data, textStatus, jqXHR) { if (data.ret == "yes") { - $('#LineTitle').val("Line 名稱:" + data.user.line_displayName + ", Line Uid:" + data.user.line_uid); + $('#LineTitle').val("Line 名稱:" + data.user.line_displayName + ", Line Uid:" + data.user.line_uid + ", 電話:" + data.user.line_phone); $("#baby_select option").remove(); @@ -242,13 +242,14 @@ function loadDataTable() { columns: [ { data: 'line_displayName', className: 'align-middle text-left', orderable: true, searchable: true }, { data: 'line_uid', className: 'align-middle text-left', orderable: false, searchable: true }, + { data: 'line_phone', className: 'align-middle text-left', orderable: false, searchable: true }, { data: 'testdate', className: 'align-top text-center', orderable: false, searchable: false, visible: false }, { data: 'line_uid', className: 'align-middle text-left', orderable: false, searchable: false }, { data: 'line_uid', className: 'align-middle text-center', orderable: false, searchable: false } ], columnDefs: [ { - targets: 3, + targets: 4, className: 'align-middle text-left', orderable: false, searchable: true, @@ -338,7 +339,7 @@ function loadDataTable() { } }, { - targets: 4, + targets: 5, orderable: false, searchable: false, render: function render(data, type, row, meta) { diff --git a/bin/app.publish/BackEnd/userList.aspx b/bin/app.publish/BackEnd/userList.aspx index ec33a27..8a0aa74 100644 --- a/bin/app.publish/BackEnd/userList.aspx +++ b/bin/app.publish/BackEnd/userList.aspx @@ -33,7 +33,7 @@
-
+
@@ -81,11 +81,11 @@
-
+
-
+
@@ -101,6 +101,7 @@ Line名稱 Line UID + 電話 測驗日期 寶寶資料   @@ -192,5 +193,5 @@ - + diff --git a/bin/app.publish/Line/Index.html b/bin/app.publish/Line/Index.html index 408e098..1059949 100644 --- a/bin/app.publish/Line/Index.html +++ b/bin/app.publish/Line/Index.html @@ -11,16 +11,16 @@ + - - - + @@ -38,6 +38,16 @@
+
+
+ +
+
+
+
+ +
+
@@ -58,16 +68,89 @@ + @@ -59,9 +60,57 @@ //vConsole.destroy(); \ No newline at end of file diff --git a/bin/app.publish/bin/abbott_2024_event.dll b/bin/app.publish/bin/abbott_2024_event.dll index 71f4705..80cb1d7 100644 Binary files a/bin/app.publish/bin/abbott_2024_event.dll and b/bin/app.publish/bin/abbott_2024_event.dll differ diff --git a/webapi/lineLogin.ashx.cs b/webapi/lineLogin.ashx.cs index c07a496..3fca355 100644 --- a/webapi/lineLogin.ashx.cs +++ b/webapi/lineLogin.ashx.cs @@ -31,7 +31,7 @@ namespace abbott_2024_event.webapi { objRet.ret = "no"; objRet.err_code = "2001"; - objRet.message = "line_uid或line_displayname為空字串!"; + objRet.message = "line_uid為空字串!"; json.WriteObject(context.Response.OutputStream, objRet); return; } @@ -39,12 +39,21 @@ namespace abbott_2024_event.webapi if (line_displayName == "") { objRet.ret = "no"; - objRet.err_code = "1005"; + objRet.err_code = "2002"; objRet.message = "line_displayname為空字串!"; json.WriteObject(context.Response.OutputStream, objRet); return; } + if (line_phone == "") + { + objRet.ret = "no"; + objRet.err_code = "2003"; + objRet.message = "line_phone為空字串!"; + json.WriteObject(context.Response.OutputStream, objRet); + return; + } + lineUser lineUser = conn.QueryFirstOrDefault("select * from lineUser where line_uid = @line_uid", new { line_uid = line_uid }); if (lineUser == null)