public OrderHeader() {
     _orderHeaderID = 0;
     _purchaseordernumber = StringUtils.GenerateRandomText(16);
     _orderstatusid = (short) Util.Enums.OrderStatus.Basket;
     _ordereddate = DateTime.Now;
     _invoiceAddress = null;
     _deliveryAddress = null;
     _deliverytypeid = null;
     _comment = null;
     _inserttimestamp = DateTime.Now;
     _updatetimestamp = DateTime.Now;
    
 }
        protected void Page_Load(object sender, EventArgs e) {
            controller = Module as CatalogueViewModule;
            this._page = (ModuleAdminBasePage)this.Page;

            hplDeliveryMainMenu.NavigateUrl = String.Format("~/Modules/ECommerce/Admin/DeliveryManager.aspx{0}", this._page.GetBaseQueryString());


            county = controller.DeliveryService.GetDeliveryType("WeightBandingState");
            country = controller.DeliveryService.GetDeliveryType("WeightBandingCountry");
            lbCountryStatus.Click += new EventHandler(lbCountryStatus_Click);
            lbCountyStatus.Click += new EventHandler(lbCountyStatus_Click);
            UpdateStatus();
            hplView.NavigateUrl = String.Format("~/Modules/ECommerce/Admin/Delivery/WeightBanding/WeightBandingList.aspx{0}", this._page.GetBaseQueryString());
        }
 public void Save(DeliveryType deliveryType) {
     _dao.SaveOrUpdateObject(deliveryType);
 }