|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | namespace WIDESEA_DTO | 
|---|
|  |  |  | { | 
|---|
|  |  |  | /// <summary> | 
|---|
|  |  |  | /// | 
|---|
|  |  |  | /// </summary> | 
|---|
|  |  |  | [ModelValidate] | 
|---|
|  |  |  | public class ErpResponseContent | 
|---|
|  |  |  | { | 
|---|
|  |  |  | public class content | 
|---|
|  |  |  | { | 
|---|
|  |  |  | /// <summary> | 
|---|
|  |  |  | /// | 
|---|
|  |  |  | /// </summary> | 
|---|
|  |  |  | public string Code { get; set; } | 
|---|
|  |  |  | /// <summary> | 
|---|
|  |  |  | /// | 
|---|
|  |  |  | /// </summary> | 
|---|
|  |  |  | public string Name { get; set; } | 
|---|
|  |  |  | /// <summary> | 
|---|
|  |  |  | /// | 
|---|
|  |  |  | /// </summary> | 
|---|
|  |  |  | public string ShortName { get; set; } | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //public class Root | 
|---|
|  |  |  | //{ | 
|---|
|  |  |  | /// <summary> | 
|---|
|  |  |  | /// | 
|---|
|  |  |  | /// </summary> | 
|---|
|  |  |  | public bool bSucc { get; set; } = true; | 
|---|
|  |  |  | public bool BSucc { get; set; } = true; | 
|---|
|  |  |  | /// <summary> | 
|---|
|  |  |  | /// | 
|---|
|  |  |  | /// </summary> | 
|---|
|  |  |  | public string strCode { get; set; } = "0000"; | 
|---|
|  |  |  | public string StrCode { get; set; } = "0000"; | 
|---|
|  |  |  | /// <summary> | 
|---|
|  |  |  | /// 鎵ц鎴愬姛 | 
|---|
|  |  |  | /// </summary> | 
|---|
|  |  |  | public string strMsg { get; set; } = "鎵ц鎴愬姛"; | 
|---|
|  |  |  | public string StrMsg { get; set; } = "鎵ц鎴愬姛"; | 
|---|
|  |  |  | /// <summary> | 
|---|
|  |  |  | /// | 
|---|
|  |  |  | /// </summary> | 
|---|
|  |  |  | 
|---|
|  |  |  | /// <summary> | 
|---|
|  |  |  | /// | 
|---|
|  |  |  | /// </summary> | 
|---|
|  |  |  | public content Content { get; set; } | 
|---|
|  |  |  | public Content Content { get; set; } | 
|---|
|  |  |  | //} | 
|---|
|  |  |  | public static ErpResponseContent Instance | 
|---|
|  |  |  | { | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | public ErpResponseContent OK(string message = null) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | bSucc = true; | 
|---|
|  |  |  | strCode = "0000"; | 
|---|
|  |  |  | strMsg = message == null ? "鎵ц鎴愬姛" : message; | 
|---|
|  |  |  | BSucc = true; | 
|---|
|  |  |  | StrCode = "0000"; | 
|---|
|  |  |  | StrMsg = message == null ? "鎵ц鎴愬姛" : message; | 
|---|
|  |  |  | return this; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public ErpResponseContent Error(string message = null) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | bSucc = false; | 
|---|
|  |  |  | strCode = "404"; | 
|---|
|  |  |  | strMsg = message == null ? "鎵ц澶辫触" : message; | 
|---|
|  |  |  | BSucc = false; | 
|---|
|  |  |  | StrCode = "404"; | 
|---|
|  |  |  | StrMsg = message == null ? "鎵ц澶辫触" : message; | 
|---|
|  |  |  | return this; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /// <summary> | 
|---|
|  |  |  | /// | 
|---|
|  |  |  | /// </summary> | 
|---|
|  |  |  | public class Content | 
|---|
|  |  |  | { | 
|---|
|  |  |  | /// <summary> | 
|---|
|  |  |  | /// | 
|---|
|  |  |  | /// </summary> | 
|---|
|  |  |  | public string Code { get; set; } | 
|---|
|  |  |  | /// <summary> | 
|---|
|  |  |  | /// | 
|---|
|  |  |  | /// </summary> | 
|---|
|  |  |  | public string Name { get; set; } | 
|---|
|  |  |  | /// <summary> | 
|---|
|  |  |  | /// | 
|---|
|  |  |  | /// </summary> | 
|---|
|  |  |  | public string ShortName { get; set; } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|