Exemplo n.º 1
0
        public void AddNewNoteTemplate()
        {
            if (NewTemplateName != "")
            {
                mrsClient = new RetailSystemClient();
                mrsClient.Endpoint.Address = new System.ServiceModel.EndpointAddress(Internal.Utilities.GetMetriconRetailSystemWcfClientEndpointUrl());

                mrsClient.AddNewNotesTemplateCompleted += new EventHandler <AddNewNotesTemplateCompletedEventArgs>(mrsClient_AddNewNotesTemplateCompleted);
                mrsClient.AddNewNotesTemplateAsync(NewTemplateName, SelectedRegionId.ToString(), userid);
                mrsClient = null;
            }
        }
Exemplo n.º 2
0
        public void SearchNotesTemplate()
        {
            mrsClient = new RetailSystemClient();
            mrsClient.Endpoint.Address = new System.ServiceModel.EndpointAddress(Internal.Utilities.GetMetriconRetailSystemWcfClientEndpointUrl());

            mrsClient.GetAdditionalNotesTemplateAndProductsByRegionCompleted += new EventHandler <GetAdditionalNotesTemplateAndProductsByRegionCompletedEventArgs>(mrsClient_AdditionalNotesTemplateAndProductsByRegionCompleted);
            mrsClient.GetAdditionalNotesTemplateAndProductsByRegionAsync(TemplateNameSearchText, SelectedRegionId.ToString(), userid, SelectedStatus, (App.Current as App).CurrentUserRoleId);
            mrsClient = null;
        }