private void MatoutAccountToggleButton_Click(object sender, RoutedEventArgs e) { List<AccountGridObj> selecteds = GetSeleteds(); AccountMatOut matout = new AccountMatOut(_productBrand, _regionType, _groupRegionMapId, _endMonth, _endYear, selecteds); matout.Show(); }
void ghalb_MouseLeftButtonDown(object sender, MouseButtonEventArgs e) { List<AccountGridObj> accounts = new List<AccountGridObj>(); accounts.Add(new AccountGridObj() { CustomerName = "بیمارستان قلب تهران", DisCustomerCodes = new List<string>() { "78562", "23057" } }); AccountMatOut matoutChart = new AccountMatOut((SanofiProductBrands)_selected_Product, SanofiRegionTypes.TotalIR, _selectedRegionMapId, _selected_EndMonth, _selected_EndYear, accounts); matoutChart.Show(); }
void Pharmacy_MouseLeftButtonDown(object anAccount, MouseButtonEventArgs e) { List<AccountGridObj> accounts = new List<AccountGridObj>(); accounts.Add((AccountGridObj)((DrawPinPoint)anAccount).Tag); AccountMatOut matoutChart = new AccountMatOut((SanofiProductBrands)_selected_Product, SanofiRegionTypes.TotalIR, _selectedRegionMapId, _selected_EndMonth, _selected_EndYear, accounts); matoutChart.Show(); }
void MenuWindow_TehranMatOutClick(object sender, EventArgs e) { List<AccountGridObj> accounts = new List<AccountGridObj>(); if (DistrictDSIDs == null || !DistrictDSIDs.ContainsKey(DBUtils.GetDistrictId(_selectedRegionMapId))) return; List<string> DSIDList = new List<string>(); foreach (DSID_PerDistrict dataItem in DistrictDSIDs[DBUtils.GetDistrictId(_selectedRegionMapId)]) DSIDList.Add(dataItem.DSID+""); accounts.Add(new AccountGridObj() { CustomerName = DBUtils.GetGroupRegionName(_selectedRegionMapId, (SanofiProductBrands)_selected_Product), DisCustomerCodes = DSIDList }); AccountMatOut theAccountMatOut = new AccountMatOut((SanofiProductBrands)_selected_Product, _selected_RegionType, DBUtils.GetGroupRegionMapId(_selectedRegionMapId, (SanofiProductBrands)_selected_Product), _selected_EndMonth, _selected_EndYear,accounts); theAccountMatOut.Show(); }