Esempio n. 1
0
        public static bool RemoveDepartment(DepartmentBO departmentBO)
        {
            DeptDesigAndFinInstitutionDAS deptDesigAndFinInstitutionDAS = new DeptDesigAndFinInstitutionDAS();
            int numberOfRowImpacted = 0;

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

            numberOfRowImpacted = deptDesigAndFinInstitutionDAS.AddDesignation(designationBO);
            return(numberOfRowImpacted > 0);
        }
Esempio n. 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);
        }
Esempio n. 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);
        }
Esempio n. 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);
        }
Esempio n. 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);
        }
Esempio n. 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);
            }
        }
Esempio n. 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);
            }
        }