예제 #1
0
	    public void Insert(string Status,string Code,DateTime? CreatedOn,DateTime? ModifiedOn,string CreatedBy,string ModifiedBy)
	    {
		    ShipStatus item = new ShipStatus();
		    
            item.Status = Status;
            
            item.Code = Code;
            
            item.CreatedOn = CreatedOn;
            
            item.ModifiedOn = ModifiedOn;
            
            item.CreatedBy = CreatedBy;
            
            item.ModifiedBy = ModifiedBy;
            
	    
		    item.Save(UserName);
	    }
예제 #2
0
	    public void Update(int ShipStatusId,string Status,string Code,DateTime? CreatedOn,DateTime? ModifiedOn,string CreatedBy,string ModifiedBy)
	    {
		    ShipStatus item = new ShipStatus();
	        item.MarkOld();
	        item.IsLoaded = true;
		    
			item.ShipStatusId = ShipStatusId;
				
			item.Status = Status;
				
			item.Code = Code;
				
			item.CreatedOn = CreatedOn;
				
			item.ModifiedOn = ModifiedOn;
				
			item.CreatedBy = CreatedBy;
				
			item.ModifiedBy = ModifiedBy;
				
	        item.Save(UserName);
	    }