Beispiel #1
0
        public static bool RemoveDepartment(DepartmentBO departmentBO)
        {
            DeptDesigAndFinInstitutionDAS deptDesigAndFinInstitutionDAS = new DeptDesigAndFinInstitutionDAS();
            int numberOfRowImpacted = 0;

            numberOfRowImpacted = deptDesigAndFinInstitutionDAS.RemoveDepartment(departmentBO);
            return(numberOfRowImpacted > 0);
        }
Beispiel #2
0
        public static bool AddDesignaion(DesignationBO designationBO)
        {
            DeptDesigAndFinInstitutionDAS deptDesigAndFinInstitutionDAS = new DeptDesigAndFinInstitutionDAS();
            int numberOfRowImpacted = 0;

            numberOfRowImpacted = deptDesigAndFinInstitutionDAS.AddDesignation(designationBO);
            return(numberOfRowImpacted > 0);
        }
Beispiel #3
0
        public static List <FinancialInstitutionBO> GetFinancialInstitutionBOs()
        {
            DeptDesigAndFinInstitutionDAS deptDesigAndFinInstitutionDAS = new DeptDesigAndFinInstitutionDAS();
            string jsondata = deptDesigAndFinInstitutionDAS.GetAllFinancialInstitutions();
            List <FinancialInstitutionBO> financialInstitutionBOs = new List <FinancialInstitutionBO>();

            if (!jsondata.StartsWith("DB_ERROR"))
            {
                financialInstitutionBOs = StringUtil.DeserializeObjectFromJSON <List <FinancialInstitutionBO> >(jsondata);
            }
            return(financialInstitutionBOs);
        }
Beispiel #4
0
        public static List <DepartmentBO> GetDepartmentBOs()
        {
            DeptDesigAndFinInstitutionDAS deptDesigAndFinInstitutionDAS = new DeptDesigAndFinInstitutionDAS();
            string jsondata = deptDesigAndFinInstitutionDAS.GetAllDepartments();
            List <DepartmentBO> departmentBOs = new List <DepartmentBO>();

            if (!jsondata.StartsWith("DB_ERROR"))
            {
                departmentBOs = StringUtil.DeserializeObjectFromJSON <List <DepartmentBO> >(jsondata);
            }
            return(departmentBOs);
        }
Beispiel #5
0
        public static DepartmentBO GetDepartmentBO(DepartmentBO departmentBO)
        {
            DeptDesigAndFinInstitutionDAS deptDesigAndFinInstitutionDAS = new DeptDesigAndFinInstitutionDAS();
            string jsondata = deptDesigAndFinInstitutionDAS.GetDepartment(departmentBO);
            List <DepartmentBO> departmentBOs;

            if (!jsondata.StartsWith("DB_ERROR"))
            {
                departmentBOs = StringUtil.DeserializeObjectFromJSON <List <DepartmentBO> >(jsondata);
                departmentBO  = departmentBOs.ElementAt(0);
            }
            return(departmentBO);
        }
Beispiel #6
0
        public static FinancialInstitutionBO GetFinancialInstitutionBO(FinancialInstitutionBO financialInstitutionBO)
        {
            DeptDesigAndFinInstitutionDAS deptDesigAndFinInstitutionDAS = new DeptDesigAndFinInstitutionDAS();
            string jsondata = deptDesigAndFinInstitutionDAS.GetFinancialInstitution(financialInstitutionBO);
            List <FinancialInstitutionBO> financialInstitutionBOs;

            if (!jsondata.StartsWith("DB_ERROR"))
            {
                financialInstitutionBOs = StringUtil.DeserializeObjectFromJSON <List <FinancialInstitutionBO> >(jsondata);
                financialInstitutionBO  = financialInstitutionBOs.ElementAt(0);
            }
            return(financialInstitutionBO);
        }
Beispiel #7
0
        public static bool IsFinancialInstitutionPresent(FinancialInstitutionBO financialInstitution)
        {
            DeptDesigAndFinInstitutionDAS deptDesigAndFinInstitutionDAS = new DeptDesigAndFinInstitutionDAS();
            string jsondata = deptDesigAndFinInstitutionDAS.GetFinancialInstitution(financialInstitution);

            if (!jsondata.StartsWith("DB_ERROR"))
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
Beispiel #8
0
        public static bool IsDepartmentPresent(DepartmentBO department)
        {
            DeptDesigAndFinInstitutionDAS deptDesigAndFinInstitutionDAS = new DeptDesigAndFinInstitutionDAS();
            string jsondata = deptDesigAndFinInstitutionDAS.GetDepartment(department);

            if (!jsondata.StartsWith("DB_ERROR"))
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }