From aa5941a32481cb9ecfeaaa27c4fd785caa813ddc Mon Sep 17 00:00:00 2001 From: enchiaaa Date: Thu, 9 Apr 2026 17:37:00 +0800 Subject: [PATCH 1/2] =?UTF-8?q?1.=20=E5=8A=A0=E4=B8=8A=E8=BF=94=E5=9B=9E?= =?UTF-8?q?=E9=8D=B5=202.=20=E4=BF=AE=E6=94=B9=E5=A0=B1=E5=90=8D=E8=A8=98?= =?UTF-8?q?=E9=8C=84=E4=B8=AD=E7=9A=84=E6=B4=BB=E5=8B=95=E9=96=8B=E5=A7=8B?= =?UTF-8?q?=E7=B5=90=E6=9D=9F=E6=99=82=E9=96=93=203.=20=E4=BF=AE=E6=AD=A3?= =?UTF-8?q?=E5=88=97=E5=8D=B0=E5=95=8F=E9=A1=8C=204.=20=E4=BF=A1=E7=9C=BE?= =?UTF-8?q?=E8=B3=87=E6=96=99=E5=8F=8A=E5=A0=B1=E5=90=8D=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E8=B5=B7=E5=A7=8B=E4=B8=8D=E6=9C=83=E5=87=BA=E7=8F=BE=E8=B3=87?= =?UTF-8?q?=E6=96=99=205.=20=E4=BF=A1=E7=9C=BE=E4=B8=8D=E5=BE=97=E9=87=8D?= =?UTF-8?q?=E8=A4=87=E5=A0=B1=E5=90=8D=E7=9B=B8=E5=90=8C=E6=B4=BB=E5=8B=95?= =?UTF-8?q?=206.=20=E4=BF=A1=E7=9C=BE=E8=B3=87=E6=96=99=E7=9A=84=20cache?= =?UTF-8?q?=EF=BC=88=E5=90=AB=E7=B5=90=E6=9E=9C=E8=88=87=E6=90=9C=E5=B0=8B?= =?UTF-8?q?=E6=A2=9D=E4=BB=B6=EF=BC=89=207.=20=E4=BF=AE=E5=BE=A9=E4=BF=A1?= =?UTF-8?q?=E7=9C=BE=E3=80=81=E6=B4=BB=E5=8B=95=E3=80=81=E5=93=81=E9=A0=85?= =?UTF-8?q?=E5=88=AA=E9=99=A4=E5=8A=9F=E8=83=BD=208.=20=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E8=87=AA=E8=A8=82=E6=98=AF=E5=90=A6=E8=87=AA=E5=8B=95=E7=B7=A8?= =?UTF-8?q?=E8=99=9F=209.=20=E5=84=AA=E5=8C=96=E4=BF=A1=E7=9C=BE=E8=B3=87?= =?UTF-8?q?=E6=96=99=E9=A0=81=E9=9D=A2=EF=BC=88=E5=BD=88=E5=87=BA=E6=9F=A5?= =?UTF-8?q?=E8=A9=A2=E9=A0=81=E9=9D=A2=E3=80=81=E9=A1=AF=E7=A4=BA=E5=89=9B?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E8=B3=87=E6=96=99=EF=BC=89=2010.=20=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E7=AE=A1=E7=90=86=E8=A1=A8=E5=96=AE=E5=8C=AF=E5=87=BA?= =?UTF-8?q?=20excel=20=E5=8A=9F=E8=83=BD=2011.=20=E7=84=A1=E6=9F=A5?= =?UTF-8?q?=E8=A9=A2=E8=B3=87=E6=96=99=E6=99=82=E4=B8=8D=E5=8F=AF=E9=BB=9E?= =?UTF-8?q?=E9=81=B8=E5=8C=AF=E5=87=BA=EF=BC=8F=E5=88=97=E5=8D=B0=E6=8C=89?= =?UTF-8?q?=E9=88=95=2012.=20=E5=8C=AF=E5=87=BA=EF=BC=8F=E5=88=97=E5=8D=B0?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E5=A0=B1=E8=A1=A8=E6=99=82=EF=BC=8C=E8=8B=A5?= =?UTF-8?q?=E7=84=A1=E8=B3=87=E6=96=99=E5=89=87=E9=A1=AF=E7=A4=BA=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=2013.=20=E6=96=B0=E5=A2=9E=E4=BF=A1=E7=9C=BE=E8=B3=87?= =?UTF-8?q?=E6=96=99=E6=99=82=EF=BC=8C=E5=8A=A0=E5=85=A5=E6=97=A5=E6=9C=9F?= =?UTF-8?q?=E9=A0=90=E8=A8=AD=E7=82=BA=E4=BB=8A=E6=97=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/App_Code/Model/Model.Context.cs | 76 ++-- web/App_Code/Model/Model.Designer.cs | 2 +- web/App_Code/Model/Model.cs | 354 +++++++-------- web/App_Code/Model/Model.edmx.diagram | 2 +- web/App_Code/admin.cs | 2 +- web/App_Code/api/FollowerController.cs | 21 +- web/App_Code/api/activityController.cs | 36 +- web/App_Code/api/orderController.cs | 19 +- web/admin/Templates/TBS5ADM001/uc/menu.ascx | 1 + web/admin/follower/import.aspx.cs | 2 +- web/admin/follower/index.aspx | 180 +++++++- web/admin/follower/index.aspx.cs | 479 ++++++++++++-------- web/admin/follower/order_record.aspx | 1 + web/admin/follower/order_record_detail.aspx | 9 +- web/admin/follower/print.aspx.cs | 5 +- web/admin/follower/reg.aspx | 60 +-- web/admin/follower/reg.aspx.cs | 104 ++++- web/admin/menu.ascx | 2 +- web/admin/order/index.aspx | 15 +- web/admin/order/reg.aspx | 8 +- web/admin/order/reg.aspx.cs | 35 +- web/web.config | 6 +- 22 files changed, 890 insertions(+), 529 deletions(-) diff --git a/web/App_Code/Model/Model.Context.cs b/web/App_Code/Model/Model.Context.cs index d4d20be..0e8b938 100644 --- a/web/App_Code/Model/Model.Context.cs +++ b/web/App_Code/Model/Model.Context.cs @@ -1,9 +1,9 @@ -//------------------------------------------------------------------------------ +//------------------------------------------------------------------------------ // -// 這個程式碼是由範本產生。 +// oӵ{XOѽd͡C // -// 對這個檔案進行手動變更可能導致您的應用程式產生未預期的行為。 -// 如果重新產生程式碼,將會覆寫對這個檔案的手動變更。 +// oɮ׶iܧiɭPzε{ͥw欰C +// pGs͵{XAN|мgoɮתܧC // //------------------------------------------------------------------------------ @@ -14,19 +14,19 @@ namespace Model using System.Data.Entity.Infrastructure; using System.Data.Entity.Core.Objects; using System.Linq; - + public partial class ezEntities : DbContext { public ezEntities() : base("name=ezEntities") { } - + protected override void OnModelCreating(DbModelBuilder modelBuilder) { throw new UnintentionalCodeFirstException(); } - + public virtual DbSet accountings { get; set; } public virtual DbSet accounting_files { get; set; } public virtual DbSet accounting_kind { get; set; } @@ -94,134 +94,134 @@ namespace Model public virtual DbSet AncestralTabletRegistrant { get; set; } public virtual DbSet AncestralTabletStatus { get; set; } public virtual DbSet GuaDanOrderGuest { get; set; } - + public virtual int pager_eztrust(Nullable startRowIndex, Nullable pageSize, string tableName, string columnName, string sqlWhere, string orderBy, ObjectParameter rowCount) { var startRowIndexParameter = startRowIndex.HasValue ? new ObjectParameter("StartRowIndex", startRowIndex) : new ObjectParameter("StartRowIndex", typeof(int)); - + var pageSizeParameter = pageSize.HasValue ? new ObjectParameter("PageSize", pageSize) : new ObjectParameter("PageSize", typeof(int)); - + var tableNameParameter = tableName != null ? new ObjectParameter("tableName", tableName) : new ObjectParameter("tableName", typeof(string)); - + var columnNameParameter = columnName != null ? new ObjectParameter("columnName", columnName) : new ObjectParameter("columnName", typeof(string)); - + var sqlWhereParameter = sqlWhere != null ? new ObjectParameter("sqlWhere", sqlWhere) : new ObjectParameter("sqlWhere", typeof(string)); - + var orderByParameter = orderBy != null ? new ObjectParameter("orderBy", orderBy) : new ObjectParameter("orderBy", typeof(string)); - + return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("pager_eztrust", startRowIndexParameter, pageSizeParameter, tableNameParameter, columnNameParameter, sqlWhereParameter, orderByParameter, rowCount); } - + public virtual int sp_alterdiagram(string diagramname, Nullable owner_id, Nullable version, byte[] definition) { var diagramnameParameter = diagramname != null ? new ObjectParameter("diagramname", diagramname) : new ObjectParameter("diagramname", typeof(string)); - + var owner_idParameter = owner_id.HasValue ? new ObjectParameter("owner_id", owner_id) : new ObjectParameter("owner_id", typeof(int)); - + var versionParameter = version.HasValue ? new ObjectParameter("version", version) : new ObjectParameter("version", typeof(int)); - + var definitionParameter = definition != null ? new ObjectParameter("definition", definition) : new ObjectParameter("definition", typeof(byte[])); - + return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("sp_alterdiagram", diagramnameParameter, owner_idParameter, versionParameter, definitionParameter); } - + public virtual int sp_creatediagram(string diagramname, Nullable owner_id, Nullable version, byte[] definition) { var diagramnameParameter = diagramname != null ? new ObjectParameter("diagramname", diagramname) : new ObjectParameter("diagramname", typeof(string)); - + var owner_idParameter = owner_id.HasValue ? new ObjectParameter("owner_id", owner_id) : new ObjectParameter("owner_id", typeof(int)); - + var versionParameter = version.HasValue ? new ObjectParameter("version", version) : new ObjectParameter("version", typeof(int)); - + var definitionParameter = definition != null ? new ObjectParameter("definition", definition) : new ObjectParameter("definition", typeof(byte[])); - + return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("sp_creatediagram", diagramnameParameter, owner_idParameter, versionParameter, definitionParameter); } - + public virtual int sp_dropdiagram(string diagramname, Nullable owner_id) { var diagramnameParameter = diagramname != null ? new ObjectParameter("diagramname", diagramname) : new ObjectParameter("diagramname", typeof(string)); - + var owner_idParameter = owner_id.HasValue ? new ObjectParameter("owner_id", owner_id) : new ObjectParameter("owner_id", typeof(int)); - + return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("sp_dropdiagram", diagramnameParameter, owner_idParameter); } - + public virtual ObjectResult sp_helpdiagramdefinition(string diagramname, Nullable owner_id) { var diagramnameParameter = diagramname != null ? new ObjectParameter("diagramname", diagramname) : new ObjectParameter("diagramname", typeof(string)); - + var owner_idParameter = owner_id.HasValue ? new ObjectParameter("owner_id", owner_id) : new ObjectParameter("owner_id", typeof(int)); - + return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("sp_helpdiagramdefinition", diagramnameParameter, owner_idParameter); } - + public virtual ObjectResult sp_helpdiagrams(string diagramname, Nullable owner_id) { var diagramnameParameter = diagramname != null ? new ObjectParameter("diagramname", diagramname) : new ObjectParameter("diagramname", typeof(string)); - + var owner_idParameter = owner_id.HasValue ? new ObjectParameter("owner_id", owner_id) : new ObjectParameter("owner_id", typeof(int)); - + return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("sp_helpdiagrams", diagramnameParameter, owner_idParameter); } - + public virtual int sp_renamediagram(string diagramname, Nullable owner_id, string new_diagramname) { var diagramnameParameter = diagramname != null ? new ObjectParameter("diagramname", diagramname) : new ObjectParameter("diagramname", typeof(string)); - + var owner_idParameter = owner_id.HasValue ? new ObjectParameter("owner_id", owner_id) : new ObjectParameter("owner_id", typeof(int)); - + var new_diagramnameParameter = new_diagramname != null ? new ObjectParameter("new_diagramname", new_diagramname) : new ObjectParameter("new_diagramname", typeof(string)); - + return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("sp_renamediagram", diagramnameParameter, owner_idParameter, new_diagramnameParameter); } - + public virtual int sp_upgraddiagrams() { return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("sp_upgraddiagrams"); diff --git a/web/App_Code/Model/Model.Designer.cs b/web/App_Code/Model/Model.Designer.cs index dc691dc..b78332d 100644 --- a/web/App_Code/Model/Model.Designer.cs +++ b/web/App_Code/Model/Model.Designer.cs @@ -1,4 +1,4 @@ -// 已啟用模型 'D:\17168ERP\web\App_Code\Model\Model.edmx' 的 T4 程式碼產生。 +// 已啟用模型 'E:\17168ERP\web\App_Code\Model\Model.edmx' 的 T4 程式碼產生。 // 若要啟用舊版程式碼產生,請將 [程式碼產生策略] 設計工具屬性的值 //變更為 [舊版 ObjectContext]。當模型在設計工具中開啟時,這個屬性便可 //以在 [屬性] 視窗中使用。 diff --git a/web/App_Code/Model/Model.cs b/web/App_Code/Model/Model.cs index 1ca239e..05578ba 100644 --- a/web/App_Code/Model/Model.cs +++ b/web/App_Code/Model/Model.cs @@ -1,9 +1,9 @@ -//------------------------------------------------------------------------------ +//------------------------------------------------------------------------------ // -// 這個程式碼是由範本產生。 +// oӵ{XOѽd͡C // -// 對這個檔案進行手動變更可能導致您的應用程式產生未預期的行為。 -// 如果重新產生程式碼,將會覆寫對這個檔案的手動變更。 +// oɮ׶iܧiɭPzε{ͥw欰C +// pGs͵{XAN|мgoɮתܧC // //------------------------------------------------------------------------------ @@ -11,7 +11,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class accounting { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] @@ -20,7 +20,7 @@ namespace Model this.accounting_files = new HashSet(); this.transfer_register = new HashSet(); } - + public int num { get; set; } public Nullable uptime { get; set; } public Nullable category { get; set; } @@ -35,7 +35,7 @@ namespace Model public string excerpt { get; set; } public Nullable reg_time { get; set; } public Nullable pro_order_detail_num { get; set; } - + public virtual accounting_kind accounting_kind { get; set; } public virtual accounting_kind2 accounting_kind2 { get; set; } public virtual activity activity { get; set; } @@ -51,7 +51,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class accounting_files { public int num { get; set; } @@ -59,7 +59,7 @@ namespace Model public Nullable reg_time { get; set; } public string pic1 { get; set; } public string pic1_name { get; set; } - + public virtual accounting accounting { get; set; } } } @@ -67,7 +67,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class accounting_kind { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] @@ -75,14 +75,14 @@ namespace Model { this.accountings = new HashSet(); } - + public int num { get; set; } public string kind { get; set; } public Nullable root { get; set; } public Nullable range { get; set; } public string demo { get; set; } public string title { get; set; } - + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection accountings { get; set; } } @@ -91,7 +91,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class accounting_kind2 { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] @@ -101,7 +101,7 @@ namespace Model this.pro_order_record = new HashSet(); this.transfer_register = new HashSet(); } - + public int num { get; set; } public string kind { get; set; } public Nullable root { get; set; } @@ -112,7 +112,7 @@ namespace Model public string bank_code { get; set; } public string bank_id { get; set; } public string record_payment { get; set; } - + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection accountings { get; set; } [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] @@ -125,7 +125,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class act_bom { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] @@ -133,7 +133,7 @@ namespace Model { this.act_bom1 = new HashSet(); } - + public int num { get; set; } public Nullable package_num { get; set; } public Nullable item_num { get; set; } @@ -142,7 +142,7 @@ namespace Model public Nullable optional { get; set; } public Nullable qty { get; set; } public string memo { get; set; } - + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection act_bom1 { get; set; } public virtual act_bom act_bom2 { get; set; } @@ -153,7 +153,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class actItem { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] @@ -169,7 +169,7 @@ namespace Model this.act_bom = new HashSet(); this.transfer_register = new HashSet(); } - + public int num { get; set; } public string subject { get; set; } public Nullable kind { get; set; } @@ -184,7 +184,7 @@ namespace Model public string partno { get; set; } public string print_init { get; set; } public string is_reconcile { get; set; } - + public virtual actItem_kind actItem_kind { get; set; } [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection actItem_files { get; set; } @@ -210,14 +210,14 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class actItem_files { public int num { get; set; } public int actItem_num { get; set; } public int files_num { get; set; } public Nullable reg_time { get; set; } - + public virtual actItem actItem { get; set; } public virtual file file { get; set; } } @@ -226,7 +226,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class actItem_kind { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] @@ -234,14 +234,14 @@ namespace Model { this.actItems = new HashSet(); } - + public int num { get; set; } public string kind { get; set; } public Nullable root { get; set; } public Nullable range { get; set; } public string demo { get; set; } public string status { get; set; } - + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection actItems { get; set; } } @@ -250,7 +250,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class activity { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] @@ -265,7 +265,7 @@ namespace Model this.stocks = new HashSet(); this.transfer_register = new HashSet(); } - + public int num { get; set; } public Nullable kind { get; set; } public string subject { get; set; } @@ -284,7 +284,7 @@ namespace Model public string customize_data { get; set; } public Nullable category_kind { get; set; } public string print_init { get; set; } - + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection accountings { get; set; } public virtual activity_category_kind activity_category_kind { get; set; } @@ -309,7 +309,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class activity_category_kind { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] @@ -317,12 +317,12 @@ namespace Model { this.activities = new HashSet(); } - + public int num { get; set; } public string kind { get; set; } public Nullable root { get; set; } public Nullable range { get; set; } - + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection activities { get; set; } } @@ -331,7 +331,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class activity_check { public int num { get; set; } @@ -340,7 +340,7 @@ namespace Model public Nullable reg_time { get; set; } public Nullable status { get; set; } public Nullable qty { get; set; } - + public virtual activity activity { get; set; } public virtual follower follower { get; set; } } @@ -349,7 +349,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class activity_kind { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] @@ -358,7 +358,7 @@ namespace Model this.activities = new HashSet(); this.activity_kind_detail = new HashSet(); } - + public int num { get; set; } public string kind { get; set; } public Nullable root { get; set; } @@ -367,7 +367,7 @@ namespace Model public string calendar { get; set; } public Nullable month { get; set; } public Nullable day { get; set; } - + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection activities { get; set; } [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] @@ -378,7 +378,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class activity_kind_detail { public int num { get; set; } @@ -387,7 +387,7 @@ namespace Model public Nullable price { get; set; } public Nullable qty { get; set; } public Nullable reg_time { get; set; } - + public virtual actItem actItem { get; set; } public virtual activity_kind activity_kind { get; set; } } @@ -396,7 +396,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class activity_relating { public int num { get; set; } @@ -405,7 +405,7 @@ namespace Model public Nullable price { get; set; } public Nullable qty { get; set; } public Nullable reg_time { get; set; } - + public virtual actItem actItem { get; set; } public virtual activity activity { get; set; } } @@ -414,7 +414,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class activity_spares { public int num { get; set; } @@ -424,7 +424,7 @@ namespace Model public Nullable qty2 { get; set; } public string demo { get; set; } public Nullable reg_time { get; set; } - + public virtual actItem actItem { get; set; } public virtual activity activity { get; set; } } @@ -433,7 +433,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class admin { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] @@ -443,7 +443,7 @@ namespace Model this.news = new HashSet(); this.GuaDanOrder = new HashSet(); } - + public int num { get; set; } public string u_id { get; set; } public string u_password { get; set; } @@ -470,7 +470,7 @@ namespace Model public string wrp_bar { get; set; } public string gauth_key { get; set; } public Nullable gauth_enabled { get; set; } - + public virtual admin_group admin_group { get; set; } [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection members { get; set; } @@ -484,7 +484,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class admin_group { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] @@ -492,11 +492,11 @@ namespace Model { this.admins = new HashSet(); } - + public string g_name { get; set; } public string items { get; set; } public string demo { get; set; } - + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection admins { get; set; } } @@ -505,7 +505,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class admin_log { public int num { get; set; } @@ -522,7 +522,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class AncestralTabletArea { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] @@ -531,7 +531,7 @@ namespace Model this.AncestralTabletArea1 = new HashSet(); this.AncestralTabletPosition = new HashSet(); } - + public int AreaId { get; set; } public string AreaName { get; set; } public string AreaCode { get; set; } @@ -541,7 +541,7 @@ namespace Model public Nullable SortOrder { get; set; } public bool IsDisabled { get; set; } public string Description { get; set; } - + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection AncestralTabletArea1 { get; set; } public virtual AncestralTabletArea AncestralTabletArea2 { get; set; } @@ -553,7 +553,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class AncestralTabletPosition { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] @@ -561,7 +561,7 @@ namespace Model { this.AncestralTabletRegistrant = new HashSet(); } - + public int PositionId { get; set; } public int AreaId { get; set; } public string PositionCode { get; set; } @@ -571,7 +571,7 @@ namespace Model public string Description { get; set; } public Nullable RowNo { get; set; } public Nullable ColumnNo { get; set; } - + public virtual AncestralTabletArea AncestralTabletArea { get; set; } public virtual AncestralTabletStatus AncestralTabletStatus { get; set; } [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] @@ -582,7 +582,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class AncestralTabletPositionRecord { public int RecordId { get; set; } @@ -593,7 +593,7 @@ namespace Model public string WPContent { get; set; } public System.DateTime CreatedAt { get; set; } public Nullable UpdatedAt { get; set; } - + public virtual AncestralTabletRegistrant AncestralTabletRegistrant { get; set; } } } @@ -601,7 +601,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class AncestralTabletRegistrant { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] @@ -609,7 +609,7 @@ namespace Model { this.AncestralTabletPositionRecord = new HashSet(); } - + public string RegistrantCode { get; set; } public string Name { get; set; } public string Phone { get; set; } @@ -624,7 +624,7 @@ namespace Model public System.DateTime CreatedAt { get; set; } public Nullable UpdatedAt { get; set; } public bool IsEnd { get; set; } - + public virtual AncestralTabletPosition AncestralTabletPosition { get; set; } [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection AncestralTabletPositionRecord { get; set; } @@ -634,7 +634,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class AncestralTabletStatus { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] @@ -642,11 +642,11 @@ namespace Model { this.AncestralTabletPosition = new HashSet(); } - + public string StatusCode { get; set; } public string StatusName { get; set; } public string StatusType { get; set; } - + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection AncestralTabletPosition { get; set; } } @@ -655,7 +655,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class appellation { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] @@ -663,10 +663,10 @@ namespace Model { this.followers = new HashSet(); } - + public int num { get; set; } public string title { get; set; } - + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection followers { get; set; } } @@ -675,7 +675,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class bed_kind { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] @@ -685,14 +685,14 @@ namespace Model this.bed_order_detail = new HashSet(); this.bed_order_detail1 = new HashSet(); } - + public int num { get; set; } public string kind { get; set; } public Nullable root { get; set; } public Nullable range { get; set; } public string demo { get; set; } public string sex { get; set; } - + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection bed_kind_detail { get; set; } [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] @@ -705,7 +705,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class bed_kind_detail { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] @@ -713,13 +713,13 @@ namespace Model { this.bed_order_detail = new HashSet(); } - + public int num { get; set; } public Nullable bed_kind_id { get; set; } public string bed_name { get; set; } public Nullable bed_type { get; set; } public string demo { get; set; } - + public virtual bed_kind bed_kind { get; set; } [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection bed_order_detail { get; set; } @@ -729,7 +729,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class bed_order { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] @@ -737,7 +737,7 @@ namespace Model { this.bed_order_detail = new HashSet(); } - + public string bed_order_no { get; set; } public string order_no { get; set; } public Nullable o_detail_id { get; set; } @@ -747,7 +747,7 @@ namespace Model public string keyin1 { get; set; } public string demo { get; set; } public Nullable reg_time { get; set; } - + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection bed_order_detail { get; set; } public virtual pro_order pro_order { get; set; } @@ -758,7 +758,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class bed_order_detail { public int num { get; set; } @@ -768,7 +768,7 @@ namespace Model public Nullable bed_kind2 { get; set; } public Nullable bed_kind_detail_id { get; set; } public string license { get; set; } - + public virtual bed_kind bed_kind { get; set; } public virtual bed_kind bed_kind3 { get; set; } public virtual bed_kind_detail bed_kind_detail { get; set; } @@ -779,7 +779,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class company { public int num { get; set; } @@ -808,7 +808,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class country { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] @@ -816,14 +816,14 @@ namespace Model { this.followers = new HashSet(); } - + public string ID { get; set; } public string ID2 { get; set; } public string ID3 { get; set; } public Nullable range { get; set; } public string name_en { get; set; } public string name_zh { get; set; } - + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection followers { get; set; } } @@ -832,7 +832,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class family_members { public int num { get; set; } @@ -851,7 +851,7 @@ namespace Model public string mobile { get; set; } public string city { get; set; } public string area { get; set; } - + public virtual follower follower { get; set; } } } @@ -859,7 +859,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class file { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] @@ -867,7 +867,7 @@ namespace Model { this.actItem_files = new HashSet(); } - + public int num { get; set; } public string subject { get; set; } public string word { get; set; } @@ -875,7 +875,7 @@ namespace Model public Nullable modify_time { get; set; } public string customize_data { get; set; } public string paperset { get; set; } - + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection actItem_files { get; set; } } @@ -884,7 +884,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class follower { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] @@ -904,7 +904,7 @@ namespace Model this.GuaDanOrder = new HashSet(); this.GuaDanOrderGuest = new HashSet(); } - + public int num { get; set; } public string f_number { get; set; } public string u_name { get; set; } @@ -937,7 +937,7 @@ namespace Model public Nullable appellation_id { get; set; } public string follower_hash { get; set; } public string search_keywords { get; set; } - + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection activity_check { get; set; } public virtual appellation appellation { get; set; } @@ -973,14 +973,14 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class followers_tablet { public int num { get; set; } public Nullable f_num { get; set; } public string title { get; set; } public string type { get; set; } - + public virtual follower follower { get; set; } } } @@ -988,7 +988,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class GuaDanOrder { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] @@ -996,7 +996,7 @@ namespace Model { this.GuaDanOrderGuest = new HashSet(); } - + public Nullable StartDate { get; set; } public Nullable EndDate { get; set; } public Nullable CreateUser { get; set; } @@ -1011,7 +1011,7 @@ namespace Model public System.Guid Uuid { get; set; } public Nullable ActivityNum { get; set; } public bool IsCancel { get; set; } - + public virtual admin admin { get; set; } public virtual follower followers { get; set; } [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] @@ -1022,7 +1022,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class GuaDanOrderGuest { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] @@ -1030,7 +1030,7 @@ namespace Model { this.RegionAndRoomAndBedSchedule = new HashSet(); } - + public string GuaDanOrderNo { get; set; } public Nullable FollowerNum { get; set; } public bool IsDeleted { get; set; } @@ -1041,7 +1041,7 @@ namespace Model public Nullable CheckOutAt { get; set; } public string StatusCode { get; set; } public Nullable OrderUuid { get; set; } - + public virtual follower followers { get; set; } public virtual GuaDanOrder GuaDanOrder { get; set; } public virtual RegionRoomBed RegionRoomBed { get; set; } @@ -1055,7 +1055,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class GuadanTimeSetting { public System.Guid Id { get; set; } @@ -1070,7 +1070,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class item { public int num { get; set; } @@ -1090,7 +1090,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class member { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] @@ -1101,7 +1101,7 @@ namespace Model this.stocks = new HashSet(); this.transfer_register = new HashSet(); } - + public int num { get; set; } public Nullable f_num { get; set; } public string m_number { get; set; } @@ -1129,7 +1129,7 @@ namespace Model public string address2 { get; set; } public Nullable reg_time { get; set; } public string pic1 { get; set; } - + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection accountings { get; set; } public virtual admin admin { get; set; } @@ -1148,7 +1148,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class member_check { public int num { get; set; } @@ -1160,7 +1160,7 @@ namespace Model public Nullable login_type { get; set; } public string login_ip { get; set; } public Nullable hour { get; set; } - + public virtual member member { get; set; } } } @@ -1168,7 +1168,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class member_group { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] @@ -1176,7 +1176,7 @@ namespace Model { this.members = new HashSet(); } - + public int num { get; set; } public string kind { get; set; } public Nullable starttime { get; set; } @@ -1185,7 +1185,7 @@ namespace Model public Nullable root { get; set; } public Nullable range { get; set; } public string demo { get; set; } - + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection members { get; set; } } @@ -1194,7 +1194,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class member_title { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] @@ -1202,14 +1202,14 @@ namespace Model { this.members = new HashSet(); } - + public int num { get; set; } public string kind { get; set; } public Nullable root { get; set; } public Nullable range { get; set; } public string demo { get; set; } public string status { get; set; } - + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection members { get; set; } } @@ -1218,7 +1218,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class news { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] @@ -1226,7 +1226,7 @@ namespace Model { this.news_files = new HashSet(); } - + public int num { get; set; } public string subject { get; set; } public Nullable kind { get; set; } @@ -1241,7 +1241,7 @@ namespace Model public Nullable range { get; set; } public Nullable author { get; set; } public Nullable activity_num { get; set; } - + public virtual activity activity { get; set; } public virtual admin admin { get; set; } [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] @@ -1253,7 +1253,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class news_files { public string num { get; set; } @@ -1262,7 +1262,7 @@ namespace Model public Nullable reg_time { get; set; } public string pic_name { get; set; } public string pic_type { get; set; } - + public virtual news news { get; set; } } } @@ -1270,7 +1270,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class news_kind { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] @@ -1278,14 +1278,14 @@ namespace Model { this.news = new HashSet(); } - + public int num { get; set; } public string kind { get; set; } public Nullable root { get; set; } public Nullable range { get; set; } public string demo { get; set; } public string status { get; set; } - + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection news { get; set; } } @@ -1294,7 +1294,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class PostCity { public string city { get; set; } @@ -1304,7 +1304,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class PostNumber { public int ID { get; set; } @@ -1317,7 +1317,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class pro_order { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] @@ -1326,7 +1326,7 @@ namespace Model this.bed_order = new HashSet(); this.pro_order_detail = new HashSet(); } - + public string order_no { get; set; } public Nullable up_time { get; set; } public Nullable reg_time { get; set; } @@ -1340,7 +1340,7 @@ namespace Model public Nullable introducer { get; set; } public Nullable send_receipt { get; set; } public string receipt_title { get; set; } - + public virtual activity activity { get; set; } [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection bed_order { get; set; } @@ -1354,7 +1354,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class pro_order_detail { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] @@ -1365,7 +1365,7 @@ namespace Model this.accountings = new HashSet(); this.transfer_register = new HashSet(); } - + public int num { get; set; } public string order_no { get; set; } public Nullable actItem_num { get; set; } @@ -1389,7 +1389,7 @@ namespace Model public Nullable parent_num { get; set; } public string print_id { get; set; } public Nullable UpdateTime { get; set; } - + public virtual actItem actItem { get; set; } [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection bed_order { get; set; } @@ -1408,7 +1408,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class pro_order_record { public int num { get; set; } @@ -1421,7 +1421,7 @@ namespace Model public string bank_code { get; set; } public Nullable transfer_id { get; set; } public string reconcile_memo { get; set; } - + public virtual accounting_kind2 accounting_kind2 { get; set; } public virtual pro_order_detail pro_order_detail { get; set; } public virtual transfer_register transfer_register { get; set; } @@ -1431,7 +1431,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class project { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] @@ -1439,14 +1439,14 @@ namespace Model { this.project_sub = new HashSet(); } - + public int num { get; set; } public string subject { get; set; } public Nullable kind { get; set; } public Nullable actItem_num { get; set; } public string demo { get; set; } public Nullable reg_time { get; set; } - + public virtual actItem actItem { get; set; } public virtual project_kind project_kind { get; set; } [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] @@ -1457,7 +1457,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class project_kind { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] @@ -1465,13 +1465,13 @@ namespace Model { this.projects = new HashSet(); } - + public int num { get; set; } public string kind { get; set; } public Nullable root { get; set; } public Nullable range { get; set; } public string demo { get; set; } - + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection projects { get; set; } } @@ -1480,7 +1480,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class project_sub { public int num { get; set; } @@ -1490,7 +1490,7 @@ namespace Model public string word { get; set; } public string pic1 { get; set; } public Nullable pro_id { get; set; } - + public virtual project project { get; set; } } } @@ -1498,7 +1498,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class Region { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] @@ -1507,7 +1507,7 @@ namespace Model this.Region1 = new HashSet(); this.Room = new HashSet(); } - + public string Name { get; set; } public string Description { get; set; } public Nullable SortOrder { get; set; } @@ -1521,7 +1521,7 @@ namespace Model public Nullable ParentUuid { get; set; } public Nullable RegionTypeUuid { get; set; } public Nullable Gender { get; set; } - + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection Region1 { get; set; } public virtual Region Region2 { get; set; } @@ -1534,7 +1534,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class RegionAndRoomAndBedSchedule { public int UseType { get; set; } @@ -1549,7 +1549,7 @@ namespace Model public Nullable ScheduleDate { get; set; } public bool IsCancel { get; set; } public Nullable GuaDanOrderGuestUuid { get; set; } - + public virtual GuaDanOrderGuest GuaDanOrderGuest { get; set; } } } @@ -1557,7 +1557,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class RegionRoomBed { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] @@ -1565,7 +1565,7 @@ namespace Model { this.GuaDanOrderGuest = new HashSet(); } - + public string Name { get; set; } public bool IsActive { get; set; } public bool Gender { get; set; } @@ -1573,7 +1573,7 @@ namespace Model public System.Guid Uuid { get; set; } public System.Guid RoomUuid { get; set; } public string StatusCode { get; set; } - + public virtual Room Room { get; set; } public virtual RegionRoomBedStatus RegionRoomBedStatus { get; set; } [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] @@ -1584,7 +1584,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class RegionRoomBedStatus { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] @@ -1593,13 +1593,13 @@ namespace Model this.RegionRoomBed = new HashSet(); this.GuaDanOrderGuest = new HashSet(); } - + public string Code { get; set; } public string Name { get; set; } public string Description { get; set; } public Nullable Category { get; set; } public bool IsDeleted { get; set; } - + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection RegionRoomBed { get; set; } [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] @@ -1610,7 +1610,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class RegionType { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] @@ -1618,14 +1618,14 @@ namespace Model { this.Region = new HashSet(); } - + public string Code { get; set; } public string Name { get; set; } public bool IsActive { get; set; } public Nullable CreateAt { get; set; } public bool IsDeleted { get; set; } public System.Guid Uuid { get; set; } - + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection Region { get; set; } } @@ -1634,7 +1634,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class Room { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] @@ -1643,7 +1643,7 @@ namespace Model this.RegionRoomBed = new HashSet(); this.GuaDanOrderGuest = new HashSet(); } - + public string Name { get; set; } public bool Gender { get; set; } public Nullable BedCount { get; set; } @@ -1653,7 +1653,7 @@ namespace Model public bool IsDeleted { get; set; } public System.Guid Uuid { get; set; } public System.Guid RegionUuid { get; set; } - + public virtual Region Region { get; set; } [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection RegionRoomBed { get; set; } @@ -1665,7 +1665,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class ShuWen { public int ID { get; set; } @@ -1680,7 +1680,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class stock { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] @@ -1688,7 +1688,7 @@ namespace Model { this.stock_files = new HashSet(); } - + public int num { get; set; } public Nullable uptime { get; set; } public Nullable category { get; set; } @@ -1706,7 +1706,7 @@ namespace Model public Nullable supplier { get; set; } public Nullable final_stock { get; set; } public Nullable rent_stock { get; set; } - + public virtual actItem actItem { get; set; } public virtual activity activity { get; set; } public virtual member member { get; set; } @@ -1721,7 +1721,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class stock_files { public int num { get; set; } @@ -1729,7 +1729,7 @@ namespace Model public Nullable reg_time { get; set; } public string pic1 { get; set; } public string pic1_name { get; set; } - + public virtual stock stock { get; set; } } } @@ -1737,7 +1737,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class stock_kind { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] @@ -1745,13 +1745,13 @@ namespace Model { this.stocks = new HashSet(); } - + public int num { get; set; } public string kind { get; set; } public Nullable root { get; set; } public Nullable range { get; set; } public string demo { get; set; } - + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection stocks { get; set; } } @@ -1760,7 +1760,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class stock_reason { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] @@ -1768,13 +1768,13 @@ namespace Model { this.stocks = new HashSet(); } - + public int num { get; set; } public string kind { get; set; } public Nullable root { get; set; } public Nullable range { get; set; } public Nullable category { get; set; } - + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection stocks { get; set; } } @@ -1783,7 +1783,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class supplier { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] @@ -1791,7 +1791,7 @@ namespace Model { this.stocks = new HashSet(); } - + public int num { get; set; } public string s_number { get; set; } public string u_name { get; set; } @@ -1807,7 +1807,7 @@ namespace Model public Nullable reg_time { get; set; } public string admin_log { get; set; } public string c_num { get; set; } - + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection stocks { get; set; } public virtual supplier_kind supplier_kind { get; set; } @@ -1817,7 +1817,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class supplier_kind { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] @@ -1825,13 +1825,13 @@ namespace Model { this.suppliers = new HashSet(); } - + public int num { get; set; } public string kind { get; set; } public Nullable root { get; set; } public Nullable range { get; set; } public string demo { get; set; } - + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection suppliers { get; set; } } @@ -1840,7 +1840,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class transfer_register { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] @@ -1848,7 +1848,7 @@ namespace Model { this.pro_order_record = new HashSet(); } - + public int id { get; set; } public Nullable activity_num { get; set; } public string name { get; set; } @@ -1876,7 +1876,7 @@ namespace Model public Nullable remain_amount { get; set; } public Nullable balance_act_item { get; set; } public Nullable balance_pro_order_detail { get; set; } - + public virtual accounting accounting { get; set; } public virtual accounting_kind2 accounting_kind2 { get; set; } public virtual activity activity { get; set; } @@ -1892,7 +1892,7 @@ namespace Model namespace Model { using System; - + public partial class sp_helpdiagramdefinition_Result { public Nullable version { get; set; } @@ -1902,7 +1902,7 @@ namespace Model namespace Model { using System; - + public partial class sp_helpdiagrams_Result { public string Database { get; set; } diff --git a/web/App_Code/Model/Model.edmx.diagram b/web/App_Code/Model/Model.edmx.diagram index 4147bfb..db8eefc 100644 --- a/web/App_Code/Model/Model.edmx.diagram +++ b/web/App_Code/Model/Model.edmx.diagram @@ -9,7 +9,7 @@ - + diff --git a/web/App_Code/admin.cs b/web/App_Code/admin.cs index b970cc4..4de3c17 100644 --- a/web/App_Code/admin.cs +++ b/web/App_Code/admin.cs @@ -28,7 +28,7 @@ namespace MyWeb public AdmItem info { get; set; } //定義欄位cookie==================start - public class AdmItem + public class AdmItem { public int num { get; set; } public string u_id { get; set; } diff --git a/web/App_Code/api/FollowerController.cs b/web/App_Code/api/FollowerController.cs index eb581d9..cbcfbea 100644 --- a/web/App_Code/api/FollowerController.cs +++ b/web/App_Code/api/FollowerController.cs @@ -103,17 +103,18 @@ public class FollowerController : ApiController { foreach (var item in prod) { - foreach (var item2 in item.pro_order_detail1) - item2.from_id = null; //清空訂單明細的陽上報恩者from_id //f_num設定串聯刪除 + //foreach (var item2 in item.pro_order_detail1) + // item2.from_id = null; //清空訂單明細的陽上報恩者from_id //f_num設定串聯刪除 - foreach (var item2 in item.pro_order) - item2.introducer = null; + //foreach (var item2 in item.pro_order) + // item2.introducer = null; - item.leader = null;//清空leader + //item.leader = null;//清空leader + _db.followers.RemoveRange(prod); } - _db.followers.RemoveRange(prod); + //_db.followers.RemoveRange(prod); _db.SaveChanges(); Model.admin_log admin_log = new Model.admin_log(); @@ -173,7 +174,7 @@ public class FollowerController : ApiController } } - + // 電話/證號搜尋 (使用 search_keywords HEX 編碼) if (!string.IsNullOrEmpty(q.phone_idcode) && GlobalVariables.UseSearchKeywords) { @@ -655,8 +656,10 @@ public class FollowerController : ApiController list = orderrecord.Select(x => new { orderno = x.order_no, - startdate = x.reg_time, - endtime = x.up_time, + //startdate = x.reg_time, + //endtime = x.up_time, + startdate = x.activity.startDate_solar, + enddate = x.activity.endDate_solar, pwcount = x.pro_order_detail.Where(a => a.actItem.act_bom.Where(b => b.item_num == a.actItem_num && b.package_num == null).Count() == 0).Count(), amount = x.pro_order_detail.Select(o => (float?)o.price).Sum(), activityname = x.activity.subject, diff --git a/web/App_Code/api/activityController.cs b/web/App_Code/api/activityController.cs index 2b40226..74171ab 100644 --- a/web/App_Code/api/activityController.cs +++ b/web/App_Code/api/activityController.cs @@ -1,14 +1,16 @@ -using System; +using DocumentFormat.OpenXml.Drawing.Spreadsheet; +using Newtonsoft.Json; +using Org.BouncyCastle.Crypto; +using PagedList; +using System; +using System.Collections; using System.Collections.Generic; +using System.Data.Entity; using System.Linq; using System.Net; using System.Net.Http; using System.Web.Http; -using PagedList; -using Newtonsoft.Json; -using System.Collections; using static TreeView; -using System.Data.Entity; // api/activity //[ezAuthorize(Roles = "admin")]//群組:* @@ -126,6 +128,12 @@ public class activityController : ApiController if (prod != null) { ////prod.IsDel = true; ////不確定是否新增欄位? 先註解 + + // 先刪除子項目 + var prod2 = _db.act_bom.Where(q => q.package_num == prod.num).ToList(); + _db.act_bom.RemoveRange(prod2); + + _db.actItems.Remove(prod); _db.SaveChanges(); Model.admin_log admin_log = new Model.admin_log(); MyWeb.admin admin = new MyWeb.admin();//api裡不可以用MyWeb @@ -190,12 +198,18 @@ public class activityController : ApiController if (prod.Count() > 0) { //var prod2 = _db.actItem_files.AsEnumerable().Where(q => ids.Contains(Convert.ToInt32(q.actItem_num))).ToList(); - var prod2 = _db.actItem_files.Where(q => ids.Contains(q.actItem_num)).ToList(); - if (prod2.Count > 0) - { - _db.actItem_files.RemoveRange(prod2); - //_db.SaveChanges(); - } + //var prod2 = _db.actItem_files.Where(q => ids.Contains(q.actItem_num)).ToList(); + //if (prod2.Count > 0) + //{ + // _db.actItem_files.RemoveRange(prod2); + // //_db.SaveChanges(); + //} + + // 先刪除子項目 + var parentBoms = _db.act_bom.Where(q => q.item_num.HasValue && ids.Contains(q.item_num.Value)).ToList(); + var parentIds = parentBoms.Select(x => x.num).ToList(); // 取得母件 id + var childBoms = _db.act_bom.Where(q => q.package_num.HasValue && parentIds.Contains(q.package_num.Value)).ToList(); + _db.act_bom.RemoveRange(childBoms); _db.actItems.RemoveRange(prod); _db.SaveChanges(); diff --git a/web/App_Code/api/orderController.cs b/web/App_Code/api/orderController.cs index 6260df2..6bed7ee 100644 --- a/web/App_Code/api/orderController.cs +++ b/web/App_Code/api/orderController.cs @@ -1,17 +1,18 @@ -using System; +using DocumentFormat.OpenXml.Drawing.Charts; +using Model; +using MyWeb; +using Newtonsoft.Json; +using PagedList; +using System; +using System.Collections; using System.Collections.Generic; +using System.Diagnostics; +using System.IdentityModel.Metadata; using System.Linq; using System.Net; using System.Net.Http; using System.Web.Http; -using PagedList; -using Newtonsoft.Json; -using System.Collections; using static TreeView; -using Model; -using System.IdentityModel.Metadata; -using MyWeb; -using DocumentFormat.OpenXml.Drawing.Charts; // api/order @@ -683,7 +684,7 @@ public class orderController : ApiController .Where(q => q.num == item.num) .FirstOrDefault();//修改 if (order != null) - { + { order.actItem_num = (item.actItem_num.HasValue && item.actItem_num.Value > 0) ? item.actItem_num : null; order.f_num = (item.f_num.HasValue && item.f_num.Value > 0) diff --git a/web/admin/Templates/TBS5ADM001/uc/menu.ascx b/web/admin/Templates/TBS5ADM001/uc/menu.ascx index cd408e4..3314d38 100644 --- a/web/admin/Templates/TBS5ADM001/uc/menu.ascx +++ b/web/admin/Templates/TBS5ADM001/uc/menu.ascx @@ -16,6 +16,7 @@ " + onclick="sessionStorage.removeItem('member_list_cache');sessionStorage.removeItem('member_query_params');" target="<%#(ValString(Eval("target"))=="B"?"_blank":"_self") %>"> <%#Eval("title") %> diff --git a/web/admin/follower/import.aspx.cs b/web/admin/follower/import.aspx.cs index d5aa0b9..cac89c0 100644 --- a/web/admin/follower/import.aspx.cs +++ b/web/admin/follower/import.aspx.cs @@ -260,7 +260,7 @@ public partial class admin_follower_import : MyWeb.config follower.introducer = ValString(sheet.Cells[currentRow, 17].Text.Trim()); //檢查國籍代碼是否存在 - var country = _country.Where(x => x.name_zh == ValString(sheet.Cells[currentRow, 18].Text.Trim())).FirstOrDefault(); + var country = _country.Where(x => x.name_zh == ValString(sheet.Cells[currentRow, 18].Text.Trim())).FirstOrDefault(); if(country != null) { //follower.country = ValString(sheet.Cells[currentRow, 18].Text.Trim()); diff --git a/web/admin/follower/index.aspx b/web/admin/follower/index.aspx index 6b2ea3f..5a03f4b 100644 --- a/web/admin/follower/index.aspx +++ b/web/admin/follower/index.aspx @@ -13,10 +13,12 @@ 列印管理報表 - + 列印查詢資料 - 匯出Excel +
+ 匯出查詢資料(Excel) +
@@ -24,11 +26,13 @@ Vue.filter('timeString', function (value, myFormat) { return value == null || value == "" ? "" : moment(value).format(myFormat || 'YYYY-MM-DD, HH:mm:ss'); }); - let VueApp=new Vue({ + let VueApp = new Vue({ el: '#app', vuetify: new Vuetify(vuetify_options), data() { return { + isSearched: false, + print_error_msg: '', options: { multiSort: false }, search_options: { multiSort: false }, data_table: { @@ -38,10 +42,10 @@ singleSelect: false, count: 0, page: 1, - pageSize: 10, + pageSize: 10, header: [ { text: '信眾編號', value: 'f_number', align: 'start' }, - { text: '信眾姓名', value: 'u_name'}, + { text: '信眾姓名', value: 'u_name' }, { text: '身分別', value: 'identity_type_desc' }, { text: '性別', value: 'sex' }, { text: '生日', value: 'birthday' }, @@ -49,9 +53,9 @@ { text: '', value: 'slot', sortable: false }, { text: '', value: 'slot_btn', sortable: false, align: 'end' }, ], - footer:{ + footer: { showFirstLastPage: true, - pageSizeOptions:[5,10,20,30], + pageSizeOptions: [5, 10, 20, 30], }, }, search: { @@ -60,7 +64,7 @@ sex: '', //birthday: new Date().toISOString().split('T')[0], //birthday2: new Date().toISOString().split('T')[0] - birthday:'', + birthday: '', birthday2: '', address: '', country: '', @@ -69,14 +73,14 @@ /*注意這邊的參數不能跟下方print_search重複*/ }, //列印管理報表 - print_conditions:'yy', + print_conditions: 'yy', print_search: { year: '', month: '', - season: '', + season: '', }, select_items: { - month: [{ + month: [{ text: "請選擇", val: 0 },], @@ -126,13 +130,18 @@ itemsPerPageText: '', }, }, - + } }, watch: { options: { handler() { - this.getList() + if (this.isSearched) { + this.getList() + } + else { + this.data_table.loading = false; + } }, deep: true, }, @@ -141,23 +150,118 @@ this.search_get() }, deep: true, - }, - }, mounted() { + } + }, mounted() { + const printResult = document.getElementById('<%= hid_err_msg.ClientID %>').value; + document.getElementById('<%= hid_err_msg.ClientID %>').value = ''; + window._printResult = printResult + this.search_dialog.current = this.search_dialog.controls.search1 ///default this.initPrintSearch(); + const navEntries = performance.getEntriesByType("navigation"); const isReload = navEntries.length > 0 && navEntries[0].type === "reload"; + + const url = new URL(window.location.href); + let params = url.searchParams; + if (params.get('dirty') === '1') { // 資料有更新時執行 getlist + this.search = JSON.parse(sessionStorage.getItem("member_query_params")); + this.getList(); + + params.delete('dirty'); + window.history.replaceState({}, '', url.pathname + url.search); + } + if (isReload) { sessionStorage.removeItem("followerpage"); + sessionStorage.removeItem("member_list_cache"); + sessionStorage.removeItem("member_query_params"); + } + else if ("<%=lastAddedID%>" !== "") { + const newQuery = { f_number: '<%=lastAddedID%>' }; + sessionStorage.setItem('member_query_params', JSON.stringify(newQuery)); + this.search = newQuery; + this.isSearched = true; } else { const savedPage = parseInt(sessionStorage.getItem('followerpage')); + const savedData = sessionStorage.getItem("member_list_cache"); + const savedQuery = JSON.parse(sessionStorage.getItem("member_query_params")); + if (savedQuery) { + this.search = savedQuery; + this.isSearched = true; + } if (savedPage) { this.options.page = savedPage; } + if (savedData && savedData !== "undefined") { + this.data_table = JSON.parse(savedData); + this.isSearched = true; + } } + + //if (params.has('year')) { + // this.print_search.year = parseInt(params.get('year')); + // this.print_dialog.show = true; + //} + //if (params.has('month')) { + // this.print_search.month = parseInt(params.get('month')); + // this.print_dialog.show = true; + //} + //if (params.has('season')) { + // this.print_search.season = parseInt(params.get('season')); + // this.print_dialog.show = true; + //} + //if (params.has('mode')) { + // this.print_conditions = params.get('mode'); + // this.print_dialog.show = true; + //} + + if (printResult === 'nodata' || printResult === 'success') { + this.$nextTick(() => { + this.print_search.year = parseInt(document.getElementById('<%= hid_print_year.ClientID %>').value) || this.print_search.year; + this.print_search.month = parseInt(document.getElementById('<%= hid_print_month.ClientID %>').value) || this.print_search.month; + this.print_search.season = parseInt(document.getElementById('<%= hid_print_season.ClientID %>').value) || this.print_search.season; + this.print_conditions = document.getElementById('<%= hid_print_mode.ClientID %>').value || 'yy'; + this.print_dialog.show = true; + if (printResult === 'nodata') { + this.print_error_msg = "查無資料,請重新選擇區間"; + } + }); + } + this.$nextTick(() => { + setTimeout(() => { + ['year', 'month', 'season', 'mode', 'msg'].forEach(p => params.delete(p)); + window.history.replaceState({}, '', url.pathname + url.search); + }, 100); + }); }, methods: { + triggerManagementExport(mode) { + this.print_dialog.show = false; + this.print_error_msg = ""; + if (this.print_search.year == '') { + msgbox('請輸入年份'); + return; + } + + document.getElementById('<%= hid_print_mode.ClientID %>').value = this.print_conditions; + document.getElementById('<%= hid_print_year.ClientID %>').value = this.print_search.year; + if (this.print_conditions == 'mm') { + document.getElementById('<%= hid_print_month.ClientID %>').value = this.print_search.month; + } + else if (this.print_conditions == 'ss') { + document.getElementById('<%= hid_print_season.ClientID %>').value = this.print_search.season; + } + + if (mode === 'print') { + const printWindow = window.open('about:blank', '列印信眾資料'); + document.getElementById('<%= print_management.ClientID %>').click(); + } + else if (mode === "excel") { + document.getElementById('<%= excel_management.ClientID %>').click(); + } + }, search_show(curr) { //console.log("btn_click:", curr, curr.api_url); this.search_dialog.current = curr; @@ -228,6 +332,7 @@ //console.log(row, row["u_name"], row["f_number"], curr.id, target); }, getList(clearpage = false) { + console.log("do getlist") const { sortBy, sortDesc, page, itemsPerPage } = this.options const params = { sortBy: sortBy[0], sortDesc: sortDesc[0], @@ -241,6 +346,9 @@ this.data_table.list = response.data.list this.data_table.count = response.data.count; this.data_table.loading = false + + const dataToStore = JSON.stringify(this.data_table); + sessionStorage.setItem("member_list_cache", dataToStore); }) .catch( error => console.log(error) @@ -262,7 +370,7 @@ const index = this.data_table.list.indexOf(item) if (index != -1) { axios - .delete(HTTP_HOST + 'api/follower/' + item.num) + .delete(HTTP_HOST + 'api/follower/Delete/' + item.num) .then(response => { this.getList(); }) @@ -282,18 +390,23 @@ //} //this.data_table.selected = []; //this.data_table.count = this.data_table.list.length - location.reload(); + //location.reload(); + this.getList(); }) .catch(error => console.log(error)) } }, btn_search() { + isSearched = true; + sessionStorage.setItem("member_query_params", JSON.stringify(this.search)); this.getList(true) bootstrap.Offcanvas.getInstance(document.getElementById("offcanvasRight")).hide() }, btn_all() { + isSearched = false; clearObjProps(this.search); - this.btn_search() + sessionStorage.setItem("member_query_params", JSON.stringify(this.search)); + //this.btn_search() }, goPrint() { //debugger; @@ -309,6 +422,7 @@ //列印管理報表 print_close() { this.print_dialog.show = false; + this.print_error_msg = ""; } , initPrintSearch() { @@ -391,10 +505,30 @@ $('#country2').val(''); VueApp.search.country2 = ''; }); + + $(document).ready(function () { + // 判斷是否彈出 search dialog + let hasSearchResult = sessionStorage.getItem("member_list_cache") !== null; + + if (!hasSearchResult && window._printResult === '') { + let $btn = $("a[data-bs-target='#offcanvasRight'][href='#search_panel']"); + $btn.click(); + let el = document.getElementById('offcanvasRight'); + let offcanvas = bootstrap.Offcanvas.getOrCreateInstance(el); + offcanvas.show(); + } + }); + + + + + +
diff --git a/web/admin/follower/order_record_detail.aspx b/web/admin/follower/order_record_detail.aspx index b75ee45..166fd73 100644 --- a/web/admin/follower/order_record_detail.aspx +++ b/web/admin/follower/order_record_detail.aspx @@ -4,10 +4,11 @@ +
+ 信眾姓名: +
+
+ " class="btn btn-outline-secondary">返回
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(identity_type); //身分別 //var qry = _db.followers.AsEnumerable(); - var qry = _db.followers.AsQueryable(); - + var qry = _db.followers.AsQueryable(); + if (isStrNull(Request["num"])) { + if (!isAutoNumbering) + { + f_number.ReadOnly = false; + } + if (!isStrNull(Request["leader"])) { int _num = Val(Request["leader"]); @@ -50,9 +60,14 @@ public partial class admin_follower_reg : MyWeb.config //預設國籍 country.Value = "158"; country_txt.Value = "中華民國(台灣)"; + + // 預設加入日期 + join_date.Text = DateTime.Now.ToString("yyyy-MM-dd"); } else { + f_number.ReadOnly = true; + int _num = Val(Request["num"]); var prod = qry.Where(q => q.num == _num).FirstOrDefault(); if (prod != null) @@ -206,8 +221,11 @@ public partial class admin_follower_reg : MyWeb.config } } } - // 使用新的 generate_f_number 方法,已內建重號檢查和重試機制 - followers.f_number = follower.generate_f_number(sex.SelectedValue); + if (isAutoNumbering) + { + // 使用新的 generate_f_number 方法,已內建重號檢查和重試機制 + followers.f_number = follower.generate_f_number(sex.SelectedValue); + } followers.identity_type = Val(identity_type.SelectedValue); if(!isStrNull(leader.Value)) followers.leader = Val(leader.Value); if (!isStrNull(country.Value)) followers.country = country.Value; @@ -239,7 +257,9 @@ public partial class admin_follower_reg : MyWeb.config Model.admin_log admin_log = new Model.admin_log(); admin_log.writeLog(admin.info.u_id, (int)Model.admin_log.Systems.Follower, (int)Model.admin_log.Status.Insert, f_number.Text + u_name.Text); - + + Session["LastAddedID"] = followers.f_number; + Response.Redirect("index.aspx"); } else @@ -282,7 +302,7 @@ public partial class admin_follower_reg : MyWeb.config try { foreach (Control obj in cardBodyPanel.Controls) - { + { if (obj is TextBox) { var ObjValue = followers.GetType().GetProperty(obj.ID); @@ -300,7 +320,7 @@ public partial class admin_follower_reg : MyWeb.config ObjValue.SetValue(followers, null); } - + } @@ -310,22 +330,60 @@ public partial class admin_follower_reg : MyWeb.config followers.sex = sex.SelectedValue; followers.blood = blood.SelectedValue; followers.tab = tab.Value.Trim(','); - followers.admin_log = admin.info.u_id + " " + DateTime.Now.ToString("yyyy/MM/dd HH:mm:ss"); + //followers.admin_log = admin.info.u_id + " " + DateTime.Now.ToString("yyyy/MM/dd HH:mm:ss"); followers.follower_hash = encrypt.followerHash(followers.phone, followers.id_code); - + // 如果啟用 search_keywords 功能,生成並更新 search_keywords if (GlobalVariables.UseSearchKeywords) { followers.search_keywords = encrypt.GenerateSearchKeywords(followers); } - - _db.SaveChanges(); - Model.admin_log admin_log = new Model.admin_log(); - admin_log.writeLog(admin.info.u_id, (int)Model.admin_log.Systems.Follower, (int)Model.admin_log.Status.Update, f_number.Text + u_name.Text); + // 檢查是否有修改資料 + var entry = _db.Entry(followers); + this.isDataChanged = entry.CurrentValues.PropertyNames.Any(name => + { + if (name == "admin_log" || name == "follower_hash") + return false; - Response.Redirect("index.aspx?page=" + Convert.ToString(Request["page"])); + var originalVal = entry.OriginalValues[name]?.ToString(); + var currentVal = entry.CurrentValues[name]?.ToString(); + // 針對加密欄位進行特殊處理 + bool isEncryptedField = (name == "phone" || name == "id_code"); + + if (isEncryptedField) + { + string originalPlain = !string.IsNullOrEmpty(originalVal) ? encrypt.DecryptAutoKey(originalVal) : ""; + string currentPlain = !string.IsNullOrEmpty(currentVal) ? encrypt.DecryptAutoKey(currentVal) : ""; + return originalPlain.Trim() != currentPlain.Trim(); + } + + return !object.Equals(originalVal, currentVal); + }); + + if (this.isDataChanged) + { + followers.admin_log = admin.info.u_id + " " + DateTime.Now.ToString("yyyy/MM/dd HH:mm:ss"); + } + else + { + entry.State = EntityState.Unchanged; + } + + int isDataSaved = _db.SaveChanges(); + if (isDataSaved > 0) + { + //L_msg.Type = alert_type.success; + //L_msg.Text = "修改成功"; + Model.admin_log admin_log = new Model.admin_log(); + admin_log.writeLog(admin.info.u_id, (int)Model.admin_log.Systems.Follower, (int)Model.admin_log.Status.Update, f_number.Text + u_name.Text); + Response.Redirect("index.aspx?dirty=1&page=" + Convert.ToString(Request["page"])); + } + else + { + Response.Redirect("index.aspx?page=" + Convert.ToString(Request["page"])); + } } catch (Exception ex) { @@ -339,7 +397,7 @@ public partial class admin_follower_reg : MyWeb.config L_msg.Type = alert_type.danger; L_msg.Text = "查無資料"; } - /* + /* if (chk_pro_num(f_number.Text, Val(Request["num"]))) { } @@ -349,7 +407,7 @@ public partial class admin_follower_reg : MyWeb.config L_msg.Text = "信眾編號重複"; } */ - } + } } #endregion diff --git a/web/admin/menu.ascx b/web/admin/menu.ascx index b379ba8..8647bdc 100644 --- a/web/admin/menu.ascx +++ b/web/admin/menu.ascx @@ -8,7 +8,7 @@
    -
  • " +
  • " target="<%#(ValString(Eval("target"))=="B"?"_blank":"_self") %>"><%#Eval("title") %>
  • diff --git a/web/admin/order/index.aspx b/web/admin/order/index.aspx index f4e13da..1b9cca3 100644 --- a/web/admin/order/index.aspx +++ b/web/admin/order/index.aspx @@ -39,6 +39,7 @@ vuetify: new Vuetify(vuetify_options), data() { return { + isFirstLoad: true, this_act : '<%= Request["act_id"]%>', options: { multiSort: false }, search_options: { multiSort: false }, @@ -211,9 +212,13 @@ this.initActivity(); const navEntries = performance.getEntriesByType("navigation"); const isReload = navEntries.length > 0 && navEntries[0].type === "reload"; + const isBackForward = navEntries.length > 0 && navEntries[0].type === "back_forward"; if (isReload) { sessionStorage.removeItem("orderpage"); } + else if (isBackForward) { + this.isFirstLoad = false; + } else { const savedPage = parseInt(sessionStorage.getItem('orderpage')); if (savedPage) { @@ -224,6 +229,11 @@ watch: { options: { handler() { + if (this.isFirstLoad) { + this.isFirstLoad = false; + this.data_table.loading = false; + return; + } this.getDefault() }, deep: true, @@ -368,7 +378,8 @@ //} //this.data_table.selected = []; //this.data_table.count = this.data_table.list.length - location.reload(); + //location.reload(); + this.getDefault(); }) .catch(error => console.log(error)) } @@ -537,7 +548,7 @@ initActivity() { axios.get(HTTP_HOST + 'api/activity') .then(response => { - this.select_act_list = response.data + this.select_act_list = response.data }) .catch(error => { console.log(error) diff --git a/web/admin/order/reg.aspx b/web/admin/order/reg.aspx index 50bd964..a702fce 100644 --- a/web/admin/order/reg.aspx +++ b/web/admin/order/reg.aspx @@ -526,7 +526,7 @@ window.addEventListener('message', async (event) => { if (event.data.source === 'editor.btn.click') { const receivedData = event.data.data; - + // 更新編輯中的項目 //if (receivedData.tabletItem && this.editedIndex > -1) { if (receivedData.tabletItem) { @@ -807,7 +807,7 @@ isValidDate = Date.parse(item.pay_date); if (!isNaN(isValidDate)) item.pay_date = new Date(item.pay_date).format("yyyy-MM-dd") - + console.log(item); this.editedItem = $.extend(true, {}, item); this.data_dialog.show = true; this.data_dialog.isAddNew = false; @@ -971,9 +971,11 @@ /* (this.editedItem.category=="1"? this.editedItem.from_id_selected.val != 0 : true) &&*/ this.requireData(this.editedItem.qty, (this.editedItem.num == 0 ? false : true)) ) /* qty為0視為不需要此項目,不儲存此筆資料*/ { + console.log(this.editedItem); //check price if (this.editedItem.pay <= this.editedItem.price * this.editedItem.qty) { - + console.log(this.editedItem.f_num_selected.val); + console.log(this.editedItem.from_id_selected.val); //check qty //數量不可小於掛單明細的數量 if (this.editedItem.qty >= this.editedItem.writeBedQty + this.editedItem.notBedQty) { diff --git a/web/admin/order/reg.aspx.cs b/web/admin/order/reg.aspx.cs index decce99..e63f365 100644 --- a/web/admin/order/reg.aspx.cs +++ b/web/admin/order/reg.aspx.cs @@ -1,15 +1,16 @@ -using System; +using DocumentFormat.OpenXml.Spreadsheet; +using System; using System.Collections; using System.Collections.Generic; +using System.Configuration; using System.Data; +using System.Data.Entity.Infrastructure; using System.Data.OleDb; +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.Data.Entity.Infrastructure; public partial class admin_order_reg : MyWeb.config { @@ -187,16 +188,26 @@ public partial class admin_order_reg : MyWeb.config { if (!isStrNull(pro_order.order_no)) { - _db.pro_order.Add(pro_order); - _db.SaveChanges(); + bool isRegistered = _db.pro_order.Any(x => x.f_num == pro_order.f_num && x.activity_num == pro_order.activity_num); - Model.admin_log admin_log = new Model.admin_log(); - admin_log.writeLog(admin.info.u_id, (int)Model.admin_log.Systems.Order, (int)Model.admin_log.Status.Insert, pro_order.order_no); + if (isRegistered) // 重複報名 + { + L_msg.Type = alert_type.warning; + L_msg.Text = "此信眾已報名過本活動"; + } + else + { + _db.pro_order.Add(pro_order); + _db.SaveChanges(); + + Model.admin_log admin_log = new Model.admin_log(); + admin_log.writeLog(admin.info.u_id, (int)Model.admin_log.Systems.Order, (int)Model.admin_log.Status.Insert, pro_order.order_no); - string url = "index.aspx"; - url = "reg.aspx?order_no=" + pro_order.order_no; - Response.Redirect(url); + string url = "index.aspx"; + url = "reg.aspx?order_no=" + pro_order.order_no; + Response.Redirect(url); + } } else { diff --git a/web/web.config b/web/web.config index 466bace..81d4ae7 100644 --- a/web/web.config +++ b/web/web.config @@ -42,11 +42,13 @@ + + - - + + From 7644df57d0e9253a0da06520cee40e1fa9a2fc0a Mon Sep 17 00:00:00 2001 From: enchiaaa Date: Tue, 21 Apr 2026 09:03:57 +0800 Subject: [PATCH 2/2] =?UTF-8?q?1.=20=E5=84=AA=E5=8C=96=E5=A0=B1=E5=90=8D?= =?UTF-8?q?=E9=A0=81=E9=9D=A2=EF=BC=9A=E5=BD=88=E5=87=BA=E6=9F=A5=E8=A9=A2?= =?UTF-8?q?=E9=A0=81=E9=9D=A2=E3=80=81=E9=A1=AF=E7=A4=BA=E5=89=9B=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E8=B3=87=E6=96=99=202.=20=E6=96=B0=E5=A2=9E=E5=A0=B1?= =?UTF-8?q?=E5=90=8D=E9=A0=81=E9=9D=A2=E5=8A=A0=E4=B8=8A=E5=8F=96=E6=B6=88?= =?UTF-8?q?=E9=8D=B5=203.=20=E5=84=AA=E5=8C=96=E7=99=BB=E5=85=A5=E9=A0=81?= =?UTF-8?q?=E9=9D=A2=EF=BC=9A=E6=8C=89=E4=B8=8B=20enter=20=E8=87=AA?= =?UTF-8?q?=E5=8B=95=E6=8F=9B=E6=A0=BC=EF=BC=8F=E9=80=81=E5=87=BA=204.=20?= =?UTF-8?q?=E4=BF=AE=E5=BE=A9=E6=96=B0=E5=A2=9E=E5=A0=B1=E5=90=8D=E9=A0=81?= =?UTF-8?q?=E9=9D=A2=E4=B8=AD=EF=BC=8C=E4=B8=8D=E5=90=8C=20search=5Fdialog?= =?UTF-8?q?=20=E4=B8=AD=E7=9A=84=20page=20=E5=8F=83=E6=95=B8=E7=9B=B8?= =?UTF-8?q?=E4=BA=92=E9=80=A3=E5=8B=95=E4=B9=8B=E7=95=B0=E5=B8=B8=205.=20?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=A0=B1=E5=90=8D=E9=A0=81=E9=9D=A2=E5=88=97?= =?UTF-8?q?=E5=8D=B0=E6=A0=BC=E5=BC=8F=206.=20=E4=BF=AE=E5=BE=A9=E5=A0=B1?= =?UTF-8?q?=E5=90=8D=E9=A0=81=E9=9D=A2=E5=8C=AF=E5=87=BA=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=207.=20=E5=84=AA=E5=8C=96=E5=A0=B1=E5=88=B0=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=208.=20=E5=A0=B1=E5=90=8D=E9=A0=81=E9=9D=A2=E4=B8=AD=EF=BC=8C?= =?UTF-8?q?=E7=84=A1=E6=9F=A5=E8=A9=A2=E8=B3=87=E6=96=99=E6=99=82=E4=B8=8D?= =?UTF-8?q?=E5=8F=AF=E9=BB=9E=E9=81=B8=E5=8C=AF=E5=87=BA=EF=BC=8F=E5=88=97?= =?UTF-8?q?=E5=8D=B0=E6=8C=89=E9=88=95=209.=20=E5=8C=AF=E5=87=BA=EF=BC=8F?= =?UTF-8?q?=E5=88=97=E5=8D=B0=E5=A0=B1=E5=90=8D=E7=AE=A1=E7=90=86=E5=A0=B1?= =?UTF-8?q?=E8=A1=A8=E6=99=82=EF=BC=8C=E8=8B=A5=E7=84=A1=E8=B3=87=E6=96=99?= =?UTF-8?q?=E5=89=87=E9=A1=AF=E7=A4=BA=E6=8F=90=E7=A4=BA=2010.=20=E4=BF=AE?= =?UTF-8?q?=E5=BE=A9=E5=88=97=E5=8D=B0=E7=AE=A1=E7=90=86=E5=A0=B1=E8=A1=A8?= =?UTF-8?q?=E5=BE=8C=E7=88=B6=E8=A6=96=E7=AA=97=20UI=20=E4=B8=8D=E8=83=BD?= =?UTF-8?q?=E9=BB=9E=E6=93=8A=E7=9A=84=E5=95=8F=E9=A1=8C=2011.=20=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E5=A0=B1=E5=90=8D=E7=AE=A1=E7=90=86=E8=A1=A8=E5=96=AE?= =?UTF-8?q?=E5=8C=AF=E5=87=BA=20excel=20=E5=8A=9F=E8=83=BD=2012.=20?= =?UTF-8?q?=E6=96=BC=E6=96=B0=E5=A2=9E=E4=BF=A1=E7=9C=BE=E3=80=81=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E6=B4=BB=E5=8B=95=E9=A0=81=E9=9D=A2=E5=8A=A0=E4=B8=8A?= =?UTF-8?q?=E5=8F=96=E6=B6=88=E9=8D=B5=2013.=20=E5=84=AA=E5=8C=96=E5=A0=B1?= =?UTF-8?q?=E5=90=8D=E7=AE=A1=E7=90=86=E5=8C=AF=E5=87=BA=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=EF=BC=9A=E8=8B=A5=E7=AF=A9=E9=81=B8=E6=A2=9D=E4=BB=B6=E5=8C=85?= =?UTF-8?q?=E5=90=AB=E7=89=B9=E5=AE=9A=E6=B4=BB=E5=8B=95=EF=BC=8C=E8=87=AA?= =?UTF-8?q?=E5=8B=95=E6=96=BC=E3=80=8C=E5=8C=AF=E5=87=BA=E6=A2=9D=E4=BB=B6?= =?UTF-8?q?=E3=80=8D=E6=AC=84=E4=BD=8D=E6=A8=99=E8=A8=BB=E6=B4=BB=E5=8B=95?= =?UTF-8?q?=E5=90=8D=E7=A8=B1=2014.=20=E5=84=AA=E5=8C=96=E5=A0=B1=E5=90=8D?= =?UTF-8?q?=E6=9F=A5=E8=A9=A2=E5=8C=AF=E5=87=BA=E5=8A=9F=E8=83=BD=EF=BC=9A?= =?UTF-8?q?=E5=8C=AF=E5=87=BA=E4=B9=8B=E6=96=87=E4=BB=B6=E4=B8=AD=E5=8A=A0?= =?UTF-8?q?=E4=B8=8A=E3=80=8C=E5=8C=AF=E5=87=BA=E6=A2=9D=E4=BB=B6=E3=80=8D?= =?UTF-8?q?=E6=AC=84=E4=BD=8D=2015.=20=E4=BF=AE=E5=BE=A9=E4=BF=A1=E7=9C=BE?= =?UTF-8?q?=E8=B3=87=E6=96=99=E9=A0=81=E9=9D=A2=E4=B8=AD=EF=BC=8C=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=E3=80=8C=E7=94=9F=E6=97=A5=E3=80=8D=E4=BD=9C=E7=82=BA?= =?UTF-8?q?=E7=AF=A9=E9=81=B8=E5=9F=BA=E6=BA=96=E6=99=82=EF=BC=8C=E5=BE=8C?= =?UTF-8?q?=E7=BA=8C=E5=9F=B7=E8=A1=8C=E3=80=8C=E5=88=97=E5=8D=B0=E6=9F=A5?= =?UTF-8?q?=E8=A9=A2=E8=B3=87=E6=96=99=E3=80=8D=E8=88=87=E3=80=8C=E5=8C=AF?= =?UTF-8?q?=E5=87=BA=E6=9F=A5=E8=A9=A2=E8=B3=87=E6=96=99=E3=80=8D=E6=9C=83?= =?UTF-8?q?=E5=A0=B1=E9=8C=AF=2016.=20=E4=BF=AE=E5=BE=A9=E3=80=8C=E5=88=97?= =?UTF-8?q?=E5=8D=B0=E4=BF=A1=E7=9C=BE=E6=9F=A5=E8=A9=A2=E3=80=8D=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E4=B8=AD=EF=BC=8C=E9=9B=BB=E8=A9=B1=E6=90=9C=E5=B0=8B?= =?UTF-8?q?=E6=AC=84=E4=BD=8D=E6=9C=AA=E6=AD=A3=E7=A2=BA=E5=B8=B6=E5=85=A5?= =?UTF-8?q?=E6=9F=A5=E8=A9=A2=E6=A2=9D=E4=BB=B6=E4=B9=8B=E7=95=B0=E5=B8=B8?= =?UTF-8?q?=2017.=20=E8=A7=A3=E6=B1=BA=E4=B8=AD=E6=96=87=E8=BC=B8=E5=85=A5?= =?UTF-8?q?=E6=B3=95=E8=BC=B8=E5=85=A5=E9=9B=BB=E8=A9=B1=E8=99=9F=E7=A2=BC?= =?UTF-8?q?=E7=9A=84=E8=B7=B3=E5=AD=97=E5=95=8F=E9=A1=8C=2018.=20=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E5=93=81=E9=A0=85=E7=AE=A1=E7=90=86=E4=BB=8B=E9=9D=A2?= =?UTF-8?q?=E6=8E=92=E5=BA=8F=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/App_Code/Model/Model.Context.cs | 76 +-- web/App_Code/Model/Model.cs | 355 ++++++------ web/App_Code/Model/Model.edmx | 55 +- web/App_Code/api/FollowerController.cs | 6 +- web/App_Code/api/activityController.cs | 42 +- web/App_Code/api/orderController.cs | 16 +- web/admin/Templates/TBS5ADM001/uc/menu.ascx | 3 +- web/admin/activity/index2.aspx | 331 +++++++---- web/admin/activity/index2.aspx.cs | 2 +- web/admin/activity/item_reg.aspx.cs | 2 + web/admin/activity/reg.aspx | 2 +- web/admin/follower/index.aspx | 30 +- web/admin/follower/index.aspx.cs | 20 +- web/admin/follower/print.aspx.cs | 15 +- web/admin/follower/reg.aspx | 26 +- web/admin/index.aspx | 33 +- web/admin/order/index.aspx | 295 +++++++--- web/admin/order/index.aspx.cs | 591 +++++++++++++++++++- web/admin/order/index2.aspx | 4 +- web/admin/order/print.aspx | 19 +- web/admin/order/print.aspx.cs | 108 +++- web/admin/order/reg.aspx | 5 +- web/admin/order/reg.aspx.cs | 3 + 資料庫修改紀錄.txt | 8 + 24 files changed, 1505 insertions(+), 542 deletions(-) create mode 100644 資料庫修改紀錄.txt diff --git a/web/App_Code/Model/Model.Context.cs b/web/App_Code/Model/Model.Context.cs index 0e8b938..d4d20be 100644 --- a/web/App_Code/Model/Model.Context.cs +++ b/web/App_Code/Model/Model.Context.cs @@ -1,9 +1,9 @@ -//------------------------------------------------------------------------------ +//------------------------------------------------------------------------------ // -// oӵ{XOѽd͡C +// 這個程式碼是由範本產生。 // -// oɮ׶iܧiɭPzε{ͥw欰C -// pGs͵{XAN|мgoɮתܧC +// 對這個檔案進行手動變更可能導致您的應用程式產生未預期的行為。 +// 如果重新產生程式碼,將會覆寫對這個檔案的手動變更。 // //------------------------------------------------------------------------------ @@ -14,19 +14,19 @@ namespace Model using System.Data.Entity.Infrastructure; using System.Data.Entity.Core.Objects; using System.Linq; - + public partial class ezEntities : DbContext { public ezEntities() : base("name=ezEntities") { } - + protected override void OnModelCreating(DbModelBuilder modelBuilder) { throw new UnintentionalCodeFirstException(); } - + public virtual DbSet accountings { get; set; } public virtual DbSet accounting_files { get; set; } public virtual DbSet accounting_kind { get; set; } @@ -94,134 +94,134 @@ namespace Model public virtual DbSet AncestralTabletRegistrant { get; set; } public virtual DbSet AncestralTabletStatus { get; set; } public virtual DbSet GuaDanOrderGuest { get; set; } - + public virtual int pager_eztrust(Nullable startRowIndex, Nullable pageSize, string tableName, string columnName, string sqlWhere, string orderBy, ObjectParameter rowCount) { var startRowIndexParameter = startRowIndex.HasValue ? new ObjectParameter("StartRowIndex", startRowIndex) : new ObjectParameter("StartRowIndex", typeof(int)); - + var pageSizeParameter = pageSize.HasValue ? new ObjectParameter("PageSize", pageSize) : new ObjectParameter("PageSize", typeof(int)); - + var tableNameParameter = tableName != null ? new ObjectParameter("tableName", tableName) : new ObjectParameter("tableName", typeof(string)); - + var columnNameParameter = columnName != null ? new ObjectParameter("columnName", columnName) : new ObjectParameter("columnName", typeof(string)); - + var sqlWhereParameter = sqlWhere != null ? new ObjectParameter("sqlWhere", sqlWhere) : new ObjectParameter("sqlWhere", typeof(string)); - + var orderByParameter = orderBy != null ? new ObjectParameter("orderBy", orderBy) : new ObjectParameter("orderBy", typeof(string)); - + return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("pager_eztrust", startRowIndexParameter, pageSizeParameter, tableNameParameter, columnNameParameter, sqlWhereParameter, orderByParameter, rowCount); } - + public virtual int sp_alterdiagram(string diagramname, Nullable owner_id, Nullable version, byte[] definition) { var diagramnameParameter = diagramname != null ? new ObjectParameter("diagramname", diagramname) : new ObjectParameter("diagramname", typeof(string)); - + var owner_idParameter = owner_id.HasValue ? new ObjectParameter("owner_id", owner_id) : new ObjectParameter("owner_id", typeof(int)); - + var versionParameter = version.HasValue ? new ObjectParameter("version", version) : new ObjectParameter("version", typeof(int)); - + var definitionParameter = definition != null ? new ObjectParameter("definition", definition) : new ObjectParameter("definition", typeof(byte[])); - + return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("sp_alterdiagram", diagramnameParameter, owner_idParameter, versionParameter, definitionParameter); } - + public virtual int sp_creatediagram(string diagramname, Nullable owner_id, Nullable version, byte[] definition) { var diagramnameParameter = diagramname != null ? new ObjectParameter("diagramname", diagramname) : new ObjectParameter("diagramname", typeof(string)); - + var owner_idParameter = owner_id.HasValue ? new ObjectParameter("owner_id", owner_id) : new ObjectParameter("owner_id", typeof(int)); - + var versionParameter = version.HasValue ? new ObjectParameter("version", version) : new ObjectParameter("version", typeof(int)); - + var definitionParameter = definition != null ? new ObjectParameter("definition", definition) : new ObjectParameter("definition", typeof(byte[])); - + return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("sp_creatediagram", diagramnameParameter, owner_idParameter, versionParameter, definitionParameter); } - + public virtual int sp_dropdiagram(string diagramname, Nullable owner_id) { var diagramnameParameter = diagramname != null ? new ObjectParameter("diagramname", diagramname) : new ObjectParameter("diagramname", typeof(string)); - + var owner_idParameter = owner_id.HasValue ? new ObjectParameter("owner_id", owner_id) : new ObjectParameter("owner_id", typeof(int)); - + return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("sp_dropdiagram", diagramnameParameter, owner_idParameter); } - + public virtual ObjectResult sp_helpdiagramdefinition(string diagramname, Nullable owner_id) { var diagramnameParameter = diagramname != null ? new ObjectParameter("diagramname", diagramname) : new ObjectParameter("diagramname", typeof(string)); - + var owner_idParameter = owner_id.HasValue ? new ObjectParameter("owner_id", owner_id) : new ObjectParameter("owner_id", typeof(int)); - + return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("sp_helpdiagramdefinition", diagramnameParameter, owner_idParameter); } - + public virtual ObjectResult sp_helpdiagrams(string diagramname, Nullable owner_id) { var diagramnameParameter = diagramname != null ? new ObjectParameter("diagramname", diagramname) : new ObjectParameter("diagramname", typeof(string)); - + var owner_idParameter = owner_id.HasValue ? new ObjectParameter("owner_id", owner_id) : new ObjectParameter("owner_id", typeof(int)); - + return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("sp_helpdiagrams", diagramnameParameter, owner_idParameter); } - + public virtual int sp_renamediagram(string diagramname, Nullable owner_id, string new_diagramname) { var diagramnameParameter = diagramname != null ? new ObjectParameter("diagramname", diagramname) : new ObjectParameter("diagramname", typeof(string)); - + var owner_idParameter = owner_id.HasValue ? new ObjectParameter("owner_id", owner_id) : new ObjectParameter("owner_id", typeof(int)); - + var new_diagramnameParameter = new_diagramname != null ? new ObjectParameter("new_diagramname", new_diagramname) : new ObjectParameter("new_diagramname", typeof(string)); - + return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("sp_renamediagram", diagramnameParameter, owner_idParameter, new_diagramnameParameter); } - + public virtual int sp_upgraddiagrams() { return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("sp_upgraddiagrams"); diff --git a/web/App_Code/Model/Model.cs b/web/App_Code/Model/Model.cs index 05578ba..7e96c16 100644 --- a/web/App_Code/Model/Model.cs +++ b/web/App_Code/Model/Model.cs @@ -1,9 +1,9 @@ -//------------------------------------------------------------------------------ +//------------------------------------------------------------------------------ // -// oӵ{XOѽd͡C +// 這個程式碼是由範本產生。 // -// oɮ׶iܧiɭPzε{ͥw欰C -// pGs͵{XAN|мgoɮתܧC +// 對這個檔案進行手動變更可能導致您的應用程式產生未預期的行為。 +// 如果重新產生程式碼,將會覆寫對這個檔案的手動變更。 // //------------------------------------------------------------------------------ @@ -11,7 +11,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class accounting { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] @@ -20,7 +20,7 @@ namespace Model this.accounting_files = new HashSet(); this.transfer_register = new HashSet(); } - + public int num { get; set; } public Nullable uptime { get; set; } public Nullable category { get; set; } @@ -35,7 +35,7 @@ namespace Model public string excerpt { get; set; } public Nullable reg_time { get; set; } public Nullable pro_order_detail_num { get; set; } - + public virtual accounting_kind accounting_kind { get; set; } public virtual accounting_kind2 accounting_kind2 { get; set; } public virtual activity activity { get; set; } @@ -51,7 +51,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class accounting_files { public int num { get; set; } @@ -59,7 +59,7 @@ namespace Model public Nullable reg_time { get; set; } public string pic1 { get; set; } public string pic1_name { get; set; } - + public virtual accounting accounting { get; set; } } } @@ -67,7 +67,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class accounting_kind { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] @@ -75,14 +75,14 @@ namespace Model { this.accountings = new HashSet(); } - + public int num { get; set; } public string kind { get; set; } public Nullable root { get; set; } public Nullable range { get; set; } public string demo { get; set; } public string title { get; set; } - + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection accountings { get; set; } } @@ -91,7 +91,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class accounting_kind2 { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] @@ -101,7 +101,7 @@ namespace Model this.pro_order_record = new HashSet(); this.transfer_register = new HashSet(); } - + public int num { get; set; } public string kind { get; set; } public Nullable root { get; set; } @@ -112,7 +112,7 @@ namespace Model public string bank_code { get; set; } public string bank_id { get; set; } public string record_payment { get; set; } - + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection accountings { get; set; } [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] @@ -125,7 +125,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class act_bom { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] @@ -133,7 +133,7 @@ namespace Model { this.act_bom1 = new HashSet(); } - + public int num { get; set; } public Nullable package_num { get; set; } public Nullable item_num { get; set; } @@ -142,7 +142,7 @@ namespace Model public Nullable optional { get; set; } public Nullable qty { get; set; } public string memo { get; set; } - + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection act_bom1 { get; set; } public virtual act_bom act_bom2 { get; set; } @@ -153,7 +153,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class actItem { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] @@ -169,7 +169,7 @@ namespace Model this.act_bom = new HashSet(); this.transfer_register = new HashSet(); } - + public int num { get; set; } public string subject { get; set; } public Nullable kind { get; set; } @@ -184,7 +184,8 @@ namespace Model public string partno { get; set; } public string print_init { get; set; } public string is_reconcile { get; set; } - + public Nullable sort_order { get; set; } + public virtual actItem_kind actItem_kind { get; set; } [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection actItem_files { get; set; } @@ -210,14 +211,14 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class actItem_files { public int num { get; set; } public int actItem_num { get; set; } public int files_num { get; set; } public Nullable reg_time { get; set; } - + public virtual actItem actItem { get; set; } public virtual file file { get; set; } } @@ -226,7 +227,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class actItem_kind { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] @@ -234,14 +235,14 @@ namespace Model { this.actItems = new HashSet(); } - + public int num { get; set; } public string kind { get; set; } public Nullable root { get; set; } public Nullable range { get; set; } public string demo { get; set; } public string status { get; set; } - + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection actItems { get; set; } } @@ -250,7 +251,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class activity { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] @@ -265,7 +266,7 @@ namespace Model this.stocks = new HashSet(); this.transfer_register = new HashSet(); } - + public int num { get; set; } public Nullable kind { get; set; } public string subject { get; set; } @@ -284,7 +285,7 @@ namespace Model public string customize_data { get; set; } public Nullable category_kind { get; set; } public string print_init { get; set; } - + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection accountings { get; set; } public virtual activity_category_kind activity_category_kind { get; set; } @@ -309,7 +310,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class activity_category_kind { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] @@ -317,12 +318,12 @@ namespace Model { this.activities = new HashSet(); } - + public int num { get; set; } public string kind { get; set; } public Nullable root { get; set; } public Nullable range { get; set; } - + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection activities { get; set; } } @@ -331,7 +332,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class activity_check { public int num { get; set; } @@ -340,7 +341,7 @@ namespace Model public Nullable reg_time { get; set; } public Nullable status { get; set; } public Nullable qty { get; set; } - + public virtual activity activity { get; set; } public virtual follower follower { get; set; } } @@ -349,7 +350,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class activity_kind { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] @@ -358,7 +359,7 @@ namespace Model this.activities = new HashSet(); this.activity_kind_detail = new HashSet(); } - + public int num { get; set; } public string kind { get; set; } public Nullable root { get; set; } @@ -367,7 +368,7 @@ namespace Model public string calendar { get; set; } public Nullable month { get; set; } public Nullable day { get; set; } - + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection activities { get; set; } [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] @@ -378,7 +379,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class activity_kind_detail { public int num { get; set; } @@ -387,7 +388,7 @@ namespace Model public Nullable price { get; set; } public Nullable qty { get; set; } public Nullable reg_time { get; set; } - + public virtual actItem actItem { get; set; } public virtual activity_kind activity_kind { get; set; } } @@ -396,7 +397,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class activity_relating { public int num { get; set; } @@ -405,7 +406,7 @@ namespace Model public Nullable price { get; set; } public Nullable qty { get; set; } public Nullable reg_time { get; set; } - + public virtual actItem actItem { get; set; } public virtual activity activity { get; set; } } @@ -414,7 +415,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class activity_spares { public int num { get; set; } @@ -424,7 +425,7 @@ namespace Model public Nullable qty2 { get; set; } public string demo { get; set; } public Nullable reg_time { get; set; } - + public virtual actItem actItem { get; set; } public virtual activity activity { get; set; } } @@ -433,7 +434,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class admin { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] @@ -443,7 +444,7 @@ namespace Model this.news = new HashSet(); this.GuaDanOrder = new HashSet(); } - + public int num { get; set; } public string u_id { get; set; } public string u_password { get; set; } @@ -470,7 +471,7 @@ namespace Model public string wrp_bar { get; set; } public string gauth_key { get; set; } public Nullable gauth_enabled { get; set; } - + public virtual admin_group admin_group { get; set; } [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection members { get; set; } @@ -484,7 +485,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class admin_group { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] @@ -492,11 +493,11 @@ namespace Model { this.admins = new HashSet(); } - + public string g_name { get; set; } public string items { get; set; } public string demo { get; set; } - + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection admins { get; set; } } @@ -505,7 +506,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class admin_log { public int num { get; set; } @@ -522,7 +523,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class AncestralTabletArea { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] @@ -531,7 +532,7 @@ namespace Model this.AncestralTabletArea1 = new HashSet(); this.AncestralTabletPosition = new HashSet(); } - + public int AreaId { get; set; } public string AreaName { get; set; } public string AreaCode { get; set; } @@ -541,7 +542,7 @@ namespace Model public Nullable SortOrder { get; set; } public bool IsDisabled { get; set; } public string Description { get; set; } - + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection AncestralTabletArea1 { get; set; } public virtual AncestralTabletArea AncestralTabletArea2 { get; set; } @@ -553,7 +554,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class AncestralTabletPosition { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] @@ -561,7 +562,7 @@ namespace Model { this.AncestralTabletRegistrant = new HashSet(); } - + public int PositionId { get; set; } public int AreaId { get; set; } public string PositionCode { get; set; } @@ -571,7 +572,7 @@ namespace Model public string Description { get; set; } public Nullable RowNo { get; set; } public Nullable ColumnNo { get; set; } - + public virtual AncestralTabletArea AncestralTabletArea { get; set; } public virtual AncestralTabletStatus AncestralTabletStatus { get; set; } [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] @@ -582,7 +583,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class AncestralTabletPositionRecord { public int RecordId { get; set; } @@ -593,7 +594,7 @@ namespace Model public string WPContent { get; set; } public System.DateTime CreatedAt { get; set; } public Nullable UpdatedAt { get; set; } - + public virtual AncestralTabletRegistrant AncestralTabletRegistrant { get; set; } } } @@ -601,7 +602,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class AncestralTabletRegistrant { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] @@ -609,7 +610,7 @@ namespace Model { this.AncestralTabletPositionRecord = new HashSet(); } - + public string RegistrantCode { get; set; } public string Name { get; set; } public string Phone { get; set; } @@ -624,7 +625,7 @@ namespace Model public System.DateTime CreatedAt { get; set; } public Nullable UpdatedAt { get; set; } public bool IsEnd { get; set; } - + public virtual AncestralTabletPosition AncestralTabletPosition { get; set; } [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection AncestralTabletPositionRecord { get; set; } @@ -634,7 +635,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class AncestralTabletStatus { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] @@ -642,11 +643,11 @@ namespace Model { this.AncestralTabletPosition = new HashSet(); } - + public string StatusCode { get; set; } public string StatusName { get; set; } public string StatusType { get; set; } - + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection AncestralTabletPosition { get; set; } } @@ -655,7 +656,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class appellation { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] @@ -663,10 +664,10 @@ namespace Model { this.followers = new HashSet(); } - + public int num { get; set; } public string title { get; set; } - + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection followers { get; set; } } @@ -675,7 +676,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class bed_kind { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] @@ -685,14 +686,14 @@ namespace Model this.bed_order_detail = new HashSet(); this.bed_order_detail1 = new HashSet(); } - + public int num { get; set; } public string kind { get; set; } public Nullable root { get; set; } public Nullable range { get; set; } public string demo { get; set; } public string sex { get; set; } - + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection bed_kind_detail { get; set; } [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] @@ -705,7 +706,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class bed_kind_detail { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] @@ -713,13 +714,13 @@ namespace Model { this.bed_order_detail = new HashSet(); } - + public int num { get; set; } public Nullable bed_kind_id { get; set; } public string bed_name { get; set; } public Nullable bed_type { get; set; } public string demo { get; set; } - + public virtual bed_kind bed_kind { get; set; } [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection bed_order_detail { get; set; } @@ -729,7 +730,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class bed_order { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] @@ -737,7 +738,7 @@ namespace Model { this.bed_order_detail = new HashSet(); } - + public string bed_order_no { get; set; } public string order_no { get; set; } public Nullable o_detail_id { get; set; } @@ -747,7 +748,7 @@ namespace Model public string keyin1 { get; set; } public string demo { get; set; } public Nullable reg_time { get; set; } - + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection bed_order_detail { get; set; } public virtual pro_order pro_order { get; set; } @@ -758,7 +759,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class bed_order_detail { public int num { get; set; } @@ -768,7 +769,7 @@ namespace Model public Nullable bed_kind2 { get; set; } public Nullable bed_kind_detail_id { get; set; } public string license { get; set; } - + public virtual bed_kind bed_kind { get; set; } public virtual bed_kind bed_kind3 { get; set; } public virtual bed_kind_detail bed_kind_detail { get; set; } @@ -779,7 +780,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class company { public int num { get; set; } @@ -808,7 +809,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class country { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] @@ -816,14 +817,14 @@ namespace Model { this.followers = new HashSet(); } - + public string ID { get; set; } public string ID2 { get; set; } public string ID3 { get; set; } public Nullable range { get; set; } public string name_en { get; set; } public string name_zh { get; set; } - + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection followers { get; set; } } @@ -832,7 +833,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class family_members { public int num { get; set; } @@ -851,7 +852,7 @@ namespace Model public string mobile { get; set; } public string city { get; set; } public string area { get; set; } - + public virtual follower follower { get; set; } } } @@ -859,7 +860,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class file { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] @@ -867,7 +868,7 @@ namespace Model { this.actItem_files = new HashSet(); } - + public int num { get; set; } public string subject { get; set; } public string word { get; set; } @@ -875,7 +876,7 @@ namespace Model public Nullable modify_time { get; set; } public string customize_data { get; set; } public string paperset { get; set; } - + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection actItem_files { get; set; } } @@ -884,7 +885,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class follower { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] @@ -904,7 +905,7 @@ namespace Model this.GuaDanOrder = new HashSet(); this.GuaDanOrderGuest = new HashSet(); } - + public int num { get; set; } public string f_number { get; set; } public string u_name { get; set; } @@ -937,7 +938,7 @@ namespace Model public Nullable appellation_id { get; set; } public string follower_hash { get; set; } public string search_keywords { get; set; } - + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection activity_check { get; set; } public virtual appellation appellation { get; set; } @@ -973,14 +974,14 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class followers_tablet { public int num { get; set; } public Nullable f_num { get; set; } public string title { get; set; } public string type { get; set; } - + public virtual follower follower { get; set; } } } @@ -988,7 +989,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class GuaDanOrder { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] @@ -996,7 +997,7 @@ namespace Model { this.GuaDanOrderGuest = new HashSet(); } - + public Nullable StartDate { get; set; } public Nullable EndDate { get; set; } public Nullable CreateUser { get; set; } @@ -1011,7 +1012,7 @@ namespace Model public System.Guid Uuid { get; set; } public Nullable ActivityNum { get; set; } public bool IsCancel { get; set; } - + public virtual admin admin { get; set; } public virtual follower followers { get; set; } [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] @@ -1022,7 +1023,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class GuaDanOrderGuest { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] @@ -1030,7 +1031,7 @@ namespace Model { this.RegionAndRoomAndBedSchedule = new HashSet(); } - + public string GuaDanOrderNo { get; set; } public Nullable FollowerNum { get; set; } public bool IsDeleted { get; set; } @@ -1041,7 +1042,7 @@ namespace Model public Nullable CheckOutAt { get; set; } public string StatusCode { get; set; } public Nullable OrderUuid { get; set; } - + public virtual follower followers { get; set; } public virtual GuaDanOrder GuaDanOrder { get; set; } public virtual RegionRoomBed RegionRoomBed { get; set; } @@ -1055,7 +1056,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class GuadanTimeSetting { public System.Guid Id { get; set; } @@ -1070,7 +1071,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class item { public int num { get; set; } @@ -1090,7 +1091,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class member { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] @@ -1101,7 +1102,7 @@ namespace Model this.stocks = new HashSet(); this.transfer_register = new HashSet(); } - + public int num { get; set; } public Nullable f_num { get; set; } public string m_number { get; set; } @@ -1129,7 +1130,7 @@ namespace Model public string address2 { get; set; } public Nullable reg_time { get; set; } public string pic1 { get; set; } - + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection accountings { get; set; } public virtual admin admin { get; set; } @@ -1148,7 +1149,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class member_check { public int num { get; set; } @@ -1160,7 +1161,7 @@ namespace Model public Nullable login_type { get; set; } public string login_ip { get; set; } public Nullable hour { get; set; } - + public virtual member member { get; set; } } } @@ -1168,7 +1169,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class member_group { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] @@ -1176,7 +1177,7 @@ namespace Model { this.members = new HashSet(); } - + public int num { get; set; } public string kind { get; set; } public Nullable starttime { get; set; } @@ -1185,7 +1186,7 @@ namespace Model public Nullable root { get; set; } public Nullable range { get; set; } public string demo { get; set; } - + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection members { get; set; } } @@ -1194,7 +1195,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class member_title { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] @@ -1202,14 +1203,14 @@ namespace Model { this.members = new HashSet(); } - + public int num { get; set; } public string kind { get; set; } public Nullable root { get; set; } public Nullable range { get; set; } public string demo { get; set; } public string status { get; set; } - + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection members { get; set; } } @@ -1218,7 +1219,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class news { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] @@ -1226,7 +1227,7 @@ namespace Model { this.news_files = new HashSet(); } - + public int num { get; set; } public string subject { get; set; } public Nullable kind { get; set; } @@ -1241,7 +1242,7 @@ namespace Model public Nullable range { get; set; } public Nullable author { get; set; } public Nullable activity_num { get; set; } - + public virtual activity activity { get; set; } public virtual admin admin { get; set; } [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] @@ -1253,7 +1254,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class news_files { public string num { get; set; } @@ -1262,7 +1263,7 @@ namespace Model public Nullable reg_time { get; set; } public string pic_name { get; set; } public string pic_type { get; set; } - + public virtual news news { get; set; } } } @@ -1270,7 +1271,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class news_kind { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] @@ -1278,14 +1279,14 @@ namespace Model { this.news = new HashSet(); } - + public int num { get; set; } public string kind { get; set; } public Nullable root { get; set; } public Nullable range { get; set; } public string demo { get; set; } public string status { get; set; } - + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection news { get; set; } } @@ -1294,7 +1295,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class PostCity { public string city { get; set; } @@ -1304,7 +1305,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class PostNumber { public int ID { get; set; } @@ -1317,7 +1318,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class pro_order { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] @@ -1326,7 +1327,7 @@ namespace Model this.bed_order = new HashSet(); this.pro_order_detail = new HashSet(); } - + public string order_no { get; set; } public Nullable up_time { get; set; } public Nullable reg_time { get; set; } @@ -1340,7 +1341,7 @@ namespace Model public Nullable introducer { get; set; } public Nullable send_receipt { get; set; } public string receipt_title { get; set; } - + public virtual activity activity { get; set; } [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection bed_order { get; set; } @@ -1354,7 +1355,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class pro_order_detail { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] @@ -1365,7 +1366,7 @@ namespace Model this.accountings = new HashSet(); this.transfer_register = new HashSet(); } - + public int num { get; set; } public string order_no { get; set; } public Nullable actItem_num { get; set; } @@ -1389,7 +1390,7 @@ namespace Model public Nullable parent_num { get; set; } public string print_id { get; set; } public Nullable UpdateTime { get; set; } - + public virtual actItem actItem { get; set; } [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection bed_order { get; set; } @@ -1408,7 +1409,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class pro_order_record { public int num { get; set; } @@ -1421,7 +1422,7 @@ namespace Model public string bank_code { get; set; } public Nullable transfer_id { get; set; } public string reconcile_memo { get; set; } - + public virtual accounting_kind2 accounting_kind2 { get; set; } public virtual pro_order_detail pro_order_detail { get; set; } public virtual transfer_register transfer_register { get; set; } @@ -1431,7 +1432,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class project { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] @@ -1439,14 +1440,14 @@ namespace Model { this.project_sub = new HashSet(); } - + public int num { get; set; } public string subject { get; set; } public Nullable kind { get; set; } public Nullable actItem_num { get; set; } public string demo { get; set; } public Nullable reg_time { get; set; } - + public virtual actItem actItem { get; set; } public virtual project_kind project_kind { get; set; } [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] @@ -1457,7 +1458,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class project_kind { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] @@ -1465,13 +1466,13 @@ namespace Model { this.projects = new HashSet(); } - + public int num { get; set; } public string kind { get; set; } public Nullable root { get; set; } public Nullable range { get; set; } public string demo { get; set; } - + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection projects { get; set; } } @@ -1480,7 +1481,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class project_sub { public int num { get; set; } @@ -1490,7 +1491,7 @@ namespace Model public string word { get; set; } public string pic1 { get; set; } public Nullable pro_id { get; set; } - + public virtual project project { get; set; } } } @@ -1498,7 +1499,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class Region { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] @@ -1507,7 +1508,7 @@ namespace Model this.Region1 = new HashSet(); this.Room = new HashSet(); } - + public string Name { get; set; } public string Description { get; set; } public Nullable SortOrder { get; set; } @@ -1521,7 +1522,7 @@ namespace Model public Nullable ParentUuid { get; set; } public Nullable RegionTypeUuid { get; set; } public Nullable Gender { get; set; } - + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection Region1 { get; set; } public virtual Region Region2 { get; set; } @@ -1534,7 +1535,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class RegionAndRoomAndBedSchedule { public int UseType { get; set; } @@ -1549,7 +1550,7 @@ namespace Model public Nullable ScheduleDate { get; set; } public bool IsCancel { get; set; } public Nullable GuaDanOrderGuestUuid { get; set; } - + public virtual GuaDanOrderGuest GuaDanOrderGuest { get; set; } } } @@ -1557,7 +1558,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class RegionRoomBed { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] @@ -1565,7 +1566,7 @@ namespace Model { this.GuaDanOrderGuest = new HashSet(); } - + public string Name { get; set; } public bool IsActive { get; set; } public bool Gender { get; set; } @@ -1573,7 +1574,7 @@ namespace Model public System.Guid Uuid { get; set; } public System.Guid RoomUuid { get; set; } public string StatusCode { get; set; } - + public virtual Room Room { get; set; } public virtual RegionRoomBedStatus RegionRoomBedStatus { get; set; } [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] @@ -1584,7 +1585,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class RegionRoomBedStatus { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] @@ -1593,13 +1594,13 @@ namespace Model this.RegionRoomBed = new HashSet(); this.GuaDanOrderGuest = new HashSet(); } - + public string Code { get; set; } public string Name { get; set; } public string Description { get; set; } public Nullable Category { get; set; } public bool IsDeleted { get; set; } - + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection RegionRoomBed { get; set; } [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] @@ -1610,7 +1611,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class RegionType { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] @@ -1618,14 +1619,14 @@ namespace Model { this.Region = new HashSet(); } - + public string Code { get; set; } public string Name { get; set; } public bool IsActive { get; set; } public Nullable CreateAt { get; set; } public bool IsDeleted { get; set; } public System.Guid Uuid { get; set; } - + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection Region { get; set; } } @@ -1634,7 +1635,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class Room { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] @@ -1643,7 +1644,7 @@ namespace Model this.RegionRoomBed = new HashSet(); this.GuaDanOrderGuest = new HashSet(); } - + public string Name { get; set; } public bool Gender { get; set; } public Nullable BedCount { get; set; } @@ -1653,7 +1654,7 @@ namespace Model public bool IsDeleted { get; set; } public System.Guid Uuid { get; set; } public System.Guid RegionUuid { get; set; } - + public virtual Region Region { get; set; } [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection RegionRoomBed { get; set; } @@ -1665,7 +1666,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class ShuWen { public int ID { get; set; } @@ -1680,7 +1681,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class stock { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] @@ -1688,7 +1689,7 @@ namespace Model { this.stock_files = new HashSet(); } - + public int num { get; set; } public Nullable uptime { get; set; } public Nullable category { get; set; } @@ -1706,7 +1707,7 @@ namespace Model public Nullable supplier { get; set; } public Nullable final_stock { get; set; } public Nullable rent_stock { get; set; } - + public virtual actItem actItem { get; set; } public virtual activity activity { get; set; } public virtual member member { get; set; } @@ -1721,7 +1722,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class stock_files { public int num { get; set; } @@ -1729,7 +1730,7 @@ namespace Model public Nullable reg_time { get; set; } public string pic1 { get; set; } public string pic1_name { get; set; } - + public virtual stock stock { get; set; } } } @@ -1737,7 +1738,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class stock_kind { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] @@ -1745,13 +1746,13 @@ namespace Model { this.stocks = new HashSet(); } - + public int num { get; set; } public string kind { get; set; } public Nullable root { get; set; } public Nullable range { get; set; } public string demo { get; set; } - + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection stocks { get; set; } } @@ -1760,7 +1761,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class stock_reason { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] @@ -1768,13 +1769,13 @@ namespace Model { this.stocks = new HashSet(); } - + public int num { get; set; } public string kind { get; set; } public Nullable root { get; set; } public Nullable range { get; set; } public Nullable category { get; set; } - + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection stocks { get; set; } } @@ -1783,7 +1784,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class supplier { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] @@ -1791,7 +1792,7 @@ namespace Model { this.stocks = new HashSet(); } - + public int num { get; set; } public string s_number { get; set; } public string u_name { get; set; } @@ -1807,7 +1808,7 @@ namespace Model public Nullable reg_time { get; set; } public string admin_log { get; set; } public string c_num { get; set; } - + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection stocks { get; set; } public virtual supplier_kind supplier_kind { get; set; } @@ -1817,7 +1818,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class supplier_kind { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] @@ -1825,13 +1826,13 @@ namespace Model { this.suppliers = new HashSet(); } - + public int num { get; set; } public string kind { get; set; } public Nullable root { get; set; } public Nullable range { get; set; } public string demo { get; set; } - + [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")] public virtual ICollection suppliers { get; set; } } @@ -1840,7 +1841,7 @@ namespace Model { using System; using System.Collections.Generic; - + public partial class transfer_register { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")] @@ -1848,7 +1849,7 @@ namespace Model { this.pro_order_record = new HashSet(); } - + public int id { get; set; } public Nullable activity_num { get; set; } public string name { get; set; } @@ -1876,7 +1877,7 @@ namespace Model public Nullable remain_amount { get; set; } public Nullable balance_act_item { get; set; } public Nullable balance_pro_order_detail { get; set; } - + public virtual accounting accounting { get; set; } public virtual accounting_kind2 accounting_kind2 { get; set; } public virtual activity activity { get; set; } @@ -1892,7 +1893,7 @@ namespace Model namespace Model { using System; - + public partial class sp_helpdiagramdefinition_Result { public Nullable version { get; set; } @@ -1902,7 +1903,7 @@ namespace Model namespace Model { using System; - + public partial class sp_helpdiagrams_Result { public string Database { get; set; } diff --git a/web/App_Code/Model/Model.edmx b/web/App_Code/Model/Model.edmx index 9bd2192..737f647 100644 --- a/web/App_Code/Model/Model.edmx +++ b/web/App_Code/Model/Model.edmx @@ -91,6 +91,7 @@ + @@ -480,7 +481,7 @@ - + @@ -604,8 +605,8 @@ - - + + @@ -980,7 +981,7 @@ - + @@ -1079,7 +1080,9 @@ - + + + @@ -1128,18 +1131,6 @@ - - - - - - - - - - - - @@ -1211,7 +1202,9 @@ - + + + @@ -1637,7 +1630,9 @@ - + + + @@ -1687,7 +1682,9 @@ - + + + @@ -1699,7 +1696,9 @@ - + + + @@ -2157,7 +2156,7 @@ - + @@ -2205,10 +2204,6 @@ - - - - @@ -2613,6 +2608,7 @@ + @@ -2972,7 +2968,7 @@ - + @@ -3062,8 +3058,8 @@ - - + + @@ -5334,6 +5330,7 @@ + diff --git a/web/App_Code/api/FollowerController.cs b/web/App_Code/api/FollowerController.cs index cbcfbea..88b228e 100644 --- a/web/App_Code/api/FollowerController.cs +++ b/web/App_Code/api/FollowerController.cs @@ -151,8 +151,10 @@ public class FollowerController : ApiController qry = qry.Where(o => o.u_name.Contains(q.u_name.Trim())); if (q.birthday.HasValue) qry = qry.Where(o => o.birthday >= q.birthday.Value); - if (q.birthday2.HasValue) - qry = qry.Where(o => o.birthday < Convert.ToDateTime(q.birthday2.Value).AddDays(1)); + if (q.birthday2.HasValue) { + var tmpBirthday2 = Convert.ToDateTime(q.birthday2.Value).AddDays(1); + qry = qry.Where(o => o.birthday < tmpBirthday2); + } if (!string.IsNullOrEmpty(q.address)) qry = qry.Where(o => o.address !=null && o.address.Contains(q.address.Trim())); //if (q.num.HasValue && q.num.Value>0) diff --git a/web/App_Code/api/activityController.cs b/web/App_Code/api/activityController.cs index 74171ab..039a444 100644 --- a/web/App_Code/api/activityController.cs +++ b/web/App_Code/api/activityController.cs @@ -1,4 +1,5 @@ using DocumentFormat.OpenXml.Drawing.Spreadsheet; +using Model; using Newtonsoft.Json; using Org.BouncyCastle.Crypto; using PagedList; @@ -10,6 +11,7 @@ using System.Linq; using System.Net; using System.Net.Http; using System.Web.Http; +using System.Web.Services; using static TreeView; // api/activity @@ -326,6 +328,36 @@ public class activityController : ApiController return Ok(ret); } + public class SortOrderRequest + { + public List ids { get; set; } + } + + [HttpPost] + [Route("api/activity/SaveItemList")] + public IHttpActionResult UpdateSortOrder([FromBody] SortOrderRequest request) + { + if (request == null || request.ids == null) return BadRequest(); + + using (Model.ezEntities _db = new Model.ezEntities()) + { + int totalCount = request.ids.Count; + + for (int i = 0; i < totalCount; i++) + { + int id = request.ids[i]; + var item = _db.actItems.FirstOrDefault(x => x.num == id); + if (item != null) + { + // 改成總數減去索引,這樣第一筆 (i=0) 會拿到最大的數字 + item.sort_order = totalCount - i; + } + } + _db.SaveChanges(); + } + return Ok(); + } + [HttpPost] [Route("api/activity/GetItemList")] public IHttpActionResult GetItemList([FromBody] Model.ViewModel.actItem q, int page, int pageSize = 10, @@ -430,8 +462,14 @@ public class activityController : ApiController else qry = qry.OrderBy(o => o.status); } - else + else if (sortBy.Equals("num")) + { qry = qry.OrderByDescending(o => o.num); + } + else + { + qry = qry.OrderByDescending(o => o.sort_order); + } var tdesc = publicFun.enum_desc(); var count = qry.Count(); //pageSize = count;//一次取回?? @@ -1315,7 +1353,7 @@ public class activityController : ApiController [Route("api/activity/OrderCheckIn")] public IHttpActionResult OrderCheckIn([FromBody] Model.activity_check item) { - if (item.f_num.HasValue && item.activity_num.HasValue && item.qty.HasValue && item.status.HasValue) + if (item.f_num.HasValue && item.activity_num.HasValue && item.status.HasValue) { //同一天不能簽到兩次以上 Model.activity_check check = _db.activity_check diff --git a/web/App_Code/api/orderController.cs b/web/App_Code/api/orderController.cs index 6bed7ee..64b65c7 100644 --- a/web/App_Code/api/orderController.cs +++ b/web/App_Code/api/orderController.cs @@ -4,6 +4,7 @@ using MyWeb; using Newtonsoft.Json; using PagedList; using System; +using System.Activities.Expressions; using System.Collections; using System.Collections.Generic; using System.Diagnostics; @@ -207,7 +208,7 @@ public class orderController : ApiController string sortBy = "", bool sortDesc = false) { - var qry = _db.pro_order.AsQueryable(); + var qry = _db.pro_order.Include("activity").Include("activity.activity_check").AsQueryable(); //var aIDt = _db.actItems.AsEnumerable().Where(f => f.subject.Contains(q.actItemTxt.Trim())).Select(f => f.num);//品項 @@ -222,7 +223,10 @@ public class orderController : ApiController if (q.up_time1.HasValue) qry = qry.Where(o => o.up_time >= q.up_time1.Value); if (q.up_time2.HasValue) - qry = qry.Where(o => o.up_time < Convert.ToDateTime(q.up_time2.Value).AddDays(1)); + { + var tmp_up_time2 = Convert.ToDateTime(q.up_time2.Value).AddDays(1); + qry = qry.Where(o => o.up_time < tmp_up_time2); + } if (!string.IsNullOrEmpty(q.address)) qry = qry.Where(o => o.address.Contains(q.address.Trim())); if (!string.IsNullOrEmpty(q.subject)) @@ -292,6 +296,13 @@ public class orderController : ApiController else qry = qry.OrderBy(o => o.activity != null ? o.activity.subject : ""); } + else if(sortBy.Equals("status")) + { + if (sortDesc) + qry = qry.OrderByDescending(o => o.activity.activity_check.FirstOrDefault(a => o.activity_num == a.activity_num && o.f_num == a.f_num).status ?? 0); + else + qry = qry.OrderBy(o => o.activity.activity_check.FirstOrDefault(a => o.activity_num == a.activity_num && o.f_num == a.f_num).status ?? 0); + } else qry = qry.OrderByDescending(o => o.reg_time); @@ -308,6 +319,7 @@ public class orderController : ApiController keyin1 = x.keyin1, up_time = x.up_time, keyin1_txt = Model.pro_order.keyin1_value_to_text(x.keyin1), + status = x.activity.activity_check.FirstOrDefault(a => x.activity_num == a.activity_num && x.f_num == a.f_num)?.status ?? 0, }), count = count }; diff --git a/web/admin/Templates/TBS5ADM001/uc/menu.ascx b/web/admin/Templates/TBS5ADM001/uc/menu.ascx index 3314d38..153319a 100644 --- a/web/admin/Templates/TBS5ADM001/uc/menu.ascx +++ b/web/admin/Templates/TBS5ADM001/uc/menu.ascx @@ -16,7 +16,8 @@ " - onclick="sessionStorage.removeItem('member_list_cache');sessionStorage.removeItem('member_query_params');" + onclick="sessionStorage.removeItem('member_list_cache'); sessionStorage.removeItem('member_query_params'); + sessionStorage.removeItem('order_list_cache'); sessionStorage.removeItem('order_query_params');" target="<%#(ValString(Eval("target"))=="B"?"_blank":"_self") %>"> <%#Eval("title") %> diff --git a/web/admin/activity/index2.aspx b/web/admin/activity/index2.aspx index 524c8dc..973af5b 100644 --- a/web/admin/activity/index2.aspx +++ b/web/admin/activity/index2.aspx @@ -7,19 +7,20 @@
    <%--
    --%> -
    + +
    -
    - 匯出Excel + 編輯排列順序 + 完成編輯 +
    + + 匯出Excel -
    +
    - +
    - + + + @@ -352,12 +453,12 @@ -
    +
    \ No newline at end of file diff --git a/web/admin/index.aspx b/web/admin/index.aspx index 54ae257..95fede5 100644 --- a/web/admin/index.aspx +++ b/web/admin/index.aspx @@ -85,7 +85,7 @@
    - 登入
    + diff --git a/web/admin/order/index.aspx b/web/admin/order/index.aspx index 1b9cca3..974a16e 100644 --- a/web/admin/order/index.aspx +++ b/web/admin/order/index.aspx @@ -14,17 +14,18 @@ 列印管理報表 - - @@ -39,7 +40,8 @@ vuetify: new Vuetify(vuetify_options), data() { return { - isFirstLoad: true, + print_error_msg: "", + isSearched: false, this_act : '<%= Request["act_id"]%>', options: { multiSort: false }, search_options: { multiSort: false }, @@ -57,6 +59,7 @@ { text: '報名日期', value: 'up_time' }, { text: '報名活動', value: 'subject', align: 'start' }, { text: '單據狀態', value: 'keyin1_txt' }, + { text: '報到狀態', value: 'status' }, { text: '', value: 'slot_btn', sortable: false, align: 'end' } ], footer:{ @@ -204,6 +207,10 @@ } }, mounted() { + const printResult = document.getElementById('<%= hid_err_msg.ClientID %>').value; + document.getElementById('<%= hid_err_msg.ClientID %>').value = ''; + window._printResult = printResult + this.detalKeyinArray(); this.search_dialog.current = this.search_dialog.controls.search1 ///default if (this.this_act != '') @@ -212,29 +219,63 @@ this.initActivity(); const navEntries = performance.getEntriesByType("navigation"); const isReload = navEntries.length > 0 && navEntries[0].type === "reload"; - const isBackForward = navEntries.length > 0 && navEntries[0].type === "back_forward"; + if (isReload) { sessionStorage.removeItem("orderpage"); + sessionStorage.removeItem("order_list_cache"); + sessionStorage.removeItem("order_query_params"); } - else if (isBackForward) { - this.isFirstLoad = false; + else if ("<%=lastAddedNo%>" !== "") { + const newQuery = { order_no: '<%=lastAddedNo%>' }; + sessionStorage.setItem('order_query_params', JSON.stringify(newQuery)); + this.search = newQuery; + this.isSearched = true; } else { const savedPage = parseInt(sessionStorage.getItem('orderpage')); + const savedData = sessionStorage.getItem("order_list_cache"); + const savedQuery = JSON.parse(sessionStorage.getItem("order_query_params")); + if (savedQuery) { + this.search = savedQuery; + this.isSearched = true; + } if (savedPage) { this.options.page = savedPage; } - } + if (savedData && savedData !== "undefined") { + this.data_table = JSON.parse(savedData); + this.isSearched = true; + } + } + + if (printResult === 'nodata' || printResult === 'success') { + + + this.$nextTick(() => { + this.print_dialog.show = true; + if (printResult === 'nodata') { + this.print_error_msg = "查無資料,請重新選擇區間"; + } + }); + } + + this.$nextTick(() => { + setTimeout(() => { + // 清空 URL + const cleanUrl = window.location.protocol + "//" + window.location.host + window.location.pathname; + window.history.replaceState({}, '', cleanUrl); + }, 100); + }); }, watch: { options: { handler() { - if (this.isFirstLoad) { - this.isFirstLoad = false; - this.data_table.loading = false; - return; + if (this.isSearched) { + this.getDefault() + } + else { + this.data_table.loading = false; } - this.getDefault() }, deep: true, }, @@ -246,6 +287,57 @@ }, }, methods: { + triggerManagementExport(mode) { + this.print_error_msg = ""; + if (this.print_search.year == '') { + msgbox('請輸入年份'); + return; + } + if (!this.print_search.chk_noact && !this.print_search.chk_hasact) { + msgbox('活動/非活動至少勾選一項'); + return; + } + + // 將 Vue 狀態同步至 ASP.NET HiddenField,供後端 PostBack 讀取參數 + document.getElementById('<%= hid_print_mode.ClientID %>').value = this.print_conditions; + document.getElementById('<%= hid_print_year.ClientID %>').value = this.print_search.year; + if (this.print_conditions == 'mm') + document.getElementById('<%= hid_print_month.ClientID %>').value = this.print_search.month; + else if (this.print_conditions == 'ss') + document.getElementById('<%= hid_print_season.ClientID %>').value = this.print_search.season; + document.getElementById('<%= hid_select_act.ClientID %>').value = this.print_search.select_act; + document.getElementById('<%= hid_select_actitem.ClientID %>').value = this.print_search.select_actitem; + document.getElementById('<%= hid_chk_hasact.ClientID %>').value = this.print_search.chk_hasact; + document.getElementById('<%= hid_chk_noact.ClientID %>').value = this.print_search.chk_noact; + + let qry = ""; + Object.keys(this.print_search).forEach(key => { + if (this.print_search[key] != undefined && this.print_search[key] != null && this.print_search[key] != '') { + if (key == 'month' ) { + if (this.print_conditions == 'mm') { + qry += "&month=" + this.print_search.month; + } + } else if ( key == 'season') + { + if (this.print_conditions == 'ss') { + qry += "&season=" + this.print_search.season; + } + } + else { + qry += (qry != '' ? '&' : '?') + (key + '=' + this.print_search[key]); + } + + } + }); + document.getElementById('<%= hid_qry.ClientID %>').value = qry; + + if (mode === 'print') { + document.getElementById('<%= print_management.ClientID %>').click(); + } + else if (mode === "excel") { + document.getElementById('<%= excel_management.ClientID %>').click(); + } + }, search_show(curr) { //console.log("btn_click:", curr, curr.api_url); this.search_dialog.current = curr; @@ -331,19 +423,24 @@ this.data_table.list = response.data.list this.data_table.count = response.data.count; this.data_table.loading = false + + const dataToStore = JSON.stringify(this.data_table); + sessionStorage.setItem("order_list_cache", dataToStore); }) .catch(error => console.log(error)) }, detalKeyinArray() { var getArray = <%=Newtonsoft.Json.JsonConvert.SerializeObject(_keyin1Item, Newtonsoft.Json.Formatting.Indented) %>; - var keys = Object.keys(getArray); - for (let i = 0; i < keys.length; i++) { - //console.log(`${keys[i]}:${getArray[keys[i]]}`); //value : text - var _tmp = { - text: getArray[keys[i]], - val: parseInt(keys[i]), + if (getArray !== null) { + var keys = Object.keys(getArray); + for (let i = 0; i < keys.length; i++) { + //console.log(`${keys[i]}:${getArray[keys[i]]}`); //value : text + var _tmp = { + text: getArray[keys[i]], + val: parseInt(keys[i]), + } + this.keyin1_items.push(_tmp); } - this.keyin1_items.push(_tmp); } }, @@ -385,16 +482,21 @@ } }, btn_search() { + this.isSearched = true; + sessionStorage.setItem("order_query_params", JSON.stringify(this.search)); this.this_act = ''; this.search.activity_num = ''; this.getDefault(true) + bootstrap.Offcanvas.getInstance(document.getElementById("offcanvasRight")).hide() }, btn_all() { + this.isSearched = false; this.this_act = ''; this.search.activity_num = ''; clearObjProps(this.search); - this.btn_search() + sessionStorage.setItem("order_query_params", JSON.stringify(this.search)); + //this.btn_search() }, checkInMsg(item) { this.check_data.f_num = item.f_num; @@ -403,39 +505,59 @@ this.check_data.activity_name = item.subject; this.check_dialog.show = true; }, - checkIn() { - if (this.check_data.qty > 0 && this.check_data.status.val > 0) { - var chechdata = - { - f_num: this.check_data.f_num, - activity_num: this.check_data.activity_num, - status: this.check_data.status.val, - qty: this.check_data.qty, - } - axios - .post(HTTP_HOST + 'api/activity/OrderCheckIn', chechdata) - .then(response => { - //清空 - this.check_data.f_num = 0; - this.check_data.u_name = ''; - this.check_data.activity_num = 0; - this.check_data.activity_name = ''; - this.check_data.qty = 1; - this.check_data.status.text = ''; - this.check_data.status.val = 1; - - this.check_dialog.show = false; - msgtop('簽到成功') - }) - .catch( - error => { - console.log(error) - msgtop('簽到失敗', 'error') - } - ) - } else { - msgbox('報到資訊請填寫完整'); + checkIn(item) { + var checkdata = + { + f_num: item.f_num, + activity_num: item.activity_num, + status: 1, + qty: 1, } + console.log(checkdata) + axios + .post(HTTP_HOST + 'api/activity/OrderCheckIn', checkdata) + .then(response => { + msgtop('簽到成功'); + this.getDefault(); + }) + .catch( + error => { + console.log(error) + msgtop('簽到失敗', 'error') + } + ) + //if (this.check_data.qty > 0 && this.check_data.status.val > 0) { + // var chechdata = + // { + // f_num: this.check_data.f_num, + // activity_num: this.check_data.activity_num, + // status: this.check_data.status.val, + // qty: this.check_data.qty, + // } + // axios + // .post(HTTP_HOST + 'api/activity/OrderCheckIn', chechdata) + // .then(response => { + // //清空 + // this.check_data.f_num = 0; + // this.check_data.u_name = ''; + // this.check_data.activity_num = 0; + // this.check_data.activity_name = ''; + // this.check_data.qty = 1; + // this.check_data.status.text = ''; + // this.check_data.status.val = 1; + + // this.check_dialog.show = false; + // msgtop('簽到成功') + // }) + // .catch( + // error => { + // console.log(error) + // msgtop('簽到失敗', 'error') + // } + // ) + //} else { + // msgbox('報到資訊請填寫完整'); + //} }, goPrint() { let _qry = ""; Object.keys(this.search).forEach(key => { @@ -453,6 +575,7 @@ //列印管理報表 print_close() { this.print_dialog.show = false; + this.print_error_msg = ""; } , initPrintSearch() { @@ -515,9 +638,9 @@ } } }); - + console.log(_qry); this.print_dialog.show = false; - window.open("print.aspx" + _qry, '_blank'); + //window.open("print.aspx" + _qry, '_blank'); } else { msgbox('活動/非活動至少勾選一項'); } @@ -567,10 +690,35 @@ $('#country2').val(''); VueApp.search.country2 = ''; }); + + $(document).ready(function () { + // 判斷是否彈出 search dialog + let hasSearchResult = sessionStorage.getItem("order_list_cache") !== null; + + if (!hasSearchResult && window._printResult === '') { + let $btn = $("a[data-bs-target='#offcanvasRight'][href='#search_panel']"); + $btn.click(); + let el = document.getElementById('offcanvasRight'); + let offcanvas = bootstrap.Offcanvas.getOrCreateInstance(el); + offcanvas.show(); + } + }); + + + + + + + + + + +