///<summary> /// Method Invocation of wrapper classes ///<summary> protected static FR_L6DA_GAPMDfTID_1353 Invoke(DbConnection Connection, DbTransaction Transaction, string ConnectionString, CSV2Core.SessionSecurity.SessionSecurityTicket securityTicket = null) { bool cleanupConnection = Connection == null; bool cleanupTransaction = Transaction == null; FR_L6DA_GAPMDfTID_1353 functionReturn = new FR_L6DA_GAPMDfTID_1353(); try { if (cleanupConnection == true) { Connection = CSV2Core_MySQL.Support.DBSQLSupport.CreateConnection(ConnectionString); Connection.Open(); } if (cleanupTransaction == true) { Transaction = Connection.BeginTransaction(); } functionReturn = Execute(Connection, Transaction, securityTicket); #region Cleanup Connection/Transaction //Commit the transaction if (cleanupTransaction == true) { Transaction.Commit(); } //Close the connection if (cleanupConnection == true) { Connection.Close(); } #endregion } catch (Exception ex) { try { if (cleanupTransaction == true && Transaction != null) { Transaction.Rollback(); } } catch { } try { if (cleanupConnection == true && Connection != null) { Connection.Close(); } } catch { } throw new Exception("Exception occured in method cls_Get_AllPagesMissingData_for_TenantID", ex); } return(functionReturn); }
protected static FR_L6DA_GAPMDfTID_1353 Execute(DbConnection Connection, DbTransaction Transaction, CSV2Core.SessionSecurity.SessionSecurityTicket securityTicket = null) { #region UserCode var returnValue = new FR_L6DA_GAPMDfTID_1353(); //Put your code here returnValue.Result = new L6DA_GAPMDfTID_1353(); if (ORM_CMN_STR_Office.Query.Search(Connection, Transaction, new ORM_CMN_STR_Office.Query { IsDeleted = false, Tenant_RefID = securityTicket.TenantID }).Count > 0) { returnValue.Result.OrgUnitsHaveElements = true; } else { returnValue.Result.OrgUnitsHaveElements = false; } if (ORM_PPS_TSK_Task_Template.Query.Search(Connection, Transaction, new ORM_PPS_TSK_Task_Template.Query { IsDeleted = false, Tenant_RefID = securityTicket.TenantID }).Count > 0) { returnValue.Result.AppointmentTypesHaveElements = true; } else { returnValue.Result.AppointmentTypesHaveElements = false; } if (ORM_CMN_BPT_EMP_Employee.Query.Search(Connection, Transaction, new ORM_CMN_BPT_EMP_Employee.Query { IsDeleted = false, Tenant_RefID = securityTicket.TenantID }).Count > 0) { returnValue.Result.StaffMemberHaveElements = true; } else { returnValue.Result.StaffMemberHaveElements = false; } if (ORM_PPS_DEV_Device.Query.Search(Connection, Transaction, new ORM_PPS_DEV_Device.Query { IsDeleted = false, Tenant_RefID = securityTicket.TenantID }).Count > 0) { returnValue.Result.DevicesHaveElements = true; } else { returnValue.Result.DevicesHaveElements = false; } if (ORM_PPS_DEV_Device_Instance.Query.Search(Connection, Transaction, new ORM_PPS_DEV_Device_Instance.Query { IsDeleted = false, Tenant_RefID = securityTicket.TenantID }).Count > 0) { returnValue.Result.DeviceInstanceHaveElements = true; } else { returnValue.Result.DeviceInstanceHaveElements = false; } if (ORM_CMN_STR_Profession.Query.Search(Connection, Transaction, new ORM_CMN_STR_Profession.Query { IsDeleted = false, Tenant_RefID = securityTicket.TenantID }).Count > 0) { returnValue.Result.StaffTypesHaveElements = true; } else { returnValue.Result.StaffTypesHaveElements = false; } if (ORM_CMN_STR_Skill.Query.Search(Connection, Transaction, new ORM_CMN_STR_Skill.Query { IsDeleted = false, Tenant_RefID = securityTicket.TenantID }).Count > 0) { returnValue.Result.StaffSkillHaveElements = true; } else { returnValue.Result.StaffSkillHaveElements = false; } if (ORM_HEC_HIS_HealthInsurance_Company.Query.Search(Connection, Transaction, new ORM_HEC_HIS_HealthInsurance_Company.Query { IsDeleted = false, Tenant_RefID = securityTicket.TenantID }).Count > 0) { returnValue.Result.HICompanyHaveElements = true; } else { returnValue.Result.HICompanyHaveElements = false; } if (ORM_HEC_Patient_HealthInsurance_State.Query.Search(Connection, Transaction, new ORM_HEC_Patient_HealthInsurance_State.Query { IsDeleted = false, Tenant_RefID = securityTicket.TenantID }).Count > 0) { returnValue.Result.HIStateHaveElements = true; } else { returnValue.Result.HIStateHaveElements = false; } if (ORM_CMN_CAL_EVT_Presentation.Query.Search(Connection, Transaction, new ORM_CMN_CAL_EVT_Presentation.Query { IsDeleted = false, Tenant_RefID = securityTicket.TenantID }).Count > 0) { returnValue.Result.EventsHaveElements = true; } else { returnValue.Result.EventsHaveElements = false; } if (ORM_HEC_MedicalPractice_Type.Query.Search(Connection, Transaction, new ORM_HEC_MedicalPractice_Type.Query { IsDeleted = false, Tenant_RefID = securityTicket.TenantID }).Count > 0) { returnValue.Result.MedicalPracticeHaveElements = true; } else { returnValue.Result.MedicalPracticeHaveElements = false; } return(returnValue); #endregion UserCode }