예제 #1
0
        public virtual void InvalidateMainObject(int iObjectID)
        {
            Type typMainObjectType = MainObject.GetType();
            BaseBusinessController objMainObjectController = new BaseBusinessController(typMainObjectType);

            MainObject = (BusinessObject)objMainObjectController.GetObjectByID(iObjectID);
            UpdateMainObjectBindingSource();
        }
예제 #2
0
        public virtual void Invalidate(int iObjectID)
        {
            string strTableName = VinaUtil.GetTableNameFromBusinessObject(CurrentModuleEntity.MainObject);
            BaseBusinessController objBaseBusinessController = BusinessControllerFactory.GetBusinessController(strTableName + "Controller");
            BusinessObject         mainObject = (BusinessObject)objBaseBusinessController.GetObjectByID(iObjectID);

            if (mainObject != null)
            {
                CurrentModuleEntity.Invalidate(iObjectID);

                CurrentModuleEntity.MainObject.OldObject = (BusinessObject)CurrentModuleEntity.MainObject.Clone();

                InvalidateToolbar();
            }
            InvalidateEmployee();
        }