客堂報名

This commit is contained in:
2026-07-31 17:46:21 +08:00
parent 7f1e7dd419
commit 12634b942c
8 changed files with 369 additions and 3 deletions
+1
View File
@@ -99,6 +99,7 @@ namespace Model
public virtual DbSet<receipt_master> receipt_master { get; set; }
public virtual DbSet<receipt_style> receipt_style { get; set; }
public virtual DbSet<receipt_style_d> receipt_style_d { get; set; }
public virtual DbSet<pre_order> pre_order { get; set; }
public virtual int pager_eztrust(Nullable<int> startRowIndex, Nullable<int> pageSize, string tableName, string columnName, string sqlWhere, string orderBy, ObjectParameter rowCount)
{
+18
View File
@@ -1355,6 +1355,24 @@ namespace Model
using System;
using System.Collections.Generic;
public partial class pre_order
{
public int num { get; set; }
public Nullable<int> f_num { get; set; }
public string order_no { get; set; }
public Nullable<int> item_count { get; set; }
public Nullable<int> total_amt { get; set; }
public Nullable<int> act_num { get; set; }
public Nullable<int> admin_num { get; set; }
public Nullable<System.DateTime> reg_time { get; set; }
public Nullable<int> receipt_num { get; set; }
}
}
namespace Model
{
using System;
using System.Collections.Generic;
public partial class pro_order
{
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
+48 -3
View File
@@ -699,6 +699,20 @@
<Property Name="City" Type="nvarchar" MaxLength="255" />
<Property Name="Area" Type="nvarchar" MaxLength="255" />
</EntityType>
<EntityType Name="pre_order">
<Key>
<PropertyRef Name="num" />
</Key>
<Property Name="num" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
<Property Name="f_num" Type="int" />
<Property Name="order_no" Type="nvarchar" MaxLength="20" />
<Property Name="item_count" Type="int" />
<Property Name="total_amt" Type="int" />
<Property Name="act_num" Type="int" />
<Property Name="admin_num" Type="int" />
<Property Name="reg_time" Type="datetime" />
<Property Name="receipt_num" Type="int" />
</EntityType>
<EntityType Name="pro_order">
<Key>
<PropertyRef Name="order_no" />
@@ -812,8 +826,8 @@
<Property Name="u_date" Type="varchar" MaxLength="10" />
<Property Name="u_time" Type="varchar" MaxLength="6" />
<Property Name="addr" Type="nvarchar" MaxLength="255" />
<Property Name="receipt_date" Type="varchar" MaxLength="10" />
<Property Name="receipt_item" Type="nvarchar" MaxLength="100" />
<Property Name="receipt_date" Type="varchar" MaxLength="10" />
<Property Name="receipt_item" Type="nvarchar" MaxLength="100" />
</EntityType>
<EntityType Name="receipt_master">
<Key>
@@ -2247,6 +2261,7 @@
<EntitySet Name="news_kind" EntityType="Self.news_kind" Schema="dbo" store:Type="Tables" />
<EntitySet Name="PostCity" EntityType="Self.PostCity" Schema="dbo" store:Type="Tables" />
<EntitySet Name="PostNumber" EntityType="Self.PostNumber" Schema="dbo" store:Type="Tables" />
<EntitySet Name="pre_order" EntityType="Self.pre_order" Schema="dbo" store:Type="Tables" />
<EntitySet Name="pro_order" EntityType="Self.pro_order" Schema="dbo" store:Type="Tables" />
<EntitySet Name="pro_order_detail" EntityType="Self.pro_order_detail" Schema="dbo" store:Type="Tables" />
<EntitySet Name="pro_order_record" EntityType="Self.pro_order_record" Schema="dbo" store:Type="Tables" />
@@ -4693,6 +4708,7 @@
<EntitySet Name="receipt_master" EntityType="Model.receipt_master" />
<EntitySet Name="receipt_style" EntityType="Model.receipt_style" />
<EntitySet Name="receipt_style_d" EntityType="Model.receipt_style_d" />
<EntitySet Name="pre_order" EntityType="Model.pre_order" />
</EntityContainer>
<ComplexType Name="sp_helpdiagramdefinition_Result">
<Property Type="Int32" Name="version" Nullable="true" />
@@ -5466,7 +5482,7 @@
<Property Name="u_date" Type="String" MaxLength="10" FixedLength="false" Unicode="false" />
<Property Name="u_time" Type="String" MaxLength="6" FixedLength="false" Unicode="false" />
<Property Name="addr" Type="String" MaxLength="255" FixedLength="false" Unicode="true" />
<Property Name="receipt_date" Type="String" MaxLength="10" FixedLength="false" Unicode="true" />
<Property Name="receipt_date" Type="String" MaxLength="10" FixedLength="false" Unicode="false" />
<Property Name="receipt_item" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
</EntityType>
<EntityType Name="receipt_master">
@@ -5514,6 +5530,20 @@
<Property Name="u_date" Type="String" MaxLength="10" FixedLength="false" Unicode="false" />
<Property Name="u_time" Type="String" MaxLength="6" FixedLength="false" Unicode="false" />
</EntityType>
<EntityType Name="pre_order">
<Key>
<PropertyRef Name="num" />
</Key>
<Property Name="num" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
<Property Name="f_num" Type="Int32" />
<Property Name="order_no" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
<Property Name="item_count" Type="Int32" />
<Property Name="total_amt" Type="Int32" />
<Property Name="act_num" Type="Int32" />
<Property Name="admin_num" Type="Int32" />
<Property Name="reg_time" Type="DateTime" Precision="3" />
<Property Name="receipt_num" Type="Int32" />
</EntityType>
</Schema>
</edmx:ConceptualModels>
<!-- C-S mapping content -->
@@ -6654,6 +6684,21 @@
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
<EntitySetMapping Name="pre_order">
<EntityTypeMapping TypeName="Model.pre_order">
<MappingFragment StoreEntitySet="pre_order">
<ScalarProperty Name="receipt_num" ColumnName="receipt_num" />
<ScalarProperty Name="reg_time" ColumnName="reg_time" />
<ScalarProperty Name="admin_num" ColumnName="admin_num" />
<ScalarProperty Name="act_num" ColumnName="act_num" />
<ScalarProperty Name="total_amt" ColumnName="total_amt" />
<ScalarProperty Name="item_count" ColumnName="item_count" />
<ScalarProperty Name="order_no" ColumnName="order_no" />
<ScalarProperty Name="f_num" ColumnName="f_num" />
<ScalarProperty Name="num" ColumnName="num" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
</EntityContainerMapping>
</Mapping>
</edmx:Mappings>
+1
View File
@@ -169,6 +169,7 @@
<EntityTypeShape EntityType="Model.receipt_master" Width="1.5" PointX="25.375" PointY="7.75" />
<EntityTypeShape EntityType="Model.receipt_style" Width="1.5" PointX="19.375" PointY="25.75" />
<EntityTypeShape EntityType="Model.receipt_style_d" Width="1.5" PointX="26.375" PointY="0.75" />
<EntityTypeShape EntityType="Model.pre_order" Width="1.5" PointX="0.75" PointY="26.75" />
</Diagram>
</edmx:Diagrams>
</edmx:Designer>
+20
View File
@@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Http;
// api/pre_order
//[ezAuthorize(Roles = "admin")]//群組:*
//[ezAuthorize]
public class preOrderController: ApiController
{
private Model.ezEntities _db = new Model.ezEntities();
public preOrderController()
{
//
// TODO: 在這裡新增建構函式邏輯
//
}
}