private void DosageCombo_SelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     if ((sender as ComboBox).SelectedItem != null && Utils.String_Trim_ToLower_Equals((string)(sender as ComboBox).SelectedItem, "all"))
     {
         SalesPerChannelTotal channeltotal = new SalesPerChannelTotal((SanofiProductBrands)_productBrand, _startDate, _endDate, _regionType, _groupRegionMapId, "");
         channeltotal.Show();
     }
     else
     {
         SalesPerChannelTotal channeltotal = new SalesPerChannelTotal((SanofiProductBrands)_productBrand, _startDate, _endDate, _regionType, _groupRegionMapId, (string)(sender as ComboBox).SelectedItem);
         channeltotal.Show();
     }
     this.Close();
 }
示例#2
0
 void MenuWindow_SalesPerChannelClick(object sender, EventArgs e)
 {
     SalesPerChannelTotal window = new SalesPerChannelTotal((SanofiProductBrands)_selected_Product, _selectedStartDate, _selectedEndDate, _selected_RegionType, DBUtils.GetGroupRegionMapId(_selectedRegionMapId, (SanofiProductBrands)_selected_Product),"");
     window.Show();
 }