Beispiel #1
0
        private void smrButton_Click(object sender, EventArgs e)
        {
            if (productButton.Checked)
            {
                SmrForm smr = new SmrForm(vidalProduct.GetService<VidalAPI.Services.SmrService>().GetSmrAsmrAsHTML(((VidalAPI.Domain.Product)listBox1.SelectedItem).Id));
                smr.Show();

            }
            else if (packRadioButton.Checked)
            {
                SmrForm smr = new SmrForm(vidalProduct.GetService<VidalAPI.Services.SmrService>().GetSmrAsmrAsHTML(((VidalAPI.Domain.Pack)listBox1.SelectedItem).ProductId));
                smr.Show();
            }
            else if (ucdRadioButton.Checked)
            {
                VidalAPI.Domain.Product product = vidalProduct.GetService<VidalAPI.Services.ProductService>().SearchByUcdId(((VidalAPI.Domain.Ucd)listBox1.SelectedItem).Id);
                SmrForm smr = new SmrForm(vidalProduct.GetService<VidalAPI.Services.SmrService>().GetSmrAsmrAsHTML(product.Id));
                smr.Show();

                     }
        }
Beispiel #2
0
        //    private ServiceAnalysis.prescriptionCostAnalysis AnalysisService_getPrescriptionCostAnalysis(ServiceAnalysis.ArrayOfString prescr)
        //  {
        // throw new NotImplementedException();
        // }
        private void smrButton_Click(object sender, EventArgs e)
        {
            if (productButton.Checked)
            {
                SmrForm smr = new SmrForm(helper.SmrService_getSmrAsmrAsHTML((int)((ProductDto)listBox1.SelectedItem).Id));
                smr.Show();

            }
            else if (packRadioButton.Checked)
            {
                SmrForm smr = new SmrForm(helper.SmrService_getSmrAsmrAsHTML((int)((PackDto)listBox1.SelectedItem).ProductId));
                smr.Show();
            }
            else if (ucdRadioButton.Checked)
            {
                ProductDto product = helper.ProductService_searchByUcdId((int)((UcdDto)listBox1.SelectedItem).Id);
                SmrForm smr = new SmrForm(helper.SmrService_getSmrAsmrAsHTML((int)product.Id));
                smr.Show();

                     }
        }