private void SearchViewEntityArea_DataSelected(object sender, DataSelectedEventArg e) { foreach (var data in e.DataItem) { DP_DataRepository result = null; if (SearchViewEntityArea.IsCalledFromDataView) { result = AreaInitializer.EditAreaDataManager.GetFullDataFromDataViewSearch(AreaInitializer.EntityID, data, this); } else { result = AreaInitializer.EditAreaDataManager.ConvertDP_DataViewToDP_DataRepository(data, this); } if (result != null) { bool addResult = AddData(result, SearchViewEntityArea.IsCalledFromDataView); if (!addResult) { AgentUICoreMediator.GetAgentUICoreMediator.UIManager.ShowInfo("عدم دسترسی به داده و یا داده های وابسته", data.ViewInfo, Temp.InfoColor.Red); } } else { AgentUICoreMediator.GetAgentUICoreMediator.UIManager.ShowInfo("عدم دسترسی به داده", e.DataItem.First().ViewInfo, Temp.InfoColor.Red); } } }
//private void GetRelationshipFilters() //{ //} private void ViewEntityArea_DataSelected(object sender, DataSelectedEventArg e) { if (DataSelected != null) { DataSelected(this, new DataSelectedEventArg() { DataItem = e.DataItem }); } }
//private void GetRelationshipFilters() //{ //} private void ViewEntityArea_DataSelected(object sender, DataSelectedEventArg e) { if (DataSelected != null) { if (View.HaseViewAreaView) { AgentUICoreMediator.GetAgentUICoreMediator.UIManager.CloseDialog(View); } DataSelected(this, new DataSelectedEventArg() { DataItem = e.DataItem }); } }