/// 
///Data Object 
///BASIC CLASS FOR TABLE t_GoodsUnit
///By wm  
///on 08/04/2023
/// 
 
using System;
using System.Data;
using DeiNiu.Data.BaseObject;
 
namespace  DeiNiu.wms.Data.Model
{
	#region GoodsUnit_base
	/// 
	/// This object represents the properties and methods of a GoodsUnit_base.
    /// 
    [Serializable]
	public class GoodsUnit_base  : BaseModel { 
                       
                    internal string _goodsId = String.Empty,_OgoodsId= String.Empty;   
                    internal int _unit,_Ounit;   
                    internal bool _isPrimary,_OisPrimary;   
                    internal decimal _rate,_Orate;   
                    internal string _barcode = String.Empty,_Obarcode= String.Empty;   
                    internal int _Ooperater;   
                       
                    internal string _createtime = String.Empty,_Ocreatetime= String.Empty;   
                       
		
		public  GoodsUnit_base () {
		}
		public  GoodsUnit_base (int id) {
			_id=id;
			getModel();
		}
		public  GoodsUnit_base(DataRow dr)
        {
            getModel(dr);
        }
          public GoodsUnit_base(System.Data.SqlClient.SqlConnection _Conn)
            : base(_Conn) 
        {
        }
          protected override void getImp()
        {
            model_imp = new GoodsUnit_base_Imp();  
        }
		#region Public Properties 
        public string  goodsId{
			get {return _goodsId;}
			 set {_goodsId = value;}    
		}  
        
        public  int   unit{
			get {return _unit;}
			 set {_unit = value;}    
		}  
        
        public  bool   isPrimary{
			get {return _isPrimary;}
			 set {_isPrimary = value;}    
		}  
        
        public  decimal   rate{
			get {return _rate;}
			 set {_rate = value;}    
		}  
        
        public string  barcode{
			get {return _barcode;}
			 set {_barcode = value;}    
		}  
        
        public  int   operater{
			get {return _operater;}
			 set {_operater = value;}    
		}  
        
        public string  lastmodified{
			get {return _lastmodified;}
			   
		}  
        
        public string  createtime{
			get {return _createtime;}
			 set {_createtime = value;}    
		}  
        
        public  bool   dr{
			get {return _dr;}
			   
		}  
        
		 
		#endregion
                 
      #region fieldNames 
      public enum fields{goodsId,unit,isPrimary,rate,barcode,operater}
      #endregion
    
	
	}
	#endregion
}