예제 #1
0
        public override void Edit(IDBCommon entity)
        {
            Service_CU_ID         = ((ServicePrice_cu)ActiveDBItem).Service_CU_ID;
            ServiceCategory_CU_ID = ((ServicePrice_cu)ActiveDBItem).ServiceCategory_CU_ID;
            Doctor_CU_ID          = ((ServicePrice_cu)ActiveDBItem).Doctor_CU_ID;
            Doctor_CU_ID          = ((ServicePrice_cu)ActiveDBItem).Doctor_CU_ID;
            DoctorCategory_CU_ID  = ((ServicePrice_cu)ActiveDBItem).DoctorCategory_CU_ID;
            Price          = ((ServicePrice_cu)ActiveDBItem).Price;
            InsurancePrice = ((ServicePrice_cu)ActiveDBItem).InsurancePrice;
            if (((ServicePrice_cu)ActiveDBItem).InsuranceCarrier_InsuranceLevel_CU_ID != null)
            {
                InsuranceCarrier_InsuranceLevel_cu insuranceBridge =
                    InsuranceCarrier_InsuranceLevel_cu.ItemsList.Find(
                        item =>
                        Convert.ToInt32(item.ID)
                        .Equals(Convert.ToInt32(((ServicePrice_cu)ActiveDBItem).InsuranceCarrier_InsuranceLevel_CU_ID)));
                if (insuranceBridge != null)
                {
                    InsuranceCarrierID = insuranceBridge.InsuranceLevel_CU_ID;
                    InsuranceLevelID   = insuranceBridge.InsuranceLevel_CU_ID;
                }
            }

            ((IServicePrice_EditorViewer)ActiveCollector.ActiveViewer).ID = ((ServicePrice_cu)ActiveDBItem).ID;
            ActiveCollector.ActiveDBItem.ID = ((ServicePrice_cu)ActiveDBItem).ID;

            base.Edit(ActiveCollector.ActiveDBItem);
        }
        public override void Edit(IDBCommon entity)
        {
            Name_P = ((InventoryItem_cu)ActiveDBItem).Name_P;
            Name_S = ((InventoryItem_cu)ActiveDBItem).Name_S;
            InventoryHousing_CU_ID      = ((InventoryItem_cu)ActiveDBItem).InventoryHousing_CU_ID;
            InventoryItemCategory_CU_ID = ((InventoryItem_cu)ActiveDBItem).InventoryItemCategory_CU_ID;
            InventoryItemBrand_CU_ID    = ((InventoryItem_cu)ActiveDBItem).InventoryItemBrand_CU_ID;
            DefaultUnitMeasurment_CU_ID = ((InventoryItem_cu)ActiveDBItem).InventoryTrackingUnitMeasurment_CU_ID;
            InventoryItemType_P_ID      = ((InventoryItem_cu)ActiveDBItem).InventoryItemType_P_ID;
            InternalCode            = ((InventoryItem_cu)ActiveDBItem).InternalCode;
            DefaultBarcode          = ((InventoryItem_cu)ActiveDBItem).DefaultBarcode;
            DefaultSellingPrice     = ((InventoryItem_cu)ActiveDBItem).DefaultSellingPrice;
            DefaultCost             = ((InventoryItem_cu)ActiveDBItem).DefaultCost;
            RorderedPoint           = ((InventoryItem_cu)ActiveDBItem).RorderedPoint;
            StockMinLevel           = ((InventoryItem_cu)ActiveDBItem).StockMinLevel;
            StockMaxLevel           = ((InventoryItem_cu)ActiveDBItem).StockMaxLevel;
            AcceptOverrideMinAmount = ((InventoryItem_cu)ActiveDBItem).AcceptOverrideMinAmount;
            CanBeSold            = ((InventoryItem_cu)ActiveDBItem).CanBeSold;
            IsAvailable          = ((InventoryItem_cu)ActiveDBItem).IsAvailable;
            AcceptPartingSelling = ((InventoryItem_cu)ActiveDBItem).AcceptPartingSelling;
            IsCountable          = ((InventoryItem_cu)ActiveDBItem).IsCountable;
            SellingStartDate     = ((InventoryItem_cu)ActiveDBItem).SellingStartDate;
            SellingEndDate       = ((InventoryItem_cu)ActiveDBItem).SellingEndDate;
            ExpirationDate       = ((InventoryItem_cu)ActiveDBItem).ExpirationDate;
            Description          = ((InventoryItem_cu)ActiveDBItem).Description;

            ((IInventoryItemViewer)ActiveCollector.ActiveViewer).ID = ((InventoryItem_cu)ActiveDBItem).ID;
            ActiveCollector.ActiveDBItem.ID = ((InventoryItem_cu)ActiveDBItem).ID;

            base.Edit(ActiveCollector.ActiveDBItem);
        }
예제 #3
0
 public virtual void Edit(IDBCommon entity)
 {
     ActiveCollector.ActiveDBItem = entity;
     ActiveCollector.ActiveViewer.CommonTransactionType = DB_CommonTransactionType.UpdateExisting;
     ActiveCollector.ActiveViewer.ClearControls();
     ActiveCollector.ActiveViewer.FillControls();
 }
예제 #4
0
        public override void Edit(IDBCommon entity)
        {
            InventoryItem_CU_ID = ((InventoryItemPrice_cu)ActiveDBItem).InventoryItem_CU_ID;
            InventoryItem_UnitMeasurment_cu bridge =
                InventoryItem_UnitMeasurment_cu.ItemsList.Find(
                    item =>
                    Convert.ToInt32(item.ID)
                    .Equals(Convert.ToInt32(((InventoryItemPrice_cu)ActiveDBItem).InventoryItem_UnitMeasurment_CU_ID)));

            if (bridge != null)
            {
                UnitMeasurment_cu unitMeasurment =
                    UnitMeasurment_cu.ItemsList.Find(
                        item => Convert.ToInt32(item.ID).Equals(Convert.ToInt32(bridge.UnitMeasurment_CU_ID)));
                if (unitMeasurment != null)
                {
                    UnitMeasurment_CU_ID = unitMeasurment.ID;
                }
            }
            Date           = ((InventoryItemPrice_cu)ActiveDBItem).Date;
            Price          = ((InventoryItemPrice_cu)ActiveDBItem).Price;
            Customer_CU_ID = ((InventoryItemPrice_cu)ActiveDBItem).Customer_CU_ID;
            PriceType_P_ID = ((InventoryItemPrice_cu)ActiveDBItem).PriceType_P_ID;
            Supplier_CU_ID = ((InventoryItemPrice_cu)ActiveDBItem).Supplier_CU_ID;

            ((IInventoryItemPriceViewer)ActiveCollector.ActiveViewer).ID = ((InventoryItemPrice_cu)ActiveDBItem).ID;
            ActiveCollector.ActiveDBItem.ID = ((InventoryItemPrice_cu)ActiveDBItem).ID;

            base.Edit(ActiveCollector.ActiveDBItem);
        }
예제 #5
0
파일: QueryAgent.cs 프로젝트: ishui/rms2
 public QueryAgent()
 {
     this.m_TopNumber = 0;
     this.m_IsOutSide = false;
     this.db          = DBCommonBuilder.BuildDBCommon();
     this.db.Open();
 }
예제 #6
0
        public override void Edit(IDBCommon entity)
        {
            FirstName                        = ((Person_cu)ActiveDBItem).FirstName_P;
            SecondName                       = ((Person_cu)ActiveDBItem).SecondName_P;
            ThirdName                        = ((Person_cu)ActiveDBItem).ThirdName_P;
            FourthName                       = ((Person_cu)ActiveDBItem).FourthName_P;
            MaritalStatus                    = ((Person_cu)ActiveDBItem).MaritalStatus_P_ID;
            Gender                           = ((Person_cu)ActiveDBItem).Gender;
            BirthDate                        = ((Person_cu)ActiveDBItem).BirthDate;
            Mobile1                          = ((Person_cu)ActiveDBItem).Mobile1;
            Mobile2                          = ((Person_cu)ActiveDBItem).Mobile2;
            Phone1                           = ((Person_cu)ActiveDBItem).Phone1;
            Phone2                           = ((Person_cu)ActiveDBItem).Phone2;
            Address                          = ((Person_cu)ActiveDBItem).Address;
            Email                            = ((Person_cu)ActiveDBItem).EMail;
            IdentificationCardType           = ((Person_cu)ActiveDBItem).IdentificationCardType_P_ID;
            IdentificationCardNumber         = ((Person_cu)ActiveDBItem).IdentificationCardNumber;
            IdentificationCardIssueDate      = ((Person_cu)ActiveDBItem).IdentificationCardIssuingDate;
            IdentificationCardExpirationDate = ((Person_cu)ActiveDBItem).IdentificationCardExpirationDate;

            if (((Person_cu)ActiveDBItem).Supplier_cu != null)
            {
                InternalCode = ((Person_cu)ActiveDBItem).Supplier_cu.InternalCode;
            }

            ((ISupplierViewer)ActiveCollector.ActiveViewer).ID = ((Person_cu)ActiveDBItem).ID;
            ActiveCollector.ActiveDBItem.ID = ((Person_cu)ActiveDBItem).ID;

            base.Edit(ActiveCollector.ActiveDBItem);
        }
예제 #7
0
파일: QueryAgent.cs 프로젝트: ishui/rms2
 public QueryAgent(IDBCommon outsideDB)
 {
     this.m_TopNumber = 0;
     this.m_IsOutSide = false;
     this.db          = outsideDB;
     this.db.Open();
     this.m_IsOutSide = true;
 }
 public bool Delete(IDBCommon entity)
 {
     if (ActiveCollector == null)
     {
         return(false);
     }
     return(ActiveCollector.Delete(entity));
 }
        public void AfterEdit(IDBCommon entity)
        {
            if (ActiveCollector == null)
            {
                return;
            }

            ActiveCollector.BeforeEdit(entity);
        }
        public void Edit(IDBCommon entity)
        {
            if (ActiveCollector == null)
            {
                return;
            }

            ActiveCollector.ActiveDBItem = entity;
            ActiveCollector.Edit(entity);
        }
예제 #11
0
        public override void Edit(IDBCommon entity)
        {
            Name_P = ((Diagnosis_cu)ActiveDBItem).Name_P;
            Name_S = ((Diagnosis_cu)ActiveDBItem).Name_S;

            ((IDiagnosis_Viewer)ActiveCollector.ActiveViewer).ID = ((Diagnosis_cu)ActiveDBItem).ID;
            ActiveCollector.ActiveDBItem.ID = ((Diagnosis_cu)ActiveDBItem).ID;

            base.Edit(ActiveCollector.ActiveDBItem);
        }
        public override void Edit(IDBCommon entity)
        {
            Name_P = ((MedicationCategory_cu)ActiveDBItem).Name_P;
            Name_S = ((MedicationCategory_cu)ActiveDBItem).Name_S;

            ((IMedicationCategoryViewer)ActiveCollector.ActiveViewer).ID = ((MedicationCategory_cu)ActiveDBItem).ID;
            ActiveCollector.ActiveDBItem.ID = ((MedicationCategory_cu)ActiveDBItem).ID;

            base.Edit(ActiveCollector.ActiveDBItem);
        }
        public override void Edit(IDBCommon entity)
        {
            StationPoint_CU_ID    = ((ServiceCategory_StationPoint_cu)ActiveDBItem).StationPoint_CU_ID;
            ServiceCategory_CU_ID = ((ServiceCategory_StationPoint_cu)ActiveDBItem).ServiceCategory_CU_ID;

            ((IServiceCategory_StationPointViewer)ActiveCollector.ActiveViewer).ID = ((ServiceCategory_StationPoint_cu)ActiveDBItem).ID;
            ActiveCollector.ActiveDBItem.ID = ((ServiceCategory_StationPoint_cu)ActiveDBItem).ID;

            base.Edit(ActiveCollector.ActiveDBItem);
        }
        public override void Edit(IDBCommon entity)
        {
            PersonChartOfAccountType_P_ID = ((PersonType_ChartOfAccount_cu)ActiveDBItem).PersonChartOfAccountType_P_ID;
            PersonType_P_ID      = ((PersonType_ChartOfAccount_cu)ActiveDBItem).PersonType_P_ID;
            ChartOfAccount_CU_ID = ((PersonType_ChartOfAccount_cu)ActiveDBItem).ChartOfAccount_CU_ID;

            ((IPersonType_ChartOfAccount_Viewer)ActiveCollector.ActiveViewer).ID = ((PersonType_ChartOfAccount_cu)ActiveDBItem).ID;
            ActiveCollector.ActiveDBItem.ID = ((PersonType_ChartOfAccount_cu)ActiveDBItem).ID;

            base.Edit(ActiveCollector.ActiveDBItem);
        }
예제 #15
0
        public override void Edit(IDBCommon entity)
        {
            Name_P      = ((DoctorCategory_cu)ActiveDBItem).Name_P;
            Name_S      = ((DoctorCategory_cu)ActiveDBItem).Name_S;
            Description = ((DoctorCategory_cu)ActiveDBItem).Description;

            ((IDoctorCategoryViewer)ActiveCollector.ActiveViewer).ID = ((DoctorCategory_cu)ActiveDBItem).ID;
            ActiveCollector.ActiveDBItem.ID = ((DoctorCategory_cu)ActiveDBItem).ID;

            base.Edit(ActiveCollector.ActiveDBItem);
        }
예제 #16
0
        public override void Edit(IDBCommon entity)
        {
            ParentUnitMeasurment_CU_ID = ((UnitMeasurmentTreeLink_cu)ActiveDBItem).ParentUnitMeasurment_CU_ID;
            ChildUnitMeasurment_CU_ID  = ((UnitMeasurmentTreeLink_cu)ActiveDBItem).ChildUnitMeasurment_CU_ID;
            EncapsulatedChildQantity   = ((UnitMeasurmentTreeLink_cu)ActiveDBItem).EncapsulatedChildQantity;

            ((IUnitMeasurmentTreeLinkViewer)ActiveCollector.ActiveViewer).ID = ((UnitMeasurmentTreeLink_cu)ActiveDBItem).ID;
            ActiveCollector.ActiveDBItem.ID = ((UnitMeasurmentTreeLink_cu)ActiveDBItem).ID;

            base.Edit(ActiveCollector.ActiveDBItem);
        }
예제 #17
0
        public override void Edit(IDBCommon entity)
        {
            Width        = ((InventoryItem_Area)ActiveDBItem).Width;
            Height       = ((InventoryItem_Area)ActiveDBItem).Height;
            Count        = ((InventoryItem_Area)ActiveDBItem).Count;
            InternalCode = ((InventoryItem_Area)ActiveDBItem).InternalCode;

            ((IInventoryItem_Area_Viewer)ActiveCollector.ActiveViewer).ID = ((InventoryItem_Area)ActiveDBItem).ID;
            ActiveCollector.ActiveDBItem.ID = ((InventoryItem_Area)ActiveDBItem).ID;

            base.Edit(ActiveCollector.ActiveDBItem);
        }
        public void Edit(IDBCommon entity)
        {
            Control editorViewerToShow = (Control)EditorViewer;
            Control searchViewerToShow = (Control)SearchViewer;

            ShowControl(ref editorViewerToShow, ref searchViewerToShow, ParentControl, EditorContainerType.Settings, ViewerName,
                        DB_CommonTransactionType.UpdateExisting, "غرف الإقامة", AbstractViewerType.EditorViewer, true);

            MVCEditorController.BeforeEdit(entity);
            MVCEditorController.Edit(entity);
            MVCEditorController.AfterEdit(entity);
        }
예제 #19
0
        public override void Edit(IDBCommon entity)
        {
            Name_P = ((Bank_cu)ActiveDBItem).Name_P;
            Name_S = ((Bank_cu)ActiveDBItem).Name_S;
            ChartOfAccount_CU_ID = ((Bank_cu)ActiveDBItem).ChartOfAccount_CU_ID;
            Description          = ((Bank_cu)ActiveDBItem).Description;

            ((IBankViewer)ActiveCollector.ActiveViewer).ID = ((Bank_cu)ActiveDBItem).ID;
            ActiveCollector.ActiveDBItem.ID = ((Bank_cu)ActiveDBItem).ID;

            base.Edit(ActiveCollector.ActiveDBItem);
        }
예제 #20
0
        public override void Edit(IDBCommon entity)
        {
            Name_P = ((GeneralChartOfAccountType_cu)ActiveDBItem).Name_P;
            Name_S = ((GeneralChartOfAccountType_cu)ActiveDBItem).Name_S;
            GeneralChartOfAccountType_P_ID = ((GeneralChartOfAccountType_cu)ActiveDBItem).GeneralChartOfAccountType_P_ID;
            Description = ((GeneralChartOfAccountType_cu)ActiveDBItem).Description;

            ((IGeneralChartOfAccountTypeViewer)ActiveCollector.ActiveViewer).ID = ((GeneralChartOfAccountType_cu)ActiveDBItem).ID;
            ActiveCollector.ActiveDBItem.ID = ((GeneralChartOfAccountType_cu)ActiveDBItem).ID;

            base.Edit(ActiveCollector.ActiveDBItem);
        }
        public override void Edit(IDBCommon entity)
        {
            DailyTransactionType = ((FinanceDailyTransaction)ActiveDBItem).DailyTransactionType_P_ID;
            Amount      = ((FinanceDailyTransaction)ActiveDBItem).Amount;
            Date        = ((FinanceDailyTransaction)ActiveDBItem).Date;
            Description = ((FinanceDailyTransaction)ActiveDBItem).Description;

            ((IFinanceDailyTransactionViewer)ActiveCollector.ActiveViewer).ID = ((FinanceDailyTransaction)ActiveDBItem).ID;
            ActiveCollector.ActiveDBItem.ID = ((FinanceDailyTransaction)ActiveDBItem).ID;

            base.Edit(ActiveCollector.ActiveDBItem);
        }
        public override void Edit(IDBCommon entity)
        {
            Name_P       = ((Color_cu)ActiveDBItem).Name_P;
            Name_S       = ((Color_cu)ActiveDBItem).Name_S;
            InternalCode = ((Color_cu)ActiveDBItem).InternalCode;
            Description  = ((Color_cu)ActiveDBItem).Description;

            ((IColorViewer)ActiveCollector.ActiveViewer).ID = ((Color_cu)ActiveDBItem).ID;
            ActiveCollector.ActiveDBItem.ID = ((Color_cu)ActiveDBItem).ID;

            base.Edit(ActiveCollector.ActiveDBItem);
        }
예제 #23
0
        public override void Edit(IDBCommon entity)
        {
            CashBoxTransactionType_P_ID = ((CashBoxInOutTransaction)ActiveDBItem).CashBoxTransactionType_P_ID;
            TransactionAmount           = ((CashBoxInOutTransaction)ActiveDBItem).TransactionAmount;
            TranscationSerial           = ((CashBoxInOutTransaction)ActiveDBItem).TranscationSerial;
            Description = ((CashBoxInOutTransaction)ActiveDBItem).Description;

            ((ICashBoxInOutTransactionViewer)ActiveCollector.ActiveViewer).ID = ((CashBoxInOutTransaction)ActiveDBItem).ID;
            ActiveCollector.ActiveDBItem.ID = ((CashBoxInOutTransaction)ActiveDBItem).ID;

            base.Edit(ActiveCollector.ActiveDBItem);
        }
        public override void Edit(IDBCommon entity)
        {
            //NameP = ((UserGroup_cu)ActiveDBItem).Name_P;
            //NameS = ((UserGroup_cu)ActiveDBItem).Name_S;
            //InternalCode = ((UserGroup_cu)ActiveDBItem).InternalCode;
            //Description = ((UserGroup_cu)ActiveDBItem).Description;

            //((IUser_UserGroup_Viewer)ActiveCollector.ActiveViewer).ID = ((UserGroup_cu)ActiveDBItem).ID;
            //ActiveCollector.ActiveDBItem.ID = ((UserGroup_cu)ActiveDBItem).ID;

            base.Edit(ActiveCollector.ActiveDBItem);
        }
        public int UpdateChanges <TEntity>(TEntity entity)
            where TEntity : class, IDBCommon, new()
        {
            try
            {
                TEntity existingEntity = GetEntity <TEntity>(entity.ID);
                _dbContext.Entry(existingEntity).CurrentValues.SetValues(entity);

                if (entity.ChildrenItemsList != null && entity.ChildrenItemsList.Count > 0)
                {
                    foreach (string childEntityName in entity.ChildrenItemsList)
                    {
                        PropertyInfo childParentInfo = entity.GetType().GetProperty(childEntityName);
                        if (childParentInfo != null)
                        {
                            IDBCommon share = (IDBCommon)childParentInfo.GetValue(entity);
                            if (share == null)
                            {
                                continue;
                            }
                            IDBCommon existingChild = null;
                            if (share.ID != null)
                            {
                                existingChild = share.GetSpecificEntity(_dbContext, Convert.ToInt32(share.ID));
                            }
                            if (existingChild == null)
                            {
                                continue;
                            }

                            _dbContext.Entry(existingChild).CurrentValues.SetValues(share);
                        }
                    }
                }

                return(SaveChanges());
            }
            catch (DbEntityValidationException e)
            {
                foreach (var eve in e.EntityValidationErrors)
                {
                    Console.WriteLine("Entity of type \"{0}\" in state \"{1}\" has the following validation errors:",
                                      eve.Entry.Entity.GetType().Name, eve.Entry.State);
                    foreach (var ve in eve.ValidationErrors)
                    {
                        Console.WriteLine("- Property: \"{0}\", Error: \"{1}\"",
                                          ve.PropertyName, ve.ErrorMessage);
                    }
                }
                throw;
            }
        }
예제 #26
0
        public override void Edit(IDBCommon entity)
        {
            Name_P       = ((StationPoint_cu)ActiveDBItem).Name_P;
            Name_S       = ((StationPoint_cu)ActiveDBItem).Name_S;
            InternalCode = ((StationPoint_cu)ActiveDBItem).InternalCode;
            Station_P_ID = ((StationPoint_cu)ActiveDBItem).Station_P_ID;
            Description  = ((StationPoint_cu)ActiveDBItem).Description;

            ((IStationPointViewer)ActiveCollector.ActiveViewer).ID = ((StationPoint_cu)ActiveDBItem).ID;
            ActiveCollector.ActiveDBItem.ID = ((StationPoint_cu)ActiveDBItem).ID;

            base.Edit(ActiveCollector.ActiveDBItem);
        }
        public override void Edit(IDBCommon entity)
        {
            Name_P = ((OrganizationMachine_cu)ActiveDBItem).Name_P;
            //StationPoint_CU_ID = ((OrganizationMachine_cu)ActiveDBItem).StationPoint_CU_ID;
            //StationPointStage_CU_ID = ((OrganizationMachine_cu)ActiveDBItem).StationPointStage_CU_ID;
            SkinName = ((OrganizationMachine_cu)ActiveDBItem).SkinName;
            Color    = ((OrganizationMachine_cu)ActiveDBItem).Color;

            ((IOrganizationMachine_Viewer)ActiveCollector.ActiveViewer).ID = ((OrganizationMachine_cu)ActiveDBItem).ID;
            ActiveCollector.ActiveDBItem.ID = ((OrganizationMachine_cu)ActiveDBItem).ID;

            base.Edit(ActiveCollector.ActiveDBItem);
        }
        public override void Edit(IDBCommon entity)
        {
            Name_P              = ((UnitMeasurment_cu)ActiveDBItem).Name_P;
            Name_S              = ((UnitMeasurment_cu)ActiveDBItem).Name_S;
            InternalCode        = ((UnitMeasurment_cu)ActiveDBItem).InternalCode;
            Description         = ((UnitMeasurment_cu)ActiveDBItem).Description;
            UnitMeasurment_P_ID = ((UnitMeasurment_cu)ActiveDBItem).UnitMeasurment_P_ID;

            ((IUnitMeasurmentViewer)ActiveCollector.ActiveViewer).ID = ((UnitMeasurment_cu)ActiveDBItem).ID;
            ActiveCollector.ActiveDBItem.ID = ((UnitMeasurment_cu)ActiveDBItem).ID;

            base.Edit(ActiveCollector.ActiveDBItem);
        }
        public override void Edit(IDBCommon entity)
        {
            Name_P         = ((Floor_cu)ActiveDBItem).Name_P;
            Name_S         = ((Floor_cu)ActiveDBItem).Name_S;
            InternalCode   = ((Floor_cu)ActiveDBItem).InternalCode;
            Description    = ((Floor_cu)ActiveDBItem).Description;
            ShortName      = ((Floor_cu)ActiveDBItem).ShortName;
            Location_CU_ID = ((Floor_cu)ActiveDBItem).Location_CU_ID;

            ((IFloorViewer)ActiveCollector.ActiveViewer).ID = ((Floor_cu)ActiveDBItem).ID;
            ActiveCollector.ActiveDBItem.ID = ((Floor_cu)ActiveDBItem).ID;

            base.Edit(ActiveCollector.ActiveDBItem);
        }
예제 #30
0
        public override void Edit(IDBCommon entity)
        {
            InventoryItemID = ((InventoryItem_RawMaterial_cu)ActiveDBItem).InventoryItem_CU_ID;
            RawMaterialID   = ((InventoryItem_RawMaterial_cu)ActiveDBItem).RawMaterial_CU_ID;
            Width           = ((InventoryItem_RawMaterial_cu)ActiveDBItem).Width;
            Height          = ((InventoryItem_RawMaterial_cu)ActiveDBItem).Height;
            Count           = ((InventoryItem_RawMaterial_cu)ActiveDBItem).Count;
            HasDimensions   = ((InventoryItem_RawMaterial_cu)ActiveDBItem).HasDimensions;

            ((IInventoryItem_RawMaterial_Viewer)ActiveCollector.ActiveViewer).ID = ((InventoryItem_RawMaterial_cu)ActiveDBItem).ID;
            ActiveCollector.ActiveDBItem.ID = ((InventoryItem_RawMaterial_cu)ActiveDBItem).ID;

            base.Edit(ActiveCollector.ActiveDBItem);
        }