migrate to new git
This commit is contained in:
73
web/App_Code/Model/Partial/accounting.cs
Normal file
73
web/App_Code/Model/Partial/accounting.cs
Normal file
@@ -0,0 +1,73 @@
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Globalization;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Reflection.Emit;
|
||||
using System.Runtime.Serialization;
|
||||
using System.Web.Http;
|
||||
|
||||
namespace Model
|
||||
{
|
||||
// 為對應資料表MODEL宣告額外參數類別(Metadata)
|
||||
// [JsonIgnore] 避免WEBAPI自動抓關聯資料
|
||||
[MetadataType(typeof(accountingMetadata))]
|
||||
public partial class accounting
|
||||
{
|
||||
private class accountingMetadata
|
||||
{
|
||||
|
||||
[JsonIgnore]
|
||||
public virtual accounting_kind accounting_kind { get; set; }
|
||||
[JsonIgnore]
|
||||
public virtual accounting_kind2 accounting_kind2 { get; set; }
|
||||
[JsonIgnore]
|
||||
public virtual member member { get; set; }
|
||||
}
|
||||
|
||||
public const int KindLevelMax = 3; //收支層數
|
||||
public const int KindLevelMax2 = 1; //帳戶層數
|
||||
public const string Dir = "~/upload/accounting"; //圖片上傳位置
|
||||
public string log;
|
||||
|
||||
public enum type : int //收支類別
|
||||
{
|
||||
[Description("收入")]
|
||||
Receipts = 1,
|
||||
[Description("支出")]
|
||||
Expenses = 2
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public partial class accounting_kind
|
||||
{
|
||||
private class accounting_kindMetadata
|
||||
{
|
||||
|
||||
[JsonIgnore]
|
||||
public virtual ICollection<accounting> accountings { get; set; }
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public partial class accounting_kind2
|
||||
{
|
||||
private class accounting_kind2Metadata
|
||||
{
|
||||
|
||||
[JsonIgnore]
|
||||
public virtual ICollection<accounting> accountings { get; set; }
|
||||
[JsonIgnore]
|
||||
public virtual ICollection<pro_order_record> pro_order_record { get; set; }
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user