migrate to new git
This commit is contained in:
58
web/App_Code/Model/Partial/stock.cs
Normal file
58
web/App_Code/Model/Partial/stock.cs
Normal file
@@ -0,0 +1,58 @@
|
||||
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(stockMetadata))]
|
||||
public partial class stock
|
||||
{
|
||||
private class stockMetadata
|
||||
{
|
||||
|
||||
[JsonIgnore]
|
||||
public virtual actItem actItem { get; set; }
|
||||
[JsonIgnore]
|
||||
public virtual activity activity { get; set; }
|
||||
[JsonIgnore]
|
||||
public virtual member member { get; set; }
|
||||
[JsonIgnore]
|
||||
public virtual ICollection<stock_files> stock_files { get; set; }
|
||||
[JsonIgnore]
|
||||
public virtual stock_kind stock_kind { get; set; }
|
||||
[JsonIgnore]
|
||||
public virtual stock_reason stock_reason { get; set; }
|
||||
[JsonIgnore]
|
||||
public virtual supplier supplier1 { get; set; }
|
||||
}
|
||||
|
||||
public const int KindLevelMax = 3; //頁面層數
|
||||
public const int ReasonLevelMax = 1; //頁面層數
|
||||
public const string Dir = "~/upload/stock"; //圖片上傳位置
|
||||
public string log;
|
||||
|
||||
public enum type : int //進出類型
|
||||
{
|
||||
[Description("庫存增加(+)")]
|
||||
Purchase = 1,
|
||||
[Description("庫存減少(-)")]
|
||||
Reduce = 2,
|
||||
[Description("租借(-)")]
|
||||
Rent = 3,
|
||||
[Description("租借歸還(+)")]
|
||||
Return = 4
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user