Пример #1
0
        public RosreestrContext()
        {
            Xml = new XmlUseMethod();
            var visualTreatment = new VisualTreatmentFace();

            StartButton = new StatusButtonMethod();
            StartButton.Button.Command = new DelegateCommand(() => { visualTreatment.VisualFace(StartButton, ConfigFile.VisualId, ConfigFile.FileJurnalError, ConfigFile.FileJurnalOk); });
            Update = new DelegateCommand(() => { Xml.UpdateFileXml(ConfigFile.VisualId); });
        }
Пример #2
0
        public DataContextActual()
        {
            var commandauto = new StatusReg();

            StartButton = new StatusButtonMethod();
            Xml         = new XmlUseMethod();
            StartButton.Button.Command = new DelegateCommand((() => { commandauto.StateReg(StartButton, ConfigFile.FidFace, ConfigFile.FileJurnalError, ConfigFile.FileJurnalOk); }));
            Update = new DelegateCommand(() => { Xml.UpdateFileXml(ConfigFile.FidFace); });
        }
Пример #3
0
        public DataContextVisualBank()
        {
            StartButton = new StatusButtonMethod();
            var visual = new VisualBankMessages();

            Xml    = new XmlUseMethod();
            Update = new DelegateCommand(() => { Xml.UpdateFileXml(ConfigFile.VisualId); });
            StartButton.Button.Command = new DelegateCommand(() => { visual.StartVisualBank(StartButton, ConfigFile.VisualId, ConfigFile.FileJurnalError, ConfigFile.FileJurnalOk); });
        }
Пример #4
0
        public DataContextSnuAuto()
        {
            var commandauto = new AutoCklicsAisCommand();

            StartButton = new StatusButtonMethod();
            Xml         = new XmlUseMethod();
            StartButton.Button.Command = new DelegateCommand(() => { commandauto.AutoClicerSnuOneForm(StartButton, ConfigFile.FileInn, ConfigFile.FileJurnalError, ConfigFile.FileJurnalOk); });
            Update = new DelegateCommand(() => { Xml.UpdateFileXml(ConfigFile.FileInn); });
        }
Пример #5
0
        public MassSnuDataContext()
        {
            var commandauto = new AutoCklicsAisCommand();

            StartButton = new StatusButtonMethod();
            Xml2        = new XmlUseMethod();
            StartButton.Button.Command = new DelegateCommand((() => { commandauto.AutoClicerSnuMassInnForm(StartButton, ConfigFile.FileInnFull, ConfigFile.FileJurnalError, ConfigFile.FileJurnalOk); }));
            Update = new DelegateCommand(() => { Xml2.UpdateFileXml(ConfigFile.FileInnFull); });
        }
Пример #6
0
        public DataContextStartCash()
        {
            Xml = new XmlUseMethod();
            var bpAuto = new AutoMessageLk();

            StartButton = new StatusButtonMethod();
            StartButton.Button.Command = new DelegateCommand(() => { bpAuto.StartProcess(StartButton, ConfigFile.AllListModel); });
            Update = new DelegateCommand(() => { Xml.UpdateFileXml(ConfigFile.AllListModel); });
        }
Пример #7
0
        public PravoEditDataContext()
        {
            var commandauto = new CommandPravo();

            StartButton = new StatusButtonMethod();
            Xml         = new XmlUseMethod();
            StartButton.Button.Command = new DelegateCommand((() => { commandauto.AutoClicerEditPravo(StartButton, ConfigFile.FileFid, ConfigFile.FileJurnalError, ConfigFile.FileJurnalOk); }));
            Update = new DelegateCommand(() => { Xml.UpdateFileXml(ConfigFile.FileFid); });
        }
Пример #8
0
        public DataContextZemly()
        {
            Branch    = new SelectBranch().AddBranhc();
            QbeStatus = new QbeClassMethod();
            var commandauto = new LibaryCommandPublic.TestAutoit.Reg.TreatmentFPD.Zemly.Zemly();

            StartButton2 = new StatusButtonMethod();
            Xml1         = new XmlUseMethod();
            StartButton2.Button.Command = new DelegateCommand(() => { commandauto.ZemlyAuto(QbeStatus, Branch, StartButton2, ConfigFile.FileFpd, ConfigFile.FileJurnalError, ConfigFile.FileJurnalOk); });
            Update     = new DelegateCommand(() => { Xml1.UpdateFileXml(ConfigFile.FileFpd); });
            SelectAddC = new DelegateCommand <object>(param => { QbeStatus.SelectStatusAddC(param); });
            RemoveAddC = new DelegateCommand <object>(param => { QbeStatus.DeleteStatusAddC(param); });
            SelectAddF = new DelegateCommand <object>(param => { QbeStatus.SelectStatusAddF(param); });
            RemoveAddF = new DelegateCommand <object>(param => { QbeStatus.DeleteStatusAddF(param); });
        }
        public UserPrintSnuDataContext()
        {
            PdfModel = new PdfListFile();
            var commandauto = new AutoCklicsAisCommand();

            StartButton = new StatusButtonMethod();
            Date        = new DatePickerPub();
            Xml         = new XmlUseMethod();
            StartButton.Button.Command = new DelegateCommand((() => { commandauto.PrintSnu(Date, StartButton, ConfigFile.FileInnFull, ConfigFile.FileJurnalError, ConfigFile.FileJurnalOk, ConfigFile.Connection); }));
            Validate   = new DelegateCommand(() => { PdfModel.CountPdfTemp(ConfigFile.PathTemp); });
            Validate2  = new DelegateCommand(() => { PdfModel.CountPdfWork(ConfigFile.PathPdfWork); });
            Moving     = new DelegateCommand((() => { PdfModel.MoveWork(ConfigFile.PathPdfWork); }));
            DeleteTemp = new DelegateCommand((() => { PdfModel.DeleteTemp(); }));
            Update     = new DelegateCommand(() => { Xml.UpdateFileXml(ConfigFile.FileInnFull); });
            PrintPdf   = new DelegateCommand(() => { PdfModel.PrintAllFile(ConfigFile.PathPdfWork); });
        }
Пример #10
0
 public DataContextReport()
 {
     try
     {
         var command = new CommandSnuOneAuto();
         Report = new ReportXlsxMethod(ConfigFile.ExcelReportFile);
         ReportJurnalAndFile = new ReportJurnalMethod(ConfigFile.PathJurnal, ConfigFile.PathInn);
         Xml          = new XmlUseMethod();
         DeleteJurnal = new DelegateCommand(() => { ReportJurnalAndFile.DeleteXmlReportJurnal(); });
         DeleteReport = new DelegateCommand(() => { Report.DeleteReportFile(); });
         OpenReport   = new DelegateCommand(() => { Report.OpenReport(); });
         OpenFile     = new DelegateCommand(() => { command.ConvertXslToXmlAndOpen(Report, ReportJurnalAndFile, ConfigFile.ExcelReportFile); });
         Update       = new DelegateCommand(() =>
         {
             ReportJurnalAndFile.AddFileXml(ConfigFile.PathInn);
             ReportJurnalAndFile.AddJurnal(ConfigFile.PathJurnal);
         });
     }
     catch (Exception e)
     {
         Console.WriteLine(e);
         throw;
     }
 }
Пример #11
0
 /// <summary>
 /// Команда Update вынесена в отдельный класс чтобы не загромождать логику MVVM
 /// </summary>
 /// <param name="xmlUseMethod">XmlUseMethod Метод файла xml</param>
 /// <param name="reportJournalMethod">ReportJournalMethod метод журнала файла xml</param>
 /// <param name="pathFileInn">Путь к файлу FullName</param>
 /// <param name="pathJournal">Просто путь к журналу</param>
 /// <param name="pathInn">Просто путь к ИНН</param>
 public void UpdateModel(XmlUseMethod xmlUseMethod, ReportJournalMethod reportJournalMethod, string pathFileInn, string pathJournal, string pathInn)
 {
     xmlUseMethod.UpdateFileXml(pathFileInn);
     reportJournalMethod.AddFileXml(pathInn);
     reportJournalMethod.AddJournal(pathJournal);
 }
Пример #12
0
 /// <summary>
 /// Команда Update вынесена в отдельный клас чтобы не загромождать логику MVVM
 /// </summary>
 /// <param name="xmlusemethod">XmlUseMethod Метод файла xml</param>
 /// <param name="reportjurnalmethod">ReportJurnalMethod метод журнала файла xml</param>
 /// <param name="pathfileinn">Путь к файлу FullName</param>
 /// <param name="pathjurnal">Просто путь к журналу</param>
 /// <param name="pathinn">Просто путь к ИНН</param>
 public void UpdateModel(XmlUseMethod xmlusemethod, ReportJurnalMethod reportjurnalmethod, string pathfileinn, string pathjurnal, string pathinn)
 {
     xmlusemethod.UpdateFileXml(pathfileinn);
     reportjurnalmethod.AddFileXml(pathinn);
     reportjurnalmethod.AddJurnal(pathjurnal);
 }