You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

144 lines
4.1 KiB

using System;
using System.ComponentModel;
namespace CK.SCP.Models.Enums
{
public enum PlanState
{
[Description("新建")]
New = 0,
[Description("发布")]
Release = 1,
[Description("已确认")]
Confirm = 2,
[Description("已发货")]
Ship = 3,
[Description("已收货")]
Receive = 4,
[Description("已完成")]
Complete = 5,
[Description("强制完结")]
CompleteForce = 6,
[Description("已作废")]
Reject = -1,
}
/* public class F_StatePlan
{
public static int New = 0;
public static int Release = 1;
public static int Confirm = 2;
public static int Ship = 3;
public static int Receive = 4;
public static int Complete = 5;
public static int CompleteForce = 6;
public static int Reject = -1;
public static string GetName(object State)
{
string ret = "";
if (Convert.ToInt32(State) == New) ret = "新建";
if (Convert.ToInt32(State) == Release) ret = "发布";
if (Convert.ToInt32(State) == Confirm) ret = "已确认";
if (Convert.ToInt32(State) == Ship) ret = "已发货";
if (Convert.ToInt32(State) == Receive) ret = "已收货";
if (Convert.ToInt32(State) == Complete) ret = "已完成";
if (Convert.ToInt32(State) == CompleteForce) ret = "强制完结";
if (Convert.ToInt32(State) == Reject) ret = "已作废";
return ret;
}
}
public class F_StateShip
{
public static int New = 0;
public static int Ship = 1;
public static int Receive = 2;
public static int Reject = -1;
public static string GetName(object State)
{
string ret = "";
if (Convert.ToInt32(State) == New) ret = "新建";
if (Convert.ToInt32(State) == Ship) ret = "已发货";
if (Convert.ToInt32(State) == Receive) ret = "已收货";
if (Convert.ToInt32(State) == Reject) ret = "已作废";
return ret;
}
}
public class F_StateReceive
{
public static int Receive = 0;
public static int Check = 1;
public static int Invoice = 2;
public static string GetName(object State)
{
string ret = "";
if (Convert.ToInt32(State) == Receive) ret = "已收货";
if (Convert.ToInt32(State) == Check) ret = "审核通过";
if (Convert.ToInt32(State) == Invoice) ret = "已开票";
return ret;
}
}
public class F_StateReceiveType
{
public static int Receive = 1;
public static int Return = 2;
public static string GetName(object State)
{
string ret = "";
if (Convert.ToInt32(State) == Receive) ret = "收货单";
if (Convert.ToInt32(State) == Return) ret = "退货单";
return ret;
}
}
public class F_StateInvoice
{
public static int New = 0;
public static int Apply = 1;
public static int CheckFail = 2;
public static int CheckSuccess = 3;
public static int Mail = 4;
public static int FinanceReceive = 5;
public static int FinanceFail = 6;
public static int Reject = -1;
public static string GetName(object State)
{
string ret = "";
if (Convert.ToInt32(State) == New) ret = "新建";
if (Convert.ToInt32(State) == Apply) ret = "供应商申请";
if (Convert.ToInt32(State) == CheckFail) ret = "采购审核退回";
if (Convert.ToInt32(State) == CheckSuccess) ret = "采购审核通过";
if (Convert.ToInt32(State) == Mail) ret = "发票寄出";
if (Convert.ToInt32(State) == FinanceFail) ret = "财务退回";
if (Convert.ToInt32(State) == FinanceReceive) ret = "财务收票";
if (Convert.ToInt32(State) == Reject) ret = "发票作废";
return ret;
}
}*/
}