53 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			C#
		
	
	
	
			
		
		
	
	
			53 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			C#
		
	
	
	
| using System;
 | |
| using System.Collections.Generic;
 | |
| using System.Linq;
 | |
| using System.Runtime.Serialization;
 | |
| using System.Web;
 | |
| using DeiNiu.Utils;
 | |
| 
 | |
| namespace DeiNiu.Wcf.erp.wcfData
 | |
| {
 | |
|     [DataContract]
 | |
|     public class Result
 | |
|     {
 | |
|         private int flag;
 | |
|         internal enumDbResult status;
 | |
|         private string error;
 | |
| 
 | |
|         public Result(string error)
 | |
|         {
 | |
| 
 | |
|             this.error = error;
 | |
|         }
 | |
|         public Result(  enumDbResult status )
 | |
|         {
 | |
|           
 | |
|             this.status = status;
 | |
|         }
 | |
|         public Result(int flag, enumDbResult status, string error)
 | |
|         {
 | |
|             this.flag = flag;
 | |
|             this.error = error;
 | |
|             this.status = status;
 | |
|         }
 | |
|         public Result(enumDbResult status, string error)
 | |
|         {
 | |
|             this.error = error;
 | |
|             this.status = status;
 | |
|         }
 | |
| 
 | |
|         public Result(int flag, enumDbResult status)
 | |
|         {
 | |
|             this.flag = flag;
 | |
|             this.status = status;
 | |
|         }
 | |
|       
 | |
|        
 | |
|         [DataMember]
 | |
|         public enumDbResult Status { get => status; set => status = value; }
 | |
|         [DataMember]
 | |
|         internal string Error { get => error; set => error = value; }
 | |
|         [DataMember]
 | |
|         internal int Flag { get => flag; set => flag = value; }
 | |
|     }
 | |
| } |