예제 #1
0
        public bool Delete(EntityHandler.RoleDetails obj)
        {
            bool Status = false;

            try
            {
                Status = new DataAccessHandler.RoleDetails().Delete(obj);
            }
            catch (Exception ex)
            { }
            return(Status);
        }
예제 #2
0
        public DataTable SelectAll(EntityHandler.RoleDetails obj)
        {
            DataTable dt = new DataTable();

            try
            {
                string SqlCommand = "";

                dt = new DALBase().Select(SqlCommand);
            }
            catch (Exception ex)
            { }
            return(dt);
        }
예제 #3
0
        public bool Delete(EntityHandler.RoleDetails obj)
        {
            bool Status = false;

            try
            {
                string SqlCommand = "";

                Status = new DALBase().Update(SqlCommand);
            }
            catch (Exception ex)
            { }
            return(Status);
        }
예제 #4
0
        public List <EntityHandler.RoleDetails> SelectAll(EntityHandler.RoleDetails obj)
        {
            List <EntityHandler.RoleDetails> listobj = new List <EntityHandler.RoleDetails>();

            try
            {
                DataTable dt = new DataAccessHandler.RoleDetails().SelectAll(obj);
                for (int i = 0; i < dt.Rows.Count; i++)
                {
                    listobj.Add(ConvertToObject(dt.Rows[i]));
                }
            }
            catch (Exception ex)
            { }
            return(listobj);
        }
예제 #5
0
        private EntityHandler.RoleDetails ConvertToObject(DataRow row)
        {
            EntityHandler.RoleDetails obj = new EntityHandler.RoleDetails();
            try
            {
                obj.RoleID = row["RoleID"].ToString();

                obj.ObjectCode = row["ObjectCode"].ToString();
                obj.PermID     = row["PermID"].ToString();
                obj.HostID     = row["HostID"].ToString();

                obj.CreatedUser  = Convert.ToInt32(row["CreatedUser"].ToString());
                obj.CreatedDate  = Convert.ToDateTime(row["CreatedDate"].ToString());
                obj.ModifiedDate = Convert.ToDateTime(row["ModifiedDate"].ToString());
                obj.ModifiedUser = Convert.ToInt32(row["ModifiedUser"].ToString());
            }
            catch (Exception ex)
            { }
            return(obj);
        }
예제 #6
0
        private EntityHandler.RoleDetails ConvertToObject(DataRow row)
        {
            EntityHandler.RoleDetails obj = new EntityHandler.RoleDetails();
            try
            {
                obj.RoleID = row["RoleID"].ToString();
               
                obj.ObjectCode = row["ObjectCode"].ToString();
                obj.PermID = row["PermID"].ToString();
                obj.HostID = row["HostID"].ToString();
                
                obj.CreatedUser = Convert.ToInt32(row["CreatedUser"].ToString());
                obj.CreatedDate = Convert.ToDateTime(row["CreatedDate"].ToString());
                obj.ModifiedDate = Convert.ToDateTime(row["ModifiedDate"].ToString());
                obj.ModifiedUser = Convert.ToInt32(row["ModifiedUser"].ToString());
                

            }
            catch (Exception ex)
            { }
            return obj;
        }