private void ReLoadOduDetailsOnBrandCodeChange(bool IsvalidateTabinfoReturn) { bll = new JCHVRF.BLL.OutdoorBLL(JCHVRF.Model.Project.CurrentProject.SubRegionCode, JCHVRF.Model.Project.CurrentProject.BrandCode); GetProductCategory(); //BindRatio(); SetOutDoorSystemSpecific(); }
public OutDoorUnitInfoViewModel(IEventAggregator eventAggregator) { _eventAggregator = eventAggregator; _eventAggregator.GetEvent <TypeTabSubscriber>().Subscribe(ReLoadOduDetailsOnBrandCodeChange); JCHVRF.Model.Project.CurrentProject = JCHVRF.Model.Project.GetProjectInstance; bll = new JCHVRF.BLL.OutdoorBLL(JCHVRF.Model.Project.CurrentProject.SubRegionCode, JCHVRF.Model.Project.CurrentProject.BrandCode); GetProductCategory(); // BindRatio(); SetOutDoorSystemSpecific(); NextClickCommand = new DelegateCommand(OduTypeNextClick); SaveClickCommand = new DelegateCommand(OduSaveClick); _eventAggregator.GetEvent <ODUTypeTabNext>().Subscribe(OduTypeNextClick); _eventAggregator.GetEvent <ODUTypeTabSave>().Subscribe(OduSaveClick); }
public TotalHeatExUnitInfoViewModel(IEventAggregator EventAggregator, IModalWindowService winService, JCHVRF_New.Model.LightProject thisProj) { try { NumericOutdoorCDBCommand = new DelegateCommand(NumericOutdoorCDB_LostFocus); NumericOutdoorCWBCommand = new DelegateCommand(NumericOutdoorCWBCommand_LostFocus); NumericOutdoorHDBCommand = new DelegateCommand(NumericOutdoorHDBCommand_LostFocus); NumericRHommand = new DelegateCommand(NumericRHommand_LostFocus); //CreateClickCommand = new DelegateCommand(CreateHENextClick); ChangeTempCommand = new DelegateCommand(btnChangeTempUClicked); AddFloorCommand = new DelegateCommand(OnAddFloorClicked); AddEditRoomCommand = new DelegateCommand(OnAddEditRoomClicked); ValidateUnitNameCommand = new DelegateCommand(ValidateUnitNameOnLostFocus); _eventAggregator = EventAggregator; _winService = winService; _eventAggregator.GetEvent <RoomListSaveSubscriber>().Subscribe(GetRoomList); _eventAggregator.GetEvent <FloorListSaveSubscriber>().Subscribe(OpenGetFloorList); GetRoomList(); BindFloor(); //BindDefaultFanSpeed(); _eventAggregator.GetEvent <TheuInfoVisibility>().Subscribe(OnTypeSelected); _eventAggregator.GetEvent <BeforeCreate>().Subscribe(OnBeforeCreate); _eventAggregator.GetEvent <Cleanup>().Subscribe(OnCleanup); _indoorBll = new JCHVRF.BLL.IndoorBLL(JCHVRF.Model.Project.CurrentProject.SubRegionCode, JCHVRF.Model.Project.CurrentProject.BrandCode); WorkFlowContext.FloorNames = null; bll = new JCHVRF.BLL.OutdoorBLL(JCHVRF.Model.Project.CurrentProject.SubRegionCode, JCHVRF.Model.Project.CurrentProject.BrandCode); if (JCHVRF.Model.Project.GetProjectInstance.DesignCondition != null) { BindInternalDesignConditions(); } WorkFlowContext.FloorNames = new List <string>(); } catch (Exception ex) { int?id = Project.GetProjectInstance?.projectID; Logger.LogProjectError(id, ex); } }
public ODUPropertiesViewModel(IEventAggregator eventAggregator) { OduList = null; _eventAggregator = eventAggregator; CurrentProject = JCHVRF.Model.Project.GetProjectInstance; NumericHeatDryBulbCommand = new DelegateCommand(NumericHeatingDryBulb_LostFocus); NumericHeatWetBulbCommand = new DelegateCommand(NumericHeatWetBulb_LostFocus); NumericInternalRHCommand = new DelegateCommand(NumericInternalRH_LostFocus); LostFocusCoolingDryBulbCommand = new DelegateCommand(NumericCoolDryBulb_LostFocus); ManualSelectionCheckedCommand = new DelegateCommand(ManualSelectionCheckedEvent); ManualSelectionUnCheckedCommand = new DelegateCommand(ManualSelectionUnCheckedEvent); ChangeTempCommand = new DelegateCommand(btnChangeTempClicked); if (ProjectBLL.IsSupportedUniversalSelection(JCHVRF.Model.Project.GetProjectInstance)) { bll = new OutdoorBLL(JCHVRF.Model.Project.CurrentProject.SubRegionCode, JCHVRF.Model.Project.CurrentProject.BrandCode, JCHVRF.Model.Project.CurrentProject.RegionCode); } else { bll = new JCHVRF.BLL.OutdoorBLL(JCHVRF.Model.Project.CurrentProject.SubRegionCode, JCHVRF.Model.Project.CurrentProject.BrandCode); } }