public static ClsModule GetPodModule(int intModId) { try { ClsModule obj = new ClsModule(); if (bool.Parse(VMuktiAPI.VMuktiInfo.Port80) && VMuktiAPI.VMuktiInfo.CurrentPeer.CurrPeerType != PeerType.BootStrap) { DataSet ds = null; try { ds = VMukti.Business.clsDataBaseChannel.chHttpDataBaseService.svcExecuteDataSet("select * from Module where ID=" + intModId + "order by ModuleName").dsInfo; } catch (System.ServiceModel.EndpointNotFoundException e) { VMuktiHelper.ExceptionHandler(e, "GetPodModule(int intModId)", "ClsModule.cs"); VMuktiAPI.VMuktiHelper.CallEvent("GetSuperNodeIP", null, null); ds = VMukti.Business.clsDataBaseChannel.chHttpDataBaseService.svcExecuteDataSet("select * from Module where ID=" + intModId + "order by ModuleName").dsInfo; } catch (System.ServiceModel.CommunicationException e) { VMuktiHelper.ExceptionHandler(e, "GetPodModule(int intModId)", "ClsModule.cs"); VMuktiAPI.VMuktiHelper.CallEvent("GetSuperNodeIP", null, null); ds = VMukti.Business.clsDataBaseChannel.chHttpDataBaseService.svcExecuteDataSet("select * from Module where ID=" + intModId + "order by ModuleName").dsInfo; } if (!obj.MapData(ds.Tables[0])) obj = null; } else { if (VMuktiAPI.VMuktiInfo.CurrentPeer.CurrPeerType == VMuktiAPI.PeerType.NodeWithHttp) { DataSet ds = null; try { ds = VMukti.Business.clsDataBaseChannel.chHttpDataBaseService.svcExecuteDataSet("select * from Module where ID=" + intModId + "order by ModuleName").dsInfo; } catch (System.ServiceModel.EndpointNotFoundException e) { VMuktiHelper.ExceptionHandler(e, "GetPodModule(int intModId)", "ClsModule.cs"); VMuktiAPI.VMuktiHelper.CallEvent("GetSuperNodeIP", null, null); ds = VMukti.Business.clsDataBaseChannel.chHttpDataBaseService.svcExecuteDataSet("select * from Module where ID=" + intModId + "order by ModuleName").dsInfo; } catch (System.ServiceModel.CommunicationException e) { VMuktiHelper.ExceptionHandler(e, "GetPodModule(int intModId)", "ClsModule.cs"); VMuktiAPI.VMuktiHelper.CallEvent("GetSuperNodeIP", null, null); ds = VMukti.Business.clsDataBaseChannel.chHttpDataBaseService.svcExecuteDataSet("select * from Module where ID=" + intModId + "order by ModuleName").dsInfo; } if (!obj.MapData(ds.Tables[0])) obj = null; } else { DataSet ds = new ClsModuleDataService().Get_PodModule(intModId); if (!obj.MapData(ds.Tables[0])) obj = null; } } return obj; } catch (Exception ex) { VMuktiHelper.ExceptionHandler(ex, "GetPodModule(int intModId)", "ClsModule.cs"); return null; } }
public static ClsModule GetPodModule(int intModId) { try { ClsModule obj = new ClsModule(); if (bool.Parse(VMuktiAPI.VMuktiInfo.Port80) && VMuktiAPI.VMuktiInfo.CurrentPeer.CurrPeerType != PeerType.BootStrap) { DataSet ds = null; try { ds = VMukti.Business.clsDataBaseChannel.chHttpDataBaseService.svcExecuteDataSet("select * from Module where ID=" + intModId + "order by ModuleName").dsInfo; } catch (System.ServiceModel.EndpointNotFoundException e) { VMuktiHelper.ExceptionHandler(e, "GetPodModule(int intModId)", "ClsModule.cs"); VMuktiAPI.VMuktiHelper.CallEvent("GetSuperNodeIP", null, null); ds = VMukti.Business.clsDataBaseChannel.chHttpDataBaseService.svcExecuteDataSet("select * from Module where ID=" + intModId + "order by ModuleName").dsInfo; } catch (System.ServiceModel.CommunicationException e) { VMuktiHelper.ExceptionHandler(e, "GetPodModule(int intModId)", "ClsModule.cs"); VMuktiAPI.VMuktiHelper.CallEvent("GetSuperNodeIP", null, null); ds = VMukti.Business.clsDataBaseChannel.chHttpDataBaseService.svcExecuteDataSet("select * from Module where ID=" + intModId + "order by ModuleName").dsInfo; } if (!obj.MapData(ds.Tables[0])) { obj = null; } } else { if (VMuktiAPI.VMuktiInfo.CurrentPeer.CurrPeerType == VMuktiAPI.PeerType.NodeWithHttp) { DataSet ds = null; try { ds = VMukti.Business.clsDataBaseChannel.chHttpDataBaseService.svcExecuteDataSet("select * from Module where ID=" + intModId + "order by ModuleName").dsInfo; } catch (System.ServiceModel.EndpointNotFoundException e) { VMuktiHelper.ExceptionHandler(e, "GetPodModule(int intModId)", "ClsModule.cs"); VMuktiAPI.VMuktiHelper.CallEvent("GetSuperNodeIP", null, null); ds = VMukti.Business.clsDataBaseChannel.chHttpDataBaseService.svcExecuteDataSet("select * from Module where ID=" + intModId + "order by ModuleName").dsInfo; } catch (System.ServiceModel.CommunicationException e) { VMuktiHelper.ExceptionHandler(e, "GetPodModule(int intModId)", "ClsModule.cs"); VMuktiAPI.VMuktiHelper.CallEvent("GetSuperNodeIP", null, null); ds = VMukti.Business.clsDataBaseChannel.chHttpDataBaseService.svcExecuteDataSet("select * from Module where ID=" + intModId + "order by ModuleName").dsInfo; } if (!obj.MapData(ds.Tables[0])) { obj = null; } } else { DataSet ds = new ClsModuleDataService().Get_PodModule(intModId); if (!obj.MapData(ds.Tables[0])) { obj = null; } } } return(obj); } catch (Exception ex) { VMuktiHelper.ExceptionHandler(ex, "GetPodModule(int intModId)", "ClsModule.cs"); return(null); } }