public MarketPagePersonalViewModel()
        {
            LoadProducts();
            reportsLogic  = ReportsLogic.GetInstance();
            CountSmall    = reportsLogic.GetCountProducts();
            Condition     = "Visible";
            Position      = StaffsLogic.GetPosition();
            FirstName     = StaffsLogic.GetName();
            LastName      = StaffsLogic.GetSurname();
            IsView        = false;
            ViewProduct   = new RelayCommand <int>(Data);
            DeleteProduct = new RelayCommand <int>(Delete);

            NameText       = "Изменить";
            IsReadonlyName = true;

            PriceText       = "Изменить";
            IsReadonlyPrice = true;

            CountText       = "Изменить";
            IsReadonlyCount = true;

            WeightText       = "Изменить";
            IsReadonlyWeight = true;

            ColorText       = "Изменить";
            IsReadonlyColor = true;

            DescriptionText       = "Изменить";
            IsReadonlyDescription = true;

            saveId = -1;
        }
Ejemplo n.º 2
0
 public PaymentsReport()
 {
     InitializeComponent();
     reportsLogic     = new ReportsLogic(manager);
     EndDateDTP.Value = DateTime.Now.AddDays(1).Date;
     FillDocumentTypes();
     FillStructureObjects();
     FillPaymentTypes();
 }
 public ReportPageViewModel(string fullNameStaff)
 {
     reportsLogic = ReportsLogic.GetInstance();
     (List <string>, List <string>)readyLists = reportsLogic.GetListsForReport();
     Condition          = "Visible";
     ZeroProducts       = new ObservableCollection <string>(readyLists.Item1);
     SmallCountProducts = new ObservableCollection <string>(readyLists.Item2);
     TextReport         = $"С уважением, {fullNameStaff}, компания \"П. А. Е. М.\"!";
 }