Beispiel #1
0
        public int deletedata(personalBEL objBEL)
        {
            int dltresult;

            dltresult = objDAL.deletedata(objBEL);
            try
            {
                if (dltresult > 0)
                {
                    return(dltresult);
                }
                else
                {
                    return(0);
                }
            }
            catch (Exception ex)
            {
                throw;
            }
            finally
            {
                objDAL = null;
                objBEL = null;
            }
        }
Beispiel #2
0
        public int updatelogindata(personalBEL objBEL)
        {
            int resultupdatelgndata;

            try
            {
                resultupdatelgndata = objDAL.updatelogindata(objBEL);
                if (resultupdatelgndata > 0)
                {
                    return(resultupdatelgndata);
                }
                else
                {
                    return(0);
                }
            }
            catch (Exception ex)
            {
                throw;
            }
            finally
            {
                objBEL = null;
                objDAL = null;
            }
        }
Beispiel #3
0
        //public int deletewrkdata(personalBEL objBEL)
        //{
        //    int delwrkresult;
        //    try
        //    {
        //        delwrkresult = objDAL.deletedata(objBEL);
        //        if (delwrkresult > 0)
        //        {
        //            return delwrkresult;
        //        }
        //        else
        //        {
        //            return 0;
        //        }
        //    }
        //    catch (Exception ex)
        //    {
        //        throw;
        //    }
        //    finally
        //    {
        //        objBEL = null;
        //        objDAL = null;
        //    }
        //}

        //for employee login
        public int insertemploylogindata(personalBEL objBEL)
        {
            int resultinstlogin;

            try
            {
                resultinstlogin = objDAL.insertemploylogindata(objBEL);
                if (resultinstlogin > 0)
                {
                    return(resultinstlogin);
                }
                else
                {
                    return(0);
                }
            }
            catch (Exception ex)
            {
                throw;
            }
            finally
            {
                objBEL = null;
                objDAL = null;
            }
        }
Beispiel #4
0
        public int insertdata(personalBEL objBEL)
        {
            int result;

            try
            {
                result = objDAL.insertdata(objBEL);
                if (result != 0)
                {
                    return(result);
                }
                else
                {
                    return(0);
                }
            }
            catch (Exception ex)
            {
                throw;
            }
            finally
            {
                objBEL = null;
                objDAL = null;
            }
        }
Beispiel #5
0
        public int updatewrkdata(personalBEL objBEL)
        {
            int updtwrkresult;

            try
            {
                updtwrkresult = objDAL.updatewrkdata(objBEL);
                if (updtwrkresult > 0)
                {
                    return(updtwrkresult);
                }
                else
                {
                    return(0);
                }
            }
            catch (Exception ex)
            {
                throw;
            }
            finally
            {
                objBEL = null;
                objDAL = null;
            }
        }
Beispiel #6
0
 public DataSet getdata()
 {
     try
     {
         return(objDAL.getdata());
     }
     catch (Exception ex)
     {
         throw;
     }
     finally
     {
         objDAL = null;
     }
 }
Beispiel #7
0
        public DataSet getemployelogindata()
        {
            DataSet ds = new DataSet();

            try
            {
                ds = objDAL.getemployelogindata();
                return(ds);
            }
            catch (Exception ex)
            {
                throw;
            }
            finally
            {
                objDAL = null;
            }
        }
Beispiel #8
0
        public DataSet getadmnlgnpsrd(personalBEL objBEL)
        {
            DataSet ds = new DataSet();

            try
            {
                ds = objDAL.getadmnlgnpsrd(objBEL);
                return(ds);
            }
            catch (Exception ex)
            {
                throw;
            }
            finally
            {
                objDAL = null;
                objBEL = null;
            }
        }
Beispiel #9
0
        //for search
        public DataSet searchdata(personalBEL objBEL)
        {
            DataSet ds = new DataSet();

            try
            {
                ds = objDAL.searchdata(objBEL);
                return(ds);
            }
            catch (Exception ex)
            {
                throw;
            }
            finally
            {
                objDAL = null;
                objBEL = null;
            }
        }
Beispiel #10
0
 public PersonalBAL()
 {
     objPersonalDAL = new PersonalDAL();
 }
Beispiel #11
0
 public void test()
 {
     PersonalDAL dal = new PersonalDAL();
 }
Beispiel #12
0
 public static List <Personel> ListeleGelsin()
 {
     return(PersonalDAL.Listele());
 }