예제 #1
0
 public void DeepCopy(BackEnd src)
 {
     this.ArgentumChosen           = src.ArgentumChosen;
     this.AurumChosen              = src.AurumChosen;
     this.BbtNomenclatureChosen    = src.BbtNomenclatureChosen;
     this.CommentChosen            = src.CommentChosen;
     this.ConditionChosen          = src.ConditionChosen;
     this.ConfirmationDocChosen    = src.ConfirmationDocChosen;
     this.EndDateChosen            = src.EndDateChosen;
     this.ExploitationDateChosen   = src.ExploitationDateChosen;
     this.ExploitationPeriodChosen = src.ExploitationPeriodChosen;
     this.ExploitationPlaceChosen  = src.ExploitationPlaceChosen;
     this.FactoryNumberChosen      = src.FactoryNumberChosen;
     this.GuaranteeChosen          = src.GuaranteeChosen;
     this.IndexChosen              = src.IndexChosen;
     this.InventoryNumberChosen    = src.InventoryNumberChosen;
     this.ManufacturerChosen       = src.ManufacturerChosen;
     this.MpgChosen               = src.MpgChosen;
     this.OrderNumberChosen       = src.OrderNumberChosen;
     this.PlatinumChosen          = src.PlatinumChosen;
     this.PrimaryCostChosen       = src.PrimaryCostChosen;
     this.ProductionDateChosen    = src.ProductionDateChosen;
     this.PurposeChosen           = src.PurposeChosen;
     this.ReceivingDateChosen     = src.ReceivingDateChosen;
     this.ResponsiblePersonChosen = src.ResponsiblePersonChosen;
     this.ServiceDateChosen       = src.ServiceDateChosen;
     this.StateChosen             = src.StateChosen;
     this.Write_offChosen         = src.Write_offChosen;
 }
예제 #2
0
        public static void initBases()
        {
            //mainBase = DataHelper.TestDataBase();
            //string relativeSource = Environment.CurrentDirectory;

            //string fullPath = Path.Combine(relativeSource, "../mainBase.xml");

            dataContext = DataHelper.LoadXmlContext(System.IO.Path.Combine(DataHelper.FolderPath(), "settings.xml"));
            mainBase    = DataHelper.LoadFromXml(dataContext.DefaultPath);
            archive     = DataHelper.LoadFromXml(System.IO.Path.Combine(DataHelper.FolderPath(), @"Data\archive.xml"));
            openedFile  = dataContext.DefaultPath;
        }
예제 #3
0
        static DataController()
        {
            archive  = new ProductDatabase();
            mainBase = new ProductDatabase();

            dataContext    = new BackEnd();
            possibleStates = new List <string>();
            possibleStates.Add("По умолчанию");
            possibleStates.Add("Передано");
            possibleStates.Add("Получено");
            possibleStates.Add("Отправлено в сервис");
            windowsCount = 0;
            // workWnd.Closed += workWnd_Closed;
        }