public MessageRuleByCompanyPresenter(IUnityContainer container, IMessageRuleByCompanyView view)
        {
            View = view;
            this.container = container;
            this.service = new WMSServiceClient();
            View.Model = this.container.Resolve<MessageRuleByCompanyModel>();

            //Event Delegate
            View.LoadSearch += new EventHandler<DataEventArgs<string>>(this.OnLoadSearch);
            View.New += new EventHandler<EventArgs>(this.OnNew);
            View.LoadData += new EventHandler<DataEventArgs<MessageRuleByCompany>>(this.OnLoadData);
            View.Save += new EventHandler<EventArgs>(this.OnSave);
            View.Delete += new EventHandler<EventArgs>(this.OnDelete);

            View.Model.ClassEntityList = service.GetClassEntity(new ClassEntity());
            view.Model.LabelTemplateList = service.GetLabelTemplate(new LabelTemplate
            {
                LabelType = new DocumentType { DocClass = new DocumentClass { DocClassID = SDocClass.Message } }
            });


            View.Model.EntityList = service.GetMessageRuleByCompany(new MessageRuleByCompany());
            View.Model.Record = null;

        }