Beispiel #1
0
        private void UserControl_Loaded(object sender, RoutedEventArgs e)
        {
            data.Find(BLL.UserAccount.Company.Id);
            cmbCityId.ItemsSource       = BLL.City.toList;
            cmbCityId.DisplayMemberPath = "CityName";
            cmbCityId.SelectedValuePath = "Id";

            var lstCompany = BLL.CompanyDetail.toList.Where(x => x.CompanyType == "Warehouse" && x.UnderCompanyId == BLL.UserAccount.Company.Id);

            dgvWarehouse.ItemsSource = lstCompany;
        }
Beispiel #2
0
 private void UserControl_Loaded(object sender, RoutedEventArgs e)
 {
     BLL.CompanyDetail.Init();
     data.Find(BLL.UserAccount.User.UserType.Company.Id);
 }