Example #1
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            GlobalInfo.ExistTax = true;
            var areaList = loginService.GetAreaList();

            cbxArea.ItemsSource       = areaList;
            cbxArea.DisplayMemberPath = "Name";
            cbxArea.SelectedValuePath = "Code";

            if (GlobalInfo.DeviceType == DeviceType.JSP.GetHashCode())
            {
                tbloginNsrsbh.Text = JsDiskHelper.GetNsrsbh();
                tbRegNsrsbh.Text   = JsDiskHelper.GetNsrsbh();

                tbloginNsrsbh.IsReadOnly = true;
                tbRegNsrsbh.IsReadOnly   = true;
            }
            else
            {
                cbxSkpLoginNsrsbh.Text       = CryptTool.Nsrsbh;
                tbloginNsrsbh.Visibility     = Visibility.Collapsed;
                cbxSkpLoginNsrsbh.Visibility = Visibility.Visible;

                cbxSkpLoginNsrsbh.ItemsSource = loginService.GetSkpNsrsbhList();
            }

            BindUserInfo(CryptTool.Nsrsbh);
        }
Example #2
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            if (GlobalInfo.DeviceType == DeviceType.JSP.GetHashCode())
            {
                tbloginNsrsbh.Text       = JsDiskHelper.GetNsrsbh();
                tbloginNsrsbh.IsReadOnly = true;
            }
            else
            {
                tbloginNsrsbh.Visibility     = Visibility.Collapsed;
                cbxSkpLoginNsrsbh.Visibility = Visibility.Visible;

                cbxSkpLoginNsrsbh.ItemsSource = loginService.GetSkpNsrsbhList();
            }
        }