335 lines
		
	
	
		
			11 KiB
		
	
	
	
		
			C#
		
	
	
	
			
		
		
	
	
			335 lines
		
	
	
		
			11 KiB
		
	
	
	
		
			C#
		
	
	
	
| /// <summary>
 | |
| ///WCF Data Object 
 | |
| ///BASIC CLASS FOR TABLE t_erp_pandian
 | |
| ///By wm  
 | |
| ///on 06/08/2023
 | |
| /// </summary>
 | |
|  
 | |
| using System;
 | |
| using System.Runtime.Serialization;
 | |
| using System.Data;
 | |
| namespace DeiNiu.wms.Data.Model.Wcf 
 | |
| {
 | |
| 
 | |
| 	#region WcfErp_pandian
 | |
| 	/// <summary>
 | |
| 	/// This object represents the properties and methods of a WcfErp_pandian.
 | |
|     /// </summary>
 | |
|     [DataContract]
 | |
| 	public class WcfErp_pandian  { 
 | |
| 
 | |
|                     internal int _id;   
 | |
|                     internal string _orderNo= String.Empty;   
 | |
|                     internal int _skuId;   
 | |
|                     internal string _goodsId= String.Empty;   
 | |
|                     internal string _batch= String.Empty;   
 | |
|                     internal string _productDate= String.Empty;   
 | |
|                     internal string _validDate= String.Empty;   
 | |
|                     internal decimal _count;   
 | |
|                     internal decimal _realCount;   
 | |
|                     internal int _state;   
 | |
|                     internal int _type;   
 | |
|                     internal string _description= String.Empty;   
 | |
|                     internal int _operater;   
 | |
|                     internal string _lastmodified= String.Empty;   
 | |
|                     internal string _createtime= String.Empty;   
 | |
|                     internal bool _dr;   
 | |
| 		
 | |
| 		public  WcfErp_pandian () {
 | |
| 		}
 | |
| 		 
 | |
|         public  WcfErp_pandian (DataRow dr) {
 | |
|            #region get data from dr 
 | |
|              if (dr != null  )
 | |
|              { 
 | |
|                     if (dr.Table.Columns.Contains("id") && !(dr["id"] is DBNull))
 | |
|                         {
 | |
|                              _id =   Convert.ToInt32(dr["id"].ToString()); ;
 | |
|                         }
 | |
|                     if (dr.Table.Columns.Contains("orderNo") && !(dr["orderNo"] is DBNull))
 | |
|                         {
 | |
|                              _orderNo =  dr["orderNo"].ToString() ;
 | |
|                         }
 | |
|                     if (dr.Table.Columns.Contains("skuId") && !(dr["skuId"] is DBNull))
 | |
|                         {
 | |
|                              _skuId =   Convert.ToInt32(dr["skuId"].ToString()); ;
 | |
|                         }
 | |
|                     if (dr.Table.Columns.Contains("goodsId") && !(dr["goodsId"] is DBNull))
 | |
|                         {
 | |
|                              _goodsId =  dr["goodsId"].ToString() ;
 | |
|                         }
 | |
|                     if (dr.Table.Columns.Contains("batch") && !(dr["batch"] is DBNull))
 | |
|                         {
 | |
|                              _batch =  dr["batch"].ToString() ;
 | |
|                         }
 | |
|                     if (dr.Table.Columns.Contains("productDate") && !(dr["productDate"] is DBNull))
 | |
|                         {
 | |
|                              _productDate =  dr["productDate"].ToString() ;
 | |
|                         }
 | |
|                     if (dr.Table.Columns.Contains("validDate") && !(dr["validDate"] is DBNull))
 | |
|                         {
 | |
|                              _validDate =  dr["validDate"].ToString() ;
 | |
|                         }
 | |
|                     if (dr.Table.Columns.Contains("count") && !(dr["count"] is DBNull))
 | |
|                         {
 | |
|                              _count =   Convert.ToDecimal(dr["count"].ToString()); ;
 | |
|                         }
 | |
|                     if (dr.Table.Columns.Contains("realCount") && !(dr["realCount"] is DBNull))
 | |
|                         {
 | |
|                              _realCount =   Convert.ToDecimal(dr["realCount"].ToString()); ;
 | |
|                         }
 | |
|                     if (dr.Table.Columns.Contains("state") && !(dr["state"] is DBNull))
 | |
|                         {
 | |
|                              _state =   Convert.ToInt32(dr["state"].ToString()); ;
 | |
|                         }
 | |
|                     if (dr.Table.Columns.Contains("type") && !(dr["type"] is DBNull))
 | |
|                         {
 | |
|                              _type =   Convert.ToInt32(dr["type"].ToString()); ;
 | |
|                         }
 | |
|                     if (dr.Table.Columns.Contains("description") && !(dr["description"] is DBNull))
 | |
|                         {
 | |
|                              _description =  dr["description"].ToString() ;
 | |
|                         }
 | |
|                     if (dr.Table.Columns.Contains("operater") && !(dr["operater"] is DBNull))
 | |
|                         {
 | |
|                              _operater =   Convert.ToInt32(dr["operater"].ToString()); ;
 | |
|                         }
 | |
|                     if (dr.Table.Columns.Contains("lastmodified") && !(dr["lastmodified"] is DBNull))
 | |
|                         {
 | |
|                              _lastmodified =  dr["lastmodified"].ToString() ;
 | |
|                         }
 | |
|                     if (dr.Table.Columns.Contains("createtime") && !(dr["createtime"] is DBNull))
 | |
|                         {
 | |
|                              _createtime =  dr["createtime"].ToString() ;
 | |
|                         }
 | |
|                     if (dr.Table.Columns.Contains("dr") && !(dr["dr"] is DBNull))
 | |
|                         {
 | |
|                              _dr =   Convert.ToBoolean(dr["dr"].ToString()); ;
 | |
|                         }
 | |
|              }
 | |
|              #endregion
 | |
|           }
 | |
|           
 | |
|          public WcfErp_pandian( Erp_pandian dbObj){   
 | |
|             #region get data from dbobj 
 | |
|            
 | |
|                         _id= dbObj.ID;                                          
 | |
|                           orderNo = dbObj.orderNo;  
 | |
|                                           
 | |
|                           skuId = dbObj.skuId;  
 | |
|                                           
 | |
|                           goodsId = dbObj.goodsId;  
 | |
|                                           
 | |
|                           batch = dbObj.batch;  
 | |
|                                           
 | |
|                           productDate = dbObj.productDate;  
 | |
|                                           
 | |
|                           validDate = dbObj.validDate;  
 | |
|                                           
 | |
|                           count = dbObj.count;  
 | |
|                                           
 | |
|                           realCount = dbObj.realCount;  
 | |
|                                           
 | |
|                           state = dbObj.state;  
 | |
|                                           
 | |
|                           type = dbObj.type;  
 | |
|                                           
 | |
|                           description = dbObj.description;  
 | |
|                                           
 | |
|                           operater = dbObj.operater;  
 | |
|           
 | |
|            #endregion
 | |
|     
 | |
|         }
 | |
|         
 | |
|         
 | |
| 
 | |
| 		#region Public Properties 
 | |
|       
 | |
|        [DataMember]
 | |
|         public  int   id{
 | |
| 			get {return _id;}
 | |
| 			 set {_id = value;}  
 | |
| 		}  
 | |
|         
 | |
|       
 | |
|        [DataMember]
 | |
|         public string  orderNo{
 | |
| 			get {return _orderNo;}
 | |
| 			 set {_orderNo = value;}  
 | |
| 		}  
 | |
|         
 | |
|       
 | |
|        [DataMember]
 | |
|         public  int   skuId{
 | |
| 			get {return _skuId;}
 | |
| 			 set {_skuId = value;}  
 | |
| 		}  
 | |
|         
 | |
|       
 | |
|        [DataMember]
 | |
|         public string  goodsId{
 | |
| 			get {return _goodsId;}
 | |
| 			 set {_goodsId = value;}  
 | |
| 		}  
 | |
|         
 | |
|       
 | |
|        [DataMember]
 | |
|         public string  batch{
 | |
| 			get {return _batch;}
 | |
| 			 set {_batch = value;}  
 | |
| 		}  
 | |
|         
 | |
|       
 | |
|        [DataMember]
 | |
|         public string  productDate{
 | |
| 			get {return _productDate;}
 | |
| 			 set {_productDate = value;}  
 | |
| 		}  
 | |
|         
 | |
|       
 | |
|        [DataMember]
 | |
|         public string  validDate{
 | |
| 			get {return _validDate;}
 | |
| 			 set {_validDate = value;}  
 | |
| 		}  
 | |
|         
 | |
|       
 | |
|        [DataMember]
 | |
|         public  decimal   count{
 | |
| 			get {return _count;}
 | |
| 			 set {_count = value;}  
 | |
| 		}  
 | |
|         
 | |
|       
 | |
|        [DataMember]
 | |
|         public  decimal   realCount{
 | |
| 			get {return _realCount;}
 | |
| 			 set {_realCount = value;}  
 | |
| 		}  
 | |
|         
 | |
|       
 | |
|        [DataMember]
 | |
|         public  int   state{
 | |
| 			get {return _state;}
 | |
| 			 set {_state = value;}  
 | |
| 		}  
 | |
|         
 | |
|       
 | |
|        [DataMember]
 | |
|         public  int   type{
 | |
| 			get {return _type;}
 | |
| 			 set {_type = value;}  
 | |
| 		}  
 | |
|         
 | |
|       
 | |
|        [DataMember]
 | |
|         public string  description{
 | |
| 			get {return _description;}
 | |
| 			 set {_description = value;}  
 | |
| 		}  
 | |
|         
 | |
|       
 | |
|        [DataMember]
 | |
|         public  int   operater{
 | |
| 			get {return _operater;}
 | |
| 			 set {_operater = value;}  
 | |
| 		}  
 | |
|         
 | |
|       
 | |
|        [DataMember]
 | |
|         public string  lastmodified{
 | |
| 			get {return _lastmodified;}
 | |
| 			 set {_lastmodified = value;}  
 | |
| 		}  
 | |
|         
 | |
|       
 | |
|        [DataMember]
 | |
|         public string  createtime{
 | |
| 			get {return _createtime;}
 | |
| 			 set {_createtime = value;}  
 | |
| 		}  
 | |
|         
 | |
|       
 | |
|        [DataMember]
 | |
|         public  bool   dr{
 | |
| 			get {return _dr;}
 | |
| 			 set {_dr = value;}  
 | |
| 		}  
 | |
|         
 | |
| 		 
 | |
| 		#endregion
 | |
|              
 | |
| 	public  Erp_pandian getDbObject(){   
 | |
|     
 | |
|           Erp_pandian dbObj = new  Erp_pandian(id);     
 | |
|                   dbObj.ID= id  ;                                        
 | |
|           dbObj.orderNo = orderNo;  
 | |
|                                         
 | |
|           dbObj.skuId = skuId;  
 | |
|                                         
 | |
|           dbObj.goodsId = goodsId;  
 | |
|                                         
 | |
|           dbObj.batch = batch;  
 | |
|                                         
 | |
|           dbObj.productDate = productDate;  
 | |
|                                         
 | |
|           dbObj.validDate = validDate;  
 | |
|                                         
 | |
|           dbObj.count = count;  
 | |
|                                         
 | |
|           dbObj.realCount = realCount;  
 | |
|                                         
 | |
|           dbObj.state = state;  
 | |
|                                         
 | |
|           dbObj.type = type;  
 | |
|                                         
 | |
|           dbObj.description = description;  
 | |
|                                         
 | |
|           dbObj.operater = operater;  
 | |
|           
 | |
|            return dbObj;
 | |
|     
 | |
|         }
 | |
|      
 | |
| 	 
 | |
|     
 | |
|     	public  WcfErp_pandian getWcfObject( Erp_pandian dbObj){   
 | |
|     
 | |
|           WcfErp_pandian wcfObj = new  WcfErp_pandian();     
 | |
|                      wcfObj.id= dbObj.ID;                                      
 | |
|                       wcfObj.orderNo = dbObj.orderNo;  
 | |
|                                       
 | |
|                       wcfObj.skuId = dbObj.skuId;  
 | |
|                                       
 | |
|                       wcfObj.goodsId = dbObj.goodsId;  
 | |
|                                       
 | |
|                       wcfObj.batch = dbObj.batch;  
 | |
|                                       
 | |
|                       wcfObj.productDate = dbObj.productDate;  
 | |
|                                       
 | |
|                       wcfObj.validDate = dbObj.validDate;  
 | |
|                                       
 | |
|                       wcfObj.count = dbObj.count;  
 | |
|                                       
 | |
|                       wcfObj.realCount = dbObj.realCount;  
 | |
|                                       
 | |
|                       wcfObj.state = dbObj.state;  
 | |
|                                       
 | |
|                       wcfObj.type = dbObj.type;  
 | |
|                                       
 | |
|                       wcfObj.description = dbObj.description;  
 | |
|                                       
 | |
|                       wcfObj.operater = dbObj.operater;  
 | |
|           
 | |
|            return wcfObj;
 | |
|     
 | |
|         }
 | |
|      
 | |
| 	}
 | |
|     
 | |
|     
 | |
|     
 | |
| 	#endregion
 | |
| }
 |